From c3e40f8acad8c1b87bcac14d63d7164981d0035a Mon Sep 17 00:00:00 2001 From: Giorgi-Lagidze Date: Tue, 30 Mar 2021 22:39:46 +0400 Subject: [PATCH 001/210] update workflows --- .github/workflows/contracts-ci-cd.yml | 47 +------------------ .github/workflows/server-ci-cd.yml | 5 +- .github/workflows/subgraph-ci-cd.yml | 5 +- .../manifest/data/rinkeby.json | 2 +- 4 files changed, 8 insertions(+), 51 deletions(-) diff --git a/.github/workflows/contracts-ci-cd.yml b/.github/workflows/contracts-ci-cd.yml index db7f3cc2f..b1a92304c 100644 --- a/.github/workflows/contracts-ci-cd.yml +++ b/.github/workflows/contracts-ci-cd.yml @@ -40,49 +40,4 @@ jobs: run: bash <(curl -s https://codecov.io/bash) env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - - deploy-rinkeby: - if: github.ref == 'refs/heads/master' - runs-on: ubuntu-latest - needs: coverage - env: - CD: true - ETH_KEY: ${{ secrets.ETH_KEY }} - ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }} - REGISTRY_RINKEBY: "0x87eE5EA31dCf1f526f21Bb576131C37890AE65E0" - steps: - - uses: actions/checkout@v1 - - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 12 - - - name: Cache yarn modules - uses: actions/cache@v2 - with: - path: '**/node_modules' - key: yarn-${{ hashFiles('yarn.lock') }} - - - name: Cache contracts - uses: actions/cache@v2 - with: - path: | - packages/*/cache - packages/*/artifacts - ~/.cache/buidler-nodejs/ - ~/.cache/hardhat-nodejs/ - key: contracts-${{ hashFiles('packages/*/contracts/**/*.sol') }} - - - name: Install dependencies - run: yarn install --frozen-lockfile - - - name: Deploy Factory - run: cd packages/govern-create && yarn deploy --network rinkeby - - - name: Deploy Govern - run: cd packages/govern-create && yarn deploy-govern --network rinkeby > github-message - - - name: Log - run: cat packages/govern-create/github-message + \ No newline at end of file diff --git a/.github/workflows/server-ci-cd.yml b/.github/workflows/server-ci-cd.yml index 77517bfef..3c83e1bc2 100644 --- a/.github/workflows/server-ci-cd.yml +++ b/.github/workflows/server-ci-cd.yml @@ -3,6 +3,7 @@ on: push: branches: - master + - development tags: - v* env: @@ -28,7 +29,7 @@ jobs: - run: .github/scripts/docker-release.sh $REPO:${GITHUB_SHA} $REPO:latest deploy-rinkeby: - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/development' runs-on: ubuntu-latest needs: release steps: @@ -40,7 +41,7 @@ jobs: - run: sleep 10 && curl --fail https://govern-rinkeby.backend.aragon.org -H accept:text/html deploy-mainnet: - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/heads/master') runs-on: ubuntu-latest needs: release steps: diff --git a/.github/workflows/subgraph-ci-cd.yml b/.github/workflows/subgraph-ci-cd.yml index 9123d217b..b94f99d04 100644 --- a/.github/workflows/subgraph-ci-cd.yml +++ b/.github/workflows/subgraph-ci-cd.yml @@ -3,6 +3,7 @@ on: push: branches: - master + - development tags: - v* env: @@ -45,9 +46,9 @@ jobs: run: .github/scripts/kubectl-config.sh ${{secrets.KUBE_CA}} ${{secrets.KUBE_SERVER}} ${{secrets.KUBE_TOKEN}} - name: Deploy rinkeby - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/development' run: yarn deploy:subgraph:rinkeby - name: Deploy mainnet - if: startsWith(github.ref, 'refs/tags/v') + if: github.ref == 'refs/heads/master' run: yarn deploy:subgraph:mainnet diff --git a/packages/govern-subgraph/manifest/data/rinkeby.json b/packages/govern-subgraph/manifest/data/rinkeby.json index 0dabf5c72..83ce7e6c3 100644 --- a/packages/govern-subgraph/manifest/data/rinkeby.json +++ b/packages/govern-subgraph/manifest/data/rinkeby.json @@ -4,7 +4,7 @@ "GovernRegistry": [ { "name": "GovernRegistry", - "address": "0x87eE5EA31dCf1f526f21Bb576131C37890AE65E0", + "address": "0x8adf949adbab3614f5340b21d9d9ad928d218096", "startBlock": 7445834 } ] From 07d528e199d24461b8df224524cf2c133f99f67c Mon Sep 17 00:00:00 2001 From: Giorgi-Lagidze Date: Wed, 31 Mar 2021 18:13:57 +0400 Subject: [PATCH 002/210] update workflow --- .github/workflows/server-ci-cd.yml | 7 +++---- .github/workflows/subgraph-ci-cd.yml | 7 +++---- README.md | 8 ++++++++ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/server-ci-cd.yml b/.github/workflows/server-ci-cd.yml index 3c83e1bc2..ceaf337bf 100644 --- a/.github/workflows/server-ci-cd.yml +++ b/.github/workflows/server-ci-cd.yml @@ -3,9 +3,8 @@ on: push: branches: - master - - development - tags: - - v* + - develop + env: # This is a base repository and we use git refs to set the version of the container # ${GITHUB_REF##*/} will be either a branch name or a tag depending on the event @@ -29,7 +28,7 @@ jobs: - run: .github/scripts/docker-release.sh $REPO:${GITHUB_SHA} $REPO:latest deploy-rinkeby: - if: github.ref == 'refs/heads/development' + if: github.ref == 'refs/heads/develop' runs-on: ubuntu-latest needs: release steps: diff --git a/.github/workflows/subgraph-ci-cd.yml b/.github/workflows/subgraph-ci-cd.yml index b94f99d04..73e06e150 100644 --- a/.github/workflows/subgraph-ci-cd.yml +++ b/.github/workflows/subgraph-ci-cd.yml @@ -3,9 +3,8 @@ on: push: branches: - master - - development - tags: - - v* + - develop + env: GRAPHKEY: ${{secrets.GRAPHKEY}} @@ -46,7 +45,7 @@ jobs: run: .github/scripts/kubectl-config.sh ${{secrets.KUBE_CA}} ${{secrets.KUBE_SERVER}} ${{secrets.KUBE_TOKEN}} - name: Deploy rinkeby - if: github.ref == 'refs/heads/development' + if: github.ref == 'refs/heads/develop' run: yarn deploy:subgraph:rinkeby - name: Deploy mainnet diff --git a/README.md b/README.md index b8f2188cb..11bf00ec2 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,14 @@ The code in this repository has **not** been audited. Read the documentation if you have any doubts about the high-level overview of Govern, or if you want to know more about how everything works under the hood. #### 👋 Get started contributing with a [good first issue](https://github.com/aragon/govern/labels/good%20first%20issue%20%F0%9F%8C%9E) + +Before explaining how you can contribute, It's worth mentioning that we use `develop` branch as the default one. This makes it easier for us to +have all the latest, development changes without affecting the current production version. Though, We don't use `release` branches to make the process a little bit easier ! + * Pushing to `develop` branch via PR deploys changes to testing environments(currently only rinkeby). + * Pushing to `master` branch via PR from `develop` deploys changes to production servers(mainnet). + * Pushing to `master|develop` directly will be restricted to make sure the PR's are reviewed. + * Creating PRs end up in relation to `develop` by default. + Don't be shy to contribute even the smallest tweak. Everyone will be especially nice and helpful to beginners to help you get started! ## Structure From e9f83397d10e960f991ae178f2a83e1a9f32ce00 Mon Sep 17 00:00:00 2001 From: Giorgi Lagidze Date: Tue, 6 Apr 2021 16:01:14 +0400 Subject: [PATCH 003/210] fix hardhat-deploy (#312) * fix hardhat-deploy * update hardhat-deploy Co-authored-by: Giorgi-Lagidze --- packages/govern-create/deploy/verify.ts | 6 +- packages/govern-create/package.json | 4 +- packages/govern-token/package.json | 2 +- yarn.lock | 603 +++++++++++++++++++++++- 4 files changed, 600 insertions(+), 15 deletions(-) diff --git a/packages/govern-create/deploy/verify.ts b/packages/govern-create/deploy/verify.ts index d29d34be5..ca026b933 100644 --- a/packages/govern-create/deploy/verify.ts +++ b/packages/govern-create/deploy/verify.ts @@ -25,8 +25,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { console.log('Verifying registry and factories contracts') - await delay(3000); // Etherscan needs some time to process before trying to verify. - + console.log('Waiting for 2 minutes so Etherscan is aware of contracts before verifying') + await delay(120000); // Etherscan needs some time to process before trying to verify. + console.log('Starting to verify now') + await run(TASK_ETHERSCAN_VERIFY, { apiKey: process.env.ETHERSCAN_KEY, license: 'GPL-3.0', diff --git a/packages/govern-create/package.json b/packages/govern-create/package.json index 2f273bcd7..374cf915a 100644 --- a/packages/govern-create/package.json +++ b/packages/govern-create/package.json @@ -35,7 +35,7 @@ "ethereum-waffle": "^3.0.0", "ethers": "^5.0.0", "hardhat": "^2.1.1", - "hardhat-deploy": "^0.7.0-beta.37", + "hardhat-deploy": "^0.7.2", "hardhat-typechain": "^0.3.3", "solidity-coverage": "^0.7.15", "tmp-promise": "^3.0.2", @@ -46,7 +46,7 @@ "unique-names-generator": "^4.3.1" }, "scripts": { - "clean": "rm -rf artifacts cache typechain", + "clean": "rm -rf artifacts cache typechain deployments", "compile": "hardhat compile --force", "compile:cached": "hardhat compile", "test": "hardhat test", diff --git a/packages/govern-token/package.json b/packages/govern-token/package.json index 97a03248e..c9dd024e0 100644 --- a/packages/govern-token/package.json +++ b/packages/govern-token/package.json @@ -31,7 +31,7 @@ "node-fetch": "^2.6.1", "ethers": "^5.0.0", "unique-names-generator": "^4.3.1", - "hardhat-deploy": "^0.7.0-beta.37", + "hardhat-deploy": "^0.7.2", "hardhat-typechain": "^0.3.3", "solidity-coverage": "^0.7.15", "typechain": "3.0.0", diff --git a/yarn.lock b/yarn.lock index 7fa590a19..e40390560 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1436,6 +1436,21 @@ "@ethersproject/properties" "^5.0.3" "@ethersproject/strings" "^5.0.4" +"@ethersproject/abi@5.1.0", "@ethersproject/abi@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.1.0.tgz#d582c9f6a8e8192778b5f2c991ce19d7b336b0c5" + integrity sha512-N/W9Sbn1/C6Kh2kuHRjf/hX6euMK4+9zdJRBB8sDWmihVntjUAfxbusGZKzDQD8i3szAHhTz8K7XADV5iFNfJw== + dependencies: + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/hash" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/abstract-provider@5.0.9", "@ethersproject/abstract-provider@^5.0.8": version "5.0.9" resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.0.9.tgz#a55410b73e3994842884eb82b1f43e3a9f653eea" @@ -1449,6 +1464,19 @@ "@ethersproject/transactions" "^5.0.9" "@ethersproject/web" "^5.0.12" +"@ethersproject/abstract-provider@5.1.0", "@ethersproject/abstract-provider@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.1.0.tgz#1f24c56cda5524ef4ed3cfc562a01d6b6f8eeb0b" + integrity sha512-8dJUnT8VNvPwWhYIau4dwp7qe1g+KgdRm4XTWvjkI9gAT2zZa90WF5ApdZ3vl1r6NDmnn6vUVvyphClRZRteTQ== + dependencies: + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/networks" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + "@ethersproject/web" "^5.1.0" + "@ethersproject/abstract-signer@5.0.13", "@ethersproject/abstract-signer@^5.0.10", "@ethersproject/abstract-signer@^5.0.2": version "5.0.13" resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.0.13.tgz#59b4d0367d6327ec53bc269c6730c44a4a3b043c" @@ -1460,6 +1488,17 @@ "@ethersproject/logger" "^5.0.8" "@ethersproject/properties" "^5.0.7" +"@ethersproject/abstract-signer@5.1.0", "@ethersproject/abstract-signer@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.1.0.tgz#744c7a2d0ebe3cc0bc38294d0f53d5ca3f4e49e3" + integrity sha512-qQDMkjGZSSJSKl6AnfTgmz9FSnzq3iEoEbHTYwjDlEAv+LNP7zd4ixCcVWlWyk+2siud856M5CRhAmPdupeN9w== + dependencies: + "@ethersproject/abstract-provider" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/address@5.0.10", "@ethersproject/address@>=5.0.0-beta.128", "@ethersproject/address@^5.0.2", "@ethersproject/address@^5.0.4", "@ethersproject/address@^5.0.9": version "5.0.10" resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.0.10.tgz#2bc69fdff4408e0570471cd19dee577ab06a10d0" @@ -1471,6 +1510,17 @@ "@ethersproject/logger" "^5.0.8" "@ethersproject/rlp" "^5.0.7" +"@ethersproject/address@5.1.0", "@ethersproject/address@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.1.0.tgz#3854fd7ebcb6af7597de66f847c3345dae735b58" + integrity sha512-rfWQR12eHn2cpstCFS4RF7oGjfbkZb0oqep+BfrT+gWEGWG2IowJvIsacPOvzyS1jhNF4MQ4BS59B04Mbovteg== + dependencies: + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/rlp" "^5.1.0" + "@ethersproject/base64@5.0.8", "@ethersproject/base64@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.0.8.tgz#1bc4b4b8c59c1debf972c7164b96c0b8964a20a1" @@ -1478,6 +1528,13 @@ dependencies: "@ethersproject/bytes" "^5.0.9" +"@ethersproject/base64@5.1.0", "@ethersproject/base64@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.1.0.tgz#27240c174d0a4e13f6eae87416fd876caf7f42b6" + integrity sha512-npD1bLvK4Bcxz+m4EMkx+F8Rd7CnqS9DYnhNu0/GlQBXhWjvfoAZzk5HJ0f1qeyp8d+A86PTuzLOGOXf4/CN8g== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/basex@5.0.8", "@ethersproject/basex@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.0.8.tgz#6867fad20047aa29fbd4b880f27894ed04cc7bb8" @@ -1486,6 +1543,14 @@ "@ethersproject/bytes" "^5.0.9" "@ethersproject/properties" "^5.0.7" +"@ethersproject/basex@5.1.0", "@ethersproject/basex@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.1.0.tgz#80da2e86f9da0cb5ccd446b337364d791f6a131c" + integrity sha512-vBKr39bum7DDbOvkr1Sj19bRMEPA4FnST6Utt6xhDzI7o7L6QNkDn2yrCfP+hnvJGhZFKtLygWwqlTBZoBXYLg== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/bignumber@5.0.14", "@ethersproject/bignumber@>=5.0.0-beta.130", "@ethersproject/bignumber@^5.0.13", "@ethersproject/bignumber@^5.0.5", "@ethersproject/bignumber@^5.0.7": version "5.0.14" resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.0.14.tgz#605bc61dcbd4a8c6df8b5a7a77c0210273f3de8a" @@ -1495,6 +1560,15 @@ "@ethersproject/logger" "^5.0.8" bn.js "^4.4.0" +"@ethersproject/bignumber@5.1.0", "@ethersproject/bignumber@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.1.0.tgz#966a013a5d871fc03fc67bf33cd8aadae627f0fd" + integrity sha512-wUvQlhTjPjFXIdLPOuTrFeQmSa6Wvls1bGXQNQWvB/SEn1NsTCE8PmumIEZxmOPjSHl1eV2uyHP5jBm5Cgj92Q== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + bn.js "^4.4.0" + "@ethersproject/bytes@5.0.10", "@ethersproject/bytes@>=5.0.0-beta.129", "@ethersproject/bytes@^5.0.2", "@ethersproject/bytes@^5.0.4", "@ethersproject/bytes@^5.0.9": version "5.0.10" resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.0.10.tgz#aa49afe7491ba24ff76fa33d98677351263f9ba4" @@ -1502,6 +1576,13 @@ dependencies: "@ethersproject/logger" "^5.0.8" +"@ethersproject/bytes@5.1.0", "@ethersproject/bytes@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.1.0.tgz#55dfa9c4c21df1b1b538be3accb50fb76d5facfd" + integrity sha512-sGTxb+LVjFxJcJeUswAIK6ncgOrh3D8c192iEJd7mLr95V6du119rRfYT/b87WPkZ5I3gRBUYIYXtdgCWACe8g== + dependencies: + "@ethersproject/logger" "^5.1.0" + "@ethersproject/constants@5.0.9", "@ethersproject/constants@>=5.0.0-beta.128", "@ethersproject/constants@^5.0.4", "@ethersproject/constants@^5.0.8": version "5.0.9" resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.0.9.tgz#81ac44c3bf612de63eb1c490b314ea1b932cda9f" @@ -1509,6 +1590,13 @@ dependencies: "@ethersproject/bignumber" "^5.0.13" +"@ethersproject/constants@5.1.0", "@ethersproject/constants@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.1.0.tgz#4e7da6367ea0e9be87585d8b09f3fccf384b1452" + integrity sha512-0/SuHrxc8R8k+JiLmJymxHJbojUDWBQqO+b+XFdwaP0jGzqC09YDy/CAlSZB6qHsBifY8X3I89HcK/oMqxRdBw== + dependencies: + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/contracts@5.0.11", "@ethersproject/contracts@^5.0.2": version "5.0.11" resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.0.11.tgz#e6cc57698a05be2329cb2ca3d7e87686f95e438a" @@ -1524,6 +1612,34 @@ "@ethersproject/logger" "^5.0.8" "@ethersproject/properties" "^5.0.7" +"@ethersproject/contracts@5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.1.0.tgz#f7c3451f1af77e029005733ccab3419d07d23f6b" + integrity sha512-dvTMs/4XGSc57cYOW0KjgX1NdTujUu7mNb6PQdJWg08m9ULzPyGZuBkFJnijBcp6vTOCQ59RwjboWgNWw393og== + dependencies: + "@ethersproject/abi" "^5.1.0" + "@ethersproject/abstract-provider" "^5.1.0" + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + +"@ethersproject/hardware-wallets@^5.0.14": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hardware-wallets/-/hardware-wallets-5.1.0.tgz#588d318f7232e02eaf4fa64374002ef3f53842e7" + integrity sha512-WxXvRA9zElcL4hYNN51h0gnjmiAfmYK8PXPZOMmOm7+8TuCTehPL71n9wYHWaYoCJ8Bk1Zt9gykONXJLASiHSw== + dependencies: + "@ledgerhq/hw-app-eth" "5.27.2" + "@ledgerhq/hw-transport" "5.26.0" + "@ledgerhq/hw-transport-u2f" "5.26.0" + ethers "^5.1.0" + optionalDependencies: + "@ledgerhq/hw-transport-node-hid" "5.26.0" + "@ethersproject/hash@5.0.11", "@ethersproject/hash@>=5.0.0-beta.128", "@ethersproject/hash@^5.0.10", "@ethersproject/hash@^5.0.4": version "5.0.11" resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.0.11.tgz#da89517438bbbf8a39df56fff09f0a71669ae7a7" @@ -1538,6 +1654,20 @@ "@ethersproject/properties" "^5.0.7" "@ethersproject/strings" "^5.0.8" +"@ethersproject/hash@5.1.0", "@ethersproject/hash@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.1.0.tgz#40961d64837d57f580b7b055e0d74174876d891e" + integrity sha512-fNwry20yLLPpnRRwm3fBL+2ksgO+KMadxM44WJmRIoTKzy4269+rbq9KFoe2LTqq2CXJM2CE70beGaNrpuqflQ== + dependencies: + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/hdnode@5.0.9", "@ethersproject/hdnode@^5.0.8": version "5.0.9" resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.0.9.tgz#ce65b430d3d3f0cd3c8f9dfaaf376b55881d9dba" @@ -1556,6 +1686,24 @@ "@ethersproject/transactions" "^5.0.9" "@ethersproject/wordlists" "^5.0.8" +"@ethersproject/hdnode@5.1.0", "@ethersproject/hdnode@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.1.0.tgz#2bf5c4048935136ce83e9242e1bd570afcc0bc83" + integrity sha512-obIWdlujloExPHWJGmhJO/sETOOo7SEb6qemV4f8kyFoXg+cJK+Ta9SvBrj7hsUK85n3LZeZJZRjjM7oez3Clg== + dependencies: + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/basex" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/pbkdf2" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/sha2" "^5.1.0" + "@ethersproject/signing-key" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + "@ethersproject/wordlists" "^5.1.0" + "@ethersproject/json-wallets@5.0.11", "@ethersproject/json-wallets@^5.0.10": version "5.0.11" resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.0.11.tgz#86fdc41b7762acb443d6a896f6c61231ab2aee5d" @@ -1575,6 +1723,25 @@ aes-js "3.0.0" scrypt-js "3.0.1" +"@ethersproject/json-wallets@5.1.0", "@ethersproject/json-wallets@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.1.0.tgz#bba7af2e520e8aea4d3829d80520db5d2e4fb8d2" + integrity sha512-00n2iBy27w8zrGZSiU762UOVuzCQZxUZxopsZC47++js6xUFuI74DHcJ5K/2pddlF1YBskvmMuboEu1geK8mnA== + dependencies: + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/hdnode" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/pbkdf2" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/random" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + aes-js "3.0.0" + scrypt-js "3.0.1" + "@ethersproject/keccak256@5.0.8", "@ethersproject/keccak256@>=5.0.0-beta.127", "@ethersproject/keccak256@^5.0.0-beta.130", "@ethersproject/keccak256@^5.0.3", "@ethersproject/keccak256@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.0.8.tgz#13aaf69e1c8bd15fc59a2ebd055c0878f2a059c8" @@ -1583,11 +1750,24 @@ "@ethersproject/bytes" "^5.0.9" js-sha3 "0.5.7" +"@ethersproject/keccak256@5.1.0", "@ethersproject/keccak256@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.1.0.tgz#fdcd88fb13bfef4271b225cdd8dec4d315c8e60e" + integrity sha512-vrTB1W6AEYoadww5c9UyVJ2YcSiyIUTNDRccZIgwTmFFoSHwBtcvG1hqy9RzJ1T0bMdATbM9Hfx2mJ6H0i7Hig== + dependencies: + "@ethersproject/bytes" "^5.1.0" + js-sha3 "0.5.7" + "@ethersproject/logger@5.0.9", "@ethersproject/logger@>=5.0.0-beta.129", "@ethersproject/logger@^5.0.5", "@ethersproject/logger@^5.0.8": version "5.0.9" resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.0.9.tgz#0e6a0b3ecc938713016954daf4ac7967467aa763" integrity sha512-kV3Uamv3XOH99Xf3kpIG3ZkS7mBNYcLDM00JSDtNgNB4BihuyxpQzIZPRIDmRi+95Z/R1Bb0X2kUNHa/kJoVrw== +"@ethersproject/logger@5.1.0", "@ethersproject/logger@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.1.0.tgz#4cdeeefac029373349d5818f39c31b82cc6d9bbf" + integrity sha512-wtUaD1lBX10HBXjjKV9VHCBnTdUaKQnQ2XSET1ezglqLdPdllNOIlLfhyCRqXm5xwcjExVI5ETokOYfjPtaAlw== + "@ethersproject/networks@5.0.8", "@ethersproject/networks@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.0.8.tgz#37e6f8c058f2d540373ea5939056cd3de069132e" @@ -1595,6 +1775,13 @@ dependencies: "@ethersproject/logger" "^5.0.8" +"@ethersproject/networks@5.1.0", "@ethersproject/networks@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.1.0.tgz#f537290cb05aa6dc5e81e910926c04cfd5814bca" + integrity sha512-A/NIrIED/G/IgU1XUukOA3WcFRxn2I4O5GxsYGA5nFlIi+UZWdGojs85I1VXkR1gX9eFnDXzjE6OtbgZHjFhIA== + dependencies: + "@ethersproject/logger" "^5.1.0" + "@ethersproject/pbkdf2@5.0.8", "@ethersproject/pbkdf2@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.0.8.tgz#06a086b1ac04c75e6846afd6cf6170a49a634411" @@ -1603,6 +1790,14 @@ "@ethersproject/bytes" "^5.0.9" "@ethersproject/sha2" "^5.0.7" +"@ethersproject/pbkdf2@5.1.0", "@ethersproject/pbkdf2@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.1.0.tgz#6b740a85dc780e879338af74856ca2c0d3b24d19" + integrity sha512-B8cUbHHTgs8OtgJIafrRcz/YPDobVd5Ru8gTnShOiM9EBuFpYHQpq3+8iQJ6pyczDu6HP/oc/njAsIBhwFZYew== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/sha2" "^5.1.0" + "@ethersproject/properties@5.0.8", "@ethersproject/properties@>=5.0.0-beta.131", "@ethersproject/properties@^5.0.3", "@ethersproject/properties@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.0.8.tgz#e45d28d25402c73394873dbf058f856c966cae01" @@ -1610,6 +1805,13 @@ dependencies: "@ethersproject/logger" "^5.0.8" +"@ethersproject/properties@5.1.0", "@ethersproject/properties@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.1.0.tgz#9484bd6def16595fc6e4bdc26f29dff4d3f6ac42" + integrity sha512-519KKTwgmH42AQL3+GFV3SX6khYEfHsvI6v8HYejlkigSDuqttdgVygFTDsGlofNFchhDwuclrxQnD5B0YLNMg== + dependencies: + "@ethersproject/logger" "^5.1.0" + "@ethersproject/providers@5.0.23", "@ethersproject/providers@^5.0.5": version "5.0.23" resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.0.23.tgz#1e26512303d60bbd557242532fdb5fa3c5d5fb73" @@ -1635,6 +1837,31 @@ bech32 "1.1.4" ws "7.2.3" +"@ethersproject/providers@5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.1.0.tgz#27695a02cfafa370428cde1c7a4abab13afb6a35" + integrity sha512-FjpZL2lSXrYpQDg2fMjugZ0HjQD9a+2fOOoRhhihh+Z+qi/xZ8vIlPoumrEP1DzIG4DBV6liUqLNqnX2C6FIAA== + dependencies: + "@ethersproject/abstract-provider" "^5.1.0" + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/basex" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/hash" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/networks" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/random" "^5.1.0" + "@ethersproject/rlp" "^5.1.0" + "@ethersproject/sha2" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + "@ethersproject/web" "^5.1.0" + bech32 "1.1.4" + ws "7.2.3" + "@ethersproject/random@5.0.8", "@ethersproject/random@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.0.8.tgz#8d3726be48e95467abce9b23c93adbb1de009dda" @@ -1643,6 +1870,14 @@ "@ethersproject/bytes" "^5.0.9" "@ethersproject/logger" "^5.0.8" +"@ethersproject/random@5.1.0", "@ethersproject/random@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.1.0.tgz#0bdff2554df03ebc5f75689614f2d58ea0d9a71f" + integrity sha512-+uuczLQZ4+no9cP6TCoCktXx0u2YbNaRT7lRkSt12d8263e702f0u+4JnnRO8Qmv5nylWJebnqCHzyxP+6mLqw== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/rlp@5.0.8", "@ethersproject/rlp@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.0.8.tgz#ff54e206d0ae28640dd054f2bcc7070f06f9dfbe" @@ -1651,6 +1886,14 @@ "@ethersproject/bytes" "^5.0.9" "@ethersproject/logger" "^5.0.8" +"@ethersproject/rlp@5.1.0", "@ethersproject/rlp@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.1.0.tgz#700f4f071c27fa298d3c1d637485fefe919dd084" + integrity sha512-vDTyHIwNPrecy55gKGZ47eJZhBm8LLBxihzi5ou+zrSvYTpkSTWRcKUlXFDFQVwfWB+P5PGyERAdiDEI76clxw== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/sha2@5.0.8", "@ethersproject/sha2@^5.0.7": version "5.0.8" resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.0.8.tgz#9903c67e562739d8b312820b0a265b9c9bf35fc3" @@ -1660,6 +1903,15 @@ "@ethersproject/logger" "^5.0.8" hash.js "1.1.3" +"@ethersproject/sha2@5.1.0", "@ethersproject/sha2@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.1.0.tgz#6ca42d1a26884b3e32ffa943fe6494af7211506c" + integrity sha512-+fNSeZRstOpdRJpdGUkRONFCaiAqWkc91zXgg76Nlp5ndBQE25Kk5yK8gCPG1aGnCrbariiPr5j9DmrYH78JCA== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + hash.js "1.1.3" + "@ethersproject/signing-key@5.0.10", "@ethersproject/signing-key@^5.0.8": version "5.0.10" resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.0.10.tgz#05e26e04f0aa5360dc78674d7331bacea8fea5c1" @@ -1670,6 +1922,17 @@ "@ethersproject/properties" "^5.0.7" elliptic "6.5.4" +"@ethersproject/signing-key@5.1.0", "@ethersproject/signing-key@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.1.0.tgz#6eddfbddb6826b597b9650e01acf817bf8991b9c" + integrity sha512-tE5LFlbmdObG8bY04NpuwPWSRPgEswfxweAI1sH7TbP0ml1elNfqcq7ii/3AvIN05i5U0Pkm3Tf8bramt8MmLw== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + bn.js "^4.4.0" + elliptic "6.5.4" + "@ethersproject/solidity@5.0.9", "@ethersproject/solidity@^5.0.2": version "5.0.9" resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.0.9.tgz#49100fbe9f364ac56f7ff7c726f4f3d151901134" @@ -1681,6 +1944,17 @@ "@ethersproject/sha2" "^5.0.7" "@ethersproject/strings" "^5.0.8" +"@ethersproject/solidity@5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.1.0.tgz#095a9c75244edccb26c452c155736d363399b954" + integrity sha512-kPodsGyo9zg1g9XSXp1lGhFaezBAUUsAUB1Vf6OkppE5Wksg4Et+x3kG4m7J/uShDMP2upkJtHNsIBK2XkVpKQ== + dependencies: + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/sha2" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/strings@5.0.9", "@ethersproject/strings@>=5.0.0-beta.130", "@ethersproject/strings@^5.0.4", "@ethersproject/strings@^5.0.8": version "5.0.9" resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.0.9.tgz#8e2eb2918b140231e1d1b883d77e43213a8ac280" @@ -1690,6 +1964,15 @@ "@ethersproject/constants" "^5.0.8" "@ethersproject/logger" "^5.0.8" +"@ethersproject/strings@5.1.0", "@ethersproject/strings@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.1.0.tgz#0f95a56c3c8c9d5510a06c241d818779750e2da5" + integrity sha512-perBZy0RrmmL0ejiFGUOlBVjMsUceqLut3OBP3zP96LhiJWWbS8u1NqQVgN4/Gyrbziuda66DxiQocXhsvx+Sw== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/transactions@5.0.10", "@ethersproject/transactions@^5.0.0-beta.135", "@ethersproject/transactions@^5.0.2", "@ethersproject/transactions@^5.0.9": version "5.0.10" resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.0.10.tgz#d50cafd80d27206336f80114bc0f18bc18687331" @@ -1705,6 +1988,21 @@ "@ethersproject/rlp" "^5.0.7" "@ethersproject/signing-key" "^5.0.8" +"@ethersproject/transactions@5.1.0", "@ethersproject/transactions@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.1.0.tgz#da7fcd7e77e23dcfcca317a945f60bc228c61b36" + integrity sha512-s10crRLZEA0Bgv6FGEl/AKkTw9f+RVUrlWDX1rHnD4ZncPFeiV2AJr4nT7QSUhxJdFPvjyKRDb3nEH27dIqcPQ== + dependencies: + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/rlp" "^5.1.0" + "@ethersproject/signing-key" "^5.1.0" + "@ethersproject/units@5.0.10": version "5.0.10" resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.0.10.tgz#9cca3b65cd0c92fab1bd33f2abd233546dd61987" @@ -1714,6 +2012,15 @@ "@ethersproject/constants" "^5.0.8" "@ethersproject/logger" "^5.0.8" +"@ethersproject/units@5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.1.0.tgz#b6ab3430ebc22adc3cb4839516496f167bee3ad5" + integrity sha512-isvJrx6qG0nKWfxsGORNjmOq/nh175fStfvRTA2xEKrGqx8JNJY83fswu4GkILowfriEM/eYpretfJnfzi7YhA== + dependencies: + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/constants" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/wallet@5.0.11", "@ethersproject/wallet@^5.0.2": version "5.0.11" resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.0.11.tgz#9891936089d1b91e22ed59f850bc344b1544bf26" @@ -1735,6 +2042,27 @@ "@ethersproject/transactions" "^5.0.9" "@ethersproject/wordlists" "^5.0.8" +"@ethersproject/wallet@5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.1.0.tgz#134c5816eaeaa586beae9f9ff67891104a2c9a15" + integrity sha512-ULmUtiYQLTUS+y3DgkLzRhFEK10zMwmjOthnjiZxee3Q/MVwr3rnmuAnXIUZrPjna6hvUPnyRIdW5XuF0Ld0YQ== + dependencies: + "@ethersproject/abstract-provider" "^5.1.0" + "@ethersproject/abstract-signer" "^5.1.0" + "@ethersproject/address" "^5.1.0" + "@ethersproject/bignumber" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/hash" "^5.1.0" + "@ethersproject/hdnode" "^5.1.0" + "@ethersproject/json-wallets" "^5.1.0" + "@ethersproject/keccak256" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/random" "^5.1.0" + "@ethersproject/signing-key" "^5.1.0" + "@ethersproject/transactions" "^5.1.0" + "@ethersproject/wordlists" "^5.1.0" + "@ethersproject/web@5.0.13", "@ethersproject/web@^5.0.12": version "5.0.13" resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.0.13.tgz#5a92ac6d835d2ebce95b6b645a86668736e2f532" @@ -1746,6 +2074,17 @@ "@ethersproject/properties" "^5.0.7" "@ethersproject/strings" "^5.0.8" +"@ethersproject/web@5.1.0", "@ethersproject/web@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.1.0.tgz#ed56bbe4e3d9a8ffe3b2ed882da5c62d3551381b" + integrity sha512-LTeluWgTq04+RNqAkVhpydPcRZK/kKxD2Vy7PYGrAD27ABO9kTqTBKwiOuzTyAHKUQHfnvZbXmxBXJAGViSDcA== + dependencies: + "@ethersproject/base64" "^5.1.0" + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@ethersproject/wordlists@5.0.9", "@ethersproject/wordlists@^5.0.8": version "5.0.9" resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.0.9.tgz#f16cc0b317637c3ae9c689ebd7bc2cbbffadd013" @@ -1757,6 +2096,17 @@ "@ethersproject/properties" "^5.0.7" "@ethersproject/strings" "^5.0.8" +"@ethersproject/wordlists@5.1.0", "@ethersproject/wordlists@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.1.0.tgz#54eb9ef3a00babbff90ffe124e19c89e07e6aace" + integrity sha512-NsUCi/TpBb+oTFvMSccUkJGtp5o/84eOyqp5q5aBeiNBSLkYyw21znRn9mAmxZgySpxgruVgKbaapnYPgvctPQ== + dependencies: + "@ethersproject/bytes" "^5.1.0" + "@ethersproject/hash" "^5.1.0" + "@ethersproject/logger" "^5.1.0" + "@ethersproject/properties" "^5.1.0" + "@ethersproject/strings" "^5.1.0" + "@evocateur/libnpmaccess@^3.1.2": version "3.1.2" resolved "https://registry.yarnpkg.com/@evocateur/libnpmaccess/-/libnpmaccess-3.1.2.tgz#ecf7f6ce6b004e9f942b098d92200be4a4b1c845" @@ -2123,6 +2473,97 @@ dependencies: "@json-rpc-tools/types" "^1.6.1" +"@ledgerhq/cryptoassets@^5.27.2": + version "5.48.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-5.48.0.tgz#43785b64b5bc355f98e60fb0facfc8e3585d52d2" + integrity sha512-kIhZMK7DVRZ69yYXbe1ss/3DO/watVepHF3vO36/0FR+1tPRNlokq62B7B1lHia2VgZ6ysA1bysDLaLlTmKWtg== + dependencies: + invariant "2" + +"@ledgerhq/devices@^5.26.0", "@ledgerhq/devices@^5.48.0": + version "5.48.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-5.48.0.tgz#8a05213acdd54581df52a4fb4f1b43fde1a2a018" + integrity sha512-qIaL0K5Gh9kfePvptB8GGKEHGUAZuJHYmy9eDmIk6RZbgiYJ5njP/u5zQgKxijZArBgssdK/dtxEH4ueTiqkkA== + dependencies: + "@ledgerhq/errors" "^5.48.0" + "@ledgerhq/logs" "^5.48.0" + rxjs "^6.6.7" + semver "^7.3.5" + +"@ledgerhq/errors@^5.26.0", "@ledgerhq/errors@^5.48.0": + version "5.48.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-5.48.0.tgz#f77e098d9e9bb4443ed57f4a5f46c97fb25f8a7a" + integrity sha512-817t7M0hi7j0xY6uuG0F3kjbkaEP9hHlxfDBpb3EWkTvkg5SgHaDmvHYTjUoE1HhaPypHLjEii7URx2boOfQVA== + +"@ledgerhq/hw-app-eth@5.27.2": + version "5.27.2" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-eth/-/hw-app-eth-5.27.2.tgz#65a2ed613a69340e0cd69c942147455ec513d006" + integrity sha512-llNdrE894cCN8j6yxJEUniciyLVcLmu5N0UmIJLOObztG+5rOF4bX54h4SreTWK+E10Z0CzHSeyE5Lz/tVcqqQ== + dependencies: + "@ledgerhq/cryptoassets" "^5.27.2" + "@ledgerhq/errors" "^5.26.0" + "@ledgerhq/hw-transport" "^5.26.0" + bignumber.js "^9.0.1" + rlp "^2.2.6" + +"@ledgerhq/hw-transport-node-hid-noevents@^5.26.0": + version "5.48.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-5.48.0.tgz#7a2b49c4c9828417e0493a007bbb34441e316292" + integrity sha512-cM7Vl5gaXDXvTSPLwTsrps1cqUb8WzYn9an6Tm1mxfncImFgJh8NmrN62W5rBenQpdu8wAl3Epsxl/h1kEfAiw== + dependencies: + "@ledgerhq/devices" "^5.48.0" + "@ledgerhq/errors" "^5.48.0" + "@ledgerhq/hw-transport" "^5.48.0" + "@ledgerhq/logs" "^5.48.0" + node-hid "2.1.1" + +"@ledgerhq/hw-transport-node-hid@5.26.0": + version "5.26.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid/-/hw-transport-node-hid-5.26.0.tgz#69bc4f8067cdd9c09ef4aed0e0b3c58328936e4b" + integrity sha512-qhaefZVZatJ6UuK8Wb6WSFNOLWc2mxcv/xgsfKi5HJCIr4bPF/ecIeN+7fRcEaycxj4XykY6Z4A7zDVulfFH4w== + dependencies: + "@ledgerhq/devices" "^5.26.0" + "@ledgerhq/errors" "^5.26.0" + "@ledgerhq/hw-transport" "^5.26.0" + "@ledgerhq/hw-transport-node-hid-noevents" "^5.26.0" + "@ledgerhq/logs" "^5.26.0" + lodash "^4.17.20" + node-hid "1.3.0" + usb "^1.6.3" + +"@ledgerhq/hw-transport-u2f@5.26.0": + version "5.26.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-u2f/-/hw-transport-u2f-5.26.0.tgz#b7d9d13193eb82b051fd7a838cd652372f907ec5" + integrity sha512-QTxP1Rsh+WZ184LUOelYVLeaQl3++V3I2jFik+l9JZtakwEHjD0XqOT750xpYNL/vfHsy31Wlz+oicdxGzFk+w== + dependencies: + "@ledgerhq/errors" "^5.26.0" + "@ledgerhq/hw-transport" "^5.26.0" + "@ledgerhq/logs" "^5.26.0" + u2f-api "0.2.7" + +"@ledgerhq/hw-transport@5.26.0": + version "5.26.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-5.26.0.tgz#bfedc3d48400ad2fe48278d9444344b72aa9d0fe" + integrity sha512-NFeJOJmyEfAX8uuIBTpocWHcz630sqPcXbu864Q+OCBm4EK5UOKV1h/pX7e0xgNIKY8zhJ/O4p4cIZp9tnXLHQ== + dependencies: + "@ledgerhq/devices" "^5.26.0" + "@ledgerhq/errors" "^5.26.0" + events "^3.2.0" + +"@ledgerhq/hw-transport@^5.26.0", "@ledgerhq/hw-transport@^5.48.0": + version "5.48.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-5.48.0.tgz#de6ac00074e85bd61bfb3647f5973b053aa28d48" + integrity sha512-fyy55GDu/UU3fxWqltF7+1PabqMzKxyiWvd1Z89DB+8ZZuz3cq0iN7ey9p4zat2YpIFonVIxKJqyYZZelzsGQA== + dependencies: + "@ledgerhq/devices" "^5.48.0" + "@ledgerhq/errors" "^5.48.0" + events "^3.3.0" + +"@ledgerhq/logs@^5.26.0", "@ledgerhq/logs@^5.48.0": + version "5.48.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-5.48.0.tgz#e3628e3d48819ce74f116d6128a5f7324843bcca" + integrity sha512-ItOEw1BDsN7q43/uku44izA9y5f6va79KrO5SeYNcojAa3gLn6u02ADLzdHJtuvGEf9DBwCTRPlJmlT7kIaFPQ== + "@lerna/add@3.21.0": version "3.21.0" resolved "https://registry.yarnpkg.com/@lerna/add/-/add-3.21.0.tgz#27007bde71cc7b0a2969ab3c2f0ae41578b4577b" @@ -6426,7 +6867,7 @@ bind-decorator@^1.0.11: resolved "https://registry.yarnpkg.com/bind-decorator/-/bind-decorator-1.0.11.tgz#e41bc06a1f65dd9cec476c91c5daf3978488252f" integrity sha1-5BvAah9l3ZzsR2yRxdrzl4SIJS8= -bindings@^1.2.1, bindings@^1.5.0: +bindings@^1.2.1, bindings@^1.4.0, bindings@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== @@ -10222,6 +10663,42 @@ ethers@^5.0.0, ethers@^5.0.1, ethers@^5.0.14, ethers@^5.0.2: "@ethersproject/web" "5.0.13" "@ethersproject/wordlists" "5.0.9" +ethers@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.1.0.tgz#8a8758e0b6cbbc19fd4b87f4d551170fa6f1a995" + integrity sha512-2L6Ge6wMBw02FlRoCLg4E0Elt3khMNlW6ULawa10mMeeZToYJ5+uCfiuTuB+XZ6om1Y7wuO9ZzezP8FsU2M/+g== + dependencies: + "@ethersproject/abi" "5.1.0" + "@ethersproject/abstract-provider" "5.1.0" + "@ethersproject/abstract-signer" "5.1.0" + "@ethersproject/address" "5.1.0" + "@ethersproject/base64" "5.1.0" + "@ethersproject/basex" "5.1.0" + "@ethersproject/bignumber" "5.1.0" + "@ethersproject/bytes" "5.1.0" + "@ethersproject/constants" "5.1.0" + "@ethersproject/contracts" "5.1.0" + "@ethersproject/hash" "5.1.0" + "@ethersproject/hdnode" "5.1.0" + "@ethersproject/json-wallets" "5.1.0" + "@ethersproject/keccak256" "5.1.0" + "@ethersproject/logger" "5.1.0" + "@ethersproject/networks" "5.1.0" + "@ethersproject/pbkdf2" "5.1.0" + "@ethersproject/properties" "5.1.0" + "@ethersproject/providers" "5.1.0" + "@ethersproject/random" "5.1.0" + "@ethersproject/rlp" "5.1.0" + "@ethersproject/sha2" "5.1.0" + "@ethersproject/signing-key" "5.1.0" + "@ethersproject/solidity" "5.1.0" + "@ethersproject/strings" "5.1.0" + "@ethersproject/transactions" "5.1.0" + "@ethersproject/units" "5.1.0" + "@ethersproject/wallet" "5.1.0" + "@ethersproject/web" "5.1.0" + "@ethersproject/wordlists" "5.1.0" + ethjs-unit@0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/ethjs-unit/-/ethjs-unit-0.1.6.tgz#c665921e476e87bce2a9d588a6fe0405b2c41699" @@ -10263,7 +10740,7 @@ eventemitter3@4.0.7, eventemitter3@^4.0.0: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== -events@^3.0.0: +events@^3.0.0, events@^3.2.0, events@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== @@ -11557,10 +12034,10 @@ hardhat-abi-exporter@^2.1.2: resolved "https://registry.yarnpkg.com/hardhat-abi-exporter/-/hardhat-abi-exporter-2.1.2.tgz#7f0aa1fc91d546ca595ca35b743e36211a71f987" integrity sha512-ovJr6zJ9uxHDZmqtRRfaaFA8KxVCNzfHroP44QOWZ+CAh06hSen3r4Qehw6u7Vl5xJmw7Pu7nz+7q5QvPWXTKA== -hardhat-deploy@^0.7.0-beta.37: - version "0.7.0-beta.46" - resolved "https://registry.yarnpkg.com/hardhat-deploy/-/hardhat-deploy-0.7.0-beta.46.tgz#6caa34a534e7d40e0f2d98a26b90e154d5004e1b" - integrity sha512-VADqekd40MYHWVQxz3jn+C7Vtfv7qPboZZYH7N8wLtPU/ZcGvEQRgB4LBkOeuwQd/80MIXwSBOrnN4x6LjIauA== +hardhat-deploy@^0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/hardhat-deploy/-/hardhat-deploy-0.7.2.tgz#9229312bb03a152c373b1fb921df9aac9911070e" + integrity sha512-o5F/B2NkSu0cjkPjblu7sIwYzrFG/sEnA58dzJ9d/0RUaHZ9gezaL1X9Q85Nbo4wRXn+8ElM0RptKAOtQc6ITA== dependencies: "@ethersproject/abi" "^5.0.2" "@ethersproject/abstract-signer" "^5.0.2" @@ -11568,6 +12045,7 @@ hardhat-deploy@^0.7.0-beta.37: "@ethersproject/bignumber" "^5.0.5" "@ethersproject/bytes" "^5.0.2" "@ethersproject/contracts" "^5.0.2" + "@ethersproject/hardware-wallets" "^5.0.14" "@ethersproject/providers" "^5.0.5" "@ethersproject/solidity" "^5.0.2" "@ethersproject/transactions" "^5.0.2" @@ -12301,7 +12779,7 @@ interpret@^1.0.0: resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== -invariant@^2.2.2: +invariant@2, invariant@^2.2.2: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== @@ -15074,7 +15552,7 @@ minimist-options@^3.0.1: arrify "^1.0.1" is-plain-obj "^1.1.0" -minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5, minimist@~1.2.5: +minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.5, minimist@~1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== @@ -15154,7 +15632,7 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" -mkdirp-classic@^0.5.2: +mkdirp-classic@^0.5.2, mkdirp-classic@^0.5.3: version "0.5.3" resolved "https://registry.yarnpkg.com/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz#fa10c9115cc6d8865be221ba47ee9bed78601113" integrity sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A== @@ -15506,6 +15984,11 @@ mz@^2.5.0: object-assign "^4.0.1" thenify-all "^1.0.0" +nan@2.13.2: + version "2.13.2" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.13.2.tgz#f51dc7ae66ba7d5d55e1e6d4d8092e802c9aefe7" + integrity sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw== + nan@2.14.1: version "2.14.1" resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01" @@ -15602,6 +16085,13 @@ no-case@^3.0.4: lower-case "^2.0.2" tslib "^2.0.3" +node-abi@^2.18.0, node-abi@^2.21.0: + version "2.21.0" + resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.21.0.tgz#c2dc9ebad6f4f53d6ea9b531e7b8faad81041d48" + integrity sha512-smhrivuPqEM3H5LmnY3KU6HfYv0u4QklgAxfFyRNujKUzbUcYZ+Jc2EhukB9SRcD2VpqhxM7n/MIcp1Ua1/JMg== + dependencies: + semver "^5.4.1" + node-abi@^2.7.0: version "2.20.0" resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.20.0.tgz#0659ee1a4a04dacabd3ac4429fac6297ed58e92e" @@ -15614,6 +16104,11 @@ node-addon-api@^2.0.0: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32" integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== +node-addon-api@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.1.0.tgz#98b21931557466c6729e51cb77cd39c965f42239" + integrity sha512-flmrDNB06LIl5lywUz7YlNGZH/5p0M7W28k8hzd9Lshtdh1wshD2Y+U4h9LD6KObOy1f+fEVdgprPrEymjM5uw== + node-emoji@^1.10.0: version "1.10.0" resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.10.0.tgz#8886abd25d9c7bb61802a658523d1f8d2a89b2da" @@ -15688,6 +16183,25 @@ node-gyp@^5.0.2: tar "^4.4.12" which "^1.3.1" +node-hid@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/node-hid/-/node-hid-1.3.0.tgz#346a468505cee13d69ccd760052cbaf749f66a41" + integrity sha512-BA6G4V84kiNd1uAChub/Z/5s/xS3EHBCxotQ0nyYrUG65mXewUDHE1tWOSqA2dp3N+mV0Ffq9wo2AW9t4p/G7g== + dependencies: + bindings "^1.5.0" + nan "^2.14.0" + node-abi "^2.18.0" + prebuild-install "^5.3.4" + +node-hid@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/node-hid/-/node-hid-2.1.1.tgz#f83c8aa0bb4e6758b5f7383542477da93f67359d" + integrity sha512-Skzhqow7hyLZU93eIPthM9yjot9lszg9xrKxESleEs05V2NcbUptZc5HFqzjOkSmL0sFlZFr3kmvaYebx06wrw== + dependencies: + bindings "^1.5.0" + node-addon-api "^3.0.2" + prebuild-install "^6.0.0" + node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" @@ -17570,6 +18084,47 @@ prebuild-install@5.3.3: tunnel-agent "^0.6.0" which-pm-runs "^1.0.0" +prebuild-install@^5.3.3, prebuild-install@^5.3.4: + version "5.3.6" + resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-5.3.6.tgz#7c225568d864c71d89d07f8796042733a3f54291" + integrity sha512-s8Aai8++QQGi4sSbs/M1Qku62PFK49Jm1CbgXklGz4nmHveDq0wzJkg7Na5QbnO1uNH8K7iqx2EQ/mV0MZEmOg== + dependencies: + detect-libc "^1.0.3" + expand-template "^2.0.3" + github-from-package "0.0.0" + minimist "^1.2.3" + mkdirp-classic "^0.5.3" + napi-build-utils "^1.0.1" + node-abi "^2.7.0" + noop-logger "^0.1.1" + npmlog "^4.0.1" + pump "^3.0.0" + rc "^1.2.7" + simple-get "^3.0.3" + tar-fs "^2.0.0" + tunnel-agent "^0.6.0" + which-pm-runs "^1.0.0" + +prebuild-install@^6.0.0: + version "6.1.1" + resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-6.1.1.tgz#6754fa6c0d55eced7f9e14408ff9e4cba6f097b4" + integrity sha512-M+cKwofFlHa5VpTWub7GLg5RLcunYIcLqtY5pKcls/u7xaAb8FrXZ520qY8rkpYy5xw90tYCyMO0MP5ggzR3Sw== + dependencies: + detect-libc "^1.0.3" + expand-template "^2.0.3" + github-from-package "0.0.0" + minimist "^1.2.3" + mkdirp-classic "^0.5.3" + napi-build-utils "^1.0.1" + node-abi "^2.21.0" + noop-logger "^0.1.1" + npmlog "^4.0.1" + pump "^3.0.0" + rc "^1.2.7" + simple-get "^3.0.3" + tar-fs "^2.0.0" + tunnel-agent "^0.6.0" + precond@0.2: version "0.2.3" resolved "https://registry.yarnpkg.com/precond/-/precond-0.2.3.tgz#aa9591bcaa24923f1e0f4849d240f47efc1075ac" @@ -18928,7 +19483,7 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rlp@^2.0.0, rlp@^2.2.1, rlp@^2.2.2, rlp@^2.2.3, rlp@^2.2.4: +rlp@^2.0.0, rlp@^2.2.1, rlp@^2.2.2, rlp@^2.2.3, rlp@^2.2.4, rlp@^2.2.6: version "2.2.6" resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.6.tgz#c80ba6266ac7a483ef1e69e8e2f056656de2fb2c" integrity sha512-HAfAmL6SDYNWPUOJNrM500x4Thn4PZsEy5pijPh40U9WfNk0z15hUYzO9xVIMAdIHdFtD8CBDHd75Td1g36Mjg== @@ -19021,6 +19576,13 @@ rxjs@^6.4.0, rxjs@^6.6.3: dependencies: tslib "^1.9.0" +rxjs@^6.6.7: + version "6.6.7" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== + dependencies: + tslib "^1.9.0" + safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -19247,6 +19809,13 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semve resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@^7.3.5: + version "7.3.5" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" + integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== + dependencies: + lru-cache "^6.0.0" + semver@~5.4.1: version "5.4.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" @@ -21160,6 +21729,11 @@ typical@^2.6.0, typical@^2.6.1: resolved "https://registry.yarnpkg.com/typical/-/typical-2.6.1.tgz#5c080e5d661cbbe38259d2e70a3c7253e873881d" integrity sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0= +u2f-api@0.2.7: + version "0.2.7" + resolved "https://registry.yarnpkg.com/u2f-api/-/u2f-api-0.2.7.tgz#17bf196b242f6bf72353d9858e6a7566cc192720" + integrity sha512-fqLNg8vpvLOD5J/z4B6wpPg4Lvowz1nJ9xdHcCzdUPKcFE/qNCceV2gNZxSJd5vhAZemHr/K/hbzVA0zxB5mkg== + uglify-js@^3.1.4: version "3.13.0" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.13.0.tgz#66ed69f7241f33f13531d3d51d5bcebf00df7f69" @@ -21414,6 +21988,15 @@ ursa-optional@~0.10.0: bindings "^1.5.0" nan "^2.14.2" +usb@^1.6.3: + version "1.6.5" + resolved "https://registry.yarnpkg.com/usb/-/usb-1.6.5.tgz#482dc18468a6ed7b33d92ef88500630c68da3c7d" + integrity sha512-gLVrerQce+F+TSkWgzXACV07nOw+uBlv0gT3svsqTWWxNDe3ESQBIhss3qonIDArMvWPJp6z3I4hXEDYTmPlHQ== + dependencies: + bindings "^1.4.0" + nan "2.13.2" + prebuild-install "^5.3.3" + use-viewport@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/use-viewport/-/use-viewport-0.2.0.tgz#0a5971515de2704bdceb0a7ff998bc9cd14eb039" From 7fb1086e24c5b54e3b87e8d2d18b1a7e4c06bbb3 Mon Sep 17 00:00:00 2001 From: Yuet Wong Date: Tue, 6 Apr 2021 16:04:06 -0400 Subject: [PATCH 004/210] Fix Govern queue test issue (#313) * fix test failure if event arguments are structs * fix test failure due to missing event abi * update comment to explain the reason behind chai overwrite * fix unlocked event test case * EOF error fix Co-authored-by: Giorgi-Lagidze --- .../test/chai-utils/equal-overwrite.ts | 53 +++++++++++++ packages/govern-core/test/chai-utils/index.ts | 5 ++ .../test/pipelines/govern-queue.test.ts | 76 ++++++++++++++----- 3 files changed, 113 insertions(+), 21 deletions(-) create mode 100644 packages/govern-core/test/chai-utils/equal-overwrite.ts create mode 100644 packages/govern-core/test/chai-utils/index.ts diff --git a/packages/govern-core/test/chai-utils/equal-overwrite.ts b/packages/govern-core/test/chai-utils/equal-overwrite.ts new file mode 100644 index 000000000..5b85fa299 --- /dev/null +++ b/packages/govern-core/test/chai-utils/equal-overwrite.ts @@ -0,0 +1,53 @@ +import { BigNumber } from 'ethers'; + +// this function is adapted from Waffle +const deepEqual = ( actual: any, expected: any ): boolean => { + + // if they don't match by type, then fail + if(typeof actual !== typeof expected ){ + return false; + } + + // recurse through each array element + if(Array.isArray(expected)) { + if(actual.length !== expected.length) { + return false; + } + + for (let i = 0; i < actual.length; i++) { + const result = deepEqual(actual[i], expected[i]); + if (result === false) return false; + } + return true; + } + + // compare BigNumbers + if( actual instanceof BigNumber ) { + return actual.eq(expected); + } + + // otherwise direct compare + return actual === expected; +} + +export function equalOverwrite(Assertion: Chai.AssertionStatic, utils: Chai.ChaiUtils) { + // Overwrite the Waffle withArgs() event log args comparison logic + // It was doing Assertion(array1).equal(array2) instead of deepEqual + // and this cause tests to fail + Assertion.overwriteMethod( 'equal', (_super: (...args: any[]) => any ) => { + return function( this: Chai.AssertionStatic, ...args: any[] ) { + const actual = utils.flag(this, 'object'); + const [expected] = args; + + if( Array.isArray(actual) ) { + this.assert(deepEqual(actual, expected), + `Expected value does not equal actual value`, + actual.toString(), + expected + ); + } else { + _super.apply(this, args); + } + } + }); +} diff --git a/packages/govern-core/test/chai-utils/index.ts b/packages/govern-core/test/chai-utils/index.ts new file mode 100644 index 000000000..a53f0ab2e --- /dev/null +++ b/packages/govern-core/test/chai-utils/index.ts @@ -0,0 +1,5 @@ +import { equalOverwrite } from './equal-overwrite'; + +export default function (chai: Chai.ChaiStatic, utils: Chai.ChaiUtils) { + equalOverwrite(chai.Assertion, utils); +}; diff --git a/packages/govern-core/test/pipelines/govern-queue.test.ts b/packages/govern-core/test/pipelines/govern-queue.test.ts index 2b7e52993..12b5be539 100644 --- a/packages/govern-core/test/pipelines/govern-queue.test.ts +++ b/packages/govern-core/test/pipelines/govern-queue.test.ts @@ -1,5 +1,7 @@ import { ethers, waffle} from 'hardhat' -import { expect } from 'chai' +import chai, { expect } from 'chai' +import chaiUtils from '../chai-utils' +chai.use(chaiUtils); import { GovernQueue } from '../../typechain/GovernQueue' import { TestToken } from '../../typechain/TestToken' @@ -9,6 +11,7 @@ import { ERC3000ExecutorMock } from '../../typechain/ERC3000ExecutorMock' const { deployMockContract, provider } = waffle; const abi = require('../../artifacts/contracts/test/TestToken.sol/TestToken.json'); +const unlockedEventAbi = ["event Unlocked(address indexed token, address indexed to, uint256 amount)"]; import { GovernQueue__factory, @@ -21,7 +24,7 @@ import { import { container as containerJson } from './container' import { getConfigHash, getContainerHash, getEncodedContainer, getPayloadHash } from './helpers' import { formatBytes32String, keccak256, toUtf8Bytes } from 'ethers/lib/utils' -import { BigNumber } from 'ethers' +import { BigNumber, Contract } from 'ethers' // TODO: Create mock contract to check the return values of public methods describe('Govern Queue', function() { @@ -160,7 +163,24 @@ describe('Govern Queue', function() { const containerHash = getContainerHash(container, gq.address, chainId) await expect(gq.schedule(container)) .to.emit(gq, EVENTS.SCHEDULED) - // .withArgs(containerHash, container.payload) // TODO also check container.payload + .withArgs( + containerHash, + [ + container.payload.nonce, + container.payload.executionTime, + container.payload.submitter, + container.payload.executor, + [ + [ + container.payload.actions[0].to, + BigNumber.from(container.payload.actions[0].value), + container.payload.actions[0].data + ] + ], + container.payload.allowFailuresMap, + container.payload.proof + ] + ) expect(await gq.queue(containerHash)).to.equal(STATE.SCHEDULED) @@ -382,9 +402,14 @@ describe('Govern Queue', function() { await gq.schedule(container); await gq.challenge(container, "0x02"); + // workaround for events defined in a library which doesn't get included in the ABI + // generated when contract was compiled. The event was emitted, the `to.emit` just + // need a contract interface with event interface to detect the event + const eventContract = new Contract(gq.address, unlockedEventAbi, gq.provider); + await expect(gq.resolve(container, disputeId)) - // .to.emit(gq, 'Unlocked') //TODO:GIORGI Unlock doesn't get emitted - // .withArgs(container.config.scheduleDeposit.token, ownerAddr, container.config.scheduleDeposit.amount) + .to.emit(eventContract, 'Unlocked') + .withArgs(container.config.scheduleDeposit.token, ownerAddr, container.config.scheduleDeposit.amount) .to.emit(gq, EVENTS.RESOLVED) .withArgs(containerHash, ownerAddr, true) .to.emit(gq, EVENTS.EXECUTED) @@ -419,9 +444,14 @@ describe('Govern Queue', function() { const containerHash = getContainerHash(container, gq.address, chainId); + // workaround for events defined in a library which doesn't get included in the ABI + // generated when contract was compiled. The event was emitted, the `to.emit` just + // need a contract interface with event interface to detect the event + const eventContract = new Contract(gq.address, unlockedEventAbi, gq.provider); + await expect(gq.veto(container, "0x02")) - // .to.emit(gq, EVENTS.UNLOCK) TODO:GIORGI - // .withArgs(container.config.scheduleDeposit.token, ownerAddr, container.config.scheduleDeposit.amount) + .to.emit(eventContract, EVENTS.UNLOCK) + .withArgs(container.config.scheduleDeposit.token, ownerAddr, container.config.scheduleDeposit.amount) .to.emit(gq, EVENTS.VETOED) .withArgs(containerHash, ownerAddr, '0x02') @@ -445,9 +475,13 @@ describe('Govern Queue', function() { const containerHash = getContainerHash(container, gq.address, chainId); + // workaround for events defined in a library which doesn't get included in the ABI + // generated when contract was compiled. The event was emitted, the `to.emit` just + // need a contract interface with event interface to detect the event + const eventContract = new Contract(gq.address, unlockedEventAbi, gq.provider); await expect(gq.veto(container, "0x02")) - // .to.emit(gq, EVENTS.UNLOCK) TODO:GIORGI - // .withArgs(container.config.scheduleDeposit.token, ownerAddr, container.config.scheduleDeposit.amount) + .to.emit(eventContract, EVENTS.UNLOCK) + .withArgs(container.config.scheduleDeposit.token, ownerAddr, container.config.scheduleDeposit.amount) .to.emit(gq, EVENTS.VETOED) .withArgs(containerHash, ownerAddr, '0x02') @@ -467,19 +501,19 @@ describe('Govern Queue', function() { await expect(gq.configure(container.config)) .to.emit(gq, EVENTS.CONFIGURED) - // .withArgs( - // configHash, - // ownerAddr, - // [ - // container.config.executionDelay, - // [ container.config.scheduleDeposit.token, BigNumber.from(container.config.scheduleDeposit.amount) ], - // [ container.config.challengeDeposit.token, BigNumber.from(container.config.challengeDeposit.amount) ], - // container.config.resolver, - // container.config.rules, - // ] //TODO:GIORGI - // ) + .withArgs( + configHash, + ownerAddr, + [ + container.config.executionDelay, + [ container.config.scheduleDeposit.token, BigNumber.from(container.config.scheduleDeposit.amount) ], + [ container.config.challengeDeposit.token, BigNumber.from(container.config.challengeDeposit.amount) ], + container.config.resolver, + container.config.rules, + ] + ) - // expect(await gq.configHash()).to.equal(configHash) + expect(await gq.configHash()).to.equal(configHash) }) }) }) From f3cee06d5e189596de682c16ff4adbac869f5136 Mon Sep 17 00:00:00 2001 From: Yuet Wong Date: Thu, 8 Apr 2021 03:46:39 -0400 Subject: [PATCH 005/210] add paths to github action workflow (#314) * add path filtering on the workflows * dummy test workflow * add dummy test file to trigger the test cd * remove dummy test workflow and file --- .github/workflows/server-ci-cd.yml | 2 ++ .github/workflows/subgraph-ci-cd.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/server-ci-cd.yml b/.github/workflows/server-ci-cd.yml index ceaf337bf..e6376b49d 100644 --- a/.github/workflows/server-ci-cd.yml +++ b/.github/workflows/server-ci-cd.yml @@ -1,6 +1,8 @@ name: Server CI/CD on: push: + paths: + - 'packages/govern-server/**' branches: - master - develop diff --git a/.github/workflows/subgraph-ci-cd.yml b/.github/workflows/subgraph-ci-cd.yml index 73e06e150..98abb32b8 100644 --- a/.github/workflows/subgraph-ci-cd.yml +++ b/.github/workflows/subgraph-ci-cd.yml @@ -1,6 +1,8 @@ name: Subgraph CI/CD on: push: + paths: + - 'packages/govern-subgraph/**' branches: - master - develop From aa6200be96d72ac6184c39b870977719f03db1e4 Mon Sep 17 00:00:00 2001 From: Giorgi-Lagidze Date: Fri, 9 Apr 2021 21:28:05 +0400 Subject: [PATCH 006/210] update subgraph --- .../contracts/GovernRegistry.template.yaml | 2 + packages/govern-subgraph/schema.graphql | 55 +++++----- packages/govern-subgraph/src/Govern.ts | 26 +++-- packages/govern-subgraph/src/GovernQueue.ts | 103 +++++++++--------- .../govern-subgraph/src/GovernRegistry.ts | 42 ++++--- packages/govern-subgraph/src/utils/events.ts | 53 +++++---- .../govern-subgraph/subgraph.template.yaml | 4 + 7 files changed, 144 insertions(+), 141 deletions(-) diff --git a/packages/govern-subgraph/manifest/templates/contracts/GovernRegistry.template.yaml b/packages/govern-subgraph/manifest/templates/contracts/GovernRegistry.template.yaml index 2e444777a..20b3d60fa 100644 --- a/packages/govern-subgraph/manifest/templates/contracts/GovernRegistry.template.yaml +++ b/packages/govern-subgraph/manifest/templates/contracts/GovernRegistry.template.yaml @@ -16,6 +16,8 @@ abis: - name: GovernRegistry file: $GOVERN_CORE_MODULE/abi/contracts/GovernRegistry.sol/GovernRegistry.json + - name: GovernQueue + file: $GOVERN_CORE_MODULE/abi/contracts/pipelines/GovernQueue.sol/GovernQueue.json eventHandlers: - event: Registered(indexed address,address,indexed address,indexed address,string) handler: handleRegistered diff --git a/packages/govern-subgraph/schema.graphql b/packages/govern-subgraph/schema.graphql index aac8809ad..9636a53b5 100644 --- a/packages/govern-subgraph/schema.graphql +++ b/packages/govern-subgraph/schema.graphql @@ -1,38 +1,49 @@ +# Types + type GovernRegistry @entity { id: ID! address: Bytes! count: Int! - entries: [RegistryEntry!]! + daos: [Dao!]! } -type RegistryEntry @entity { +type Dao @entity { id: ID! name: String! queue: GovernQueue! executor: Govern! + token: String! + registrant: String! } type Govern @entity { id: ID! address: Bytes! metadata: Bytes - registryEntries: [RegistryEntry!]! @derivedFrom(field: "executor") - containers: [Container]! + balance: BigInt! roles: [Role!]! } type GovernQueue @entity { id: ID! address: Bytes! + nonce: BigInt! config: Config! - registryEntries: [RegistryEntry!]! @derivedFrom(field: "queue") - queued: [Container!]! @derivedFrom(field: "queue") + containers: [Container!]! @derivedFrom(field: "queue") roles: [Role!]! } -type Config @entity { +type Container @entity { id: ID! + state: ContainerState! queue: GovernQueue! + config: Config! + payload: Payload! + history: [ContainerEvent!]! @derivedFrom(field: "container") +} + +type Config @entity { + id: ID! executionDelay: BigInt! scheduleDeposit: Collateral! challengeDeposit: Collateral! @@ -40,18 +51,8 @@ type Config @entity { rules: Bytes! } -type Container @entity { - id: ID! - queue: GovernQueue! - state: ContainerState! - config: Config! - payload: ContainerPayload! - history: [ContainerEvent!]! @derivedFrom(field: "container") -} - -type ContainerPayload @entity { +type Payload @entity { id: ID! - container: Container! @derivedFrom(field: "payload") nonce: BigInt! executionTime: BigInt! submitter: Bytes! @@ -69,10 +70,10 @@ type Collateral @entity { type Action @entity { id: ID! - payload: ContainerPayload! to: Bytes! value: BigInt! data: Bytes! + payload: Payload! } type Role @entity { @@ -84,6 +85,9 @@ type Role @entity { frozen: Boolean! } + +# Enums + enum ContainerState { None Scheduled @@ -106,7 +110,7 @@ type ContainerEventChallenge implements ContainerEvent @entity { id: ID! container: Container! createdAt: BigInt! - actor: Bytes! + challenger: Bytes! collateral: Collateral! disputeId: BigInt! reason: Bytes! @@ -141,18 +145,9 @@ type ContainerEventSchedule implements ContainerEvent @entity { collateral: Collateral! } -type ContainerEventSubmitEvidence implements ContainerEvent @entity { - id: ID! - container: Container! - createdAt: BigInt! - evidence: Bytes! - submitter: Bytes! - finished: Boolean! -} - type ContainerEventVeto implements ContainerEvent @entity { id: ID! container: Container! createdAt: BigInt! reason: Bytes! -} +} \ No newline at end of file diff --git a/packages/govern-subgraph/src/Govern.ts b/packages/govern-subgraph/src/Govern.ts index f18dc5e58..7b2345ca8 100644 --- a/packages/govern-subgraph/src/Govern.ts +++ b/packages/govern-subgraph/src/Govern.ts @@ -1,11 +1,12 @@ -import { Address } from '@graphprotocol/graph-ts' +import { Address, BigDecimal, BigInt } from '@graphprotocol/graph-ts' import { Executed as ExecutedEvent, Frozen as FrozenEvent, Granted as GrantedEvent, - Revoked as RevokedEvent + Revoked as RevokedEvent, + ETHDeposited as ETHDepositedEvent } from '../generated/templates/Govern/Govern' -import { Govern as GovernEntity } from '../generated/schema' +import { Govern } from '../generated/schema' import { frozenRoles, roleGranted, roleRevoked } from './lib/MiniACL' import { loadOrCreateContainer } from './GovernQueue' import { handleContainerEventExecute } from './utils/events' @@ -16,9 +17,12 @@ export function handleExecuted(event: ExecutedEvent): void { handleContainerEventExecute(container, event) - let currentContainers = govern.containers - currentContainers.push(container.id) - govern.containers = currentContainers + govern.save() +} + +export function handleETHDeposited(event: ETHDepositedEvent): void { + let govern = loadOrCreateGovern(event.address) + govern.balance = event.params.value govern.save() } @@ -36,8 +40,6 @@ export function handleFrozen(event: FrozenEvent): void { export function handleGranted(event: GrantedEvent): void { let govern = loadOrCreateGovern(event.address) - // contemplar el caso en que se crea un nueva cola - let role = roleGranted(event.address, event.params.role, event.params.who) // add the role @@ -63,15 +65,15 @@ export function handleRevoked(event: RevokedEvent): void { // Helpers -export function loadOrCreateGovern(entity: Address): GovernEntity { +export function loadOrCreateGovern(entity: Address): Govern { let governId = entity.toHex() // Create govern - let govern = GovernEntity.load(governId) + let govern = Govern.load(governId) if (govern === null) { - govern = new GovernEntity(governId) + govern = new Govern(governId) govern.address = entity govern.roles = [] - govern.containers = [] + govern.balance = BigInt.fromI32(0) } return govern! } diff --git a/packages/govern-subgraph/src/GovernQueue.ts b/packages/govern-subgraph/src/GovernQueue.ts index 3cae68fdc..199165350 100644 --- a/packages/govern-subgraph/src/GovernQueue.ts +++ b/packages/govern-subgraph/src/GovernQueue.ts @@ -9,16 +9,18 @@ import { Revoked as RevokedEvent, Scheduled as ScheduledEvent, Vetoed as VetoedEvent, - Ruled as RuledEvent, - GovernQueue as GovernQueueContract + Ruled, } from '../generated/templates/GovernQueue/GovernQueue' +import { log } from '@graphprotocol/graph-ts' + +import { GovernQueue as GovernQueueContract } from '../generated/templates/GovernQueue/GovernQueue' import { - Action as ActionEntity, - Collateral as CollateralEntity, - Config as ConfigEntity, - Container as ContainerEntity, - ContainerPayload as PayloadEntity, - GovernQueue as GovernQueueEntity + Action, + Collateral, + Config, + Container, + Payload, + GovernQueue } from '../generated/schema' import { frozenRoles, roleGranted, roleRevoked } from './lib/MiniACL' import { buildId, buildIndexedId } from './utils/ids' @@ -30,16 +32,15 @@ import { EXECUTED_STATUS, NONE_STATUS, REJECTED_STATUS, - SCHEDULED_STATUS, - ALLOW_RULING + SCHEDULED_STATUS } from './utils/constants' import { handleContainerEventChallenge, handleContainerEventResolve, - handleContainerEventRule, handleContainerEventSchedule, handleContainerEventVeto } from './utils/events' + import { loadOrCreateGovern } from './Govern' export function handleScheduled(event: ScheduledEvent): void { @@ -47,9 +48,11 @@ export function handleScheduled(event: ScheduledEvent): void { let payload = loadOrCreatePayload(event.params.containerHash) let container = loadOrCreateContainer(event.params.containerHash) let executor = loadOrCreateGovern(event.params.payload.executor) + // Builds each of the actions bundled in the payload, // and saves them to the DB. buildActions(event) + payload.nonce = event.params.payload.nonce payload.executionTime = event.params.payload.executionTime payload.submitter = event.params.payload.submitter @@ -66,7 +69,7 @@ export function handleScheduled(event: ScheduledEvent): void { let config = loadConfig(queue.config) let scheduleDeposit = loadCollateral(config.scheduleDeposit) - handleContainerEventSchedule(container, event, scheduleDeposit as CollateralEntity) + handleContainerEventSchedule(container, event, scheduleDeposit as Collateral) executor.save() payload.save() @@ -86,7 +89,7 @@ export function handleChallenged(event: ChallengedEvent): void { container.state = CHALLENGED_STATUS - let resolver = ConfigEntity.load(queue.config).resolver + let resolver = Config.load(queue.config).resolver let containerEvent = handleContainerEventChallenge(container, event, resolver) containerEvent.save() @@ -120,21 +123,16 @@ export function handleConfigured(event: ConfiguredEvent): void { let queue = loadOrCreateQueue(event.address) let configId = buildId(event) - let config = new ConfigEntity(configId) + let config = new Config(configId) - let scheduleDeposit = new CollateralEntity( - buildIndexedId(event.transaction.hash.toHex(), 1) - ) + let scheduleDeposit = new Collateral(buildIndexedId(event.transaction.hash.toHex(), 1)) scheduleDeposit.token = event.params.config.scheduleDeposit.token scheduleDeposit.amount = event.params.config.scheduleDeposit.amount - let challengeDeposit = new CollateralEntity( - buildIndexedId(event.transaction.hash.toHex(), 2) - ) + let challengeDeposit = new Collateral(buildIndexedId(event.transaction.hash.toHex(), 2)) challengeDeposit.token = event.params.config.challengeDeposit.token challengeDeposit.amount = event.params.config.challengeDeposit.amount - config.queue = queue.id config.executionDelay = event.params.config.executionDelay config.scheduleDeposit = scheduleDeposit.id config.challengeDeposit = challengeDeposit.id @@ -143,6 +141,10 @@ export function handleConfigured(event: ConfiguredEvent): void { queue.config = config.id + + // update dao.config + + scheduleDeposit.save() challengeDeposit.save() config.save() @@ -185,30 +187,21 @@ export function handleRevoked(event: RevokedEvent): void { queue.save() } -// Helpers // create a dummy config when creating queue to avoid not-null error export function createDummyConfig(queueId: string): string { let ZERO = BigInt.fromI32(0) - // use queueId as the configId for this dummy config - // subsequent config configure call will use transaction - // id and log id as the id let configId = queueId - let config = new ConfigEntity(configId) + let config = new Config(configId) - let scheduleDeposit = new CollateralEntity( - buildIndexedId(configId, 1) - ) + let scheduleDeposit = new Collateral(buildIndexedId(configId, 1)) scheduleDeposit.token = ZERO_ADDRESS scheduleDeposit.amount = ZERO - let challengeDeposit = new CollateralEntity( - buildIndexedId(configId, 2) - ) + let challengeDeposit = new Collateral(buildIndexedId(configId, 2)) challengeDeposit.token = ZERO_ADDRESS challengeDeposit.amount = ZERO - config.queue = queueId config.executionDelay = ZERO config.scheduleDeposit = scheduleDeposit.id config.challengeDeposit = challengeDeposit.id @@ -222,50 +215,62 @@ export function createDummyConfig(queueId: string): string { return config.id! } -export function loadOrCreateQueue(entity: Address): GovernQueueEntity { - let queueId = entity.toHex() +export function loadOrCreateQueue(queueAddress: Address): GovernQueue { + let queueId = queueAddress.toHex() // Create queue - let queue = GovernQueueEntity.load(queueId) + let queue = GovernQueue.load(queueId) if (queue === null) { - queue = new GovernQueueEntity(queueId) - queue.address = entity + queue = new GovernQueue(queueId) + queue.address = queueAddress queue.config = createDummyConfig(queueId) queue.roles = [] } + + // update the current nonce + // TODO:GIORGI + // Subgraph instance failed to run: Failed to process trigger in block #8244999 (03c22a005a0bb985f1bbdc180c39af9e46d7f499e47fbbf50468b49a47cc4675), + // transaction 20b3d7db4b649fbcc675873a86d72d7a27c477dd096c78a3af5652fb5f0c636c: Could not find ABI for contract "GovernQueue", + // try adding it to the 'abis' section of the subgraph manifest wasm backtrace: + // 0: 0x1f21 - !~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.SmartContract#call 1: + // 0x1fc1 - !src/GovernQueue/loadOrCreateQueue 2: 0x2214 - !src/GovernRegistry/handleRegistered , + // code: SubgraphSyncingFailure, id: QmT8FXVVbQVvxzuPYucZysnbUjXCdFfm5kN7AwM8ema8SZ + + queue.nonce = GovernQueueContract.bind(queueAddress).nonce() + return queue! } -export function loadOrCreateContainer(containerHash: Bytes): ContainerEntity { +export function loadOrCreateContainer(containerHash: Bytes): Container { let ContainerId = containerHash.toHex() // Create container - let container = ContainerEntity.load(ContainerId) + let container = Container.load(ContainerId) if (container === null) { - container = new ContainerEntity(ContainerId) + container = new Container(ContainerId) container.state = NONE_STATUS } return container! } -function loadOrCreatePayload(containerHash: Bytes): PayloadEntity { +function loadOrCreatePayload(containerHash: Bytes): Payload { let PayloadId = containerHash.toHex() // Create payload - let payload = PayloadEntity.load(PayloadId) + let payload = Payload.load(PayloadId) if (payload === null) { - payload = new PayloadEntity(PayloadId) + payload = new Payload(PayloadId) } return payload! } -function loadConfig(configAddress: string): ConfigEntity { - let config = ConfigEntity.load(configAddress) +function loadConfig(configAddress: string): Config { + let config = Config.load(configAddress) if (config === null) { throw new Error('Config not found.') } return config! } -function loadCollateral(collateralAddress: string): CollateralEntity { - let collateral = CollateralEntity.load(collateralAddress) +function loadCollateral(collateralAddress: string): Collateral { + let collateral = Collateral.load(collateralAddress) if (collateral === null) { throw new Error('Collateral not found.') } @@ -276,7 +281,7 @@ function buildActions(event: ScheduledEvent): void { let actions = event.params.payload.actions for (let index = 0; index < actions.length; index++) { let actionId = buildIndexedId(event.params.containerHash.toHex(), index) - let action = new ActionEntity(actionId) + let action = new Action(actionId) action.to = actions[index].to action.value = actions[index].value diff --git a/packages/govern-subgraph/src/GovernRegistry.ts b/packages/govern-subgraph/src/GovernRegistry.ts index be5589011..8d9166320 100644 --- a/packages/govern-subgraph/src/GovernRegistry.ts +++ b/packages/govern-subgraph/src/GovernRegistry.ts @@ -7,37 +7,35 @@ import { Govern as GovernTemplate, GovernQueue as GovernQueueTemplate } from '../generated/templates' -import { - GovernRegistry as GovernRegistryEntity, - RegistryEntry as RegistryEntryEntity -} from '../generated/schema' +import { GovernRegistry, Dao } from '../generated/schema' import { loadOrCreateGovern } from './Govern' import { loadOrCreateQueue } from './GovernQueue' export function handleRegistered(event: RegisteredEvent): void { let registry = loadOrCreateRegistry(event.address) - // create and save these to avoid null error from - // registryEntries queries due to missing data - let queue = loadOrCreateQueue(event.params.queue) + let queue = loadOrCreateQueue(event.params.queue) let govern = loadOrCreateGovern(event.params.executor) + queue.save() govern.save() - let registryEntry = new RegistryEntryEntity(event.params.name) - - registryEntry.name = event.params.name - registryEntry.executor = event.params.executor.toHex() - registryEntry.queue = event.params.queue.toHex() + let dao = new Dao(event.params.name) - // add game to the registry - let currentEntries = registry.entries - currentEntries.push(registryEntry.id) - registry.entries = currentEntries + dao.name = event.params.name + dao.executor = event.params.executor.toHex() + dao.queue = event.params.queue.toHex() + dao.token = event.params.token.toHex() + dao.registrant = event.params.registrant.toHex() + + // add dao to the registry + let currentDAOs = registry.daos + currentDAOs.push(dao.id) + registry.daos = currentDAOs registry.count += 1 - registryEntry.save() + dao.save() registry.save() // Create datasource templates @@ -52,17 +50,15 @@ export function handleSetMetadata(event: SetMetadataEvent): void { govern.save() } -export function loadOrCreateRegistry( - registryAddress: Address -): GovernRegistryEntity { +export function loadOrCreateRegistry(registryAddress: Address): GovernRegistry { let registryId = registryAddress.toHex() - let registry = GovernRegistryEntity.load(registryId) + let registry = GovernRegistry.load(registryId) if (registry === null) { - registry = new GovernRegistryEntity(registryId) + registry = new GovernRegistry(registryId) registry.address = registryAddress registry.count = 0 - registry.entries = [] + registry.daos = [] } return registry! } diff --git a/packages/govern-subgraph/src/utils/events.ts b/packages/govern-subgraph/src/utils/events.ts index be0544420..fa6b68596 100644 --- a/packages/govern-subgraph/src/utils/events.ts +++ b/packages/govern-subgraph/src/utils/events.ts @@ -1,13 +1,12 @@ import { Collateral as CollateralEntity, Container as ContainerEntity, - ContainerEventChallenge as ContainerEventChallengeEntity, - ContainerEventExecute as ContainerEventExecuteEntity, - ContainerEventResolve as ContainerEventResolveEntity, - ContainerEventRule as ContainerEventRuleEntity, - ContainerEventSchedule as ContainerEventScheduleEntity, - ContainerEventSubmitEvidence as ContainerEventSubmitEvidenceEntity, - ContainerEventVeto as ContainerEventVetoEntity + ContainerEventChallenge, + ContainerEventExecute, + ContainerEventResolve, + ContainerEventRule, + ContainerEventSchedule, + ContainerEventVeto } from '../../generated/schema' import { Executed as ExecutedEvent } from '../../generated/templates/Govern/Govern' import { @@ -17,7 +16,7 @@ import { Scheduled as ScheduledEvent, Vetoed as VetoedEvent } from '../../generated/templates/GovernQueue/GovernQueue' -import { buildId, buildIndexedId, buildEventHandlerId } from './ids' +import { buildId, buildEventHandlerId } from './ids' import { Bytes } from "@graphprotocol/graph-ts" function finalizeContainerEvent( @@ -38,12 +37,12 @@ export function handleContainerEventChallenge( container: ContainerEntity, ethereumEvent: ChallengedEvent, resolver: Bytes -): ContainerEventChallengeEntity { +): ContainerEventChallenge { let eventId = buildEventHandlerId(container.id, 'challenge', ethereumEvent.transactionLogIndex.toHexString()) - let containerEvent = new ContainerEventChallengeEntity(eventId) + let containerEvent = new ContainerEventChallenge(eventId) - containerEvent.actor = ethereumEvent.params.actor + containerEvent.challenger = ethereumEvent.params.actor containerEvent.reason = ethereumEvent.params.reason containerEvent.disputeId = ethereumEvent.params.resolverId containerEvent.resolver = resolver @@ -55,7 +54,7 @@ export function handleContainerEventChallenge( containerEvent.collateral = collateral.id - return finalizeContainerEvent( + return finalizeContainerEvent( container, containerEvent, ethereumEvent @@ -65,13 +64,13 @@ export function handleContainerEventChallenge( export function handleContainerEventExecute( container: ContainerEntity, ethereumEvent: ExecutedEvent -): ContainerEventExecuteEntity { +): ContainerEventExecute { let eventId = buildEventHandlerId(container.id, 'execute', ethereumEvent.transactionLogIndex.toHexString()) - let containerEvent = new ContainerEventExecuteEntity(eventId) + let containerEvent = new ContainerEventExecute(eventId) containerEvent.execResults = ethereumEvent.params.execResults - return finalizeContainerEvent( + return finalizeContainerEvent( container, containerEvent, ethereumEvent @@ -81,13 +80,13 @@ export function handleContainerEventExecute( export function handleContainerEventResolve( container: ContainerEntity, ethereumEvent: ResolvedEvent -): ContainerEventResolveEntity { +): ContainerEventResolve { let eventId = buildEventHandlerId(container.id, 'resolve', ethereumEvent.transactionLogIndex.toHexString()) - let containerEvent = new ContainerEventResolveEntity(eventId) + let containerEvent = new ContainerEventResolve(eventId) containerEvent.approved = ethereumEvent.params.approved - return finalizeContainerEvent( + return finalizeContainerEvent( container, containerEvent, ethereumEvent @@ -97,13 +96,13 @@ export function handleContainerEventResolve( export function handleContainerEventRule( container: ContainerEntity, ethereumEvent: RuledEvent -): ContainerEventRuleEntity { +): ContainerEventRule { let eventId = buildEventHandlerId(container.id, 'rule', ethereumEvent.transactionLogIndex.toHexString()) - let containerEvent = new ContainerEventRuleEntity(eventId) + let containerEvent = new ContainerEventRule(eventId) containerEvent.ruling = ethereumEvent.params.ruling - return finalizeContainerEvent( + return finalizeContainerEvent( container, containerEvent, ethereumEvent @@ -114,10 +113,10 @@ export function handleContainerEventSchedule( container: ContainerEntity, ethereumEvent: ScheduledEvent, scheduleDeposit: CollateralEntity -): ContainerEventScheduleEntity { +): ContainerEventSchedule { let eventId = buildEventHandlerId(container.id, 'schedule', ethereumEvent.transactionLogIndex.toHexString()) - let containerEvent = new ContainerEventScheduleEntity(eventId) + let containerEvent = new ContainerEventSchedule(eventId) let collateral = new CollateralEntity(buildId(ethereumEvent)) collateral.token = scheduleDeposit.token @@ -126,7 +125,7 @@ export function handleContainerEventSchedule( containerEvent.collateral = collateral.id - return finalizeContainerEvent( + return finalizeContainerEvent( container, containerEvent, ethereumEvent @@ -138,13 +137,13 @@ export function handleContainerEventSchedule( export function handleContainerEventVeto( container: ContainerEntity, ethereumEvent: VetoedEvent -): ContainerEventVetoEntity { +): ContainerEventVeto { let eventId = buildEventHandlerId(container.id, 'veto', ethereumEvent.transactionLogIndex.toHexString()) - let containerEvent = new ContainerEventVetoEntity(eventId) + let containerEvent = new ContainerEventVeto(eventId) containerEvent.reason = ethereumEvent.params.reason - return finalizeContainerEvent( + return finalizeContainerEvent( container, containerEvent, ethereumEvent diff --git a/packages/govern-subgraph/subgraph.template.yaml b/packages/govern-subgraph/subgraph.template.yaml index 595963f27..65ead139c 100644 --- a/packages/govern-subgraph/subgraph.template.yaml +++ b/packages/govern-subgraph/subgraph.template.yaml @@ -63,9 +63,13 @@ templates: abis: - name: Govern file: $GOVERN_CORE_MODULE/abi/contracts/Govern.sol/Govern.json + - name: GovernQueue + file: $GOVERN_CORE_MODULE/abi/contracts/pipelines/GovernQueue.sol/GovernQueue.json eventHandlers: - event: Executed(indexed address,(address,uint256,bytes)[],bytes32,bytes32,bytes[]) handler: handleExecuted + - event: ETHDeposited(indexed address,uint256) + handler: handleETHDeposited - event: Frozen(indexed bytes4,indexed address) handler: handleFrozen - event: Granted(indexed bytes4,indexed address,indexed address,address) From 286186cfd462a7fbe38b83f17ddf2f2cf2ff9e67 Mon Sep 17 00:00:00 2001 From: Giorgi-Lagidze Date: Mon, 12 Apr 2021 16:20:02 +0400 Subject: [PATCH 007/210] replace govern-console with new console --- packages/.DS_Store | Bin 0 -> 6148 bytes packages/govern-console/.env.dev | 0 packages/govern-console/.env.production | 0 packages/govern-console/.eslintrc.js | 26 - packages/govern-console/.eslintrc.json | 32 + packages/govern-console/.gitignore | 5 - .../{.prettierrc => .prettierrc.json} | 7 +- .../govern-console/.storybook/.eslintrc.json | 32 + packages/govern-console/.storybook/main.js | 11 + .../.storybook/overrides-mui.d.ts | 13 + packages/govern-console/.storybook/preview.js | 16 + .../govern-console/.storybook/tsconfig.json | 28 + packages/govern-console/LICENSE | 21 + packages/govern-console/README.md | 48 +- packages/govern-console/decs.d.ts | 1 + packages/govern-console/overrides-mui.d.ts | 13 + packages/govern-console/package.json | 125 +- .../public/aragon-ui/32a3f11e7740ce58.woff2 | Bin 0 -> 35128 bytes .../public/aragon-ui/3dd21d4f0d28fecb.woff2 | Bin 0 -> 50112 bytes .../public/aragon-ui/48526b4ed811c6ff.png | Bin 0 -> 89874 bytes .../public/aragon-ui/5140b2d928ee3408.png | Bin 0 -> 20457 bytes .../public/aragon-ui/5cfe62515c2f9b42.woff2 | Bin 0 -> 33416 bytes .../public/aragon-ui/665de3412d16a795.png | Bin 0 -> 21542 bytes .../public/aragon-ui/Accordion.js | 106 + .../public/aragon-ui/Accordion.js.map | 1 + .../public/aragon-ui/AddressField.js | 96 + .../public/aragon-ui/AddressField.js.map | 1 + .../public/aragon-ui/AppBadge.js | 203 + .../public/aragon-ui/AppBadge.js.map | 1 + .../public/aragon-ui/AppBadgePopover.js | 133 + .../public/aragon-ui/AppBadgePopover.js.map | 1 + .../govern-console/public/aragon-ui/AppBar.js | 233 + .../public/aragon-ui/AppBar.js.map | 1 + .../public/aragon-ui/AppView.js | 115 + .../public/aragon-ui/AppView.js.map | 1 + .../public/aragon-ui/AutoComplete.js | 268 + .../public/aragon-ui/AutoComplete.js.map | 1 + .../public/aragon-ui/AutoCompleteSelected.js | 155 + .../aragon-ui/AutoCompleteSelected.js.map | 1 + .../public/aragon-ui/BackButton.js | 117 + .../public/aragon-ui/BackButton.js.map | 1 + .../govern-console/public/aragon-ui/Badge.js | 114 + .../public/aragon-ui/Badge.js.map | 1 + .../public/aragon-ui/BadgeBase.js | 131 + .../public/aragon-ui/BadgeBase.js.map | 1 + .../aragon-ui/BadgePopoverActionType.js | 14 + .../aragon-ui/BadgePopoverActionType.js.map | 1 + .../public/aragon-ui/BadgePopoverBase.js | 181 + .../public/aragon-ui/BadgePopoverBase.js.map | 1 + .../govern-console/public/aragon-ui/Bar.js | 106 + .../public/aragon-ui/Bar.js.map | 1 + .../public/aragon-ui/BaseStyles.js | 135 + .../public/aragon-ui/BaseStyles.js.map | 1 + .../govern-console/public/aragon-ui/Box.js | 139 + .../public/aragon-ui/Box.js.map | 1 + .../govern-console/public/aragon-ui/Button.js | 369 + .../public/aragon-ui/Button.js.map | 1 + .../public/aragon-ui/ButtonBase.js | 217 + .../public/aragon-ui/ButtonBase.js.map | 1 + .../public/aragon-ui/ButtonIcon.js | 84 + .../public/aragon-ui/ButtonIcon.js.map | 1 + .../public/aragon-ui/ButtonText.js | 78 + .../public/aragon-ui/ButtonText.js.map | 1 + .../govern-console/public/aragon-ui/Card.js | 108 + .../public/aragon-ui/Card.js.map | 1 + .../public/aragon-ui/CardLayout.js | 82 + .../public/aragon-ui/CardLayout.js.map | 1 + .../public/aragon-ui/Checkbox.js | 263 + .../public/aragon-ui/Checkbox.js.map | 1 + .../public/aragon-ui/CircleGraph.js | 211 + .../public/aragon-ui/CircleGraph.js.map | 1 + .../public/aragon-ui/ContextMenu.js | 320 + .../public/aragon-ui/ContextMenu.js.map | 1 + .../public/aragon-ui/ContextMenuItem.js | 56 + .../public/aragon-ui/ContextMenuItem.js.map | 1 + .../public/aragon-ui/Countdown.js | 87 + .../public/aragon-ui/Countdown.js.map | 1 + .../public/aragon-ui/DataView.js | 450 + .../public/aragon-ui/DataView.js.map | 1 + .../public/aragon-ui/DatePicker.js | 186 + .../public/aragon-ui/DatePicker.js.map | 1 + .../public/aragon-ui/DateRangePicker.js | 252 + .../public/aragon-ui/DateRangePicker.js.map | 1 + .../public/aragon-ui/Details.js | 275 + .../public/aragon-ui/Details.js.map | 1 + .../public/aragon-ui/DiscButton.js | 77 + .../public/aragon-ui/DiscButton.js.map | 1 + .../public/aragon-ui/Distribution.js | 205 + .../public/aragon-ui/Distribution.js.map | 1 + .../public/aragon-ui/DropDown.js | 471 + .../public/aragon-ui/DropDown.js.map | 1 + .../public/aragon-ui/EmptyState.js | 184 + .../public/aragon-ui/EmptyState.js.map | 1 + .../public/aragon-ui/EmptyStateCard.js | 114 + .../public/aragon-ui/EmptyStateCard.js.map | 1 + .../public/aragon-ui/EscapeOutside.js | 119 + .../public/aragon-ui/EscapeOutside.js.map | 1 + .../public/aragon-ui/EthIdenticon.js | 334 + .../public/aragon-ui/EthIdenticon.js.map | 1 + .../govern-console/public/aragon-ui/Field.js | 110 + .../public/aragon-ui/Field.js.map | 1 + .../public/aragon-ui/FloatIndicator.js | 150 + .../public/aragon-ui/FloatIndicator.js.map | 1 + .../public/aragon-ui/FocusVisible.js | 140 + .../public/aragon-ui/FocusVisible.js.map | 1 + .../govern-console/public/aragon-ui/Header.js | 138 + .../public/aragon-ui/Header.js.map | 1 + .../govern-console/public/aragon-ui/Help.js | 134 + .../public/aragon-ui/Help.js.map | 1 + .../public/aragon-ui/IconAddUser.js | 44 + .../public/aragon-ui/IconAddUser.js.map | 1 + .../public/aragon-ui/IconAlert.js | 43 + .../public/aragon-ui/IconAlert.js.map | 1 + .../public/aragon-ui/IconAlignCenter.js | 43 + .../public/aragon-ui/IconAlignCenter.js.map | 1 + .../public/aragon-ui/IconAlignJustify.js | 43 + .../public/aragon-ui/IconAlignJustify.js.map | 1 + .../public/aragon-ui/IconAlignLeft.js | 43 + .../public/aragon-ui/IconAlignLeft.js.map | 1 + .../public/aragon-ui/IconAlignRight.js | 43 + .../public/aragon-ui/IconAlignRight.js.map | 1 + .../public/aragon-ui/IconAragon.js | 43 + .../public/aragon-ui/IconAragon.js.map | 1 + .../public/aragon-ui/IconArrowDown.js | 48 + .../public/aragon-ui/IconArrowDown.js.map | 1 + .../public/aragon-ui/IconArrowLeft.js | 48 + .../public/aragon-ui/IconArrowLeft.js.map | 1 + .../public/aragon-ui/IconArrowRight.js | 48 + .../public/aragon-ui/IconArrowRight.js.map | 1 + .../public/aragon-ui/IconArrowUp.js | 48 + .../public/aragon-ui/IconArrowUp.js.map | 1 + .../public/aragon-ui/IconAtSign.js | 44 + .../public/aragon-ui/IconAtSign.js.map | 1 + .../public/aragon-ui/IconBlock.js | 47 + .../public/aragon-ui/IconBlock.js.map | 1 + .../public/aragon-ui/IconBookmark.js | 41 + .../public/aragon-ui/IconBookmark.js.map | 1 + .../public/aragon-ui/IconCalendar.js | 53 + .../public/aragon-ui/IconCalendar.js.map | 1 + .../public/aragon-ui/IconCanvas.js | 53 + .../public/aragon-ui/IconCanvas.js.map | 1 + .../public/aragon-ui/IconCaution.js | 44 + .../public/aragon-ui/IconCaution.js.map | 1 + .../public/aragon-ui/IconCenter.js | 44 + .../public/aragon-ui/IconCenter.js.map | 1 + .../public/aragon-ui/IconChart.js | 44 + .../public/aragon-ui/IconChart.js.map | 1 + .../public/aragon-ui/IconChat.js | 41 + .../public/aragon-ui/IconChat.js.map | 1 + .../public/aragon-ui/IconCheck.js | 43 + .../public/aragon-ui/IconCheck.js.map | 1 + .../public/aragon-ui/IconChip.js | 44 + .../public/aragon-ui/IconChip.js.map | 1 + .../public/aragon-ui/IconCircleCheck.js | 44 + .../public/aragon-ui/IconCircleCheck.js.map | 1 + .../public/aragon-ui/IconCircleMinus.js | 44 + .../public/aragon-ui/IconCircleMinus.js.map | 1 + .../public/aragon-ui/IconCirclePlus.js | 47 + .../public/aragon-ui/IconCirclePlus.js.map | 1 + .../public/aragon-ui/IconClock.js | 44 + .../public/aragon-ui/IconClock.js.map | 1 + .../public/aragon-ui/IconCloudDownload.js | 47 + .../public/aragon-ui/IconCloudDownload.js.map | 1 + .../public/aragon-ui/IconCloudUpload.js | 47 + .../public/aragon-ui/IconCloudUpload.js.map | 1 + .../public/aragon-ui/IconCoin.js | 53 + .../public/aragon-ui/IconCoin.js.map | 1 + .../public/aragon-ui/IconConfiguration.js | 48 + .../public/aragon-ui/IconConfiguration.js.map | 1 + .../public/aragon-ui/IconConnect.js | 41 + .../public/aragon-ui/IconConnect.js.map | 1 + .../public/aragon-ui/IconConnection.js | 44 + .../public/aragon-ui/IconConnection.js.map | 1 + .../public/aragon-ui/IconConsole.js | 43 + .../public/aragon-ui/IconConsole.js.map | 1 + .../public/aragon-ui/IconCopy.js | 48 + .../public/aragon-ui/IconCopy.js.map | 1 + .../public/aragon-ui/IconCross.js | 48 + .../public/aragon-ui/IconCross.js.map | 1 + .../public/aragon-ui/IconDashedSquare.js | 43 + .../public/aragon-ui/IconDashedSquare.js.map | 1 + .../public/aragon-ui/IconDown.js | 41 + .../public/aragon-ui/IconDown.js.map | 1 + .../public/aragon-ui/IconDownload.js | 47 + .../public/aragon-ui/IconDownload.js.map | 1 + .../public/aragon-ui/IconEdit.js | 44 + .../public/aragon-ui/IconEdit.js.map | 1 + .../public/aragon-ui/IconEllipsis.js | 53 + .../public/aragon-ui/IconEllipsis.js.map | 1 + .../public/aragon-ui/IconEnter.js | 51 + .../public/aragon-ui/IconEnter.js.map | 1 + .../public/aragon-ui/IconEthereum.js | 43 + .../public/aragon-ui/IconEthereum.js.map | 1 + .../public/aragon-ui/IconExternal.js | 44 + .../public/aragon-ui/IconExternal.js.map | 1 + .../public/aragon-ui/IconFile.js | 44 + .../public/aragon-ui/IconFile.js.map | 1 + .../public/aragon-ui/IconFilter.js | 41 + .../public/aragon-ui/IconFilter.js.map | 1 + .../public/aragon-ui/IconFlag.js | 44 + .../public/aragon-ui/IconFlag.js.map | 1 + .../public/aragon-ui/IconFolder.js | 41 + .../public/aragon-ui/IconFolder.js.map | 1 + .../public/aragon-ui/IconGraph.js | 41 + .../public/aragon-ui/IconGraph.js.map | 1 + .../public/aragon-ui/IconGraph2.js | 41 + .../public/aragon-ui/IconGraph2.js.map | 1 + .../public/aragon-ui/IconGrid.js | 41 + .../public/aragon-ui/IconGrid.js.map | 1 + .../public/aragon-ui/IconGroup.js | 43 + .../public/aragon-ui/IconGroup.js.map | 1 + .../public/aragon-ui/IconHash.js | 48 + .../public/aragon-ui/IconHash.js.map | 1 + .../public/aragon-ui/IconHeart.js | 41 + .../public/aragon-ui/IconHeart.js.map | 1 + .../public/aragon-ui/IconHide.js | 47 + .../public/aragon-ui/IconHide.js.map | 1 + .../public/aragon-ui/IconHome.js | 48 + .../public/aragon-ui/IconHome.js.map | 1 + .../public/aragon-ui/IconImage.js | 44 + .../public/aragon-ui/IconImage.js.map | 1 + .../public/aragon-ui/IconInfo.js | 44 + .../public/aragon-ui/IconInfo.js.map | 1 + .../public/aragon-ui/IconLabel.js | 43 + .../public/aragon-ui/IconLabel.js.map | 1 + .../public/aragon-ui/IconLayers.js | 44 + .../public/aragon-ui/IconLayers.js.map | 1 + .../public/aragon-ui/IconLeft.js | 41 + .../public/aragon-ui/IconLeft.js.map | 1 + .../public/aragon-ui/IconLink.js | 60 + .../public/aragon-ui/IconLink.js.map | 1 + .../public/aragon-ui/IconLocation.js | 44 + .../public/aragon-ui/IconLocation.js.map | 1 + .../public/aragon-ui/IconLock.js | 44 + .../public/aragon-ui/IconLock.js.map | 1 + .../public/aragon-ui/IconMail.js | 44 + .../public/aragon-ui/IconMail.js.map | 1 + .../public/aragon-ui/IconMaximize.js | 48 + .../public/aragon-ui/IconMaximize.js.map | 1 + .../public/aragon-ui/IconMenu.js | 43 + .../public/aragon-ui/IconMenu.js.map | 1 + .../public/aragon-ui/IconMinimize.js | 48 + .../public/aragon-ui/IconMinimize.js.map | 1 + .../public/aragon-ui/IconMinus.js | 43 + .../public/aragon-ui/IconMinus.js.map | 1 + .../public/aragon-ui/IconMove.js | 47 + .../public/aragon-ui/IconMove.js.map | 1 + .../public/aragon-ui/IconNoPicture.js | 47 + .../public/aragon-ui/IconNoPicture.js.map | 1 + .../public/aragon-ui/IconPicture.js | 44 + .../public/aragon-ui/IconPicture.js.map | 1 + .../public/aragon-ui/IconPlus.js | 48 + .../public/aragon-ui/IconPlus.js.map | 1 + .../public/aragon-ui/IconPower.js | 44 + .../public/aragon-ui/IconPower.js.map | 1 + .../public/aragon-ui/IconPrint.js | 47 + .../public/aragon-ui/IconPrint.js.map | 1 + .../public/aragon-ui/IconProhibited.js | 44 + .../public/aragon-ui/IconProhibited.js.map | 1 + .../aragon-ui/IconPropTypes-12cd7567.js | 31 + .../aragon-ui/IconPropTypes-12cd7567.js.map | 1 + .../public/aragon-ui/IconQuestion.js | 41 + .../public/aragon-ui/IconQuestion.js.map | 1 + .../public/aragon-ui/IconRefresh.js | 48 + .../public/aragon-ui/IconRefresh.js.map | 1 + .../public/aragon-ui/IconRemoveUser.js | 41 + .../public/aragon-ui/IconRemoveUser.js.map | 1 + .../public/aragon-ui/IconRight.js | 41 + .../public/aragon-ui/IconRight.js.map | 1 + .../public/aragon-ui/IconRotateLeft.js | 48 + .../public/aragon-ui/IconRotateLeft.js.map | 1 + .../public/aragon-ui/IconRotateRight.js | 53 + .../public/aragon-ui/IconRotateRight.js.map | 1 + .../public/aragon-ui/IconSearch.js | 44 + .../public/aragon-ui/IconSearch.js.map | 1 + .../public/aragon-ui/IconSettings.js | 48 + .../public/aragon-ui/IconSettings.js.map | 1 + .../public/aragon-ui/IconShare.js | 43 + .../public/aragon-ui/IconShare.js.map | 1 + .../public/aragon-ui/IconSquare.js | 41 + .../public/aragon-ui/IconSquare.js.map | 1 + .../public/aragon-ui/IconSquareMinus.js | 44 + .../public/aragon-ui/IconSquareMinus.js.map | 1 + .../public/aragon-ui/IconSquarePlus.js | 47 + .../public/aragon-ui/IconSquarePlus.js.map | 1 + .../public/aragon-ui/IconStar.js | 41 + .../public/aragon-ui/IconStar.js.map | 1 + .../public/aragon-ui/IconStarFilled.js | 41 + .../public/aragon-ui/IconStarFilled.js.map | 1 + .../public/aragon-ui/IconSwap.js | 48 + .../public/aragon-ui/IconSwap.js.map | 1 + .../public/aragon-ui/IconTarget.js | 47 + .../public/aragon-ui/IconTarget.js.map | 1 + .../public/aragon-ui/IconToken.js | 48 + .../public/aragon-ui/IconToken.js.map | 1 + .../public/aragon-ui/IconTrash.js | 47 + .../public/aragon-ui/IconTrash.js.map | 1 + .../public/aragon-ui/IconUnlock.js | 44 + .../public/aragon-ui/IconUnlock.js.map | 1 + .../govern-console/public/aragon-ui/IconUp.js | 41 + .../public/aragon-ui/IconUp.js.map | 1 + .../public/aragon-ui/IconUpload.js | 44 + .../public/aragon-ui/IconUpload.js.map | 1 + .../public/aragon-ui/IconUser.js | 41 + .../public/aragon-ui/IconUser.js.map | 1 + .../public/aragon-ui/IconView.js | 44 + .../public/aragon-ui/IconView.js.map | 1 + .../public/aragon-ui/IconVote.js | 48 + .../public/aragon-ui/IconVote.js.map | 1 + .../public/aragon-ui/IconWallet.js | 53 + .../public/aragon-ui/IconWallet.js.map | 1 + .../public/aragon-ui/IconWarning.js | 44 + .../public/aragon-ui/IconWarning.js.map | 1 + .../public/aragon-ui/IconWorld.js | 47 + .../public/aragon-ui/IconWorld.js.map | 1 + .../public/aragon-ui/IconWrite.js | 47 + .../public/aragon-ui/IconWrite.js.map | 1 + .../public/aragon-ui/IconZoomIn.js | 53 + .../public/aragon-ui/IconZoomIn.js.map | 1 + .../public/aragon-ui/IconZoomOut.js | 51 + .../public/aragon-ui/IconZoomOut.js.map | 1 + .../public/aragon-ui/IdentityBadge.js | 166 + .../public/aragon-ui/IdentityBadge.js.map | 1 + .../public/aragon-ui/IdentityBadgePopover.js | 116 + .../aragon-ui/IdentityBadgePopover.js.map | 1 + .../govern-console/public/aragon-ui/Info.js | 143 + .../public/aragon-ui/Info.js.map | 1 + .../govern-console/public/aragon-ui/Labels.js | 135 + .../public/aragon-ui/Labels.js.map | 1 + .../govern-console/public/aragon-ui/Layout.js | 184 + .../public/aragon-ui/Layout.js.map | 1 + .../public/aragon-ui/LeftIcon.js | 28 + .../public/aragon-ui/LeftIcon.js.map | 1 + .../public/aragon-ui/LineChart.js | 242 + .../public/aragon-ui/LineChart.js.map | 1 + .../govern-console/public/aragon-ui/Link.js | 79 + .../public/aragon-ui/Link.js.map | 1 + .../public/aragon-ui/LinkDeprecated.js | 49 + .../public/aragon-ui/LinkDeprecated.js.map | 1 + .../public/aragon-ui/ListView.js | 298 + .../public/aragon-ui/ListView.js.map | 1 + .../public/aragon-ui/LoadingRing.js | 145 + .../public/aragon-ui/LoadingRing.js.map | 1 + .../govern-console/public/aragon-ui/Main.js | 107 + .../public/aragon-ui/Main.js.map | 1 + .../public/aragon-ui/Markdown.js | 115 + .../public/aragon-ui/Markdown.js.map | 1 + .../govern-console/public/aragon-ui/Modal.js | 195 + .../public/aragon-ui/Modal.js.map | 1 + .../public/aragon-ui/MonthDay-2e515f76.js | 195 + .../public/aragon-ui/MonthDay-2e515f76.js.map | 1 + .../public/aragon-ui/MonthDay.js | 38 + .../public/aragon-ui/MonthDay.js.map | 1 + .../public/aragon-ui/NavigationBar.js | 186 + .../public/aragon-ui/NavigationBar.js.map | 1 + .../public/aragon-ui/NormalizedHtml.js | 134 + .../public/aragon-ui/NormalizedHtml.js.map | 1 + .../public/aragon-ui/OpenedSurfaceBorder.js | 76 + .../aragon-ui/OpenedSurfaceBorder.js.map | 1 + .../public/aragon-ui/Pagination.js | 132 + .../public/aragon-ui/Pagination.js.map | 1 + .../public/aragon-ui/PaginationItem.js | 84 + .../public/aragon-ui/PaginationItem.js.map | 1 + .../public/aragon-ui/PaginationSeparator.js | 52 + .../aragon-ui/PaginationSeparator.js.map | 1 + .../public/aragon-ui/PartitionBar.js | 74 + .../public/aragon-ui/PartitionBar.js.map | 1 + .../public/aragon-ui/Popover.js | 2963 +++ .../public/aragon-ui/Popover.js.map | 1 + .../public/aragon-ui/ProgressBar.js | 1949 ++ .../public/aragon-ui/ProgressBar.js.map | 1 + .../public/aragon-ui/PublicUrl-7d4b6d6d.js | 89 + .../aragon-ui/PublicUrl-7d4b6d6d.js.map | 1 + .../govern-console/public/aragon-ui/Radio.js | 216 + .../public/aragon-ui/Radio.js.map | 1 + .../public/aragon-ui/RadioGroup.js | 163 + .../public/aragon-ui/RadioGroup.js.map | 1 + .../public/aragon-ui/RadioList.js | 110 + .../public/aragon-ui/RadioList.js.map | 1 + .../public/aragon-ui/RadioListItem.js | 93 + .../public/aragon-ui/RadioListItem.js.map | 1 + .../public/aragon-ui/Redraw-8835074e.js | 102 + .../public/aragon-ui/Redraw-8835074e.js.map | 1 + .../aragon-ui/RedrawFromDate-9529a69d.js | 139 + .../aragon-ui/RedrawFromDate-9529a69d.js.map | 1 + .../public/aragon-ui/Root-8693e46b.js | 64 + .../public/aragon-ui/Root-8693e46b.js.map | 1 + .../public/aragon-ui/RootPortal.js | 35 + .../public/aragon-ui/RootPortal.js.map | 1 + .../public/aragon-ui/ScrollView.js | 49 + .../public/aragon-ui/ScrollView.js.map | 1 + .../public/aragon-ui/SearchInput.js | 105 + .../public/aragon-ui/SearchInput.js.map | 1 + .../public/aragon-ui/SidePanel.js | 307 + .../public/aragon-ui/SidePanel.js.map | 1 + .../public/aragon-ui/SidePanelSeparator.js | 72 + .../aragon-ui/SidePanelSeparator.js.map | 1 + .../public/aragon-ui/SidePanelSplit.js | 98 + .../public/aragon-ui/SidePanelSplit.js.map | 1 + .../govern-console/public/aragon-ui/Slider.js | 303 + .../public/aragon-ui/Slider.js.map | 1 + .../govern-console/public/aragon-ui/Split.js | 101 + .../public/aragon-ui/Split.js.map | 1 + .../govern-console/public/aragon-ui/Switch.js | 147 + .../public/aragon-ui/Switch.js.map | 1 + .../public/aragon-ui/SyncIndicator.js | 83 + .../public/aragon-ui/SyncIndicator.js.map | 1 + .../govern-console/public/aragon-ui/Tab.js | 110 + .../public/aragon-ui/Tab.js.map | 1 + .../public/aragon-ui/TabBarLegacy.js | 244 + .../public/aragon-ui/TabBarLegacy.js.map | 1 + .../govern-console/public/aragon-ui/Table.js | 78 + .../public/aragon-ui/Table.js.map | 1 + .../public/aragon-ui/TableCell.js | 89 + .../public/aragon-ui/TableCell.js.map | 1 + .../public/aragon-ui/TableHeader.js | 73 + .../public/aragon-ui/TableHeader.js.map | 1 + .../public/aragon-ui/TableRow.js | 17 + .../public/aragon-ui/TableRow.js.map | 1 + .../public/aragon-ui/TableView.js | 489 + .../public/aragon-ui/TableView.js.map | 1 + .../govern-console/public/aragon-ui/Tabs.js | 144 + .../public/aragon-ui/Tabs.js.map | 1 + .../public/aragon-ui/TabsFullWidth.js | 283 + .../public/aragon-ui/TabsFullWidth.js.map | 1 + .../govern-console/public/aragon-ui/Tag.js | 199 + .../public/aragon-ui/Tag.js.map | 1 + .../govern-console/public/aragon-ui/Text.js | 83 + .../public/aragon-ui/Text.js.map | 1 + .../public/aragon-ui/TextCopy.js | 194 + .../public/aragon-ui/TextCopy.js.map | 1 + .../public/aragon-ui/TextInput.js | 209 + .../public/aragon-ui/TextInput.js.map | 1 + .../govern-console/public/aragon-ui/Theme.js | 154 + .../public/aragon-ui/Theme.js.map | 1 + .../govern-console/public/aragon-ui/Timer.js | 989 + .../public/aragon-ui/Timer.js.map | 1 + .../public/aragon-ui/ToastHub.js | 1200 ++ .../public/aragon-ui/ToastHub.js.map | 1 + .../public/aragon-ui/ToggleButton.js | 98 + .../public/aragon-ui/ToggleButton.js.map | 1 + .../public/aragon-ui/TokenAmount.js | 302 + .../public/aragon-ui/TokenAmount.js.map | 1 + .../public/aragon-ui/TokenBadge.js | 190 + .../public/aragon-ui/TokenBadge.js.map | 1 + .../public/aragon-ui/TokenBadgePopover.js | 133 + .../public/aragon-ui/TokenBadgePopover.js.map | 1 + .../public/aragon-ui/TransactionBadge.js | 88 + .../public/aragon-ui/TransactionBadge.js.map | 1 + .../public/aragon-ui/TransactionProgress.js | 185 + .../aragon-ui/TransactionProgress.js.map | 1 + .../public/aragon-ui/Viewport-819c53c9.js | 591 + .../public/aragon-ui/Viewport-819c53c9.js.map | 1 + .../public/aragon-ui/_baseGetTag-42b4dd3e.js | 151 + .../aragon-ui/_baseGetTag-42b4dd3e.js.map | 1 + .../aragon-ui/_commonjsHelpers-1b94f6bc.js | 26 + .../_commonjsHelpers-1b94f6bc.js.map | 1 + .../govern-console/public/aragon-ui/aragon.js | 153 + .../public/aragon-ui/aragon.js.map | 1 + .../public/aragon-ui/breakpoints.js | 21 + .../public/aragon-ui/breakpoints.js.map | 1 + .../public/aragon-ui/cf790334a5a6d45c.woff2 | Bin 0 -> 34472 bytes .../public/aragon-ui/characters.js | 8 + .../public/aragon-ui/characters.js.map | 1 + .../govern-console/public/aragon-ui/color.js | 205 + .../public/aragon-ui/color.js.map | 1 + .../public/aragon-ui/components.js | 33 + .../public/aragon-ui/components.js.map | 1 + .../public/aragon-ui/constants.js | 10 + .../public/aragon-ui/constants.js.map | 1 + .../govern-console/public/aragon-ui/consts.js | 12 + .../public/aragon-ui/consts.js.map | 1 + .../public/aragon-ui/contains-component.js | 70 + .../aragon-ui/contains-component.js.map | 1 + .../govern-console/public/aragon-ui/css.js | 15 + .../public/aragon-ui/css.js.map | 1 + .../govern-console/public/aragon-ui/date.js | 116 + .../public/aragon-ui/date.js.map | 1 + .../public/aragon-ui/dayjs.min-ac79806e.js | 10 + .../aragon-ui/dayjs.min-ac79806e.js.map | 1 + .../aragon-ui/defineProperty-3cad0327.js | 21 + .../aragon-ui/defineProperty-3cad0327.js.map | 1 + .../public/aragon-ui/environment.js | 42 + .../public/aragon-ui/environment.js.map | 1 + .../aragon-ui/esm/32a3f11e7740ce58.woff2 | Bin 0 -> 35128 bytes .../aragon-ui/esm/3dd21d4f0d28fecb.woff2 | Bin 0 -> 50112 bytes .../public/aragon-ui/esm/48526b4ed811c6ff.png | Bin 0 -> 89874 bytes .../public/aragon-ui/esm/5140b2d928ee3408.png | Bin 0 -> 20457 bytes .../aragon-ui/esm/5cfe62515c2f9b42.woff2 | Bin 0 -> 33416 bytes .../public/aragon-ui/esm/665de3412d16a795.png | Bin 0 -> 21542 bytes .../ReactPropTypesSecret.js_commonjs-proxy | 3 + ...ReactPropTypesSecret.js_commonjs-proxy.map | 1 + .../esm/_virtual/_Hash.js_commonjs-proxy | 3 + .../esm/_virtual/_Hash.js_commonjs-proxy.map | 1 + .../esm/_virtual/_ListCache.js_commonjs-proxy | 3 + .../_virtual/_ListCache.js_commonjs-proxy.map | 1 + .../esm/_virtual/_Map.js_commonjs-proxy | 3 + .../esm/_virtual/_Map.js_commonjs-proxy.map | 1 + .../esm/_virtual/_MapCache.js_commonjs-proxy | 3 + .../_virtual/_MapCache.js_commonjs-proxy.map | 1 + .../esm/_virtual/_Symbol.js_commonjs-proxy | 3 + .../_virtual/_Symbol.js_commonjs-proxy.map | 1 + .../_virtual/_assocIndexOf.js_commonjs-proxy | 3 + .../_assocIndexOf.js_commonjs-proxy.map | 1 + .../_virtual/_baseGetTag.js_commonjs-proxy | 3 + .../_baseGetTag.js_commonjs-proxy.map | 1 + .../_virtual/_baseIsNative.js_commonjs-proxy | 3 + .../_baseIsNative.js_commonjs-proxy.map | 1 + .../esm/_virtual/_commonjsHelpers.js | 22 + .../esm/_virtual/_commonjsHelpers.js.map | 1 + .../_virtual/_coreJsData.js_commonjs-proxy | 3 + .../_coreJsData.js_commonjs-proxy.map | 1 + .../_virtual/_freeGlobal.js_commonjs-proxy | 3 + .../_freeGlobal.js_commonjs-proxy.map | 1 + .../_virtual/_getMapData.js_commonjs-proxy | 3 + .../_getMapData.js_commonjs-proxy.map | 1 + .../esm/_virtual/_getNative.js_commonjs-proxy | 3 + .../_virtual/_getNative.js_commonjs-proxy.map | 1 + .../esm/_virtual/_getRawTag.js_commonjs-proxy | 3 + .../_virtual/_getRawTag.js_commonjs-proxy.map | 1 + .../esm/_virtual/_getValue.js_commonjs-proxy | 3 + .../_virtual/_getValue.js_commonjs-proxy.map | 1 + .../esm/_virtual/_hashClear.js_commonjs-proxy | 3 + .../_virtual/_hashClear.js_commonjs-proxy.map | 1 + .../_virtual/_hashDelete.js_commonjs-proxy | 3 + .../_hashDelete.js_commonjs-proxy.map | 1 + .../esm/_virtual/_hashGet.js_commonjs-proxy | 3 + .../_virtual/_hashGet.js_commonjs-proxy.map | 1 + .../esm/_virtual/_hashHas.js_commonjs-proxy | 3 + .../_virtual/_hashHas.js_commonjs-proxy.map | 1 + .../esm/_virtual/_hashSet.js_commonjs-proxy | 3 + .../_virtual/_hashSet.js_commonjs-proxy.map | 1 + .../esm/_virtual/_isKeyable.js_commonjs-proxy | 3 + .../_virtual/_isKeyable.js_commonjs-proxy.map | 1 + .../esm/_virtual/_isMasked.js_commonjs-proxy | 3 + .../_virtual/_isMasked.js_commonjs-proxy.map | 1 + .../_listCacheClear.js_commonjs-proxy | 3 + .../_listCacheClear.js_commonjs-proxy.map | 1 + .../_listCacheDelete.js_commonjs-proxy | 3 + .../_listCacheDelete.js_commonjs-proxy.map | 1 + .../_virtual/_listCacheGet.js_commonjs-proxy | 3 + .../_listCacheGet.js_commonjs-proxy.map | 1 + .../_virtual/_listCacheHas.js_commonjs-proxy | 3 + .../_listCacheHas.js_commonjs-proxy.map | 1 + .../_virtual/_listCacheSet.js_commonjs-proxy | 3 + .../_listCacheSet.js_commonjs-proxy.map | 1 + .../_virtual/_mapCacheClear.js_commonjs-proxy | 3 + .../_mapCacheClear.js_commonjs-proxy.map | 1 + .../_mapCacheDelete.js_commonjs-proxy | 3 + .../_mapCacheDelete.js_commonjs-proxy.map | 1 + .../_virtual/_mapCacheGet.js_commonjs-proxy | 3 + .../_mapCacheGet.js_commonjs-proxy.map | 1 + .../_virtual/_mapCacheHas.js_commonjs-proxy | 3 + .../_mapCacheHas.js_commonjs-proxy.map | 1 + .../_virtual/_mapCacheSet.js_commonjs-proxy | 3 + .../_mapCacheSet.js_commonjs-proxy.map | 1 + .../_virtual/_nativeCreate.js_commonjs-proxy | 3 + .../_nativeCreate.js_commonjs-proxy.map | 1 + .../_objectToString.js_commonjs-proxy | 3 + .../_objectToString.js_commonjs-proxy.map | 1 + .../esm/_virtual/_react-dom_commonjs-external | 3 + .../_virtual/_react-dom_commonjs-external.map | 1 + .../esm/_virtual/_react_commonjs-external | 3 + .../esm/_virtual/_react_commonjs-external.map | 1 + .../esm/_virtual/_root.js_commonjs-proxy | 3 + .../esm/_virtual/_root.js_commonjs-proxy.map | 1 + .../esm/_virtual/_toSource.js_commonjs-proxy | 3 + .../_virtual/_toSource.js_commonjs-proxy.map | 1 + .../arrayLikeToArray.js_commonjs-proxy | 3 + .../arrayLikeToArray.js_commonjs-proxy.map | 1 + .../_virtual/arrayWithHoles.js_commonjs-proxy | 3 + .../arrayWithHoles.js_commonjs-proxy.map | 1 + .../arrayWithoutHoles.js_commonjs-proxy | 3 + .../arrayWithoutHoles.js_commonjs-proxy.map | 1 + .../assertThisInitialized.js_commonjs-proxy | 3 + ...ssertThisInitialized.js_commonjs-proxy.map | 1 + .../_virtual/checkPropTypes.js_commonjs-proxy | 3 + .../checkPropTypes.js_commonjs-proxy.map | 1 + .../esm/_virtual/construct.js_commonjs-proxy | 3 + .../_virtual/construct.js_commonjs-proxy.map | 1 + .../esm/_virtual/debounce.js_commonjs-proxy | 3 + .../_virtual/debounce.js_commonjs-proxy.map | 1 + .../esm/_virtual/eq.js_commonjs-proxy | 3 + .../esm/_virtual/eq.js_commonjs-proxy.map | 1 + ...factoryWithThrowingShims.js_commonjs-proxy | 3 + ...oryWithThrowingShims.js_commonjs-proxy.map | 1 + .../factoryWithTypeCheckers.js_commonjs-proxy | 3 + ...toryWithTypeCheckers.js_commonjs-proxy.map | 1 + .../_virtual/getPrototypeOf.js_commonjs-proxy | 3 + .../getPrototypeOf.js_commonjs-proxy.map | 1 + .../esm/_virtual/index.js_commonjs-proxy | 3 + .../esm/_virtual/index.js_commonjs-proxy.map | 1 + .../esm/_virtual/index2.js_commonjs-proxy | 3 + .../esm/_virtual/index2.js_commonjs-proxy.map | 1 + .../esm/_virtual/index3.js_commonjs-proxy | 3 + .../esm/_virtual/index3.js_commonjs-proxy.map | 1 + .../esm/_virtual/isFunction.js_commonjs-proxy | 3 + .../_virtual/isFunction.js_commonjs-proxy.map | 1 + .../isNativeFunction.js_commonjs-proxy | 3 + .../isNativeFunction.js_commonjs-proxy.map | 1 + ...isNativeReflectConstruct.js_commonjs-proxy | 3 + ...tiveReflectConstruct.js_commonjs-proxy.map | 1 + .../esm/_virtual/isObject.js_commonjs-proxy | 3 + .../_virtual/isObject.js_commonjs-proxy.map | 1 + .../_virtual/isObjectLike.js_commonjs-proxy | 3 + .../isObjectLike.js_commonjs-proxy.map | 1 + .../esm/_virtual/isSymbol.js_commonjs-proxy | 3 + .../_virtual/isSymbol.js_commonjs-proxy.map | 1 + .../iterableToArray.js_commonjs-proxy | 3 + .../iterableToArray.js_commonjs-proxy.map | 1 + .../iterableToArrayLimit.js_commonjs-proxy | 3 + ...iterableToArrayLimit.js_commonjs-proxy.map | 1 + .../nonIterableRest.js_commonjs-proxy | 3 + .../nonIterableRest.js_commonjs-proxy.map | 1 + .../nonIterableSpread.js_commonjs-proxy | 3 + .../nonIterableSpread.js_commonjs-proxy.map | 1 + .../esm/_virtual/now.js_commonjs-proxy | 3 + .../esm/_virtual/now.js_commonjs-proxy.map | 1 + ...ctWithoutPropertiesLoose.js_commonjs-proxy | 3 + ...thoutPropertiesLoose.js_commonjs-proxy.map | 1 + .../react-is.development.js_commonjs-proxy | 3 + ...react-is.development.js_commonjs-proxy.map | 1 + .../react-is.production.min.js_commonjs-proxy | 3 + ...ct-is.production.min.js_commonjs-proxy.map | 1 + .../esm/_virtual/runtime.js_commonjs-proxy | 3 + .../_virtual/runtime.js_commonjs-proxy.map | 1 + .../_virtual/setPrototypeOf.js_commonjs-proxy | 3 + .../setPrototypeOf.js_commonjs-proxy.map | 1 + .../esm/_virtual/toNumber.js_commonjs-proxy | 3 + .../_virtual/toNumber.js_commonjs-proxy.map | 1 + .../esm/_virtual/typeof.js_commonjs-proxy | 3 + .../esm/_virtual/typeof.js_commonjs-proxy.map | 1 + ...supportedIterableToArray.js_commonjs-proxy | 3 + ...ortedIterableToArray.js_commonjs-proxy.map | 1 + .../aragon-ui/esm/cf790334a5a6d45c.woff2 | Bin 0 -> 34472 bytes .../esm/src/components/Accordion/Accordion.js | 47 + .../src/components/Accordion/Accordion.js.map | 1 + .../components/AddressField/AddressField.js | 50 + .../AddressField/AddressField.js.map | 1 + .../esm/src/components/AppBadge/AppBadge.js | 151 + .../src/components/AppBadge/AppBadge.js.map | 1 + .../components/AppBadge/AppBadgePopover.js | 83 + .../AppBadge/AppBadgePopover.js.map | 1 + .../AppBadge/assets/app-default.svg.js | 4 + .../AppBadge/assets/app-default.svg.js.map | 1 + .../esm/src/components/AppView/AppBar.js | 216 + .../esm/src/components/AppView/AppBar.js.map | 1 + .../esm/src/components/AppView/AppView.js | 70 + .../esm/src/components/AppView/AppView.js.map | 1 + .../components/AppView/assets/chevron.svg.js | 4 + .../AppView/assets/chevron.svg.js.map | 1 + .../components/AutoComplete/AutoComplete.js | 233 + .../AutoComplete/AutoComplete.js.map | 1 + .../AutoComplete/AutoCompleteSelected.js | 110 + .../AutoComplete/AutoCompleteSelected.js.map | 1 + .../src/components/BackButton/BackButton.js | 90 + .../components/BackButton/BackButton.js.map | 1 + .../esm/src/components/Badge/Badge.js | 90 + .../esm/src/components/Badge/Badge.js.map | 1 + .../esm/src/components/BadgeBase/BadgeBase.js | 107 + .../src/components/BadgeBase/BadgeBase.js.map | 1 + .../BadgeBase/BadgePopoverActionType.js | 9 + .../BadgeBase/BadgePopoverActionType.js.map | 1 + .../components/BadgeBase/BadgePopoverBase.js | 141 + .../BadgeBase/BadgePopoverBase.js.map | 1 + .../aragon-ui/esm/src/components/Bar/Bar.js | 83 + .../esm/src/components/Bar/Bar.js.map | 1 + .../src/components/BaseStyles/BaseStyles.js | 97 + .../components/BaseStyles/BaseStyles.js.map | 1 + .../overpass-mono-light.woff2.js | 4 + .../overpass-mono-light.woff2.js.map | 1 + .../assets/overpass/overpass-light.woff2.js | 4 + .../overpass/overpass-light.woff2.js.map | 1 + .../assets/overpass/overpass-regular.woff2.js | 4 + .../overpass/overpass-regular.woff2.js.map | 1 + .../overpass/overpass-semibold.woff2.js | 4 + .../overpass/overpass-semibold.woff2.js.map | 1 + .../aragon-ui/esm/src/components/Box/Box.js | 116 + .../esm/src/components/Box/Box.js.map | 1 + .../esm/src/components/Button/Button.js | 345 + .../esm/src/components/Button/Button.js.map | 1 + .../esm/src/components/Button/ButtonIcon.js | 54 + .../src/components/Button/ButtonIcon.js.map | 1 + .../esm/src/components/Button/ButtonText.js | 55 + .../src/components/Button/ButtonText.js.map | 1 + .../src/components/ButtonBase/ButtonBase.js | 199 + .../components/ButtonBase/ButtonBase.js.map | 1 + .../aragon-ui/esm/src/components/Card/Card.js | 85 + .../esm/src/components/Card/Card.js.map | 1 + .../esm/src/components/Card/EmptyStateCard.js | 87 + .../src/components/Card/EmptyStateCard.js.map | 1 + ...pty-state-card-illustration-default.png.js | 4 + ...state-card-illustration-default.png.js.map | 1 + .../src/components/CardLayout/CardLayout.js | 63 + .../components/CardLayout/CardLayout.js.map | 1 + .../src/components/CircleGraph/CircleGraph.js | 191 + .../components/CircleGraph/CircleGraph.js.map | 1 + .../src/components/ContextMenu/ContextMenu.js | 183 + .../components/ContextMenu/ContextMenu.js.map | 1 + .../components/ContextMenu/ContextMenuItem.js | 30 + .../ContextMenu/ContextMenuItem.js.map | 1 + .../esm/src/components/Countdown/Countdown.js | 58 + .../src/components/Countdown/Countdown.js.map | 1 + .../esm/src/components/DataView/DataView.js | 404 + .../src/components/DataView/DataView.js.map | 1 + .../esm/src/components/DataView/EmptyState.js | 153 + .../src/components/DataView/EmptyState.js.map | 1 + .../esm/src/components/DataView/ListView.js | 261 + .../src/components/DataView/ListView.js.map | 1 + .../DataView/OpenedSurfaceBorder.js | 56 + .../DataView/OpenedSurfaceBorder.js.map | 1 + .../esm/src/components/DataView/TableView.js | 453 + .../src/components/DataView/TableView.js.map | 1 + .../src/components/DataView/ToggleButton.js | 64 + .../components/DataView/ToggleButton.js.map | 1 + .../empty-state-illustration-blue.png.js | 4 + .../empty-state-illustration-blue.png.js.map | 1 + .../empty-state-illustration-red.png.js | 4 + .../empty-state-illustration-red.png.js.map | 1 + .../components/DateRangePicker/DatePicker.js | 157 + .../DateRangePicker/DatePicker.js.map | 1 + .../DateRangePicker/DateRangePicker.js | 209 + .../DateRangePicker/DateRangePicker.js.map | 1 + .../src/components/DateRangePicker/Labels.js | 109 + .../components/DateRangePicker/Labels.js.map | 1 + .../components/DateRangePicker/MonthDay.js | 132 + .../DateRangePicker/MonthDay.js.map | 1 + .../components/DateRangePicker/components.js | 66 + .../DateRangePicker/components.js.map | 1 + .../src/components/DateRangePicker/consts.js | 6 + .../components/DateRangePicker/consts.js.map | 1 + .../src/components/DateRangePicker/utils.js | 62 + .../components/DateRangePicker/utils.js.map | 1 + .../esm/src/components/Details/Details.js | 249 + .../esm/src/components/Details/Details.js.map | 1 + .../src/components/DiscButton/DiscButton.js | 53 + .../components/DiscButton/DiscButton.js.map | 1 + .../components/Distribution/Distribution.js | 184 + .../Distribution/Distribution.js.map | 1 + .../esm/src/components/DropDown/DropDown.js | 439 + .../src/components/DropDown/DropDown.js.map | 1 + .../components/EscapeOutside/EscapeOutside.js | 115 + .../EscapeOutside/EscapeOutside.js.map | 1 + .../components/EthIdenticon/EthIdenticon.js | 108 + .../EthIdenticon/EthIdenticon.js.map | 1 + .../esm/src/components/Field/Field.js | 89 + .../esm/src/components/Field/Field.js.map | 1 + .../FloatIndicator/FloatIndicator.js | 123 + .../FloatIndicator/FloatIndicator.js.map | 1 + .../components/FocusVisible/FocusVisible.js | 136 + .../FocusVisible/FocusVisible.js.map | 1 + .../esm/src/components/Header/Header.js | 113 + .../esm/src/components/Header/Header.js.map | 1 + .../aragon-ui/esm/src/components/Help/Help.js | 99 + .../esm/src/components/Help/Help.js.map | 1 + .../components/IdentityBadge/IdentityBadge.js | 116 + .../IdentityBadge/IdentityBadge.js.map | 1 + .../IdentityBadge/IdentityBadgePopover.js | 65 + .../IdentityBadge/IdentityBadgePopover.js.map | 1 + .../aragon-ui/esm/src/components/Info/Info.js | 122 + .../esm/src/components/Info/Info.js.map | 1 + .../esm/src/components/Input/Checkbox.js | 250 + .../esm/src/components/Input/Checkbox.js.map | 1 + .../esm/src/components/Input/Radio.js | 196 + .../esm/src/components/Input/Radio.js.map | 1 + .../esm/src/components/Input/SearchInput.js | 71 + .../src/components/Input/SearchInput.js.map | 1 + .../esm/src/components/Input/TextInput.js | 190 + .../esm/src/components/Input/TextInput.js.map | 1 + .../esm/src/components/Layout/Layout.js | 169 + .../esm/src/components/Layout/Layout.js.map | 1 + .../esm/src/components/LineChart/LineChart.js | 226 + .../src/components/LineChart/LineChart.js.map | 1 + .../aragon-ui/esm/src/components/Link/Link.js | 56 + .../esm/src/components/Link/Link.js.map | 1 + .../esm/src/components/Link/LinkDeprecated.js | 19 + .../src/components/Link/LinkDeprecated.js.map | 1 + .../src/components/LoadingRing/LoadingRing.js | 126 + .../components/LoadingRing/LoadingRing.js.map | 1 + .../aragon-ui/esm/src/components/Main/Main.js | 71 + .../esm/src/components/Main/Main.js.map | 1 + .../esm/src/components/Markdown/Markdown.js | 67 + .../src/components/Markdown/Markdown.js.map | 1 + .../src/components/Markdown/NormalizedHtml.js | 113 + .../components/Markdown/NormalizedHtml.js.map | 1 + .../esm/src/components/Modal/Modal.js | 164 + .../esm/src/components/Modal/Modal.js.map | 1 + .../src/components/NavigationBar/LeftIcon.js | 20 + .../components/NavigationBar/LeftIcon.js.map | 1 + .../components/NavigationBar/NavigationBar.js | 178 + .../NavigationBar/NavigationBar.js.map | 1 + .../src/components/Pagination/Pagination.js | 105 + .../components/Pagination/Pagination.js.map | 1 + .../components/Pagination/PaginationItem.js | 58 + .../Pagination/PaginationItem.js.map | 1 + .../Pagination/PaginationSeparator.js | 26 + .../Pagination/PaginationSeparator.js.map | 1 + .../components/PartitionBar/PartitionBar.js | 52 + .../PartitionBar/PartitionBar.js.map | 1 + .../esm/src/components/Popover/Popover.js | 338 + .../esm/src/components/Popover/Popover.js.map | 1 + .../src/components/ProgressBar/ProgressBar.js | 88 + .../components/ProgressBar/ProgressBar.js.map | 1 + .../esm/src/components/Radio/RadioGroup.js | 158 + .../src/components/Radio/RadioGroup.js.map | 1 + .../esm/src/components/Radio/RadioList.js | 81 + .../esm/src/components/Radio/RadioList.js.map | 1 + .../esm/src/components/Radio/RadioListItem.js | 64 + .../src/components/Radio/RadioListItem.js.map | 1 + .../src/components/RootPortal/RootPortal.js | 21 + .../components/RootPortal/RootPortal.js.map | 1 + .../src/components/ScrollView/ScrollView.js | 39 + .../components/ScrollView/ScrollView.js.map | 1 + .../esm/src/components/SidePanel/SidePanel.js | 278 + .../src/components/SidePanel/SidePanel.js.map | 1 + .../SidePanel/SidePanelSeparator.js | 28 + .../SidePanel/SidePanelSeparator.js.map | 1 + .../components/SidePanel/SidePanelSplit.js | 56 + .../SidePanel/SidePanelSplit.js.map | 1 + .../esm/src/components/Slider/Slider.js | 289 + .../esm/src/components/Slider/Slider.js.map | 1 + .../esm/src/components/Split/Split.js | 80 + .../esm/src/components/Split/Split.js.map | 1 + .../esm/src/components/Switch/Switch.js | 128 + .../esm/src/components/Switch/Switch.js.map | 1 + .../components/SyncIndicator/SyncIndicator.js | 49 + .../SyncIndicator/SyncIndicator.js.map | 1 + .../esm/src/components/Table/Table.js | 58 + .../esm/src/components/Table/Table.js.map | 1 + .../esm/src/components/Table/TableCell.js | 69 + .../esm/src/components/Table/TableCell.js.map | 1 + .../esm/src/components/Table/TableHeader.js | 52 + .../src/components/Table/TableHeader.js.map | 1 + .../esm/src/components/Table/TableRow.js | 9 + .../esm/src/components/Table/TableRow.js.map | 1 + .../aragon-ui/esm/src/components/Tabs/Tab.js | 85 + .../esm/src/components/Tabs/Tab.js.map | 1 + .../esm/src/components/Tabs/TabBarLegacy.js | 233 + .../src/components/Tabs/TabBarLegacy.js.map | 1 + .../aragon-ui/esm/src/components/Tabs/Tabs.js | 107 + .../esm/src/components/Tabs/Tabs.js.map | 1 + .../esm/src/components/Tabs/TabsFullWidth.js | 258 + .../src/components/Tabs/TabsFullWidth.js.map | 1 + .../aragon-ui/esm/src/components/Tag/Tag.js | 178 + .../esm/src/components/Tag/Tag.js.map | 1 + .../aragon-ui/esm/src/components/Text/Text.js | 72 + .../esm/src/components/Text/Text.js.map | 1 + .../esm/src/components/TextCopy/TextCopy.js | 157 + .../src/components/TextCopy/TextCopy.js.map | 1 + .../esm/src/components/Timer/Timer.js | 263 + .../esm/src/components/Timer/Timer.js.map | 1 + .../esm/src/components/ToastHub/ToastHub.js | 392 + .../src/components/ToastHub/ToastHub.js.map | 1 + .../src/components/TokenAmount/TokenAmount.js | 159 + .../components/TokenAmount/TokenAmount.js.map | 1 + .../src/components/TokenBadge/TokenBadge.js | 138 + .../components/TokenBadge/TokenBadge.js.map | 1 + .../TokenBadge/TokenBadgePopover.js | 81 + .../TokenBadge/TokenBadgePopover.js.map | 1 + .../TransactionBadge/TransactionBadge.js | 58 + .../TransactionBadge/TransactionBadge.js.map | 1 + .../TransactionProgress.js | 139 + .../TransactionProgress.js.map | 1 + .../public/aragon-ui/esm/src/hooks/hooks.js | 8 + .../aragon-ui/esm/src/hooks/hooks.js.map | 1 + .../esm/src/hooks/useArrowKeysFocus.js | 56 + .../esm/src/hooks/useArrowKeysFocus.js.map | 1 + .../esm/src/hooks/useClickOutside.js | 26 + .../esm/src/hooks/useClickOutside.js.map | 1 + .../aragon-ui/esm/src/hooks/useFocusEnter.js | 20 + .../esm/src/hooks/useFocusEnter.js.map | 1 + .../aragon-ui/esm/src/hooks/useFocusLeave.js | 20 + .../esm/src/hooks/useFocusLeave.js.map | 1 + .../aragon-ui/esm/src/hooks/useImageExists.js | 87 + .../esm/src/hooks/useImageExists.js.map | 1 + .../aragon-ui/esm/src/hooks/useKeyDown.js | 25 + .../aragon-ui/esm/src/hooks/useKeyDown.js.map | 1 + .../aragon-ui/esm/src/hooks/useOnBlur.js | 10 + .../aragon-ui/esm/src/hooks/useOnBlur.js.map | 1 + .../aragon-ui/esm/src/icons/IconPropTypes.js | 8 + .../esm/src/icons/IconPropTypes.js.map | 1 + .../esm/src/icons/components/IconAddUser.js | 29 + .../src/icons/components/IconAddUser.js.map | 1 + .../esm/src/icons/components/IconAlert.js | 28 + .../esm/src/icons/components/IconAlert.js.map | 1 + .../src/icons/components/IconAlignCenter.js | 28 + .../icons/components/IconAlignCenter.js.map | 1 + .../src/icons/components/IconAlignJustify.js | 28 + .../icons/components/IconAlignJustify.js.map | 1 + .../esm/src/icons/components/IconAlignLeft.js | 28 + .../src/icons/components/IconAlignLeft.js.map | 1 + .../src/icons/components/IconAlignRight.js | 28 + .../icons/components/IconAlignRight.js.map | 1 + .../esm/src/icons/components/IconAragon.js | 28 + .../src/icons/components/IconAragon.js.map | 1 + .../esm/src/icons/components/IconArrowDown.js | 33 + .../src/icons/components/IconArrowDown.js.map | 1 + .../esm/src/icons/components/IconArrowLeft.js | 33 + .../src/icons/components/IconArrowLeft.js.map | 1 + .../src/icons/components/IconArrowRight.js | 33 + .../icons/components/IconArrowRight.js.map | 1 + .../esm/src/icons/components/IconArrowUp.js | 33 + .../src/icons/components/IconArrowUp.js.map | 1 + .../esm/src/icons/components/IconAtSign.js | 29 + .../src/icons/components/IconAtSign.js.map | 1 + .../esm/src/icons/components/IconBlock.js | 32 + .../esm/src/icons/components/IconBlock.js.map | 1 + .../esm/src/icons/components/IconBookmark.js | 26 + .../src/icons/components/IconBookmark.js.map | 1 + .../esm/src/icons/components/IconCalendar.js | 38 + .../src/icons/components/IconCalendar.js.map | 1 + .../esm/src/icons/components/IconCanvas.js | 38 + .../src/icons/components/IconCanvas.js.map | 1 + .../esm/src/icons/components/IconCaution.js | 29 + .../src/icons/components/IconCaution.js.map | 1 + .../esm/src/icons/components/IconCenter.js | 29 + .../src/icons/components/IconCenter.js.map | 1 + .../esm/src/icons/components/IconChart.js | 29 + .../esm/src/icons/components/IconChart.js.map | 1 + .../esm/src/icons/components/IconChat.js | 26 + .../esm/src/icons/components/IconChat.js.map | 1 + .../esm/src/icons/components/IconCheck.js | 28 + .../esm/src/icons/components/IconCheck.js.map | 1 + .../esm/src/icons/components/IconChip.js | 29 + .../esm/src/icons/components/IconChip.js.map | 1 + .../src/icons/components/IconCircleCheck.js | 29 + .../icons/components/IconCircleCheck.js.map | 1 + .../src/icons/components/IconCircleMinus.js | 29 + .../icons/components/IconCircleMinus.js.map | 1 + .../src/icons/components/IconCirclePlus.js | 32 + .../icons/components/IconCirclePlus.js.map | 1 + .../esm/src/icons/components/IconClock.js | 29 + .../esm/src/icons/components/IconClock.js.map | 1 + .../src/icons/components/IconCloudDownload.js | 32 + .../icons/components/IconCloudDownload.js.map | 1 + .../src/icons/components/IconCloudUpload.js | 32 + .../icons/components/IconCloudUpload.js.map | 1 + .../esm/src/icons/components/IconCoin.js | 38 + .../esm/src/icons/components/IconCoin.js.map | 1 + .../src/icons/components/IconConfiguration.js | 33 + .../icons/components/IconConfiguration.js.map | 1 + .../esm/src/icons/components/IconConnect.js | 26 + .../src/icons/components/IconConnect.js.map | 1 + .../src/icons/components/IconConnection.js | 29 + .../icons/components/IconConnection.js.map | 1 + .../esm/src/icons/components/IconConsole.js | 28 + .../src/icons/components/IconConsole.js.map | 1 + .../esm/src/icons/components/IconCopy.js | 33 + .../esm/src/icons/components/IconCopy.js.map | 1 + .../esm/src/icons/components/IconCross.js | 33 + .../esm/src/icons/components/IconCross.js.map | 1 + .../src/icons/components/IconDashedSquare.js | 28 + .../icons/components/IconDashedSquare.js.map | 1 + .../esm/src/icons/components/IconDown.js | 26 + .../esm/src/icons/components/IconDown.js.map | 1 + .../esm/src/icons/components/IconDownload.js | 32 + .../src/icons/components/IconDownload.js.map | 1 + .../esm/src/icons/components/IconEdit.js | 29 + .../esm/src/icons/components/IconEdit.js.map | 1 + .../esm/src/icons/components/IconEllipsis.js | 38 + .../src/icons/components/IconEllipsis.js.map | 1 + .../esm/src/icons/components/IconEnter.js | 36 + .../esm/src/icons/components/IconEnter.js.map | 1 + .../esm/src/icons/components/IconEthereum.js | 28 + .../src/icons/components/IconEthereum.js.map | 1 + .../esm/src/icons/components/IconExternal.js | 29 + .../src/icons/components/IconExternal.js.map | 1 + .../esm/src/icons/components/IconFile.js | 29 + .../esm/src/icons/components/IconFile.js.map | 1 + .../esm/src/icons/components/IconFilter.js | 26 + .../src/icons/components/IconFilter.js.map | 1 + .../esm/src/icons/components/IconFlag.js | 29 + .../esm/src/icons/components/IconFlag.js.map | 1 + .../esm/src/icons/components/IconFolder.js | 26 + .../src/icons/components/IconFolder.js.map | 1 + .../esm/src/icons/components/IconGraph.js | 26 + .../esm/src/icons/components/IconGraph.js.map | 1 + .../esm/src/icons/components/IconGraph2.js | 26 + .../src/icons/components/IconGraph2.js.map | 1 + .../esm/src/icons/components/IconGrid.js | 26 + .../esm/src/icons/components/IconGrid.js.map | 1 + .../esm/src/icons/components/IconGroup.js | 28 + .../esm/src/icons/components/IconGroup.js.map | 1 + .../esm/src/icons/components/IconHash.js | 33 + .../esm/src/icons/components/IconHash.js.map | 1 + .../esm/src/icons/components/IconHeart.js | 26 + .../esm/src/icons/components/IconHeart.js.map | 1 + .../esm/src/icons/components/IconHide.js | 32 + .../esm/src/icons/components/IconHide.js.map | 1 + .../esm/src/icons/components/IconHome.js | 33 + .../esm/src/icons/components/IconHome.js.map | 1 + .../esm/src/icons/components/IconImage.js | 29 + .../esm/src/icons/components/IconImage.js.map | 1 + .../esm/src/icons/components/IconInfo.js | 29 + .../esm/src/icons/components/IconInfo.js.map | 1 + .../esm/src/icons/components/IconLabel.js | 28 + .../esm/src/icons/components/IconLabel.js.map | 1 + .../esm/src/icons/components/IconLayers.js | 29 + .../src/icons/components/IconLayers.js.map | 1 + .../esm/src/icons/components/IconLeft.js | 26 + .../esm/src/icons/components/IconLeft.js.map | 1 + .../esm/src/icons/components/IconLink.js | 45 + .../esm/src/icons/components/IconLink.js.map | 1 + .../esm/src/icons/components/IconLocation.js | 29 + .../src/icons/components/IconLocation.js.map | 1 + .../esm/src/icons/components/IconLock.js | 29 + .../esm/src/icons/components/IconLock.js.map | 1 + .../esm/src/icons/components/IconMail.js | 29 + .../esm/src/icons/components/IconMail.js.map | 1 + .../esm/src/icons/components/IconMaximize.js | 33 + .../src/icons/components/IconMaximize.js.map | 1 + .../esm/src/icons/components/IconMenu.js | 28 + .../esm/src/icons/components/IconMenu.js.map | 1 + .../esm/src/icons/components/IconMinimize.js | 33 + .../src/icons/components/IconMinimize.js.map | 1 + .../esm/src/icons/components/IconMinus.js | 28 + .../esm/src/icons/components/IconMinus.js.map | 1 + .../esm/src/icons/components/IconMove.js | 32 + .../esm/src/icons/components/IconMove.js.map | 1 + .../esm/src/icons/components/IconNoPicture.js | 32 + .../src/icons/components/IconNoPicture.js.map | 1 + .../esm/src/icons/components/IconPicture.js | 29 + .../src/icons/components/IconPicture.js.map | 1 + .../esm/src/icons/components/IconPlus.js | 33 + .../esm/src/icons/components/IconPlus.js.map | 1 + .../esm/src/icons/components/IconPower.js | 29 + .../esm/src/icons/components/IconPower.js.map | 1 + .../esm/src/icons/components/IconPrint.js | 32 + .../esm/src/icons/components/IconPrint.js.map | 1 + .../src/icons/components/IconProhibited.js | 29 + .../icons/components/IconProhibited.js.map | 1 + .../esm/src/icons/components/IconQuestion.js | 26 + .../src/icons/components/IconQuestion.js.map | 1 + .../esm/src/icons/components/IconRefresh.js | 33 + .../src/icons/components/IconRefresh.js.map | 1 + .../src/icons/components/IconRemoveUser.js | 26 + .../icons/components/IconRemoveUser.js.map | 1 + .../esm/src/icons/components/IconRight.js | 26 + .../esm/src/icons/components/IconRight.js.map | 1 + .../src/icons/components/IconRotateLeft.js | 33 + .../icons/components/IconRotateLeft.js.map | 1 + .../src/icons/components/IconRotateRight.js | 38 + .../icons/components/IconRotateRight.js.map | 1 + .../esm/src/icons/components/IconSearch.js | 29 + .../src/icons/components/IconSearch.js.map | 1 + .../esm/src/icons/components/IconSettings.js | 33 + .../src/icons/components/IconSettings.js.map | 1 + .../esm/src/icons/components/IconShare.js | 28 + .../esm/src/icons/components/IconShare.js.map | 1 + .../esm/src/icons/components/IconSquare.js | 26 + .../src/icons/components/IconSquare.js.map | 1 + .../src/icons/components/IconSquareMinus.js | 29 + .../icons/components/IconSquareMinus.js.map | 1 + .../src/icons/components/IconSquarePlus.js | 32 + .../icons/components/IconSquarePlus.js.map | 1 + .../esm/src/icons/components/IconStar.js | 26 + .../esm/src/icons/components/IconStar.js.map | 1 + .../src/icons/components/IconStarFilled.js | 26 + .../icons/components/IconStarFilled.js.map | 1 + .../esm/src/icons/components/IconSwap.js | 33 + .../esm/src/icons/components/IconSwap.js.map | 1 + .../esm/src/icons/components/IconTarget.js | 32 + .../src/icons/components/IconTarget.js.map | 1 + .../esm/src/icons/components/IconToken.js | 33 + .../esm/src/icons/components/IconToken.js.map | 1 + .../esm/src/icons/components/IconTrash.js | 32 + .../esm/src/icons/components/IconTrash.js.map | 1 + .../esm/src/icons/components/IconUnlock.js | 29 + .../src/icons/components/IconUnlock.js.map | 1 + .../esm/src/icons/components/IconUp.js | 26 + .../esm/src/icons/components/IconUp.js.map | 1 + .../esm/src/icons/components/IconUpload.js | 29 + .../src/icons/components/IconUpload.js.map | 1 + .../esm/src/icons/components/IconUser.js | 26 + .../esm/src/icons/components/IconUser.js.map | 1 + .../esm/src/icons/components/IconView.js | 29 + .../esm/src/icons/components/IconView.js.map | 1 + .../esm/src/icons/components/IconVote.js | 33 + .../esm/src/icons/components/IconVote.js.map | 1 + .../esm/src/icons/components/IconWallet.js | 38 + .../src/icons/components/IconWallet.js.map | 1 + .../esm/src/icons/components/IconWarning.js | 29 + .../src/icons/components/IconWarning.js.map | 1 + .../esm/src/icons/components/IconWorld.js | 32 + .../esm/src/icons/components/IconWorld.js.map | 1 + .../esm/src/icons/components/IconWrite.js | 32 + .../esm/src/icons/components/IconWrite.js.map | 1 + .../esm/src/icons/components/IconZoomIn.js | 38 + .../src/icons/components/IconZoomIn.js.map | 1 + .../esm/src/icons/components/IconZoomOut.js | 36 + .../src/icons/components/IconZoomOut.js.map | 1 + .../aragon-ui/esm/src/icons/icon-size.js | 23 + .../aragon-ui/esm/src/icons/icon-size.js.map | 1 + .../public/aragon-ui/esm/src/icons/icons.js | 106 + .../aragon-ui/esm/src/icons/icons.js.map | 1 + .../public/aragon-ui/esm/src/index.js | 219 + .../public/aragon-ui/esm/src/index.js.map | 1 + .../aragon-ui/esm/src/lib/cached-map.js | 66 + .../aragon-ui/esm/src/lib/cached-map.js.map | 1 + .../public/aragon-ui/esm/src/proptypes.js | 93 + .../public/aragon-ui/esm/src/proptypes.js.map | 1 + .../esm/src/providers/PublicUrl/PublicUrl.js | 87 + .../src/providers/PublicUrl/PublicUrl.js.map | 1 + .../esm/src/providers/Redraw/Redraw.js | 102 + .../esm/src/providers/Redraw/Redraw.js.map | 1 + .../RedrawFromDate/RedrawFromDate.js | 139 + .../RedrawFromDate/RedrawFromDate.js.map | 1 + .../aragon-ui/esm/src/providers/Root/Root.js | 58 + .../esm/src/providers/Root/Root.js.map | 1 + .../esm/src/providers/Viewport/Viewport.js | 192 + .../src/providers/Viewport/Viewport.js.map | 1 + .../esm/src/providers/observe/observe.js | 2 + .../esm/src/providers/observe/observe.js.map | 1 + .../esm/src/providers/observe/observe2.js | 105 + .../esm/src/providers/observe/observe2.js.map | 1 + .../aragon-ui/esm/src/providers/providers.js | 7 + .../esm/src/providers/providers.js.map | 1 + .../aragon-ui/esm/src/style/breakpoints.js | 16 + .../esm/src/style/breakpoints.js.map | 1 + .../aragon-ui/esm/src/style/constants.js | 5 + .../aragon-ui/esm/src/style/constants.js.map | 1 + .../public/aragon-ui/esm/src/style/springs.js | 37 + .../aragon-ui/esm/src/style/springs.js.map | 1 + .../public/aragon-ui/esm/src/style/style.js | 5 + .../aragon-ui/esm/src/style/style.js.map | 1 + .../aragon-ui/esm/src/style/text-styles.js | 125 + .../esm/src/style/text-styles.js.map | 1 + .../aragon-ui/esm/src/theme-legacy/aragon.js | 149 + .../esm/src/theme-legacy/aragon.js.map | 1 + .../esm/src/theme-legacy/palettes.js | 102 + .../esm/src/theme-legacy/palettes.js.map | 1 + .../esm/src/theme-legacy/theme-legacy.js | 2 + .../esm/src/theme-legacy/theme-legacy.js.map | 1 + .../public/aragon-ui/esm/src/theme/Theme2.js | 140 + .../aragon-ui/esm/src/theme/Theme2.js.map | 1 + .../aragon-ui/esm/src/theme/theme-dark.js | 81 + .../aragon-ui/esm/src/theme/theme-dark.js.map | 1 + .../aragon-ui/esm/src/theme/theme-light.js | 81 + .../esm/src/theme/theme-light.js.map | 1 + .../public/aragon-ui/esm/src/theme/theme.js | 2 + .../aragon-ui/esm/src/theme/theme.js.map | 1 + .../aragon-ui/esm/src/utils/characters.js | 4 + .../aragon-ui/esm/src/utils/characters.js.map | 1 + .../public/aragon-ui/esm/src/utils/color.js | 124 + .../aragon-ui/esm/src/utils/color.js.map | 1 + .../aragon-ui/esm/src/utils/components.js | 27 + .../aragon-ui/esm/src/utils/components.js.map | 1 + .../esm/src/utils/contains-component.js | 61 + .../esm/src/utils/contains-component.js.map | 1 + .../public/aragon-ui/esm/src/utils/css.js | 10 + .../public/aragon-ui/esm/src/utils/css.js.map | 1 + .../public/aragon-ui/esm/src/utils/date.js | 108 + .../aragon-ui/esm/src/utils/date.js.map | 1 + .../aragon-ui/esm/src/utils/environment.js | 35 + .../esm/src/utils/environment.js.map | 1 + .../public/aragon-ui/esm/src/utils/font.js | 62 + .../aragon-ui/esm/src/utils/font.js.map | 1 + .../public/aragon-ui/esm/src/utils/format.js | 111 + .../aragon-ui/esm/src/utils/format.js.map | 1 + .../aragon-ui/esm/src/utils/keycodes.js | 7 + .../aragon-ui/esm/src/utils/keycodes.js.map | 1 + .../public/aragon-ui/esm/src/utils/math.js | 122 + .../aragon-ui/esm/src/utils/math.js.map | 1 + .../aragon-ui/esm/src/utils/miscellaneous.js | 32 + .../esm/src/utils/miscellaneous.js.map | 1 + .../public/aragon-ui/esm/src/utils/url.js | 11 + .../public/aragon-ui/esm/src/utils/url.js.map | 1 + .../public/aragon-ui/esm/src/utils/web3.js | 197 + .../aragon-ui/esm/src/utils/web3.js.map | 1 + .../public/aragon-ui/esm/src/vendor/vendor.js | 2 + .../aragon-ui/esm/src/vendor/vendor.js.map | 1 + .../public/aragon-ui/extends-023d783e.js | 28 + .../public/aragon-ui/extends-023d783e.js.map | 1 + .../govern-console/public/aragon-ui/font.js | 70 + .../public/aragon-ui/font.js.map | 1 + .../govern-console/public/aragon-ui/format.js | 117 + .../public/aragon-ui/format.js.map | 1 + .../aragon-ui/getDisplayName-7f913e84.js | 19 + .../aragon-ui/getDisplayName-7f913e84.js.map | 1 + .../aragon-ui/getPrototypeOf-55c9e80c.js | 119 + .../aragon-ui/getPrototypeOf-55c9e80c.js.map | 1 + .../govern-console/public/aragon-ui/hooks.js | 29 + .../public/aragon-ui/hooks.js.map | 1 + .../govern-console/public/aragon-ui/icons.js | 243 + .../public/aragon-ui/icons.js.map | 1 + .../public/aragon-ui/index-46d0e707.js | 1079 + .../public/aragon-ui/index-46d0e707.js.map | 1 + .../public/aragon-ui/index-4def0554.js | 14 + .../public/aragon-ui/index-4def0554.js.map | 1 + .../govern-console/public/aragon-ui/index.js | 557 + .../public/aragon-ui/index.js.map | 1 + .../public/aragon-ui/keycodes.js | 14 + .../public/aragon-ui/keycodes.js.map | 1 + .../public/aragon-ui/math-ecfd5d91.js | 131 + .../public/aragon-ui/math-ecfd5d91.js.map | 1 + .../govern-console/public/aragon-ui/math.js | 16 + .../public/aragon-ui/math.js.map | 1 + .../public/aragon-ui/miscellaneous.js | 38 + .../public/aragon-ui/miscellaneous.js.map | 1 + .../objectWithoutProperties-c6d3675c.js | 42 + .../objectWithoutProperties-c6d3675c.js.map | 1 + .../objectWithoutPropertiesLoose-1af20ad0.js | 54 + ...jectWithoutPropertiesLoose-1af20ad0.js.map | 1 + .../public/aragon-ui/observe-52141784.js | 106 + .../public/aragon-ui/observe-52141784.js.map | 1 + .../public/aragon-ui/observe.js | 18 + .../public/aragon-ui/observe.js.map | 1 + .../public/aragon-ui/palettes.js | 111 + .../public/aragon-ui/palettes.js.map | 1 + .../public/aragon-ui/proptypes-9c58a90f.js | 95 + .../aragon-ui/proptypes-9c58a90f.js.map | 1 + .../public/aragon-ui/providers.js | 41 + .../public/aragon-ui/providers.js.map | 1 + .../aragon-ui/slicedToArray-a8a77f0e.js | 53 + .../aragon-ui/slicedToArray-a8a77f0e.js.map | 1 + .../public/aragon-ui/springs.js | 41 + .../public/aragon-ui/springs.js.map | 1 + .../govern-console/public/aragon-ui/style.js | 26 + .../public/aragon-ui/style.js.map | 1 + .../public/aragon-ui/text-styles.js | 133 + .../public/aragon-ui/text-styles.js.map | 1 + .../public/aragon-ui/theme-dark.js | 85 + .../public/aragon-ui/theme-dark.js.map | 1 + .../public/aragon-ui/theme-legacy.js | 18 + .../public/aragon-ui/theme-legacy.js.map | 1 + .../public/aragon-ui/theme-light.js | 85 + .../public/aragon-ui/theme-light.js.map | 1 + .../govern-console/public/aragon-ui/theme2.js | 24 + .../public/aragon-ui/theme2.js.map | 1 + .../aragon-ui/toConsumableArray-cc0d28a9.js | 30 + .../toConsumableArray-cc0d28a9.js.map | 1 + .../unsupportedIterableToArray-f175acfa.js | 28 + ...unsupportedIterableToArray-f175acfa.js.map | 1 + .../govern-console/public/aragon-ui/url.js | 16 + .../public/aragon-ui/url.js.map | 1 + .../public/aragon-ui/useArrowKeysFocus.js | 61 + .../public/aragon-ui/useArrowKeysFocus.js.map | 1 + .../public/aragon-ui/useClickOutside.js | 30 + .../public/aragon-ui/useClickOutside.js.map | 1 + .../public/aragon-ui/useFocusEnter.js | 24 + .../public/aragon-ui/useFocusEnter.js.map | 1 + .../public/aragon-ui/useFocusLeave.js | 24 + .../public/aragon-ui/useFocusLeave.js.map | 1 + .../public/aragon-ui/useImageExists.js | 156 + .../public/aragon-ui/useImageExists.js.map | 1 + .../public/aragon-ui/useKeyDown.js | 29 + .../public/aragon-ui/useKeyDown.js.map | 1 + .../public/aragon-ui/useOnBlur.js | 16 + .../public/aragon-ui/useOnBlur.js.map | 1 + .../govern-console/public/aragon-ui/utils.js | 67 + .../public/aragon-ui/utils.js.map | 1 + .../govern-console/public/aragon-ui/vendor.js | 14 + .../public/aragon-ui/vendor.js.map | 1 + .../public/aragon-ui/web-7cbdbd84.js | 2382 +++ .../public/aragon-ui/web-7cbdbd84.js.map | 1 + .../public/aragon-ui/web3-4e58c255.js | 858 + .../public/aragon-ui/web3-4e58c255.js.map | 1 + .../govern-console/public/aragon-ui/web3.js | 19 + .../public/aragon-ui/web3.js.map | 1 + packages/govern-console/public/favicon.ico | Bin 0 -> 3870 bytes packages/govern-console/public/favicon.png | Bin 5488 -> 0 bytes packages/govern-console/public/index.html | 40 +- packages/govern-console/src/App.css | 40 + packages/govern-console/src/App.test.tsx | 9 + packages/govern-console/src/App.tsx | 60 +- packages/govern-console/src/AragonTheme.tsx | 283 + .../src/Providers/GeneralProvider.tsx | 15 - .../src/Providers/Permissions.tsx | 127 - .../govern-console/src/Providers/Wallet.tsx | 82 - .../govern-console/src/ReusableStyles.tsx | 14 + packages/govern-console/src/apps/Erc.tsx | 181 - .../src/assets/aragon-metal.svg | 19 - .../AddressIdentifier.stories.tsx | 46 + .../AddressIdentifier/AddressIdentifier.tsx | 91 + .../AdviceMessages/AdviceMessage.stories.tsx | 43 + .../AdviceMessages/AdviceMessage.tsx | 64 + .../govern-console/src/components/Button.tsx | 40 - .../src/components/Button/ANButton.tsx | 151 + .../components/Button/AnButton.stories.tsx | 35 + .../ConsoleHeader/ConsoleHeader.stories.tsx | 19 + .../ConsoleHeader/ConsoleHeader.tsx | 91 + .../components/DaoCards/DaoCard.stories.tsx | 21 + .../src/components/DaoCards/DaoCard.tsx | 124 + .../DaoHeader/DaoHeader.stories.tsx | 21 + .../src/components/DaoHeader/DaoHeader.tsx | 94 + .../components/Dropdown/Dropdown.stories.tsx | 23 + .../src/components/Dropdown/Dropdown.tsx | 106 + .../src/components/Entity/Entity.tsx | 84 - .../FilteredActions/FilteredActions.tsx | 223 - .../src/components/Frame/Frame.tsx | 32 - .../src/components/Header/Header.tsx | 178 +- .../HelpButton/HelpButton.stories.tsx | 22 + .../src/components/HelpButton/HelpButton.tsx | 62 + .../src/components/Info/Info.tsx | 32 - .../InputFields/InputField.stories.tsx | 23 + .../src/components/InputFields/InputField.tsx | 93 + .../src/components/Labels/Label.stories.tsx | 52 + .../src/components/Labels/Label.tsx | 76 + .../src/components/Modal/NewActionModal.tsx | 82 + .../src/components/Modal/modal.tsx | 19 + .../src/components/NewAction/NewAction.tsx | 382 - .../ProposalCards/ProposalCard.stories.tsx | 30 + .../components/ProposalCards/ProposalCard.tsx | 98 + .../ProposalOptions.stories.tsx | 40 + .../PropsalOptions/ProposalOptions.tsx | 114 + .../src/components/TextArea/TextArea.tsx | 12 + .../src/components/ViewAction/ViewAction.tsx | 471 - .../src/components/ViewDao/ViewDao.tsx | 205 - .../Console/ConsoleMainPage.stories.tsx | 101 + .../containers/Console/ConsoleMainPage.tsx | 71 + .../containers/DAO/DaoMainPage.stories.tsx | 109 + .../src/containers/DAO/DaoMainPage.tsx | 209 + .../src/containers/HomePage/HomePage.tsx | 38 + .../NewProposal/NewProposal.stories.tsx | 11 + .../containers/NewProposal/NewProposal.tsx | 180 + packages/govern-console/src/environment.ts | 57 - .../govern-console/src/images/aragon-icon.svg | 24 + .../govern-console/src/images/aragon-icon.zip | Bin 0 -> 1218 bytes .../govern-console/src/images/back-btn.svg | 3 + .../src/images/ds/help-icon.svg | 3 + .../src/images/ds/remove-option.svg | 5 + .../src/images/svgs/DefaultImageAddress.svg | 9 + packages/govern-console/src/index.css | 10 + packages/govern-console/src/index.tsx | 85 +- packages/govern-console/src/ipfs.d.ts | 1 - .../src/lib/abi/GovernQueue.json | 1843 -- .../govern-console/src/lib/abi/erc20.json | 175 - packages/govern-console/src/lib/chain-id.ts | 26 - .../govern-console/src/lib/known-chains.ts | 2 - .../govern-console/src/lib/known-roles.ts | 10 - packages/govern-console/src/lib/routing.ts | 22 - .../govern-console/src/lib/web3-contracts.ts | 33 - packages/govern-console/src/lib/web3-utils.ts | 131 - packages/govern-console/src/logo.svg | 1 + .../govern-console/src/pages/SelectDao.tsx | 50 - packages/govern-console/src/pages/ViewDao.tsx | 145 - .../govern-console/src/reportWebVitals.ts | 15 + packages/govern-console/src/setupTests.ts | 5 + packages/govern-console/src/styled.d.ts | 7 - packages/govern-console/tsconfig.json | 23 +- packages/govern-console/yarn.lock | 16672 ++++++++++++++++ yarn.lock | 6222 ++++-- 1342 files changed, 81449 insertions(+), 6728 deletions(-) create mode 100644 packages/.DS_Store create mode 100644 packages/govern-console/.env.dev create mode 100644 packages/govern-console/.env.production delete mode 100644 packages/govern-console/.eslintrc.js create mode 100644 packages/govern-console/.eslintrc.json rename packages/govern-console/{.prettierrc => .prettierrc.json} (50%) create mode 100644 packages/govern-console/.storybook/.eslintrc.json create mode 100644 packages/govern-console/.storybook/main.js create mode 100644 packages/govern-console/.storybook/overrides-mui.d.ts create mode 100644 packages/govern-console/.storybook/preview.js create mode 100644 packages/govern-console/.storybook/tsconfig.json create mode 100644 packages/govern-console/LICENSE create mode 100644 packages/govern-console/decs.d.ts create mode 100644 packages/govern-console/overrides-mui.d.ts create mode 100644 packages/govern-console/public/aragon-ui/32a3f11e7740ce58.woff2 create mode 100644 packages/govern-console/public/aragon-ui/3dd21d4f0d28fecb.woff2 create mode 100644 packages/govern-console/public/aragon-ui/48526b4ed811c6ff.png create mode 100644 packages/govern-console/public/aragon-ui/5140b2d928ee3408.png create mode 100644 packages/govern-console/public/aragon-ui/5cfe62515c2f9b42.woff2 create mode 100644 packages/govern-console/public/aragon-ui/665de3412d16a795.png create mode 100644 packages/govern-console/public/aragon-ui/Accordion.js create mode 100644 packages/govern-console/public/aragon-ui/Accordion.js.map create mode 100644 packages/govern-console/public/aragon-ui/AddressField.js create mode 100644 packages/govern-console/public/aragon-ui/AddressField.js.map create mode 100644 packages/govern-console/public/aragon-ui/AppBadge.js create mode 100644 packages/govern-console/public/aragon-ui/AppBadge.js.map create mode 100644 packages/govern-console/public/aragon-ui/AppBadgePopover.js create mode 100644 packages/govern-console/public/aragon-ui/AppBadgePopover.js.map create mode 100644 packages/govern-console/public/aragon-ui/AppBar.js create mode 100644 packages/govern-console/public/aragon-ui/AppBar.js.map create mode 100644 packages/govern-console/public/aragon-ui/AppView.js create mode 100644 packages/govern-console/public/aragon-ui/AppView.js.map create mode 100644 packages/govern-console/public/aragon-ui/AutoComplete.js create mode 100644 packages/govern-console/public/aragon-ui/AutoComplete.js.map create mode 100644 packages/govern-console/public/aragon-ui/AutoCompleteSelected.js create mode 100644 packages/govern-console/public/aragon-ui/AutoCompleteSelected.js.map create mode 100644 packages/govern-console/public/aragon-ui/BackButton.js create mode 100644 packages/govern-console/public/aragon-ui/BackButton.js.map create mode 100644 packages/govern-console/public/aragon-ui/Badge.js create mode 100644 packages/govern-console/public/aragon-ui/Badge.js.map create mode 100644 packages/govern-console/public/aragon-ui/BadgeBase.js create mode 100644 packages/govern-console/public/aragon-ui/BadgeBase.js.map create mode 100644 packages/govern-console/public/aragon-ui/BadgePopoverActionType.js create mode 100644 packages/govern-console/public/aragon-ui/BadgePopoverActionType.js.map create mode 100644 packages/govern-console/public/aragon-ui/BadgePopoverBase.js create mode 100644 packages/govern-console/public/aragon-ui/BadgePopoverBase.js.map create mode 100644 packages/govern-console/public/aragon-ui/Bar.js create mode 100644 packages/govern-console/public/aragon-ui/Bar.js.map create mode 100644 packages/govern-console/public/aragon-ui/BaseStyles.js create mode 100644 packages/govern-console/public/aragon-ui/BaseStyles.js.map create mode 100644 packages/govern-console/public/aragon-ui/Box.js create mode 100644 packages/govern-console/public/aragon-ui/Box.js.map create mode 100644 packages/govern-console/public/aragon-ui/Button.js create mode 100644 packages/govern-console/public/aragon-ui/Button.js.map create mode 100644 packages/govern-console/public/aragon-ui/ButtonBase.js create mode 100644 packages/govern-console/public/aragon-ui/ButtonBase.js.map create mode 100644 packages/govern-console/public/aragon-ui/ButtonIcon.js create mode 100644 packages/govern-console/public/aragon-ui/ButtonIcon.js.map create mode 100644 packages/govern-console/public/aragon-ui/ButtonText.js create mode 100644 packages/govern-console/public/aragon-ui/ButtonText.js.map create mode 100644 packages/govern-console/public/aragon-ui/Card.js create mode 100644 packages/govern-console/public/aragon-ui/Card.js.map create mode 100644 packages/govern-console/public/aragon-ui/CardLayout.js create mode 100644 packages/govern-console/public/aragon-ui/CardLayout.js.map create mode 100644 packages/govern-console/public/aragon-ui/Checkbox.js create mode 100644 packages/govern-console/public/aragon-ui/Checkbox.js.map create mode 100644 packages/govern-console/public/aragon-ui/CircleGraph.js create mode 100644 packages/govern-console/public/aragon-ui/CircleGraph.js.map create mode 100644 packages/govern-console/public/aragon-ui/ContextMenu.js create mode 100644 packages/govern-console/public/aragon-ui/ContextMenu.js.map create mode 100644 packages/govern-console/public/aragon-ui/ContextMenuItem.js create mode 100644 packages/govern-console/public/aragon-ui/ContextMenuItem.js.map create mode 100644 packages/govern-console/public/aragon-ui/Countdown.js create mode 100644 packages/govern-console/public/aragon-ui/Countdown.js.map create mode 100644 packages/govern-console/public/aragon-ui/DataView.js create mode 100644 packages/govern-console/public/aragon-ui/DataView.js.map create mode 100644 packages/govern-console/public/aragon-ui/DatePicker.js create mode 100644 packages/govern-console/public/aragon-ui/DatePicker.js.map create mode 100644 packages/govern-console/public/aragon-ui/DateRangePicker.js create mode 100644 packages/govern-console/public/aragon-ui/DateRangePicker.js.map create mode 100644 packages/govern-console/public/aragon-ui/Details.js create mode 100644 packages/govern-console/public/aragon-ui/Details.js.map create mode 100644 packages/govern-console/public/aragon-ui/DiscButton.js create mode 100644 packages/govern-console/public/aragon-ui/DiscButton.js.map create mode 100644 packages/govern-console/public/aragon-ui/Distribution.js create mode 100644 packages/govern-console/public/aragon-ui/Distribution.js.map create mode 100644 packages/govern-console/public/aragon-ui/DropDown.js create mode 100644 packages/govern-console/public/aragon-ui/DropDown.js.map create mode 100644 packages/govern-console/public/aragon-ui/EmptyState.js create mode 100644 packages/govern-console/public/aragon-ui/EmptyState.js.map create mode 100644 packages/govern-console/public/aragon-ui/EmptyStateCard.js create mode 100644 packages/govern-console/public/aragon-ui/EmptyStateCard.js.map create mode 100644 packages/govern-console/public/aragon-ui/EscapeOutside.js create mode 100644 packages/govern-console/public/aragon-ui/EscapeOutside.js.map create mode 100644 packages/govern-console/public/aragon-ui/EthIdenticon.js create mode 100644 packages/govern-console/public/aragon-ui/EthIdenticon.js.map create mode 100644 packages/govern-console/public/aragon-ui/Field.js create mode 100644 packages/govern-console/public/aragon-ui/Field.js.map create mode 100644 packages/govern-console/public/aragon-ui/FloatIndicator.js create mode 100644 packages/govern-console/public/aragon-ui/FloatIndicator.js.map create mode 100644 packages/govern-console/public/aragon-ui/FocusVisible.js create mode 100644 packages/govern-console/public/aragon-ui/FocusVisible.js.map create mode 100644 packages/govern-console/public/aragon-ui/Header.js create mode 100644 packages/govern-console/public/aragon-ui/Header.js.map create mode 100644 packages/govern-console/public/aragon-ui/Help.js create mode 100644 packages/govern-console/public/aragon-ui/Help.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconAddUser.js create mode 100644 packages/govern-console/public/aragon-ui/IconAddUser.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconAlert.js create mode 100644 packages/govern-console/public/aragon-ui/IconAlert.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconAlignCenter.js create mode 100644 packages/govern-console/public/aragon-ui/IconAlignCenter.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconAlignJustify.js create mode 100644 packages/govern-console/public/aragon-ui/IconAlignJustify.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconAlignLeft.js create mode 100644 packages/govern-console/public/aragon-ui/IconAlignLeft.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconAlignRight.js create mode 100644 packages/govern-console/public/aragon-ui/IconAlignRight.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconAragon.js create mode 100644 packages/govern-console/public/aragon-ui/IconAragon.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconArrowDown.js create mode 100644 packages/govern-console/public/aragon-ui/IconArrowDown.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconArrowLeft.js create mode 100644 packages/govern-console/public/aragon-ui/IconArrowLeft.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconArrowRight.js create mode 100644 packages/govern-console/public/aragon-ui/IconArrowRight.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconArrowUp.js create mode 100644 packages/govern-console/public/aragon-ui/IconArrowUp.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconAtSign.js create mode 100644 packages/govern-console/public/aragon-ui/IconAtSign.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconBlock.js create mode 100644 packages/govern-console/public/aragon-ui/IconBlock.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconBookmark.js create mode 100644 packages/govern-console/public/aragon-ui/IconBookmark.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCalendar.js create mode 100644 packages/govern-console/public/aragon-ui/IconCalendar.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCanvas.js create mode 100644 packages/govern-console/public/aragon-ui/IconCanvas.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCaution.js create mode 100644 packages/govern-console/public/aragon-ui/IconCaution.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCenter.js create mode 100644 packages/govern-console/public/aragon-ui/IconCenter.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconChart.js create mode 100644 packages/govern-console/public/aragon-ui/IconChart.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconChat.js create mode 100644 packages/govern-console/public/aragon-ui/IconChat.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCheck.js create mode 100644 packages/govern-console/public/aragon-ui/IconCheck.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconChip.js create mode 100644 packages/govern-console/public/aragon-ui/IconChip.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCircleCheck.js create mode 100644 packages/govern-console/public/aragon-ui/IconCircleCheck.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCircleMinus.js create mode 100644 packages/govern-console/public/aragon-ui/IconCircleMinus.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCirclePlus.js create mode 100644 packages/govern-console/public/aragon-ui/IconCirclePlus.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconClock.js create mode 100644 packages/govern-console/public/aragon-ui/IconClock.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCloudDownload.js create mode 100644 packages/govern-console/public/aragon-ui/IconCloudDownload.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCloudUpload.js create mode 100644 packages/govern-console/public/aragon-ui/IconCloudUpload.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCoin.js create mode 100644 packages/govern-console/public/aragon-ui/IconCoin.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconConfiguration.js create mode 100644 packages/govern-console/public/aragon-ui/IconConfiguration.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconConnect.js create mode 100644 packages/govern-console/public/aragon-ui/IconConnect.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconConnection.js create mode 100644 packages/govern-console/public/aragon-ui/IconConnection.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconConsole.js create mode 100644 packages/govern-console/public/aragon-ui/IconConsole.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCopy.js create mode 100644 packages/govern-console/public/aragon-ui/IconCopy.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconCross.js create mode 100644 packages/govern-console/public/aragon-ui/IconCross.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconDashedSquare.js create mode 100644 packages/govern-console/public/aragon-ui/IconDashedSquare.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconDown.js create mode 100644 packages/govern-console/public/aragon-ui/IconDown.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconDownload.js create mode 100644 packages/govern-console/public/aragon-ui/IconDownload.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconEdit.js create mode 100644 packages/govern-console/public/aragon-ui/IconEdit.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconEllipsis.js create mode 100644 packages/govern-console/public/aragon-ui/IconEllipsis.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconEnter.js create mode 100644 packages/govern-console/public/aragon-ui/IconEnter.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconEthereum.js create mode 100644 packages/govern-console/public/aragon-ui/IconEthereum.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconExternal.js create mode 100644 packages/govern-console/public/aragon-ui/IconExternal.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconFile.js create mode 100644 packages/govern-console/public/aragon-ui/IconFile.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconFilter.js create mode 100644 packages/govern-console/public/aragon-ui/IconFilter.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconFlag.js create mode 100644 packages/govern-console/public/aragon-ui/IconFlag.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconFolder.js create mode 100644 packages/govern-console/public/aragon-ui/IconFolder.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconGraph.js create mode 100644 packages/govern-console/public/aragon-ui/IconGraph.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconGraph2.js create mode 100644 packages/govern-console/public/aragon-ui/IconGraph2.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconGrid.js create mode 100644 packages/govern-console/public/aragon-ui/IconGrid.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconGroup.js create mode 100644 packages/govern-console/public/aragon-ui/IconGroup.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconHash.js create mode 100644 packages/govern-console/public/aragon-ui/IconHash.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconHeart.js create mode 100644 packages/govern-console/public/aragon-ui/IconHeart.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconHide.js create mode 100644 packages/govern-console/public/aragon-ui/IconHide.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconHome.js create mode 100644 packages/govern-console/public/aragon-ui/IconHome.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconImage.js create mode 100644 packages/govern-console/public/aragon-ui/IconImage.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconInfo.js create mode 100644 packages/govern-console/public/aragon-ui/IconInfo.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconLabel.js create mode 100644 packages/govern-console/public/aragon-ui/IconLabel.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconLayers.js create mode 100644 packages/govern-console/public/aragon-ui/IconLayers.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconLeft.js create mode 100644 packages/govern-console/public/aragon-ui/IconLeft.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconLink.js create mode 100644 packages/govern-console/public/aragon-ui/IconLink.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconLocation.js create mode 100644 packages/govern-console/public/aragon-ui/IconLocation.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconLock.js create mode 100644 packages/govern-console/public/aragon-ui/IconLock.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconMail.js create mode 100644 packages/govern-console/public/aragon-ui/IconMail.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconMaximize.js create mode 100644 packages/govern-console/public/aragon-ui/IconMaximize.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconMenu.js create mode 100644 packages/govern-console/public/aragon-ui/IconMenu.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconMinimize.js create mode 100644 packages/govern-console/public/aragon-ui/IconMinimize.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconMinus.js create mode 100644 packages/govern-console/public/aragon-ui/IconMinus.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconMove.js create mode 100644 packages/govern-console/public/aragon-ui/IconMove.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconNoPicture.js create mode 100644 packages/govern-console/public/aragon-ui/IconNoPicture.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconPicture.js create mode 100644 packages/govern-console/public/aragon-ui/IconPicture.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconPlus.js create mode 100644 packages/govern-console/public/aragon-ui/IconPlus.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconPower.js create mode 100644 packages/govern-console/public/aragon-ui/IconPower.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconPrint.js create mode 100644 packages/govern-console/public/aragon-ui/IconPrint.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconProhibited.js create mode 100644 packages/govern-console/public/aragon-ui/IconProhibited.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconPropTypes-12cd7567.js create mode 100644 packages/govern-console/public/aragon-ui/IconPropTypes-12cd7567.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconQuestion.js create mode 100644 packages/govern-console/public/aragon-ui/IconQuestion.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconRefresh.js create mode 100644 packages/govern-console/public/aragon-ui/IconRefresh.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconRemoveUser.js create mode 100644 packages/govern-console/public/aragon-ui/IconRemoveUser.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconRight.js create mode 100644 packages/govern-console/public/aragon-ui/IconRight.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconRotateLeft.js create mode 100644 packages/govern-console/public/aragon-ui/IconRotateLeft.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconRotateRight.js create mode 100644 packages/govern-console/public/aragon-ui/IconRotateRight.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconSearch.js create mode 100644 packages/govern-console/public/aragon-ui/IconSearch.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconSettings.js create mode 100644 packages/govern-console/public/aragon-ui/IconSettings.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconShare.js create mode 100644 packages/govern-console/public/aragon-ui/IconShare.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconSquare.js create mode 100644 packages/govern-console/public/aragon-ui/IconSquare.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconSquareMinus.js create mode 100644 packages/govern-console/public/aragon-ui/IconSquareMinus.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconSquarePlus.js create mode 100644 packages/govern-console/public/aragon-ui/IconSquarePlus.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconStar.js create mode 100644 packages/govern-console/public/aragon-ui/IconStar.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconStarFilled.js create mode 100644 packages/govern-console/public/aragon-ui/IconStarFilled.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconSwap.js create mode 100644 packages/govern-console/public/aragon-ui/IconSwap.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconTarget.js create mode 100644 packages/govern-console/public/aragon-ui/IconTarget.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconToken.js create mode 100644 packages/govern-console/public/aragon-ui/IconToken.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconTrash.js create mode 100644 packages/govern-console/public/aragon-ui/IconTrash.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconUnlock.js create mode 100644 packages/govern-console/public/aragon-ui/IconUnlock.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconUp.js create mode 100644 packages/govern-console/public/aragon-ui/IconUp.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconUpload.js create mode 100644 packages/govern-console/public/aragon-ui/IconUpload.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconUser.js create mode 100644 packages/govern-console/public/aragon-ui/IconUser.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconView.js create mode 100644 packages/govern-console/public/aragon-ui/IconView.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconVote.js create mode 100644 packages/govern-console/public/aragon-ui/IconVote.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconWallet.js create mode 100644 packages/govern-console/public/aragon-ui/IconWallet.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconWarning.js create mode 100644 packages/govern-console/public/aragon-ui/IconWarning.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconWorld.js create mode 100644 packages/govern-console/public/aragon-ui/IconWorld.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconWrite.js create mode 100644 packages/govern-console/public/aragon-ui/IconWrite.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconZoomIn.js create mode 100644 packages/govern-console/public/aragon-ui/IconZoomIn.js.map create mode 100644 packages/govern-console/public/aragon-ui/IconZoomOut.js create mode 100644 packages/govern-console/public/aragon-ui/IconZoomOut.js.map create mode 100644 packages/govern-console/public/aragon-ui/IdentityBadge.js create mode 100644 packages/govern-console/public/aragon-ui/IdentityBadge.js.map create mode 100644 packages/govern-console/public/aragon-ui/IdentityBadgePopover.js create mode 100644 packages/govern-console/public/aragon-ui/IdentityBadgePopover.js.map create mode 100644 packages/govern-console/public/aragon-ui/Info.js create mode 100644 packages/govern-console/public/aragon-ui/Info.js.map create mode 100644 packages/govern-console/public/aragon-ui/Labels.js create mode 100644 packages/govern-console/public/aragon-ui/Labels.js.map create mode 100644 packages/govern-console/public/aragon-ui/Layout.js create mode 100644 packages/govern-console/public/aragon-ui/Layout.js.map create mode 100644 packages/govern-console/public/aragon-ui/LeftIcon.js create mode 100644 packages/govern-console/public/aragon-ui/LeftIcon.js.map create mode 100644 packages/govern-console/public/aragon-ui/LineChart.js create mode 100644 packages/govern-console/public/aragon-ui/LineChart.js.map create mode 100644 packages/govern-console/public/aragon-ui/Link.js create mode 100644 packages/govern-console/public/aragon-ui/Link.js.map create mode 100644 packages/govern-console/public/aragon-ui/LinkDeprecated.js create mode 100644 packages/govern-console/public/aragon-ui/LinkDeprecated.js.map create mode 100644 packages/govern-console/public/aragon-ui/ListView.js create mode 100644 packages/govern-console/public/aragon-ui/ListView.js.map create mode 100644 packages/govern-console/public/aragon-ui/LoadingRing.js create mode 100644 packages/govern-console/public/aragon-ui/LoadingRing.js.map create mode 100644 packages/govern-console/public/aragon-ui/Main.js create mode 100644 packages/govern-console/public/aragon-ui/Main.js.map create mode 100644 packages/govern-console/public/aragon-ui/Markdown.js create mode 100644 packages/govern-console/public/aragon-ui/Markdown.js.map create mode 100644 packages/govern-console/public/aragon-ui/Modal.js create mode 100644 packages/govern-console/public/aragon-ui/Modal.js.map create mode 100644 packages/govern-console/public/aragon-ui/MonthDay-2e515f76.js create mode 100644 packages/govern-console/public/aragon-ui/MonthDay-2e515f76.js.map create mode 100644 packages/govern-console/public/aragon-ui/MonthDay.js create mode 100644 packages/govern-console/public/aragon-ui/MonthDay.js.map create mode 100644 packages/govern-console/public/aragon-ui/NavigationBar.js create mode 100644 packages/govern-console/public/aragon-ui/NavigationBar.js.map create mode 100644 packages/govern-console/public/aragon-ui/NormalizedHtml.js create mode 100644 packages/govern-console/public/aragon-ui/NormalizedHtml.js.map create mode 100644 packages/govern-console/public/aragon-ui/OpenedSurfaceBorder.js create mode 100644 packages/govern-console/public/aragon-ui/OpenedSurfaceBorder.js.map create mode 100644 packages/govern-console/public/aragon-ui/Pagination.js create mode 100644 packages/govern-console/public/aragon-ui/Pagination.js.map create mode 100644 packages/govern-console/public/aragon-ui/PaginationItem.js create mode 100644 packages/govern-console/public/aragon-ui/PaginationItem.js.map create mode 100644 packages/govern-console/public/aragon-ui/PaginationSeparator.js create mode 100644 packages/govern-console/public/aragon-ui/PaginationSeparator.js.map create mode 100644 packages/govern-console/public/aragon-ui/PartitionBar.js create mode 100644 packages/govern-console/public/aragon-ui/PartitionBar.js.map create mode 100644 packages/govern-console/public/aragon-ui/Popover.js create mode 100644 packages/govern-console/public/aragon-ui/Popover.js.map create mode 100644 packages/govern-console/public/aragon-ui/ProgressBar.js create mode 100644 packages/govern-console/public/aragon-ui/ProgressBar.js.map create mode 100644 packages/govern-console/public/aragon-ui/PublicUrl-7d4b6d6d.js create mode 100644 packages/govern-console/public/aragon-ui/PublicUrl-7d4b6d6d.js.map create mode 100644 packages/govern-console/public/aragon-ui/Radio.js create mode 100644 packages/govern-console/public/aragon-ui/Radio.js.map create mode 100644 packages/govern-console/public/aragon-ui/RadioGroup.js create mode 100644 packages/govern-console/public/aragon-ui/RadioGroup.js.map create mode 100644 packages/govern-console/public/aragon-ui/RadioList.js create mode 100644 packages/govern-console/public/aragon-ui/RadioList.js.map create mode 100644 packages/govern-console/public/aragon-ui/RadioListItem.js create mode 100644 packages/govern-console/public/aragon-ui/RadioListItem.js.map create mode 100644 packages/govern-console/public/aragon-ui/Redraw-8835074e.js create mode 100644 packages/govern-console/public/aragon-ui/Redraw-8835074e.js.map create mode 100644 packages/govern-console/public/aragon-ui/RedrawFromDate-9529a69d.js create mode 100644 packages/govern-console/public/aragon-ui/RedrawFromDate-9529a69d.js.map create mode 100644 packages/govern-console/public/aragon-ui/Root-8693e46b.js create mode 100644 packages/govern-console/public/aragon-ui/Root-8693e46b.js.map create mode 100644 packages/govern-console/public/aragon-ui/RootPortal.js create mode 100644 packages/govern-console/public/aragon-ui/RootPortal.js.map create mode 100644 packages/govern-console/public/aragon-ui/ScrollView.js create mode 100644 packages/govern-console/public/aragon-ui/ScrollView.js.map create mode 100644 packages/govern-console/public/aragon-ui/SearchInput.js create mode 100644 packages/govern-console/public/aragon-ui/SearchInput.js.map create mode 100644 packages/govern-console/public/aragon-ui/SidePanel.js create mode 100644 packages/govern-console/public/aragon-ui/SidePanel.js.map create mode 100644 packages/govern-console/public/aragon-ui/SidePanelSeparator.js create mode 100644 packages/govern-console/public/aragon-ui/SidePanelSeparator.js.map create mode 100644 packages/govern-console/public/aragon-ui/SidePanelSplit.js create mode 100644 packages/govern-console/public/aragon-ui/SidePanelSplit.js.map create mode 100644 packages/govern-console/public/aragon-ui/Slider.js create mode 100644 packages/govern-console/public/aragon-ui/Slider.js.map create mode 100644 packages/govern-console/public/aragon-ui/Split.js create mode 100644 packages/govern-console/public/aragon-ui/Split.js.map create mode 100644 packages/govern-console/public/aragon-ui/Switch.js create mode 100644 packages/govern-console/public/aragon-ui/Switch.js.map create mode 100644 packages/govern-console/public/aragon-ui/SyncIndicator.js create mode 100644 packages/govern-console/public/aragon-ui/SyncIndicator.js.map create mode 100644 packages/govern-console/public/aragon-ui/Tab.js create mode 100644 packages/govern-console/public/aragon-ui/Tab.js.map create mode 100644 packages/govern-console/public/aragon-ui/TabBarLegacy.js create mode 100644 packages/govern-console/public/aragon-ui/TabBarLegacy.js.map create mode 100644 packages/govern-console/public/aragon-ui/Table.js create mode 100644 packages/govern-console/public/aragon-ui/Table.js.map create mode 100644 packages/govern-console/public/aragon-ui/TableCell.js create mode 100644 packages/govern-console/public/aragon-ui/TableCell.js.map create mode 100644 packages/govern-console/public/aragon-ui/TableHeader.js create mode 100644 packages/govern-console/public/aragon-ui/TableHeader.js.map create mode 100644 packages/govern-console/public/aragon-ui/TableRow.js create mode 100644 packages/govern-console/public/aragon-ui/TableRow.js.map create mode 100644 packages/govern-console/public/aragon-ui/TableView.js create mode 100644 packages/govern-console/public/aragon-ui/TableView.js.map create mode 100644 packages/govern-console/public/aragon-ui/Tabs.js create mode 100644 packages/govern-console/public/aragon-ui/Tabs.js.map create mode 100644 packages/govern-console/public/aragon-ui/TabsFullWidth.js create mode 100644 packages/govern-console/public/aragon-ui/TabsFullWidth.js.map create mode 100644 packages/govern-console/public/aragon-ui/Tag.js create mode 100644 packages/govern-console/public/aragon-ui/Tag.js.map create mode 100644 packages/govern-console/public/aragon-ui/Text.js create mode 100644 packages/govern-console/public/aragon-ui/Text.js.map create mode 100644 packages/govern-console/public/aragon-ui/TextCopy.js create mode 100644 packages/govern-console/public/aragon-ui/TextCopy.js.map create mode 100644 packages/govern-console/public/aragon-ui/TextInput.js create mode 100644 packages/govern-console/public/aragon-ui/TextInput.js.map create mode 100644 packages/govern-console/public/aragon-ui/Theme.js create mode 100644 packages/govern-console/public/aragon-ui/Theme.js.map create mode 100644 packages/govern-console/public/aragon-ui/Timer.js create mode 100644 packages/govern-console/public/aragon-ui/Timer.js.map create mode 100644 packages/govern-console/public/aragon-ui/ToastHub.js create mode 100644 packages/govern-console/public/aragon-ui/ToastHub.js.map create mode 100644 packages/govern-console/public/aragon-ui/ToggleButton.js create mode 100644 packages/govern-console/public/aragon-ui/ToggleButton.js.map create mode 100644 packages/govern-console/public/aragon-ui/TokenAmount.js create mode 100644 packages/govern-console/public/aragon-ui/TokenAmount.js.map create mode 100644 packages/govern-console/public/aragon-ui/TokenBadge.js create mode 100644 packages/govern-console/public/aragon-ui/TokenBadge.js.map create mode 100644 packages/govern-console/public/aragon-ui/TokenBadgePopover.js create mode 100644 packages/govern-console/public/aragon-ui/TokenBadgePopover.js.map create mode 100644 packages/govern-console/public/aragon-ui/TransactionBadge.js create mode 100644 packages/govern-console/public/aragon-ui/TransactionBadge.js.map create mode 100644 packages/govern-console/public/aragon-ui/TransactionProgress.js create mode 100644 packages/govern-console/public/aragon-ui/TransactionProgress.js.map create mode 100644 packages/govern-console/public/aragon-ui/Viewport-819c53c9.js create mode 100644 packages/govern-console/public/aragon-ui/Viewport-819c53c9.js.map create mode 100644 packages/govern-console/public/aragon-ui/_baseGetTag-42b4dd3e.js create mode 100644 packages/govern-console/public/aragon-ui/_baseGetTag-42b4dd3e.js.map create mode 100644 packages/govern-console/public/aragon-ui/_commonjsHelpers-1b94f6bc.js create mode 100644 packages/govern-console/public/aragon-ui/_commonjsHelpers-1b94f6bc.js.map create mode 100644 packages/govern-console/public/aragon-ui/aragon.js create mode 100644 packages/govern-console/public/aragon-ui/aragon.js.map create mode 100644 packages/govern-console/public/aragon-ui/breakpoints.js create mode 100644 packages/govern-console/public/aragon-ui/breakpoints.js.map create mode 100644 packages/govern-console/public/aragon-ui/cf790334a5a6d45c.woff2 create mode 100644 packages/govern-console/public/aragon-ui/characters.js create mode 100644 packages/govern-console/public/aragon-ui/characters.js.map create mode 100644 packages/govern-console/public/aragon-ui/color.js create mode 100644 packages/govern-console/public/aragon-ui/color.js.map create mode 100644 packages/govern-console/public/aragon-ui/components.js create mode 100644 packages/govern-console/public/aragon-ui/components.js.map create mode 100644 packages/govern-console/public/aragon-ui/constants.js create mode 100644 packages/govern-console/public/aragon-ui/constants.js.map create mode 100644 packages/govern-console/public/aragon-ui/consts.js create mode 100644 packages/govern-console/public/aragon-ui/consts.js.map create mode 100644 packages/govern-console/public/aragon-ui/contains-component.js create mode 100644 packages/govern-console/public/aragon-ui/contains-component.js.map create mode 100644 packages/govern-console/public/aragon-ui/css.js create mode 100644 packages/govern-console/public/aragon-ui/css.js.map create mode 100644 packages/govern-console/public/aragon-ui/date.js create mode 100644 packages/govern-console/public/aragon-ui/date.js.map create mode 100644 packages/govern-console/public/aragon-ui/dayjs.min-ac79806e.js create mode 100644 packages/govern-console/public/aragon-ui/dayjs.min-ac79806e.js.map create mode 100644 packages/govern-console/public/aragon-ui/defineProperty-3cad0327.js create mode 100644 packages/govern-console/public/aragon-ui/defineProperty-3cad0327.js.map create mode 100644 packages/govern-console/public/aragon-ui/environment.js create mode 100644 packages/govern-console/public/aragon-ui/environment.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/32a3f11e7740ce58.woff2 create mode 100644 packages/govern-console/public/aragon-ui/esm/3dd21d4f0d28fecb.woff2 create mode 100644 packages/govern-console/public/aragon-ui/esm/48526b4ed811c6ff.png create mode 100644 packages/govern-console/public/aragon-ui/esm/5140b2d928ee3408.png create mode 100644 packages/govern-console/public/aragon-ui/esm/5cfe62515c2f9b42.woff2 create mode 100644 packages/govern-console/public/aragon-ui/esm/665de3412d16a795.png create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/ReactPropTypesSecret.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/ReactPropTypesSecret.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_Hash.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_Hash.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_ListCache.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_ListCache.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_Map.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_Map.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_MapCache.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_MapCache.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_Symbol.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_Symbol.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_assocIndexOf.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_assocIndexOf.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_baseGetTag.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_baseGetTag.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_baseIsNative.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_baseIsNative.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_commonjsHelpers.js create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_commonjsHelpers.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_coreJsData.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_coreJsData.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_freeGlobal.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_freeGlobal.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_getMapData.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_getMapData.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_getNative.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_getNative.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_getRawTag.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_getRawTag.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_getValue.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_getValue.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashClear.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashClear.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashDelete.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashDelete.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashGet.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashGet.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashHas.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashHas.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashSet.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_hashSet.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_isKeyable.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_isKeyable.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_isMasked.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_isMasked.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheClear.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheClear.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheDelete.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheDelete.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheGet.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheGet.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheHas.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheHas.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheSet.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_listCacheSet.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheClear.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheClear.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheDelete.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheDelete.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheGet.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheGet.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheHas.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheHas.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheSet.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_mapCacheSet.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_nativeCreate.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_nativeCreate.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_objectToString.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_objectToString.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_react-dom_commonjs-external create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_react-dom_commonjs-external.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_react_commonjs-external create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_react_commonjs-external.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_root.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_root.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_toSource.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/_toSource.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/arrayLikeToArray.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/arrayLikeToArray.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/arrayWithHoles.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/arrayWithHoles.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/arrayWithoutHoles.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/arrayWithoutHoles.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/assertThisInitialized.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/assertThisInitialized.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/checkPropTypes.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/checkPropTypes.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/construct.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/construct.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/debounce.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/debounce.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/eq.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/eq.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/factoryWithThrowingShims.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/factoryWithThrowingShims.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/factoryWithTypeCheckers.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/factoryWithTypeCheckers.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/getPrototypeOf.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/getPrototypeOf.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/index.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/index.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/index2.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/index2.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/index3.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/index3.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isFunction.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isFunction.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isNativeFunction.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isNativeFunction.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isNativeReflectConstruct.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isNativeReflectConstruct.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isObject.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isObject.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isObjectLike.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isObjectLike.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isSymbol.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/isSymbol.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/iterableToArray.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/iterableToArray.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/iterableToArrayLimit.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/iterableToArrayLimit.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/nonIterableRest.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/nonIterableRest.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/nonIterableSpread.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/nonIterableSpread.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/now.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/now.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/objectWithoutPropertiesLoose.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/objectWithoutPropertiesLoose.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/react-is.development.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/react-is.development.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/react-is.production.min.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/react-is.production.min.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/runtime.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/runtime.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/setPrototypeOf.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/setPrototypeOf.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/toNumber.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/toNumber.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/typeof.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/typeof.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/unsupportedIterableToArray.js_commonjs-proxy create mode 100644 packages/govern-console/public/aragon-ui/esm/_virtual/unsupportedIterableToArray.js_commonjs-proxy.map create mode 100644 packages/govern-console/public/aragon-ui/esm/cf790334a5a6d45c.woff2 create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Accordion/Accordion.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Accordion/Accordion.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AddressField/AddressField.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AddressField/AddressField.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppBadge/AppBadge.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppBadge/AppBadge.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppBadge/AppBadgePopover.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppBadge/AppBadgePopover.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppBadge/assets/app-default.svg.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppBadge/assets/app-default.svg.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppView/AppBar.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppView/AppBar.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppView/AppView.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppView/AppView.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppView/assets/chevron.svg.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AppView/assets/chevron.svg.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AutoComplete/AutoComplete.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AutoComplete/AutoComplete.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AutoComplete/AutoCompleteSelected.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/AutoComplete/AutoCompleteSelected.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BackButton/BackButton.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BackButton/BackButton.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Badge/Badge.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Badge/Badge.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BadgeBase/BadgeBase.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BadgeBase/BadgeBase.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BadgeBase/BadgePopoverActionType.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BadgeBase/BadgePopoverActionType.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BadgeBase/BadgePopoverBase.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BadgeBase/BadgePopoverBase.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Bar/Bar.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Bar/Bar.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/BaseStyles.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/BaseStyles.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-light.woff2.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-light.woff2.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-regular.woff2.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-regular.woff2.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-semibold.woff2.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-semibold.woff2.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Box/Box.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Box/Box.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Button/Button.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Button/Button.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Button/ButtonIcon.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Button/ButtonIcon.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Button/ButtonText.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Button/ButtonText.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ButtonBase/ButtonBase.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ButtonBase/ButtonBase.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Card/Card.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Card/Card.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Card/EmptyStateCard.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Card/EmptyStateCard.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Card/assets/empty-state-card-illustration-default.png.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Card/assets/empty-state-card-illustration-default.png.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/CardLayout/CardLayout.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/CardLayout/CardLayout.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/CircleGraph/CircleGraph.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/CircleGraph/CircleGraph.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenu.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenu.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenuItem.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenuItem.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Countdown/Countdown.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Countdown/Countdown.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/DataView.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/DataView.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/EmptyState.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/EmptyState.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/ListView.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/ListView.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/OpenedSurfaceBorder.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/OpenedSurfaceBorder.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/TableView.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/TableView.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/ToggleButton.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/ToggleButton.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-blue.png.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-blue.png.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-red.png.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-red.png.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DatePicker.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DatePicker.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DateRangePicker.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DateRangePicker.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/Labels.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/Labels.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/MonthDay.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/MonthDay.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/components.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/components.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/consts.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/consts.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/utils.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/utils.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Details/Details.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Details/Details.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DiscButton/DiscButton.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DiscButton/DiscButton.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Distribution/Distribution.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Distribution/Distribution.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DropDown/DropDown.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/DropDown/DropDown.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/EscapeOutside/EscapeOutside.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/EscapeOutside/EscapeOutside.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/EthIdenticon/EthIdenticon.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/EthIdenticon/EthIdenticon.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Field/Field.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Field/Field.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/FloatIndicator/FloatIndicator.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/FloatIndicator/FloatIndicator.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/FocusVisible/FocusVisible.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/FocusVisible/FocusVisible.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Header/Header.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Header/Header.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Help/Help.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Help/Help.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/IdentityBadge/IdentityBadge.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/IdentityBadge/IdentityBadge.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/IdentityBadge/IdentityBadgePopover.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/IdentityBadge/IdentityBadgePopover.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Info/Info.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Info/Info.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Input/Checkbox.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Input/Checkbox.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Input/Radio.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Input/Radio.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Input/SearchInput.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Input/SearchInput.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Input/TextInput.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Input/TextInput.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Layout/Layout.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Layout/Layout.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/LineChart/LineChart.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/LineChart/LineChart.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Link/Link.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Link/Link.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Link/LinkDeprecated.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Link/LinkDeprecated.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/LoadingRing/LoadingRing.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/LoadingRing/LoadingRing.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Main/Main.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Main/Main.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Markdown/Markdown.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Markdown/Markdown.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Markdown/NormalizedHtml.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Markdown/NormalizedHtml.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Modal/Modal.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Modal/Modal.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/NavigationBar/LeftIcon.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/NavigationBar/LeftIcon.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/NavigationBar/NavigationBar.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/NavigationBar/NavigationBar.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Pagination/Pagination.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Pagination/Pagination.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Pagination/PaginationItem.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Pagination/PaginationItem.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Pagination/PaginationSeparator.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Pagination/PaginationSeparator.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/PartitionBar/PartitionBar.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/PartitionBar/PartitionBar.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Popover/Popover.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Popover/Popover.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ProgressBar/ProgressBar.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ProgressBar/ProgressBar.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Radio/RadioGroup.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Radio/RadioGroup.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Radio/RadioList.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Radio/RadioList.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Radio/RadioListItem.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Radio/RadioListItem.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/RootPortal/RootPortal.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/RootPortal/RootPortal.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ScrollView/ScrollView.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ScrollView/ScrollView.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/SidePanel/SidePanel.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/SidePanel/SidePanel.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/SidePanel/SidePanelSeparator.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/SidePanel/SidePanelSeparator.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/SidePanel/SidePanelSplit.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/SidePanel/SidePanelSplit.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Slider/Slider.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Slider/Slider.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Split/Split.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Split/Split.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Switch/Switch.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Switch/Switch.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/SyncIndicator/SyncIndicator.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/SyncIndicator/SyncIndicator.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Table/Table.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Table/Table.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Table/TableCell.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Table/TableCell.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Table/TableHeader.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Table/TableHeader.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Table/TableRow.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Table/TableRow.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tabs/Tab.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tabs/Tab.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tabs/TabBarLegacy.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tabs/TabBarLegacy.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tabs/Tabs.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tabs/Tabs.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tabs/TabsFullWidth.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tabs/TabsFullWidth.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tag/Tag.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Tag/Tag.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Text/Text.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Text/Text.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TextCopy/TextCopy.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TextCopy/TextCopy.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Timer/Timer.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/Timer/Timer.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ToastHub/ToastHub.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/ToastHub/ToastHub.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TokenAmount/TokenAmount.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TokenAmount/TokenAmount.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TokenBadge/TokenBadge.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TokenBadge/TokenBadge.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TokenBadge/TokenBadgePopover.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TokenBadge/TokenBadgePopover.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TransactionBadge/TransactionBadge.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TransactionBadge/TransactionBadge.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TransactionProgress/TransactionProgress.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/components/TransactionProgress/TransactionProgress.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/hooks.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/hooks.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useArrowKeysFocus.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useArrowKeysFocus.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useClickOutside.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useClickOutside.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useFocusEnter.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useFocusEnter.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useFocusLeave.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useFocusLeave.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useImageExists.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useImageExists.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useKeyDown.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useKeyDown.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useOnBlur.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/hooks/useOnBlur.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/IconPropTypes.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/IconPropTypes.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAddUser.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAddUser.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlert.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlert.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlignCenter.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlignCenter.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlignJustify.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlignJustify.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlignLeft.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlignLeft.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlignRight.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAlignRight.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAragon.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAragon.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconArrowDown.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconArrowDown.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconArrowLeft.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconArrowLeft.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconArrowRight.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconArrowRight.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconArrowUp.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconArrowUp.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAtSign.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconAtSign.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconBlock.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconBlock.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconBookmark.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconBookmark.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCalendar.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCalendar.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCanvas.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCanvas.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCaution.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCaution.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCenter.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCenter.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconChart.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconChart.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconChat.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconChat.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCheck.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCheck.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconChip.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconChip.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCircleCheck.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCircleCheck.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCircleMinus.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCircleMinus.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCirclePlus.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCirclePlus.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconClock.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconClock.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCloudDownload.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCloudDownload.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCloudUpload.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCloudUpload.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCoin.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCoin.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconConfiguration.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconConfiguration.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconConnect.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconConnect.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconConnection.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconConnection.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconConsole.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconConsole.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCopy.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCopy.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCross.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconCross.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconDashedSquare.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconDashedSquare.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconDown.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconDown.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconDownload.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconDownload.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconEdit.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconEdit.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconEllipsis.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconEllipsis.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconEnter.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconEnter.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconEthereum.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconEthereum.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconExternal.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconExternal.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconFile.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconFile.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconFilter.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconFilter.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconFlag.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconFlag.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconFolder.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconFolder.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconGraph.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconGraph.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconGraph2.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconGraph2.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconGrid.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconGrid.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconGroup.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconGroup.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconHash.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconHash.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconHeart.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconHeart.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconHide.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconHide.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconHome.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconHome.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconImage.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconImage.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconInfo.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconInfo.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLabel.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLabel.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLayers.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLayers.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLeft.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLeft.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLink.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLink.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLocation.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLocation.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLock.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconLock.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMail.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMail.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMaximize.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMaximize.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMenu.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMenu.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMinimize.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMinimize.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMinus.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMinus.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMove.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconMove.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconNoPicture.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconNoPicture.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconPicture.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconPicture.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconPlus.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconPlus.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconPower.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconPower.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconPrint.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconPrint.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconProhibited.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconProhibited.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconQuestion.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconQuestion.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRefresh.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRefresh.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRemoveUser.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRemoveUser.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRight.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRight.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRotateLeft.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRotateLeft.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRotateRight.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconRotateRight.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSearch.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSearch.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSettings.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSettings.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconShare.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconShare.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSquare.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSquare.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSquareMinus.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSquareMinus.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSquarePlus.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSquarePlus.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconStar.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconStar.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconStarFilled.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconStarFilled.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSwap.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconSwap.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconTarget.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconTarget.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconToken.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconToken.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconTrash.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconTrash.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconUnlock.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconUnlock.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconUp.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconUp.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconUpload.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconUpload.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconUser.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconUser.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconView.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconView.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconVote.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconVote.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconWallet.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconWallet.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconWarning.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconWarning.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconWorld.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconWorld.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconWrite.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconWrite.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconZoomIn.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconZoomIn.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconZoomOut.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/components/IconZoomOut.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/icon-size.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/icon-size.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/icons.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/icons/icons.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/index.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/index.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/lib/cached-map.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/lib/cached-map.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/proptypes.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/proptypes.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/PublicUrl/PublicUrl.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/PublicUrl/PublicUrl.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/Redraw/Redraw.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/Redraw/Redraw.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/RedrawFromDate/RedrawFromDate.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/RedrawFromDate/RedrawFromDate.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/Root/Root.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/Root/Root.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/Viewport/Viewport.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/Viewport/Viewport.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/observe/observe.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/observe/observe.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/observe/observe2.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/observe/observe2.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/providers.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/providers/providers.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/breakpoints.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/breakpoints.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/constants.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/constants.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/springs.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/springs.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/style.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/style.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/text-styles.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/style/text-styles.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme-legacy/aragon.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme-legacy/aragon.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme-legacy/palettes.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme-legacy/palettes.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme-legacy/theme-legacy.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme-legacy/theme-legacy.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme/Theme2.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme/Theme2.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme/theme-dark.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme/theme-dark.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme/theme-light.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme/theme-light.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme/theme.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/theme/theme.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/characters.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/characters.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/color.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/color.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/components.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/components.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/contains-component.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/contains-component.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/css.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/css.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/date.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/date.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/environment.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/environment.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/font.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/font.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/format.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/format.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/keycodes.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/keycodes.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/math.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/math.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/miscellaneous.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/miscellaneous.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/url.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/url.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/web3.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/utils/web3.js.map create mode 100644 packages/govern-console/public/aragon-ui/esm/src/vendor/vendor.js create mode 100644 packages/govern-console/public/aragon-ui/esm/src/vendor/vendor.js.map create mode 100644 packages/govern-console/public/aragon-ui/extends-023d783e.js create mode 100644 packages/govern-console/public/aragon-ui/extends-023d783e.js.map create mode 100644 packages/govern-console/public/aragon-ui/font.js create mode 100644 packages/govern-console/public/aragon-ui/font.js.map create mode 100644 packages/govern-console/public/aragon-ui/format.js create mode 100644 packages/govern-console/public/aragon-ui/format.js.map create mode 100644 packages/govern-console/public/aragon-ui/getDisplayName-7f913e84.js create mode 100644 packages/govern-console/public/aragon-ui/getDisplayName-7f913e84.js.map create mode 100644 packages/govern-console/public/aragon-ui/getPrototypeOf-55c9e80c.js create mode 100644 packages/govern-console/public/aragon-ui/getPrototypeOf-55c9e80c.js.map create mode 100644 packages/govern-console/public/aragon-ui/hooks.js create mode 100644 packages/govern-console/public/aragon-ui/hooks.js.map create mode 100644 packages/govern-console/public/aragon-ui/icons.js create mode 100644 packages/govern-console/public/aragon-ui/icons.js.map create mode 100644 packages/govern-console/public/aragon-ui/index-46d0e707.js create mode 100644 packages/govern-console/public/aragon-ui/index-46d0e707.js.map create mode 100644 packages/govern-console/public/aragon-ui/index-4def0554.js create mode 100644 packages/govern-console/public/aragon-ui/index-4def0554.js.map create mode 100644 packages/govern-console/public/aragon-ui/index.js create mode 100644 packages/govern-console/public/aragon-ui/index.js.map create mode 100644 packages/govern-console/public/aragon-ui/keycodes.js create mode 100644 packages/govern-console/public/aragon-ui/keycodes.js.map create mode 100644 packages/govern-console/public/aragon-ui/math-ecfd5d91.js create mode 100644 packages/govern-console/public/aragon-ui/math-ecfd5d91.js.map create mode 100644 packages/govern-console/public/aragon-ui/math.js create mode 100644 packages/govern-console/public/aragon-ui/math.js.map create mode 100644 packages/govern-console/public/aragon-ui/miscellaneous.js create mode 100644 packages/govern-console/public/aragon-ui/miscellaneous.js.map create mode 100644 packages/govern-console/public/aragon-ui/objectWithoutProperties-c6d3675c.js create mode 100644 packages/govern-console/public/aragon-ui/objectWithoutProperties-c6d3675c.js.map create mode 100644 packages/govern-console/public/aragon-ui/objectWithoutPropertiesLoose-1af20ad0.js create mode 100644 packages/govern-console/public/aragon-ui/objectWithoutPropertiesLoose-1af20ad0.js.map create mode 100644 packages/govern-console/public/aragon-ui/observe-52141784.js create mode 100644 packages/govern-console/public/aragon-ui/observe-52141784.js.map create mode 100644 packages/govern-console/public/aragon-ui/observe.js create mode 100644 packages/govern-console/public/aragon-ui/observe.js.map create mode 100644 packages/govern-console/public/aragon-ui/palettes.js create mode 100644 packages/govern-console/public/aragon-ui/palettes.js.map create mode 100644 packages/govern-console/public/aragon-ui/proptypes-9c58a90f.js create mode 100644 packages/govern-console/public/aragon-ui/proptypes-9c58a90f.js.map create mode 100644 packages/govern-console/public/aragon-ui/providers.js create mode 100644 packages/govern-console/public/aragon-ui/providers.js.map create mode 100644 packages/govern-console/public/aragon-ui/slicedToArray-a8a77f0e.js create mode 100644 packages/govern-console/public/aragon-ui/slicedToArray-a8a77f0e.js.map create mode 100644 packages/govern-console/public/aragon-ui/springs.js create mode 100644 packages/govern-console/public/aragon-ui/springs.js.map create mode 100644 packages/govern-console/public/aragon-ui/style.js create mode 100644 packages/govern-console/public/aragon-ui/style.js.map create mode 100644 packages/govern-console/public/aragon-ui/text-styles.js create mode 100644 packages/govern-console/public/aragon-ui/text-styles.js.map create mode 100644 packages/govern-console/public/aragon-ui/theme-dark.js create mode 100644 packages/govern-console/public/aragon-ui/theme-dark.js.map create mode 100644 packages/govern-console/public/aragon-ui/theme-legacy.js create mode 100644 packages/govern-console/public/aragon-ui/theme-legacy.js.map create mode 100644 packages/govern-console/public/aragon-ui/theme-light.js create mode 100644 packages/govern-console/public/aragon-ui/theme-light.js.map create mode 100644 packages/govern-console/public/aragon-ui/theme2.js create mode 100644 packages/govern-console/public/aragon-ui/theme2.js.map create mode 100644 packages/govern-console/public/aragon-ui/toConsumableArray-cc0d28a9.js create mode 100644 packages/govern-console/public/aragon-ui/toConsumableArray-cc0d28a9.js.map create mode 100644 packages/govern-console/public/aragon-ui/unsupportedIterableToArray-f175acfa.js create mode 100644 packages/govern-console/public/aragon-ui/unsupportedIterableToArray-f175acfa.js.map create mode 100644 packages/govern-console/public/aragon-ui/url.js create mode 100644 packages/govern-console/public/aragon-ui/url.js.map create mode 100644 packages/govern-console/public/aragon-ui/useArrowKeysFocus.js create mode 100644 packages/govern-console/public/aragon-ui/useArrowKeysFocus.js.map create mode 100644 packages/govern-console/public/aragon-ui/useClickOutside.js create mode 100644 packages/govern-console/public/aragon-ui/useClickOutside.js.map create mode 100644 packages/govern-console/public/aragon-ui/useFocusEnter.js create mode 100644 packages/govern-console/public/aragon-ui/useFocusEnter.js.map create mode 100644 packages/govern-console/public/aragon-ui/useFocusLeave.js create mode 100644 packages/govern-console/public/aragon-ui/useFocusLeave.js.map create mode 100644 packages/govern-console/public/aragon-ui/useImageExists.js create mode 100644 packages/govern-console/public/aragon-ui/useImageExists.js.map create mode 100644 packages/govern-console/public/aragon-ui/useKeyDown.js create mode 100644 packages/govern-console/public/aragon-ui/useKeyDown.js.map create mode 100644 packages/govern-console/public/aragon-ui/useOnBlur.js create mode 100644 packages/govern-console/public/aragon-ui/useOnBlur.js.map create mode 100644 packages/govern-console/public/aragon-ui/utils.js create mode 100644 packages/govern-console/public/aragon-ui/utils.js.map create mode 100644 packages/govern-console/public/aragon-ui/vendor.js create mode 100644 packages/govern-console/public/aragon-ui/vendor.js.map create mode 100644 packages/govern-console/public/aragon-ui/web-7cbdbd84.js create mode 100644 packages/govern-console/public/aragon-ui/web-7cbdbd84.js.map create mode 100644 packages/govern-console/public/aragon-ui/web3-4e58c255.js create mode 100644 packages/govern-console/public/aragon-ui/web3-4e58c255.js.map create mode 100644 packages/govern-console/public/aragon-ui/web3.js create mode 100644 packages/govern-console/public/aragon-ui/web3.js.map create mode 100644 packages/govern-console/public/favicon.ico delete mode 100644 packages/govern-console/public/favicon.png create mode 100644 packages/govern-console/src/App.css create mode 100644 packages/govern-console/src/App.test.tsx create mode 100644 packages/govern-console/src/AragonTheme.tsx delete mode 100644 packages/govern-console/src/Providers/GeneralProvider.tsx delete mode 100644 packages/govern-console/src/Providers/Permissions.tsx delete mode 100644 packages/govern-console/src/Providers/Wallet.tsx create mode 100644 packages/govern-console/src/ReusableStyles.tsx delete mode 100644 packages/govern-console/src/apps/Erc.tsx delete mode 100644 packages/govern-console/src/assets/aragon-metal.svg create mode 100644 packages/govern-console/src/components/AddressIdentifier/AddressIdentifier.stories.tsx create mode 100644 packages/govern-console/src/components/AddressIdentifier/AddressIdentifier.tsx create mode 100644 packages/govern-console/src/components/AdviceMessages/AdviceMessage.stories.tsx create mode 100644 packages/govern-console/src/components/AdviceMessages/AdviceMessage.tsx delete mode 100644 packages/govern-console/src/components/Button.tsx create mode 100644 packages/govern-console/src/components/Button/ANButton.tsx create mode 100644 packages/govern-console/src/components/Button/AnButton.stories.tsx create mode 100644 packages/govern-console/src/components/ConsoleHeader/ConsoleHeader.stories.tsx create mode 100644 packages/govern-console/src/components/ConsoleHeader/ConsoleHeader.tsx create mode 100644 packages/govern-console/src/components/DaoCards/DaoCard.stories.tsx create mode 100644 packages/govern-console/src/components/DaoCards/DaoCard.tsx create mode 100644 packages/govern-console/src/components/DaoHeader/DaoHeader.stories.tsx create mode 100644 packages/govern-console/src/components/DaoHeader/DaoHeader.tsx create mode 100644 packages/govern-console/src/components/Dropdown/Dropdown.stories.tsx create mode 100644 packages/govern-console/src/components/Dropdown/Dropdown.tsx delete mode 100644 packages/govern-console/src/components/Entity/Entity.tsx delete mode 100644 packages/govern-console/src/components/FilteredActions/FilteredActions.tsx delete mode 100644 packages/govern-console/src/components/Frame/Frame.tsx create mode 100644 packages/govern-console/src/components/HelpButton/HelpButton.stories.tsx create mode 100644 packages/govern-console/src/components/HelpButton/HelpButton.tsx delete mode 100644 packages/govern-console/src/components/Info/Info.tsx create mode 100644 packages/govern-console/src/components/InputFields/InputField.stories.tsx create mode 100644 packages/govern-console/src/components/InputFields/InputField.tsx create mode 100644 packages/govern-console/src/components/Labels/Label.stories.tsx create mode 100644 packages/govern-console/src/components/Labels/Label.tsx create mode 100644 packages/govern-console/src/components/Modal/NewActionModal.tsx create mode 100644 packages/govern-console/src/components/Modal/modal.tsx delete mode 100644 packages/govern-console/src/components/NewAction/NewAction.tsx create mode 100644 packages/govern-console/src/components/ProposalCards/ProposalCard.stories.tsx create mode 100644 packages/govern-console/src/components/ProposalCards/ProposalCard.tsx create mode 100644 packages/govern-console/src/components/PropsalOptions/ProposalOptions.stories.tsx create mode 100644 packages/govern-console/src/components/PropsalOptions/ProposalOptions.tsx create mode 100644 packages/govern-console/src/components/TextArea/TextArea.tsx delete mode 100644 packages/govern-console/src/components/ViewAction/ViewAction.tsx delete mode 100644 packages/govern-console/src/components/ViewDao/ViewDao.tsx create mode 100644 packages/govern-console/src/containers/Console/ConsoleMainPage.stories.tsx create mode 100644 packages/govern-console/src/containers/Console/ConsoleMainPage.tsx create mode 100644 packages/govern-console/src/containers/DAO/DaoMainPage.stories.tsx create mode 100644 packages/govern-console/src/containers/DAO/DaoMainPage.tsx create mode 100644 packages/govern-console/src/containers/HomePage/HomePage.tsx create mode 100644 packages/govern-console/src/containers/NewProposal/NewProposal.stories.tsx create mode 100644 packages/govern-console/src/containers/NewProposal/NewProposal.tsx delete mode 100644 packages/govern-console/src/environment.ts create mode 100644 packages/govern-console/src/images/aragon-icon.svg create mode 100644 packages/govern-console/src/images/aragon-icon.zip create mode 100644 packages/govern-console/src/images/back-btn.svg create mode 100644 packages/govern-console/src/images/ds/help-icon.svg create mode 100644 packages/govern-console/src/images/ds/remove-option.svg create mode 100644 packages/govern-console/src/images/svgs/DefaultImageAddress.svg delete mode 100644 packages/govern-console/src/ipfs.d.ts delete mode 100644 packages/govern-console/src/lib/abi/GovernQueue.json delete mode 100644 packages/govern-console/src/lib/abi/erc20.json delete mode 100644 packages/govern-console/src/lib/chain-id.ts delete mode 100644 packages/govern-console/src/lib/known-chains.ts delete mode 100644 packages/govern-console/src/lib/known-roles.ts delete mode 100644 packages/govern-console/src/lib/routing.ts delete mode 100644 packages/govern-console/src/lib/web3-contracts.ts delete mode 100644 packages/govern-console/src/lib/web3-utils.ts create mode 100644 packages/govern-console/src/logo.svg delete mode 100644 packages/govern-console/src/pages/SelectDao.tsx delete mode 100644 packages/govern-console/src/pages/ViewDao.tsx create mode 100644 packages/govern-console/src/reportWebVitals.ts create mode 100644 packages/govern-console/src/setupTests.ts delete mode 100644 packages/govern-console/src/styled.d.ts create mode 100644 packages/govern-console/yarn.lock diff --git a/packages/.DS_Store b/packages/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..92a24f25edd40daa5898c9c7a59fe26992027049 GIT binary patch literal 6148 zcmeHK%}N6?5T4N9;H?3!ZHbKcDt^P9{lyL8*)MNnoS z`6kIsGWj4sLqt4(ThEBbL{y;&vM2*0-Gf6HW;_CNnd6mS=#EyDfPX_I_8ZzF;&<9m zH~u~P8rn45*%O)*hUrny2`}^CEhjVMRY5ilL-Sa_Qoe*7h2AlzB zz!`7`jxvBZTco;H^x7G42AqL!2IPJSD1y;2E0(JRRY?JW@{KM6U2+NW35L-yD`Et~ z>Izg>wiJWa9sR-VqG484cVbIE*jD~ZUbw7|`9m=$j*4D81I|F7flF}@^Rp1idI8gh?J%b<=2(P0-2v!cu* S{ly*VAAv%MSI)pMFz^YrPBYK| literal 0 HcmV?d00001 diff --git a/packages/govern-console/.env.dev b/packages/govern-console/.env.dev new file mode 100644 index 000000000..e69de29bb diff --git a/packages/govern-console/.env.production b/packages/govern-console/.env.production new file mode 100644 index 000000000..e69de29bb diff --git a/packages/govern-console/.eslintrc.js b/packages/govern-console/.eslintrc.js deleted file mode 100644 index 29add9b8d..000000000 --- a/packages/govern-console/.eslintrc.js +++ /dev/null @@ -1,26 +0,0 @@ -module.exports = { - env: { - browser: true, - es6: true, - }, - extends: [ - 'eslint:recommended', - 'plugin:prettier/recommended', - 'plugin:@typescript-eslint/recommended', - 'prettier/@typescript-eslint', - 'react-app', - ], - parser: '@typescript-eslint/parser', - parserOptions: { - jsx: true, - sourceType: 'module', - project: './tsconfig.json', - }, - plugins: ['prettier', 'react', 'react-hooks', '@typescript-eslint'], - rules: { - '@typescript-eslint/no-explicit-any': 'off', - 'no-use-before-define': 'off', - '@typescript-eslint/no-use-before-define': ['error'], - '@typescript-eslint/ban-ts-comment': 'off', - }, -} diff --git a/packages/govern-console/.eslintrc.json b/packages/govern-console/.eslintrc.json new file mode 100644 index 000000000..3aff43f17 --- /dev/null +++ b/packages/govern-console/.eslintrc.json @@ -0,0 +1,32 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module", + "ecmaFeatures": { + // Allows for the parsing of JSX + "jsx": true + } + }, + "ignorePatterns": [ + "node_modules/**/*" + ], + "settings": { + "react": { + "version": "detect" + } + }, + "extends": [ + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended", + "plugin:react-hooks/recommended", + "prettier/@typescript-eslint", + "plugin:prettier/recommended" + ], + "rules": { + "@typescript-eslint/explicit-function-return-type": "off", + "prettier/prettier": "error", + "@typescript-eslint/no-explicit-any": "off", + "react/prop-types": "off" + } +} \ No newline at end of file diff --git a/packages/govern-console/.gitignore b/packages/govern-console/.gitignore index 6ad1b6407..4d29575de 100644 --- a/packages/govern-console/.gitignore +++ b/packages/govern-console/.gitignore @@ -10,7 +10,6 @@ # production /build -/public/aragon-ui # misc .DS_Store @@ -22,7 +21,3 @@ npm-debug.log* yarn-debug.log* yarn-error.log* - -.vercel - -.eslintcache diff --git a/packages/govern-console/.prettierrc b/packages/govern-console/.prettierrc.json similarity index 50% rename from packages/govern-console/.prettierrc rename to packages/govern-console/.prettierrc.json index 97b711153..fa9699b89 100644 --- a/packages/govern-console/.prettierrc +++ b/packages/govern-console/.prettierrc.json @@ -1,6 +1,7 @@ { - "semi": false, - "singleQuote": true, + "semi": true, "trailingComma": "all", - "arrowParens": "avoid" + "singleQuote": true, + "printWidth": 80, + "tabWidth": 2 } diff --git a/packages/govern-console/.storybook/.eslintrc.json b/packages/govern-console/.storybook/.eslintrc.json new file mode 100644 index 000000000..3aff43f17 --- /dev/null +++ b/packages/govern-console/.storybook/.eslintrc.json @@ -0,0 +1,32 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module", + "ecmaFeatures": { + // Allows for the parsing of JSX + "jsx": true + } + }, + "ignorePatterns": [ + "node_modules/**/*" + ], + "settings": { + "react": { + "version": "detect" + } + }, + "extends": [ + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended", + "plugin:react-hooks/recommended", + "prettier/@typescript-eslint", + "plugin:prettier/recommended" + ], + "rules": { + "@typescript-eslint/explicit-function-return-type": "off", + "prettier/prettier": "error", + "@typescript-eslint/no-explicit-any": "off", + "react/prop-types": "off" + } +} \ No newline at end of file diff --git a/packages/govern-console/.storybook/main.js b/packages/govern-console/.storybook/main.js new file mode 100644 index 000000000..cd7475934 --- /dev/null +++ b/packages/govern-console/.storybook/main.js @@ -0,0 +1,11 @@ +module.exports = { + "stories": [ + "../src/**/*.stories.mdx", + "../src/**/*.stories.@(js|jsx|ts|tsx)" + ], + "addons": [ + "@storybook/addon-links", + "@storybook/addon-essentials", + "@storybook/preset-create-react-app" + ] +} \ No newline at end of file diff --git a/packages/govern-console/.storybook/overrides-mui.d.ts b/packages/govern-console/.storybook/overrides-mui.d.ts new file mode 100644 index 000000000..ea35eaa3e --- /dev/null +++ b/packages/govern-console/.storybook/overrides-mui.d.ts @@ -0,0 +1,13 @@ +// Added for DatePicker customization functionality +// https://material-ui-pickers.dev/guides/css-overrides#typescript + +import { Overrides } from '@material-ui/core/styles/overrides'; +import { MuiPickersOverrides } from '@material-ui/pickers/typings/overrides'; + +type overridesNameToClassKey = { + [P in keyof MuiPickersOverrides]: keyof MuiPickersOverrides[P]; +}; + +declare module '@material-ui/core/styles/overrides' { + export interface ComponentNameToClassKey extends overridesNameToClassKey {} +} diff --git a/packages/govern-console/.storybook/preview.js b/packages/govern-console/.storybook/preview.js new file mode 100644 index 000000000..a036c5815 --- /dev/null +++ b/packages/govern-console/.storybook/preview.js @@ -0,0 +1,16 @@ +import React from 'react'; +import { ThemeProvider } from '@material-ui/core'; +import { lightTheme } from '../src/AragonTheme'; +import MomentUtils from '@date-io/moment'; +import { MuiPickersUtilsProvider } from '@material-ui/pickers'; +import '../src/App.css'; + +export const decorators = [ + (Story) => ( + + + + + + ), +]; diff --git a/packages/govern-console/.storybook/tsconfig.json b/packages/govern-console/.storybook/tsconfig.json new file mode 100644 index 000000000..42d64977b --- /dev/null +++ b/packages/govern-console/.storybook/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noFallthroughCasesInSwitch": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "baseUrl": "src" + }, + "include": [ + "src", + "decs.d.ts" + ], +} \ No newline at end of file diff --git a/packages/govern-console/LICENSE b/packages/govern-console/LICENSE new file mode 100644 index 000000000..febeec1eb --- /dev/null +++ b/packages/govern-console/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Aragon + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/govern-console/README.md b/packages/govern-console/README.md index 8deaa2331..b58e0af83 100644 --- a/packages/govern-console/README.md +++ b/packages/govern-console/README.md @@ -1,16 +1,46 @@ -![Aragon Govern header](../../raw/master/.github/govern.png) +# Getting Started with Create React App -[![](https://img.shields.io/discord/672466989217873929?label=discord)](https://discord.gg/aKAKcf) [![](https://img.shields.io/npm/v/@aragon/govern)](https://www.npmjs.com/package/@aragon/govern) [![](https://img.shields.io/badge/solidity-%3E%3D%200.6.8-lightgrey)](https://img.shields.io/badge/solidity-%3E%3D%200.6.8-lightgrey) [![Actions Status](https://github.com/aragon/govern/workflows/CI/badge.svg)](https://github.com/aragon/govern/actions?query=workflow%3ACI) [![Actions Status](https://github.com/aragon/govern/workflows/CD/badge.svg)](https://github.com/aragon/govern/actions?query=workflow%3ACD) -[![codecov](https://codecov.io/gh/aragon/govern/branch/master/graph/badge.svg)](https://codecov.io/gh/aragon/govern) +This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). -## Govern Console +## Available Scripts -Govern Console is a minimal frontend to manage your optimistic DAO. You'll be able to manage your DAO configuration, permissions, and actions currently in the queue. +In the project directory, you can run: -## Quick start +### `yarn start` -Install with yarn and launch the app with yarn start. By default, the app is configured to connect to the Ethereum Rinkeby testnet, but there's a chain selector so you can change them on the fly. +Runs the app in the development mode.\ +Open [http://localhost:3000](http://localhost:3000) to view it in the browser. -## Contributing +The page will reload if you make edits.\ +You will also see any lint errors in the console. -Don't be shy to contribute even the smallest tweak. 🐲 There are still some dragons to be aware of, but we'll be here to help you get started! +### `yarn test` + +Launches the test runner in the interactive watch mode.\ +See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. + +### `yarn build` + +Builds the app for production to the `build` folder.\ +It correctly bundles React in production mode and optimizes the build for the best performance. + +The build is minified and the filenames include the hashes.\ +Your app is ready to be deployed! + +See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. + +### `yarn eject` + +**Note: this is a one-way operation. Once you `eject`, you can’t go back!** + +If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. + +Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. + +You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. + +## Learn More + +You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). + +To learn React, check out the [React documentation](https://reactjs.org/). diff --git a/packages/govern-console/decs.d.ts b/packages/govern-console/decs.d.ts new file mode 100644 index 000000000..b8ca02f29 --- /dev/null +++ b/packages/govern-console/decs.d.ts @@ -0,0 +1 @@ +declare module "@aragon/ui"; diff --git a/packages/govern-console/overrides-mui.d.ts b/packages/govern-console/overrides-mui.d.ts new file mode 100644 index 000000000..ea35eaa3e --- /dev/null +++ b/packages/govern-console/overrides-mui.d.ts @@ -0,0 +1,13 @@ +// Added for DatePicker customization functionality +// https://material-ui-pickers.dev/guides/css-overrides#typescript + +import { Overrides } from '@material-ui/core/styles/overrides'; +import { MuiPickersOverrides } from '@material-ui/pickers/typings/overrides'; + +type overridesNameToClassKey = { + [P in keyof MuiPickersOverrides]: keyof MuiPickersOverrides[P]; +}; + +declare module '@material-ui/core/styles/overrides' { + export interface ComponentNameToClassKey extends overridesNameToClassKey {} +} diff --git a/packages/govern-console/package.json b/packages/govern-console/package.json index 4d5e16edd..0c02884b0 100644 --- a/packages/govern-console/package.json +++ b/packages/govern-console/package.json @@ -1,38 +1,72 @@ { - "name": "@aragon/govern-console", - "homepage": "./", - "version": "1.0.0-beta.12", + "name": "app", + "version": "0.1.0", + "private": true, "dependencies": { - "axios": "^0.21.0", - "bn.js": "^5.1.3", - "clipboard-polyfill": "^3.0.1", - "date-fns": "^2.16.1", - "eslint-config-react-app": "^6.0.0", - "ethers": "^5.0.14", - "graphql": "^15.0.0", - "graphql-request": "^3.3.0", - "is-ipfs": "^2.0.0", - "react": "16.13.1", - "react-dom": "16.13.1", - "react-query": "^2.26.2", + "@apollo/client": "^3.3.14", + "@aragon/ui": "^1.7.0", + "@date-io/moment": "^1.3.13", + "@material-ui/core": "^4.11.3", + "@material-ui/icons": "^4.11.2", + "@material-ui/pickers": "^3.3.10", + "@storybook/react": "^6.1.21", + "@testing-library/jest-dom": "^5.11.4", + "@testing-library/react": "^11.1.0", + "@testing-library/user-event": "^12.1.10", + "@types/jest": "^26.0.15", + "@types/node": "^12.0.0", + "@types/react": "^17.0.0", + "@types/react-dom": "^17.0.0", + "@types/react-router": "^5.1.12", + "@types/react-router-dom": "^5.1.7", + "env-cmd": "^10.1.0", + "eslint-config-airbnb": "^18.2.1", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jsx-a11y": "^6.4.1", + "eslint-plugin-react": "^7.23.1", + "eslint-plugin-react-hooks": "^4.2.0", + "ethers": "^5.1.0", + "graphql": "^15.5.0", + "lint-staged": "^10.5.4", + "moment": "^2.29.1", + "node-sass": "^5.0.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", "react-router-dom": "^5.2.0", - "react-scripts": "4.0.1", - "react-spring": "^8.0.27", - "styled-components": "^5.1.0", - "token-amount": "^0.3.0", + "react-scripts": "4.0.3", + "source-map-explorer": "^2.5.2", + "styled-components": "^5.2.3", "typescript": "^4.1.2", - "use-viewport": "^0.2.0", - "use-wallet": "^0.8.0", - "web3-eth-abi": "^1.3.0", - "web3-utils": "^1.3.0" + "web-vitals": "^1.0.1" }, "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "eject": "react-scripts eject" + "sync-assets": "copy-aragon-ui-assets ./public", + "analyze": "source-map-explorer 'build/static/js/*.js'", + "start": "env-cmd -f .env.dev react-scripts start", + "build": "env-cmd -f .env.dev react-scripts build", + "test": "react-scripts test", + "eject": "react-scripts eject", + "storybook": "start-storybook -p 6006 -s public", + "build-storybook": "build-storybook -s public", + "lint": "eslint --ignore-path .gitignore", + "lint:js": "npm run lint:eslint -- . ", + "lint:fix": "eslint --ignore-path .gitignore" }, "eslintConfig": { - "extends": "react-app" + "extends": [ + "react-app", + "react-app/jest" + ] + }, + "lint-staged": { + "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ + "prettier --write" + ] + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } }, "browserslist": { "production": [ @@ -47,31 +81,16 @@ ] }, "devDependencies": { - "@testing-library/jest-dom": "^4.2.4", - "@testing-library/react": "^9.3.2", - "@testing-library/user-event": "^7.1.2", - "@types/jest": "^26.0.14", - "@types/node": "^14.11.2", - "@types/react": "^16.9.49", - "@types/react-dom": "^16.9.8", - "@types/react-router-dom": "^5.1.5", - "@types/styled-components": "^5.1.3", - "@typescript-eslint/eslint-plugin": "^4.9.0", - "@typescript-eslint/parser": "^4.9.0", - "babel-eslint": "^10.1.0", - "babel-plugin-styled-components": "^1.10.7", - "eslint-config-prettier": "^6.11.0", - "eslint-config-standard": "^14.1.1", - "eslint-config-standard-react": "^9.2.0", - "eslint-import-resolver-typescript": "^2.3.0", - "eslint-plugin-import": "^2.20.2", - "eslint-plugin-jest": "^23.13.1", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-prettier": "^3.1.3", - "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-react": "^7.20.0", - "eslint-plugin-react-hooks": "^4.0.2", - "eslint-plugin-standard": "^4.0.1", - "prettier": "^2.0.5" + "@storybook/addon-actions": "^6.1.21", + "@storybook/addon-essentials": "^6.1.21", + "@storybook/addon-links": "^6.1.21", + "@storybook/node-logger": "^6.1.21", + "@storybook/preset-create-react-app": "^3.1.7", + "@typescript-eslint/eslint-plugin": "^4.19.0", + "@typescript-eslint/parser": "^4.19.0", + "eslint-config-prettier": "4.1.0", + "eslint-plugin-prettier": "^3.3.1", + "husky": "^5.2.0", + "prettier": "^2.2.1" } } diff --git a/packages/govern-console/public/aragon-ui/32a3f11e7740ce58.woff2 b/packages/govern-console/public/aragon-ui/32a3f11e7740ce58.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..d1310df6a4fd031129e7f24f6c5292aaaf98d51b GIT binary patch literal 35128 zcmV(^K-Ir@Pew8T0RR910EsvN5dZ)H0cqp_0EpE90|0{n00000000000000000000 z0000Qfo>c8ZXA+G24Dc6FbHZ1nidfV3WDNzg0FP}HUcCAj#LYWEC2)`1@jXJmSPNn z7+Z@=afMv>8%5%%yQ-7>J+@(sCzx(-=SGpv(`%}nVQ2^N+(_~3PFUJ~R;A9f|NsBb zPbxB2NyW6?U;v=1-U0V7WVw4lXE|%c2~Snb0(I1l;gtRgH}j?dErk zLwWd<1;>lWDA{xCX6AQg32Tg&-|$JR8XHwZSS>-8(*F4!_Cx!kqrkP!;X-E6^Nw|1 zP|8V3bB;~vOQNa@3;OoAImWF_68@n@T=v!lhs=kJBv~hk23qLYv7d7}-$wk{c{MM; z`rpvaDNe`g{Tn?8O>WmBtO&H7WaMnb;yluA+zg*&JW(B!`P$9sq8Nwu*toHi%Mw-c zF>sgVro5w`|FgRJie!99*4gQ287zJA{bRYknnj(}fL~Zm(Ry{g{V@mWN?xFXT)G3A z?U<>{?nf_u^i!k<@{hi+({~D zXa$2B22uN9Bvv*`nEeI6fSHJq@d4b(FaW21$GHRiHv0lZFffr)EKowClzenP1Qaka zW7A&rEz)!CT;BDz3tiN0cl&?0^_4q!yW0Ayw)=l)`ZJPUn6XMge*kbnwwgGOH&ISq z2C1LA0Qmp!2mGyl-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G|?wgCVh;1UoA0KmXS2(U{4AOL3z zB17%1UUpR|{Sg$c#dpf$?haO@?#TLu&e;yzanh37sVSjgpu)3t#qT-t$U_>p#;prk z+$OihwH$|@6rAA_M|xVe%&l;%{GtMBjxO0;&q}_&x@DjTEuHuu$K(9YY>@QrTPXkS zwAAl_b2>U$PO;_aCzIB%Dv;gQjdvTJxuAEt`ofSfQ{uIlfG-CYgcM7jg=zZgHUBlV w>hJr(l(zY9m+mL2{Z&8t(bDCa>(2LN*2)%CxOFc7dHUCTB+riQaxP*D05X;*KL7v# literal 0 HcmV?d00001 diff --git a/packages/govern-console/public/aragon-ui/3dd21d4f0d28fecb.woff2 b/packages/govern-console/public/aragon-ui/3dd21d4f0d28fecb.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..fadfa011fb4eb9d5eef0e75c05afe6a685560b96 GIT binary patch literal 50112 zcmV)DK*7IvPew8T0RR910K>ol5dZ)H0t9FP0K-`T0RV#l00000000000000000000 z0000Qf+`!CMjV1`B`#!f1U?E#Pmk~FQaPd^W8MmxS9M0to}CWQxoJ~I zO<94Y!md|MP-#Iih-e|kK-0{*lMw^h3CD#WlK7BUG})1qMPJ3LyUe3UrE=4@KJJ|h zGT!cdh);iXCOU$=i)knxJIrPwNo_YPzBH!sndSB;B2FR(jmm7nyjIUM zn1i7*wO{=@M&TmCiZk4Zto*cJ=w%G{EXThsjDi{srib&VNyxU4edbYNEAD)}yY zlz_UaBul&M|I16AB_2z*#uUcb)e_Cw=u*%2S#*D)f;F=0p1lCz1W^&XH~>&4;C zEwPIv5H9?`>%;T?t#j{NzGY9gir;6X(n8;ok@Zi5v>{^~DJCy_(S~RrV@y#-G7?fG zZM5oF+ATjmX_HFJsAjZl*?iF93~gcT(qFjo{6G8s|K?urepSP)5wds|tK!laBtoN! zMWXuIKfmt3GteFSfxI73Td*{trCHZ4Vfp`m?&aUP_W3pGAb-R|6*L{RqQy8OL3qP}eT>b)M$}-ijSUu2cemRuk{mE#&;tZ1MJx;y z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P3Q;>FAIL|VpGo5 zHEm1Tc;>*JZO+BPM~OLHlh2nzMNusVKH#P+jJV3EwVrCYVc zCMYNYfdeBW$T0!Cqgow8K_L1(i-8O~in>BBd@{N^7-jHg_Aes*c_{TG4poZPt=C;hmveNMd6f`&Os+Q(0=Z!{A3 z>bhtZ+%!>GU~`Fi>Z9Z^;T2q)UF7nz9~&ez_PjfuwC~)63rFu%*(;v8t=gnCr)+6x zjC2Io5&613lTvAc)#|;Gq^T$eNHLaVKzkj>ErSkVV;iZfdJhs%_+FRwg)L_=0*G$a~4ZVr0 zdN|uTe{WZ@NppOe;1s6w;lSJb>6VMySY|l}BudOInV6oiXa7cxrS^fBxe69A<-Jji z+TvWUJ@di@zstRx^L961|9$_yX!*+@0@_>c@PE_~*ScY2kV&&cO_xJqN`v3REe4+o_@2l>cx9(WNJhN`wdE3vPN?+fc b*AV!__0N8#m?QuDPu%^sNNS4-DD43N`_2He literal 0 HcmV?d00001 diff --git a/packages/govern-console/public/aragon-ui/48526b4ed811c6ff.png b/packages/govern-console/public/aragon-ui/48526b4ed811c6ff.png new file mode 100644 index 0000000000000000000000000000000000000000..a0f96ef0305aa336ec5df1a5bb38bfe1e7ab4c49 GIT binary patch literal 89874 zcmeFYV{|27)IJ#7w%xI9TOHf!I5)O!+wM5&*yz}{ZaTI--M{yp|IFw4JbSIXYTa5@ zr%vs2HlDqoid0sVLWIME0|5a+l#v!!1pxt51OWj(fr0va#-*Z3@b3ZEQCb@S0z%6D z?*}T8#$xpMBq%^tN))7an&9N`9|%hk1rZRChIsgQV@MECgK`;h5p@sH^AFg1$`MbZ zh)@6APIoS^en}LFSrCyRKD-b!hUOTHYi*+NZEpw}WtJA(CR{i9)thQkn)#f$=TK1Y z0poCr=mHt*_kC-GS=}M66c`1qXle>@9EKK|AjBVqLlVNly1^uo_VnFbrJrNfll~J` z3uoQFGwobL1y_}7si~RY%jxbWuD5#jgs{zSJ;EbX9FA? zF-H6p)havQ4l1&0sPcaXHW?HS|9T-6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!j1RfcP?i)H-?v2jfM<9S1Hr`^S@@*|SLVxK#Z^&bzrGX0l=n#{5S$m; zbW{{|+5g*q*rgFk0B~SPePF%f*K605&QRRcjp9eYn4@ml<%)IP`@6t!2|Kc3VvzHt zmSN4CA-6GzN0bH7Etx^)Ul*4zqh2u_nEi#RgbG8EGdGx;=!@W2$8At8DmvQyT~@;4 zc`N@ucu)81LRp@^?>}IV@wnaY!qATw_NXL+G!6c4uPVe^V;|erQy7T-C{6`jY|)YV z`M>*b$antXH7cn82kGk%3G_udGSatM+dOVrIZ?{-^ZrXFZIgcouhP~hsTt||R$PH?ys#jG%a9A4D79^N z_ji%?LO>Mg5aB}Mv%5l{!%E!y_>m5YbJJ`HwOmEb|6cz8;Zl12k{KPG>WW4v8j=u2 NM?+t|Ld`z>{{UqBZeRca literal 0 HcmV?d00001 diff --git a/packages/govern-console/public/aragon-ui/5140b2d928ee3408.png b/packages/govern-console/public/aragon-ui/5140b2d928ee3408.png new file mode 100644 index 0000000000000000000000000000000000000000..e45f3fa331f4e9f4bd98c5c27a040533439be845 GIT binary patch literal 20457 zcmc$Eg(7A@{p+}V%!yZ8PL z_dMr3NoF!LndCP)d6Gn`C`n_Yk)Qzp08CjK2{ix!2mt^Peu5ESDfIeO7Ox4&T2xUK z0H}*ce=^fyP*Kp3{JV4T?B$)C zKk#>R&&8qO*TVMN?yj_pg0n;6>h|9H-qGsD&g#w~91g!8YF*vg;owle_|=tH(8$7~ zy0CsEEn~TPcrGAd0AE>AQ+L|fIqd8k+t@wy4@@~dy@oqD{N37K+1hh)`EG6*c=0{Y z*|9*+!1Kk$<;mZFXKEJi#j)ts z?rlT_{N~2NA^+fKzl+`XSMG(k-_>aU<_+WBYa~6-qNz%+258?e>v33!J(0+ zZ~t2DwMop(O4mP{Uwwz)-o7eMmw|y!0uK*^=j6aAC%4)g;e&(l&`@|m!LozzO?wsG$LH9=eeutZk(#X(rz$V2 zGE7FFmrHBM!lppQC?u%%*U(a`g5ijPg`b3OjfUx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Q&0c^002ovPDHLkV1lBi^`rm* literal 0 HcmV?d00001 diff --git a/packages/govern-console/public/aragon-ui/5cfe62515c2f9b42.woff2 b/packages/govern-console/public/aragon-ui/5cfe62515c2f9b42.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..3b242ed062654ebe8b199f650324ff0e5bdc2b80 GIT binary patch literal 33416 zcmV)4K+3;&Pew8T0RR910D_1B5dZ)H0bmFK0D>a`0|0{n00000000000000000000 z0000Qfo>b)92}BJ24Dc6FbHZ1nidfV3WDe;g0(aOHUcCAj#LYWEC2)`1@l`6mSPNn z7+b(Wkpj7mZnM$~AfI<`2rycdHSatzsFBT`#8rATaD%$US|gh~IjJDqRgchZwEjr; z|NsC0FG&_MoOci2=aU2|6j^~<>s+0XCBbDRL@pI6(1tcrU>qw=VO>Ns3ni;yK_b6m zrT0rn(iW-nA9cMV!>!@w#=h#fo)kDB&PWok5LV8UV(IU~_k>nb!bcjAW+CtxVryJR z_EIOh!O0CBfm|p=5|u7xIzQ<14Ng}*p{i%_J2@PAI#4j>cBke+&x*Rx=QQ&`&!bBz zKI6+VB+kN|{^nZZ7*i|qcX-hqfttKkcnZg`!6~*1Pfg$R7Zy!8FpuLv!W3)Zwjx^( zESxZ1M&1zTK~B#HXEbD=7ttji*!F*vdpjPcy6^GA%3InY4i?Lv5#NEZUj5woVGLA^ z$QTWwnm;e^cm7;Yo|gZ{19wNW%4~0a6ywK=-xhLKe{Kw<4rk|}FdWr?#ghBLNlKM! zhQ!JT&bc3-t)r3TNKQpN39b&ZWQ}qS-463gG6c~Nx%bfazUx-4^B4P*OR^_(RBvN~ z^Q*&Zism<0n_11O|8Hao<=BoAjI6Ln(W6iJ|8Kw7v+tw;JnKi8sy3=+m8v>L0IHfv zh57yY0itIQ{MwrLYq!}VR>FmaWkD8kp)Hn@YL$vJ8n6o$JHP;Ku+eM9z&kMtz4p9l zBX0-zx%CD&CXnWeD~3`@v_= zxeLgO1Ee?ciCY;a9Tp~)@+gt4WA`6C|G(e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W>OufuiblTlZBs?Ak7AOw$#9DREXg@I=i*!*Gx8c$PTTGgIA|WsQX%IP%OxhCl*~ z!vqyfa8L4A2w5nedTv_;5RfjbtakKju)OPxW}zo7^CE?ro}%Mp`WsQhJIAPiv-!UE z22so(gU-|h|GN2SWBqLjMI1lPQi^T~Nn-x_=8*^tl9-cWO{-ueIK=(ln`Iv@aBJzZ zA>gW9rZ)fLIf(n#Dy^=GxOcLJe)-gCw@s4!{|)=6KbaN3SBU!~Uv*1KZvy}T04sTT Ay8r+H literal 0 HcmV?d00001 diff --git a/packages/govern-console/public/aragon-ui/665de3412d16a795.png b/packages/govern-console/public/aragon-ui/665de3412d16a795.png new file mode 100644 index 0000000000000000000000000000000000000000..f190b8808a02e6b2faa2876957e5b36c74847da0 GIT binary patch literal 21542 zcmXt9WmFtZvqlzJe39URg+LN4Xn>##EE3!uf(Ca;AP}ZhuDp6;1BT@#=nCxMMYhJk>9fc;exs)T@m1VTVS>;)pfYCdYeGk!e)Ooe5I z5fIA5Fdq$2US&i_B?%FPl3|LyR{`BlQqvIuftu&P4N)wXO&O_K@^UF_ z={S$f?^X?-j;=kJq(3=kU)fk?nj~MDrd+xeoYfDWSzBfWRGdmno7vdJzFy+yR=2gz zdUb7_c=5V#nYuSjyco?-Hj2CXo^oxJc4>^B7R?KS?z z-Mfy-i@md_q11?&hRgBQ>$&Z#)VAB%?MFL{)czRnhKajZ%#6;v*~!(I#@qb9do|lE zSjkP@*ww3^iAnC&bzi9aYwoXkO>I7v4&JxVK1^>tb<8~stvp6I-qlY$Ol&;Wjz1){ z-i@w5Ml{^69X<^#KlUv>F7H2;4c*UfKUIx9n5AA@reF6gJkIYtom@R1T|9qJxk~G} z+dO_s`gfPrb)VgR-#qoOb^M&tez$Y_TrqNgaQ^(a`EGdiab)!|zxV#%%)@J(tFHMsVS9dSP1NSTYPhInm3%gHe*Uurfw-+}r)uRuKdrv;) zw?Fc30;+Dk%5LnkuKg=-gKBQ?A76eK-~1`L$?duGEWHupQ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mi zV^J{O0s;6T!VM6h5PyQDpaZ`cmxAdU2tP!)(4XZ}1R}`%>i85)*Fg9o!p#n0axicH zFir*2H4uJ?aG}3wqDU7j6nFB0R02P4vR}ir+q;H0000< KMNUMnLSTZa4EJ^b literal 0 HcmV?d00001 diff --git a/packages/govern-console/public/aragon-ui/Accordion.js b/packages/govern-console/public/aragon-ui/Accordion.js new file mode 100644 index 000000000..34c87f1e9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Accordion.js @@ -0,0 +1,106 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./url.js'); +require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./Box.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./PaginationItem.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconDown.js'); +require('./IconEllipsis.js'); +require('./IconUp.js'); +require('./PaginationSeparator.js'); +require('./Pagination.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Checkbox.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +require('./ToggleButton.js'); +require('./OpenedSurfaceBorder.js'); +require('./TableView.js'); +require('./ListView.js'); +require('./getDisplayName-7f913e84.js'); +require('./PublicUrl-7d4b6d6d.js'); +require('./LoadingRing.js'); +require('./Link.js'); +require('./EmptyState.js'); +var _DataView = require('./DataView.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +var Accordion = /*#__PURE__*/React__default['default'].memo(function Accordion(_ref) { + var items = _ref.items, + className = _ref.className, + style = _ref.style; + var fields = React.useMemo(function () { + return [null]; + }, []); + var renderEntry = React.useCallback(function (_ref2) { + var _ref3 = slicedToArray.slicedToArray(_ref2, 1), + row = _ref3[0]; + + return [row]; + }, []); + var renderEntryExpansion = React.useCallback(function (_ref4) { + var _ref5 = slicedToArray.slicedToArray(_ref4, 2), + _ = _ref5[0], + expansion = _ref5[1]; + + return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, expansion); + }, []); + return /*#__PURE__*/React__default['default'].createElement(_DataView.default, { + className: className, + entries: items, + entriesPerPage: -1, + fields: fields, + renderEntry: renderEntry, + renderEntryExpansion: renderEntryExpansion, + style: style + }); +}); // className and style are passed manually to ensure users don’t rely on extra +// props to be passed to DataView. The reason is because Accordion is going to +// stop consuming DataView in the future, and would instead share a common +// “expandable” component with it. + +Accordion.propTypes = { + className: index.propTypes.string, + items: index.propTypes.arrayOf(index.propTypes.arrayOf(index.propTypes.node)).isRequired, + style: index.propTypes.object +}; + +exports.default = Accordion; +//# sourceMappingURL=Accordion.js.map diff --git a/packages/govern-console/public/aragon-ui/Accordion.js.map b/packages/govern-console/public/aragon-ui/Accordion.js.map new file mode 100644 index 000000000..efb4d287f --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Accordion.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Accordion.js","sources":["../src/components/Accordion/Accordion.js"],"sourcesContent":["import React, { useCallback, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport DataView from '../DataView/DataView'\n\nconst Accordion = React.memo(function Accordion({ items, className, style }) {\n const fields = useMemo(() => [null], [])\n const renderEntry = useCallback(([row]) => [row], [])\n const renderEntryExpansion = useCallback(\n ([_, expansion]) => <>{expansion},\n []\n )\n\n return (\n \n )\n})\n\n// className and style are passed manually to ensure users don’t rely on extra\n// props to be passed to DataView. The reason is because Accordion is going to\n// stop consuming DataView in the future, and would instead share a common\n// “expandable” component with it.\nAccordion.propTypes = {\n className: PropTypes.string,\n items: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.node)).isRequired,\n style: PropTypes.object,\n}\n\nexport default Accordion\n"],"names":["Accordion","React","memo","items","className","style","fields","useMemo","renderEntry","useCallback","row","renderEntryExpansion","_","expansion","DataView","propTypes","PropTypes","string","arrayOf","node","isRequired","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,SAAS,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,SAAT,OAAgD;AAAA,MAA3BG,KAA2B,QAA3BA,KAA2B;AAAA,MAApBC,SAAoB,QAApBA,SAAoB;AAAA,MAATC,KAAS,QAATA,KAAS;AAC3E,MAAMC,MAAM,GAAGC,aAAO,CAAC;AAAA,WAAM,CAAC,IAAD,CAAN;AAAA,GAAD,EAAe,EAAf,CAAtB;AACA,MAAMC,WAAW,GAAGC,iBAAW,CAAC;AAAA;AAAA,QAAEC,GAAF;;AAAA,WAAW,CAACA,GAAD,CAAX;AAAA,GAAD,EAAmB,EAAnB,CAA/B;AACA,MAAMC,oBAAoB,GAAGF,iBAAW,CACtC;AAAA;AAAA,QAAEG,CAAF;AAAA,QAAKC,SAAL;;AAAA,wBAAoBZ,kFAAGY,SAAH,CAApB;AAAA,GADsC,EAEtC,EAFsC,CAAxC;AAKA,sBACEZ,wCAACa,iBAAD;AACE,IAAA,SAAS,EAAEV,SADb;AAEE,IAAA,OAAO,EAAED,KAFX;AAGE,IAAA,cAAc,EAAE,CAAC,CAHnB;AAIE,IAAA,MAAM,EAAEG,MAJV;AAKE,IAAA,WAAW,EAAEE,WALf;AAME,IAAA,oBAAoB,EAAEG,oBANxB;AAOE,IAAA,KAAK,EAAEN;AAPT,IADF;AAWD,CAnBiB;AAsBlB;AACA;AACA;;AACAL,SAAS,CAACe,SAAV,GAAsB;AACpBX,EAAAA,SAAS,EAAEY,eAAS,CAACC,MADD;AAEpBd,EAAAA,KAAK,EAAEa,eAAS,CAACE,OAAV,CAAkBF,eAAS,CAACE,OAAV,CAAkBF,eAAS,CAACG,IAA5B,CAAlB,EAAqDC,UAFxC;AAGpBf,EAAAA,KAAK,EAAEW,eAAS,CAACK;AAHG,CAAtB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/AddressField.js b/packages/govern-console/public/aragon-ui/AddressField.js new file mode 100644 index 000000000..34f81485a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AddressField.js @@ -0,0 +1,96 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./web3-4e58c255.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconCopy.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +require('./TextInput.js'); +require('./ToastHub.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +var TextCopy = require('./TextCopy.js'); +var EthIdenticon = require('./EthIdenticon.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var HEIGHT = 5 * constants.GU; +var IDENTICON_SIZE = 6 * constants.GU; + +var _StyledEthIdenticon = _styled__default['default'](EthIdenticon.default).withConfig({ + displayName: "AddressField___StyledEthIdenticon", + componentId: "m75adw-0" +})(["transform:scale(", ");transform-origin:50% 50%;"], function (p) { + return p._css; +}); + +var AddressField = /*#__PURE__*/React__default['default'].forwardRef(function AddressField(_ref, ref) { + var address = _ref.address, + autofocus = _ref.autofocus, + icon = _ref.icon, + onCopy = _ref.onCopy, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["address", "autofocus", "icon", "onCopy"]); + + return /*#__PURE__*/React__default['default'].createElement(TextCopy.default, { + ref: ref, + adornment: icon || /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(_StyledEthIdenticon, { + address: address, + onCopy: onCopy, + scale: 2, + _css: (HEIGHT - 2) / IDENTICON_SIZE + })), + autofocus: autofocus, + value: address + }); +}); +AddressField.propTypes = { + address: index.propTypes.string.isRequired, + autofocus: index.propTypes.bool, + icon: index.propTypes.node, + onCopy: index.propTypes.func +}; +AddressField.defaultProps = { + autofocus: true +}; + +exports.default = AddressField; +//# sourceMappingURL=AddressField.js.map diff --git a/packages/govern-console/public/aragon-ui/AddressField.js.map b/packages/govern-console/public/aragon-ui/AddressField.js.map new file mode 100644 index 000000000..e56f9b171 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AddressField.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressField.js","sources":["../src/components/AddressField/AddressField.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { GU } from '../../style'\nimport TextCopy from '../TextCopy/TextCopy'\nimport EthIdenticon from '../EthIdenticon/EthIdenticon'\n\nconst HEIGHT = 5 * GU\nconst IDENTICON_SIZE = 6 * GU\n\nconst AddressField = React.forwardRef(function AddressField(\n { address, autofocus, icon, onCopy, ...props },\n ref\n) {\n return (\n \n \n \n )\n }\n autofocus={autofocus}\n value={address}\n />\n )\n})\n\nAddressField.propTypes = {\n address: PropTypes.string.isRequired,\n autofocus: PropTypes.bool,\n icon: PropTypes.node,\n onCopy: PropTypes.func,\n}\n\nAddressField.defaultProps = {\n autofocus: true,\n}\n\nexport default AddressField\n"],"names":["HEIGHT","GU","IDENTICON_SIZE","AddressField","React","forwardRef","ref","address","autofocus","icon","onCopy","props","TextCopy","propTypes","PropTypes","string","isRequired","bool","node","func","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAMA,MAAM,GAAG,IAAIC,YAAnB;AACA,IAAMC,cAAc,GAAG,IAAID,YAA3B;;;;;;;;;IAEME,YAAY,gBAAGC,yBAAK,CAACC,UAAN,CAAiB,SAASF,YAAT,OAEpCG,GAFoC,EAGpC;AAAA,MAFEC,OAEF,QAFEA,OAEF;AAAA,MAFWC,SAEX,QAFWA,SAEX;AAAA,MAFsBC,IAEtB,QAFsBA,IAEtB;AAAA,MAF4BC,MAE5B,QAF4BA,MAE5B;AAAA,MAFuCC,KAEvC;;AACA,sBACEP,wCAACQ,gBAAD;AACE,IAAA,GAAG,EAAEN,GADP;AAEE,IAAA,SAAS,EACPG,IAAI,iBACFL,kEACEA;AACE,MAAA,OAAO,EAAEG,OADX;AAEE,MAAA,MAAM,EAAEG,MAFV;AAGE,MAAA,KAAK,EAAE,CAHT;AAAA,YAKuB,CAACV,MAAM,GAAG,CAAV,IAAeE;AALtC,MADF,CAJN;AAiBE,IAAA,SAAS,EAAEM,SAjBb;AAkBE,IAAA,KAAK,EAAED;AAlBT,IADF;AAsBD,CA1BoB;AA4BrBJ,YAAY,CAACU,SAAb,GAAyB;AACvBN,EAAAA,OAAO,EAAEO,eAAS,CAACC,MAAV,CAAiBC,UADH;AAEvBR,EAAAA,SAAS,EAAEM,eAAS,CAACG,IAFE;AAGvBR,EAAAA,IAAI,EAAEK,eAAS,CAACI,IAHO;AAIvBR,EAAAA,MAAM,EAAEI,eAAS,CAACK;AAJK,CAAzB;AAOAhB,YAAY,CAACiB,YAAb,GAA4B;AAC1BZ,EAAAA,SAAS,EAAE;AADe,CAA5B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/AppBadge.js b/packages/govern-console/public/aragon-ui/AppBadge.js new file mode 100644 index 000000000..cd30f8d48 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AppBadge.js @@ -0,0 +1,203 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +require('./css.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var web3 = require('./web3-4e58c255.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconCopy.js'); +require('./IconCross.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +require('./Link.js'); +require('./TextInput.js'); +require('./ToastHub.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +require('./TextCopy.js'); +require('./EthIdenticon.js'); +require('./AddressField.js'); +var useImageExists = require('./useImageExists.js'); +var BadgeBase = require('./BadgeBase.js'); +var BadgePopoverActionType = require('./BadgePopoverActionType.js'); +var Tag = require('./Tag.js'); +require('./proptypes-9c58a90f.js'); +require('./Popover.js'); +require('./BadgePopoverBase.js'); +var AppBadgePopover = require('./AppBadgePopover.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var iconDefaultSvg = "data:image/svg+xml,%3Csvg%20width%3D%2256%22%20height%3D%2256%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M56%200H0v56h56V0z%22%20fill%3D%22url%28%23paint0_linear%29%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M28.363%2010.74L13.04%2019.56v17.645l15.322%208.821%2015.323-8.821V19.56l-15.322-8.82z%22%20fill%3D%22url%28%23paint1_linear%29%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M28.363%2046.027V10.74l15.323%208.821v17.645l-15.323%208.821z%22%20fill%3D%22%2373F0F8%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M13.041%2019.561l15.322-8.822%2015.323%208.822-15.323%208.426-15.322-8.425z%22%20fill%3D%22url%28%23paint2_linear%29%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%2256%22%20y2%3D%2253.105%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2333BCE6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2348E2E5%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear%22%20x1%3D%2214.618%22%20y1%3D%2219.282%22%20x2%3D%2231.423%22%20y2%3D%2243.942%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%232597B7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2339C5E1%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear%22%20x1%3D%2214.799%22%20y1%3D%2219.363%22%20x2%3D%2243.686%22%20y2%3D%2219.363%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%233DCEE5%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2348E2E6%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"; + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "AppBadge___StyledDiv", + componentId: "sc-5gkmrm-0" +})(["display:grid;align-items:center;grid-template-columns:auto 1fr;"]); + +var _StyledSpan = _styled__default['default']("span").withConfig({ + displayName: "AppBadge___StyledSpan", + componentId: "sc-5gkmrm-1" +})(["display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]); + +var _StyledTag = _styled__default['default'](Tag.default).withConfig({ + displayName: "AppBadge___StyledTag", + componentId: "sc-5gkmrm-2" +})(["margin-left:", "px;"], function (p) { + return p._css; +}); + +var AppBadge = /*#__PURE__*/React__default['default'].memo(function AppBadge(_ref) { + var appAddress = _ref.appAddress, + badgeOnly = _ref.badgeOnly, + compact = _ref.compact, + iconSrc = _ref.iconSrc, + identifier = _ref.identifier, + label = _ref.label, + labelStyle = _ref.labelStyle, + networkType = _ref.networkType, + popoverAction = _ref.popoverAction, + popoverTitle = _ref.popoverTitle, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["appAddress", "badgeOnly", "compact", "iconSrc", "identifier", "label", "labelStyle", "networkType", "popoverAction", "popoverTitle"]); + + var badgeRef = React.useRef(null); + + var _useState = React.useState(false), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + opened = _useState2[0], + setOpened = _useState2[1]; + + var handleClose = React.useCallback(function () { + return setOpened(false); + }, []); + var handleOpen = React.useCallback(function () { + return setOpened(true); + }, []); + var isValidAddress = web3.isAddress(appAddress); + + if (!badgeOnly && !isValidAddress) { + environment.warn("AppBadge: provided invalid app address (".concat(appAddress, ")")); + } + + popoverTitle = popoverTitle || /*#__PURE__*/React__default['default'].createElement(_StyledDiv, null, /*#__PURE__*/React__default['default'].createElement(_StyledSpan, null, label), identifier && /*#__PURE__*/React__default['default'].createElement(_StyledTag, { + mode: "identifier", + _css: 1 * constants.GU + }, identifier)); + return /*#__PURE__*/React__default['default'].createElement(BadgeBase.default, { + badgeRef: badgeRef, + compact: compact, + disabled: badgeOnly, + icon: /*#__PURE__*/React__default['default'].createElement(useImageExists.ImageExists, { + src: iconSrc + }, function (_ref2) { + var displayFallback = _ref2.displayFallback, + exists = _ref2.exists; + return /*#__PURE__*/React__default['default'].createElement(Icon, { + compact: compact, + src: exists ? iconSrc : iconDefaultSvg + }); + }), + label: label, + labelStyle: labelStyle, + onClick: isValidAddress ? handleOpen : undefined, + title: appAddress + }, function (popoverDisabled) { + return !popoverDisabled && appAddress && /*#__PURE__*/React__default['default'].createElement(AppBadgePopover.default, { + appAddress: appAddress, + iconFallbackSrc: iconDefaultSvg, + iconSrc: iconSrc, + networkType: networkType, + onClose: handleClose, + opener: badgeRef.current, + popoverAction: popoverAction, + title: popoverTitle, + visible: opened + }); + }); +}); +AppBadge.propTypes = { + appAddress: index.propTypes.string, + badgeOnly: index.propTypes.bool, + compact: index.propTypes.bool, + iconSrc: index.propTypes.string, + identifier: index.propTypes.string, + label: index.propTypes.string.isRequired, + labelStyle: index.propTypes.string, + networkType: index.propTypes.string, + popoverAction: BadgePopoverActionType.default, + popoverTitle: index.propTypes.node +}; + +var _StyledSpan2 = _styled__default['default']("span").withConfig({ + displayName: "AppBadge___StyledSpan2", + componentId: "sc-5gkmrm-3" +})(["flex-shrink:0;width:", "px;height:", "px;margin-right:", "px;border-radius:", ";background-size:contain;background-position:50% 50%;background-repeat:no-repeat;background-image:url(", ");"], function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +var Icon = function Icon(_ref3) { + var compact = _ref3.compact, + src = _ref3.src, + props = objectWithoutProperties.objectWithoutProperties(_ref3, ["compact", "src"]); + + var size = (compact ? 2.25 : 3) * constants.GU; + return /*#__PURE__*/React__default['default'].createElement(_StyledSpan2, _extends._extends_1({}, props, { + _css2: size, + _css3: size, + _css4: 1 * constants.GU, + _css5: compact ? "".concat(constants.RADIUS, "px") : 0, + _css6: src + })); +}; + +Icon.propTypes = { + compact: index.propTypes.bool, + src: index.propTypes.string.isRequired +}; + +exports.default = AppBadge; +//# sourceMappingURL=AppBadge.js.map diff --git a/packages/govern-console/public/aragon-ui/AppBadge.js.map b/packages/govern-console/public/aragon-ui/AppBadge.js.map new file mode 100644 index 000000000..2bc4ba4a6 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AppBadge.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AppBadge.js","sources":["../src/components/AppBadge/assets/app-default.svg","../src/components/AppBadge/AppBadge.js"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2256%22%20height%3D%2256%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M56%200H0v56h56V0z%22%20fill%3D%22url%28%23paint0_linear%29%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M28.363%2010.74L13.04%2019.56v17.645l15.322%208.821%2015.323-8.821V19.56l-15.322-8.82z%22%20fill%3D%22url%28%23paint1_linear%29%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M28.363%2046.027V10.74l15.323%208.821v17.645l-15.323%208.821z%22%20fill%3D%22%2373F0F8%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M13.041%2019.561l15.322-8.822%2015.323%208.822-15.323%208.426-15.322-8.425z%22%20fill%3D%22url%28%23paint2_linear%29%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%2256%22%20y2%3D%2253.105%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2333BCE6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2348E2E5%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear%22%20x1%3D%2214.618%22%20y1%3D%2219.282%22%20x2%3D%2231.423%22%20y2%3D%2243.942%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%232597B7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2339C5E1%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear%22%20x1%3D%2214.799%22%20y1%3D%2219.363%22%20x2%3D%2243.686%22%20y2%3D%2219.363%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%233DCEE5%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2348E2E6%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\"","import React, { useCallback, useRef, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { ImageExists } from '../../hooks'\nimport { GU, RADIUS } from '../../style'\nimport { isAddress, warn } from '../../utils'\nimport BadgeBase from '../BadgeBase/BadgeBase'\nimport BadgePopoverActionType from '../BadgeBase/BadgePopoverActionType'\nimport Tag from '../Tag/Tag'\nimport AppBadgePopover from './AppBadgePopover'\nimport iconDefaultSvg from './assets/app-default.svg'\n\nconst AppBadge = React.memo(function AppBadge({\n appAddress,\n badgeOnly,\n compact,\n iconSrc,\n identifier,\n label,\n labelStyle,\n networkType,\n popoverAction,\n popoverTitle,\n ...props\n}) {\n const badgeRef = useRef(null)\n const [opened, setOpened] = useState(false)\n const handleClose = useCallback(() => setOpened(false), [])\n const handleOpen = useCallback(() => setOpened(true), [])\n\n const isValidAddress = isAddress(appAddress)\n if (!badgeOnly && !isValidAddress) {\n warn(`AppBadge: provided invalid app address (${appAddress})`)\n }\n\n popoverTitle = popoverTitle || (\n \n \n {label}\n \n {identifier && (\n \n {identifier}\n \n )}\n \n )\n\n return (\n \n {({ displayFallback, exists }) => (\n \n )}\n \n }\n label={label}\n labelStyle={labelStyle}\n onClick={isValidAddress ? handleOpen : undefined}\n title={appAddress}\n >\n {popoverDisabled =>\n !popoverDisabled &&\n appAddress && (\n \n )\n }\n \n )\n})\nAppBadge.propTypes = {\n appAddress: PropTypes.string,\n badgeOnly: PropTypes.bool,\n compact: PropTypes.bool,\n iconSrc: PropTypes.string,\n identifier: PropTypes.string,\n label: PropTypes.string.isRequired,\n labelStyle: PropTypes.string,\n networkType: PropTypes.string,\n popoverAction: BadgePopoverActionType,\n popoverTitle: PropTypes.node,\n}\n\nconst Icon = ({ compact, src, ...props }) => {\n const size = (compact ? 2.25 : 3) * GU\n return (\n \n )\n}\nIcon.propTypes = {\n compact: PropTypes.bool,\n src: PropTypes.string.isRequired,\n}\n\nexport default AppBadge\n"],"names":["AppBadge","React","memo","appAddress","badgeOnly","compact","iconSrc","identifier","label","labelStyle","networkType","popoverAction","popoverTitle","props","badgeRef","useRef","useState","opened","setOpened","handleClose","useCallback","handleOpen","isValidAddress","isAddress","warn","GU","BadgeBase","ImageExists","displayFallback","exists","iconDefaultSvg","undefined","popoverDisabled","AppBadgePopover","current","propTypes","PropTypes","string","bool","isRequired","BadgePopoverActionType","node","Icon","src","size","RADIUS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAe;;;;;;;;;;;;;;;;;;;ICWTA,QAAQ,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,QAAT,OAYzB;AAAA,MAXDG,UAWC,QAXDA,UAWC;AAAA,MAVDC,SAUC,QAVDA,SAUC;AAAA,MATDC,OASC,QATDA,OASC;AAAA,MARDC,OAQC,QARDA,OAQC;AAAA,MAPDC,UAOC,QAPDA,UAOC;AAAA,MANDC,KAMC,QANDA,KAMC;AAAA,MALDC,UAKC,QALDA,UAKC;AAAA,MAJDC,WAIC,QAJDA,WAIC;AAAA,MAHDC,aAGC,QAHDA,aAGC;AAAA,MAFDC,YAEC,QAFDA,YAEC;AAAA,MADEC,KACF;;AACD,MAAMC,QAAQ,GAAGC,YAAM,CAAC,IAAD,CAAvB;;AADC,kBAE2BC,cAAQ,CAAC,KAAD,CAFnC;AAAA;AAAA,MAEMC,MAFN;AAAA,MAEcC,SAFd;;AAGD,MAAMC,WAAW,GAAGC,iBAAW,CAAC;AAAA,WAAMF,SAAS,CAAC,KAAD,CAAf;AAAA,GAAD,EAAyB,EAAzB,CAA/B;AACA,MAAMG,UAAU,GAAGD,iBAAW,CAAC;AAAA,WAAMF,SAAS,CAAC,IAAD,CAAf;AAAA,GAAD,EAAwB,EAAxB,CAA9B;AAEA,MAAMI,cAAc,GAAGC,cAAS,CAACpB,UAA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MAHY;AAAA,GAhBlB,CADF;AAmCD,CAzFgB;AA0FjBjB,QAAQ,CAACmC,SAAT,GAAqB;AACnBhC,EAAAA,UAAU,EAAEiC,eAAS,CAACC,MADH;AAEnBjC,EAAAA,SAAS,EAAEgC,eAAS,CAACE,IAFF;AAGnBjC,EAAAA,OAAO,EAAE+B,eAAS,CAACE,IAHA;AAInBhC,EAAAA,OAAO,EAAE8B,eAAS,CAACC,MAJA;AAKnB9B,EAAAA,UAAU,EAAE6B,eAAS,CAACC,MALH;AAMnB7B,EAAAA,KAAK,EAAE4B,eAAS,CAACC,MAAV,CAAiBE,UANL;AAOnB9B,EAAAA,UAAU,EAAE2B,eAAS,CAACC,MAPH;AAQnB3B,EAAAA,WAAW,EAAE0B,eAAS,CAACC,MARJ;AASnB1B,EAAAA,aAAa,EAAE6B,8BATI;AAUnB5B,EAAAA,YAAY,EAAEwB,eAAS,CAACK;AAVL,CAArB;;;;;;;;;;;;;;;;;AAaA,IAAMC,IAAI,GAAG,SAAPA,IAAO,QAAgC;AAAA,MAA7BrC,OAA6B,SAA7BA,OAA6B;AAAA,MAApBsC,GAAoB,SAApBA,GAAoB;AAAA,MAAZ9B,KAAY;;AAC3C,MAAM+B,IAAI,GAAG,CAACvC,OAAO,GAAG,IAAH,GAAU,CAAlB,IAAuBoB,YAApC;AACA,sBACExB,8EAYMY,KAZN;AAAA,WAGa+B,IAHb;AAAA,WAIcA,IAJd;AAAA,WAKoB,IAAInB,YALxB;AAAA,WAMqBpB,OAAO,aAAMwC,gBAAN,UAAmB,CAN/C;AAAA,WAU4BF;AAV5B,KADF;AAgBD,CAlBD;;AAmBAD,IAAI,CAACP,SAAL,GAAiB;AACf9B,EAAAA,OAAO,EAAE+B,eAAS,CAACE,IADJ;AAEfK,EAAAA,GAAG,EAAEP,eAAS,CAACC,MAAV,CAAiBE;AAFP,CAAjB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/AppBadgePopover.js b/packages/govern-console/public/aragon-ui/AppBadgePopover.js new file mode 100644 index 000000000..783f0188c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AppBadgePopover.js @@ -0,0 +1,133 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var web3 = require('./web3-4e58c255.js'); +require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconCopy.js'); +require('./IconCross.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +var Link = require('./Link.js'); +require('./TextInput.js'); +require('./ToastHub.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +require('./TextCopy.js'); +require('./EthIdenticon.js'); +var AddressField = require('./AddressField.js'); +var useImageExists = require('./useImageExists.js'); +var BadgePopoverActionType = require('./BadgePopoverActionType.js'); +var proptypes = require('./proptypes-9c58a90f.js'); +require('./Popover.js'); +var BadgePopoverBase = require('./BadgePopoverBase.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var AppBadgePopover = /*#__PURE__*/React__default['default'].memo(function AppBadgePopover(_ref) { + var appAddress = _ref.appAddress, + iconFallbackSrc = _ref.iconFallbackSrc, + iconSrc = _ref.iconSrc, + networkType = _ref.networkType, + onClose = _ref.onClose, + opener = _ref.opener, + popoverAction = _ref.popoverAction, + title = _ref.title, + visible = _ref.visible; + var etherscanUrl = web3.blockExplorerUrl('address', appAddress, { + networkType: networkType + }); + return /*#__PURE__*/React__default['default'].createElement(BadgePopoverBase.default, { + addressField: /*#__PURE__*/React__default['default'].createElement(useImageExists.ImageExists, { + src: iconSrc + }, function (_ref2) { + var exists = _ref2.exists, + displayFallback = _ref2.displayFallback; + return /*#__PURE__*/React__default['default'].createElement(AddressField.default, { + address: appAddress, + icon: /*#__PURE__*/React__default['default'].createElement(Icon, { + src: exists ? iconSrc : iconFallbackSrc + }) + }); + }), + link: etherscanUrl && /*#__PURE__*/React__default['default'].createElement(Link.default, { + href: etherscanUrl + }, "See on Etherscan"), + onClose: onClose, + opener: opener, + popoverAction: popoverAction, + title: title, + visible: visible + }); +}); +AppBadgePopover.propTypes = { + appAddress: proptypes.ExtendedPropTypes.string.isRequired, + iconFallbackSrc: proptypes.ExtendedPropTypes.string, + iconSrc: proptypes.ExtendedPropTypes.string, + networkType: proptypes.ExtendedPropTypes.string, + onClose: proptypes.ExtendedPropTypes.func, + opener: proptypes.ExtendedPropTypes._element, + popoverAction: BadgePopoverActionType.default, + title: proptypes.ExtendedPropTypes.node.isRequired, + visible: proptypes.ExtendedPropTypes.bool +}; + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "AppBadgePopover___StyledDiv", + componentId: "cornse-0" +})(["width:100%;height:100%;background-size:contain;background-position:50% 50%;background-repeat:no-repeat;background-image:url(", ");"], function (p) { + return p._css; +}); + +function Icon(_ref3) { + var src = _ref3.src, + props = objectWithoutProperties.objectWithoutProperties(_ref3, ["src"]); + + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends._extends_1({}, props, { + _css: src + })); +} + +Icon.propTypes = { + src: proptypes.ExtendedPropTypes.string.isRequired +}; + +exports.default = AppBadgePopover; +//# sourceMappingURL=AppBadgePopover.js.map diff --git a/packages/govern-console/public/aragon-ui/AppBadgePopover.js.map b/packages/govern-console/public/aragon-ui/AppBadgePopover.js.map new file mode 100644 index 000000000..0c18abe98 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AppBadgePopover.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AppBadgePopover.js","sources":["../src/components/AppBadge/AppBadgePopover.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from '../../proptypes'\nimport { ImageExists } from '../../hooks'\nimport { blockExplorerUrl } from '../../utils'\nimport AddressField from '../AddressField/AddressField'\nimport BadgePopoverBase from '../BadgeBase/BadgePopoverBase'\nimport BadgePopoverActionType from '../BadgeBase/BadgePopoverActionType'\nimport Link from '../Link/Link'\n\nconst AppBadgePopover = React.memo(function AppBadgePopover({\n appAddress,\n iconFallbackSrc,\n iconSrc,\n networkType,\n onClose,\n opener,\n popoverAction,\n title,\n visible,\n}) {\n const etherscanUrl = blockExplorerUrl('address', appAddress, { networkType })\n return (\n \n {({ exists, displayFallback }) => (\n }\n />\n )}\n \n }\n link={etherscanUrl && See on Etherscan}\n onClose={onClose}\n opener={opener}\n popoverAction={popoverAction}\n title={title}\n visible={visible}\n />\n )\n})\n\nAppBadgePopover.propTypes = {\n appAddress: PropTypes.string.isRequired,\n iconFallbackSrc: PropTypes.string,\n iconSrc: PropTypes.string,\n networkType: PropTypes.string,\n onClose: PropTypes.func,\n opener: PropTypes._element,\n popoverAction: BadgePopoverActionType,\n title: PropTypes.node.isRequired,\n visible: PropTypes.bool,\n}\n\nfunction Icon({ src, ...props }) {\n return (\n \n )\n}\n\nIcon.propTypes = {\n src: PropTypes.string.isRequired,\n}\n\nexport default AppBadgePopover\n"],"names":["AppBadgePopover","React","memo","appAddress","iconFallbackSrc","iconSrc","networkType","onClose","opener","popoverAction","title","visible","etherscanUrl","blockExplorerUrl","BadgePopoverBase","ImageExists","exists","displayFallback","AddressField","Link","propTypes","PropTypes","string","isRequired","func","_element","BadgePopoverActionType","node","bool","Icon","src","props"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASMA,eAAe,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,eAAT,OAUhC;AAAA,MATDG,UASC,QATDA,UASC;AAAA,MARDC,eAQC,QARDA,eAQC;AAAA,MAPDC,OAOC,QAPDA,OAOC;AAAA,MANDC,WAMC,QANDA,WAMC;AAAA,MALDC,OAKC,QALDA,OAKC;AAAA,MAJDC,MAIC,QAJDA,MAIC;AAAA,MAHDC,aAGC,QAHDA,aAGC;AAAA,MAFDC,KAEC,QAFDA,KAEC;AAAA,MADDC,OACC,QADDA,OACC;AACD,MAAMC,YAAY,GAAGC,qBAAgB,CAAC,SAAD,EAAYV,UAAZ,EAAwB;AAAEG,IAAAA,WAAW,EAAXA;AAAF,GAAxB,CAArC;AACA,sBACEL,wCAACa,wBAAD;AACE,IAAA,YAAY,eACVb,wCAACc,0BAAD;AAAa,MAAA,GAAG,EAAEV;AAAlB,OACG;AAAA,UAAGW,MAAH,SAAGA,MAAH;AAAA,UAAWC,eAAX,SAAWA,eAAX;AAAA,0BACChB,wCAACiB,oBAAD;AACE,QAAA,OAAO,EAAEf,UADX;AAEE,QAAA,IAAI,eAAEF,wCAAC,IAAD;AAAM,UAAA,GAAG,EAAEe,MAAM,GAAGX,OAAH,GAAaD;AAA9B;AAFR,QADD;AAAA,KADH,CAFJ;AAWE,IAAA,IAAI,EAAEQ,YAAY,iBAAIX,wCAACkB,YAAD;AAAM,MAAA,IAAI,EAAEP;AAAZ,0BAXxB;AAYE,IAAA,OAAO,EAAEL,OAZX;AAaE,IAAA,MAAM,EAAEC,MAbV;AAcE,IAAA,aAAa,EAAEC,aAdjB;AAeE,IAAA,KAAK,EAAEC,KAfT;AAgBE,IAAA,OAAO,EAAEC;AAhBX,IADF;AAoBD,CAhCuB;AAkCxBX,eAAe,CAACoB,SAAhB,GAA4B;AAC1BjB,EAAAA,UAAU,EAAEkB,2BAAS,CAACC,MAAV,CAAiBC,UADH;AAE1BnB,EAAAA,eAAe,EAAEiB,2BAAS,CAACC,MAFD;AAG1BjB,EAAAA,OAAO,EAAEgB,2BAAS,CAACC,MAHO;AAI1BhB,EAAAA,WAAW,EAAEe,2BAAS,CAACC,MAJG;AAK1Bf,EAAAA,OAAO,EAAEc,2BAAS,CAACG,IALO;AAM1BhB,EAAAA,MAAM,EAAEa,2BAAS,CAACI,QANQ;AAO1BhB,EAAAA,aAAa,EAAEiB,8BAPW;AAQ1BhB,EAAAA,KAAK,EAAEW,2BAAS,CAACM,IAAV,CAAeJ,UARI;AAS1BZ,EAAAA,OAAO,EAAEU,2BAAS,CAACO;AATO,CAA5B;;;;;;;;;AAYA,SAASC,IAAT,QAAiC;AAAA,MAAjBC,GAAiB,SAAjBA,GAAiB;AAAA,MAATC,KAAS;;AAC/B,sBACE9B,4EASM8B,KATN;AAAA,UAO4BD;AAP5B,KADF;AAaD;;AAEDD,IAAI,CAACT,SAAL,GAAiB;AACfU,EAAAA,GAAG,EAAET,2BAAS,CAACC,MAAV,CAAiBC;AADP,CAAjB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/AppBar.js b/packages/govern-console/public/aragon-ui/AppBar.js new file mode 100644 index 000000000..c190d9562 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AppBar.js @@ -0,0 +1,233 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +var getPrototypeOf = require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +var css = require('./css.js'); +var miscellaneous = require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./url.js'); +var springs = require('./springs.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index$1 = require('./index-4def0554.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); +require('./getDisplayName-7f913e84.js'); +var PublicUrl = require('./PublicUrl-7d4b6d6d.js'); +var Text = require('./Text.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var chevronSvg = "data:image/svg+xml,%3Csvg%20width%3D%227%22%20height%3D%2212%22%20viewBox%3D%220%200%207%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M.446%2012a.512.512%200%2001-.172-.03.422.422%200%2001-.146-.087A.37.37%200%20010%2011.6a.37.37%200%2001.128-.281l5.826-5.361L.217.692A.376.376%200%2001.089.405.378.378%200%2001.217.117.444.444%200%2001.529%200c.123%200%20.228.04.313.117l6.03%205.56A.37.37%200%20017%205.96a.37.37%200%2001-.128.281l-6.12%205.643A.477.477%200%2001.446%2012z%22%20fill%3D%22%2300CBE6%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E"; + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf.getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf.getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return getPrototypeOf.possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +var BAR_HEIGHT = 64; + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "AppBar___StyledDiv", + componentId: "sc-11q0awo-0" +})(["overflow:hidden;display:flex;flex-direction:column;width:100%;min-height:", "px;background:", ";", ";padding-bottom:1px;&:after{content:'';position:absolute;left:0;right:0;bottom:0;border-bottom:1px solid ", ";}"], BAR_HEIGHT, function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "AppBar___StyledDiv2", + componentId: "sc-11q0awo-1" +})(["display:flex;align-items:center;justify-content:flex-start;width:100%;height:", "px;"], function (p) { + return p._css4; +}); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "AppBar___StyledDiv3", + componentId: "sc-11q0awo-2" +})(["display:flex;align-items:center;height:100%;padding-left:", "px;"], function (p) { + return p._css5; +}); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "AppBar___StyledDiv4", + componentId: "sc-11q0awo-3" +})(["display:flex;align-items:center;height:100%;margin-left:auto;padding-right:", "px;"], function (p) { + return p._css6; +}); + +var AppBar = /*#__PURE__*/function (_React$Component) { + getPrototypeOf.inherits(AppBar, _React$Component); + + var _super = _createSuper(AppBar); + + function AppBar() { + var _this; + + getPrototypeOf.classCallCheck(this, AppBar); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + defineProperty.defineProperty(getPrototypeOf.assertThisInitialized(_this), "state", { + tabsHeight: 0 + }); + + defineProperty.defineProperty(getPrototypeOf.assertThisInitialized(_this), "_tabsRef", /*#__PURE__*/React__default['default'].createRef()); + + return _this; + } + + getPrototypeOf.createClass(AppBar, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.updateTabsHeight(); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + if (Boolean(prevProps.tabs) !== Boolean(this.props.tabs)) { + this.updateTabsHeight(); + } + } + }, { + key: "updateTabsHeight", + value: function updateTabsHeight() { + var el = this._tabsRef.current; + + if (el) { + this.setState({ + tabsHeight: el.clientHeight + }); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var tabsHeight = this.state.tabsHeight; + + var _this$props = this.props, + children = _this$props.children, + endContent = _this$props.endContent, + onTitleClick = _this$props.onTitleClick, + padding = _this$props.padding, + tabs = _this$props.tabs, + title = _this$props.title, + theme = _this$props.theme, + props = objectWithoutProperties.objectWithoutProperties(_this$props, ["children", "endContent", "onTitleClick", "padding", "tabs", "title", "theme"]); + + return /*#__PURE__*/React__default['default'].createElement(index$1.i, { + name: "AppBar" + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css: theme.surface, + _css2: css.unselectable(), + _css3: theme.border + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, _extends._extends_1({}, props, { + _css4: BAR_HEIGHT - 1 + }), title && /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, { + _css5: padding + }, /*#__PURE__*/React__default['default'].createElement(AppBarTitle, { + chevron: Boolean(children), + clickable: Boolean(onTitleClick), + onClick: onTitleClick + }, typeof title === 'string' ? /*#__PURE__*/React__default['default'].createElement(Text.default, { + size: "xxlarge", + deprecationNotice: false + }, title) : title)), children, endContent && /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, { + _css6: padding + }, endContent)), /*#__PURE__*/React__default['default'].createElement(web.Transition, { + items: tabs, + from: { + opacity: 0, + height: 0 + }, + enter: { + opacity: 1, + height: tabsHeight || 'auto' + }, + leave: { + opacity: 0, + height: 0 + }, + initial: null, + config: springs.springs.smooth, + native: true + }, function (tabs) { + return tabs && function (styles) { + return /*#__PURE__*/React__default['default'].createElement(TabsWrapper, { + style: styles + }, /*#__PURE__*/React__default['default'].createElement("div", { + ref: _this2._tabsRef + }, tabs)); + }; + }))); + } + }]); + + return AppBar; +}(React__default['default'].Component); + +defineProperty.defineProperty(AppBar, "propTypes", { + children: index.propTypes.node, + endContent: index.propTypes.node, + onTitleClick: index.propTypes.func, + padding: index.propTypes.number, + tabs: index.propTypes.element, + theme: index.propTypes.object, + title: index.propTypes.node +}); + +defineProperty.defineProperty(AppBar, "defaultProps", { + onTitleClick: miscellaneous.noop, + padding: 30, + title: '' +}); + +var AppBarTitle = PublicUrl.PublicUrl.hocWrap(_styled__default['default'].h1.withConfig({ + displayName: "AppBar__AppBarTitle", + componentId: "sc-11q0awo-4" +})(["padding-right:20px;margin-right:calc(20px - 7px);white-space:nowrap;background-image:", ";background-position:100% 50%;background-repeat:no-repeat;cursor:", ";"], function (_ref) { + var chevron = _ref.chevron; + return chevron ? _styled.css(["url(", ")"], PublicUrl.PublicUrl.styledUrl(chevronSvg)) : 'none'; +}, function (_ref2) { + var clickable = _ref2.clickable; + return clickable ? 'pointer' : 'default'; +})); +var TabsWrapper = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "AppBar__TabsWrapper", + componentId: "sc-11q0awo-5" +})(["position:relative;z-index:1;"]); +function AppBar$1 (props) { + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(AppBar, _extends._extends_1({}, props, { + theme: theme + })); +} + +exports.default = AppBar$1; +//# sourceMappingURL=AppBar.js.map diff --git a/packages/govern-console/public/aragon-ui/AppBar.js.map b/packages/govern-console/public/aragon-ui/AppBar.js.map new file mode 100644 index 000000000..730f81b78 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AppBar.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AppBar.js","sources":["../src/components/AppView/assets/chevron.svg","../src/components/AppView/AppBar.js"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%227%22%20height%3D%2212%22%20viewBox%3D%220%200%207%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M.446%2012a.512.512%200%2001-.172-.03.422.422%200%2001-.146-.087A.37.37%200%20010%2011.6a.37.37%200%2001.128-.281l5.826-5.361L.217.692A.376.376%200%2001.089.405.378.378%200%2001.217.117.444.444%200%2001.529%200c.123%200%20.228.04.313.117l6.03%205.56A.37.37%200%20017%205.96a.37.37%200%2001-.128.281l-6.12%205.643A.477.477%200%2001.446%2012z%22%20fill%3D%22%2300CBE6%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E\"","import React from 'react'\nimport PropTypes from 'prop-types'\nimport styled, { css } from 'styled-components'\nimport { Transition, animated } from 'react-spring'\nimport { Inside } from 'use-inside'\nimport { useTheme } from '../../theme'\nimport { PublicUrl } from '../../providers/PublicUrl'\nimport { springs } from '../../style'\nimport { noop, unselectable } from '../../utils'\nimport Text from '../Text/Text'\n\nimport chevronSvg from './assets/chevron.svg'\n\n// The app bar height includes its border.\nconst BAR_HEIGHT = 64\n\nclass AppBar extends React.Component {\n static propTypes = {\n children: PropTypes.node,\n endContent: PropTypes.node,\n onTitleClick: PropTypes.func,\n padding: PropTypes.number,\n tabs: PropTypes.element,\n theme: PropTypes.object,\n title: PropTypes.node,\n }\n static defaultProps = {\n onTitleClick: noop,\n padding: 30,\n title: '',\n }\n\n state = {\n tabsHeight: 0,\n }\n _tabsRef = React.createRef()\n\n componentDidMount() {\n this.updateTabsHeight()\n }\n componentDidUpdate(prevProps) {\n if (Boolean(prevProps.tabs) !== Boolean(this.props.tabs)) {\n this.updateTabsHeight()\n }\n }\n updateTabsHeight() {\n const el = this._tabsRef.current\n if (el) {\n this.setState({ tabsHeight: el.clientHeight })\n }\n }\n render() {\n const { tabsHeight } = this.state\n const {\n children,\n endContent,\n onTitleClick,\n padding,\n tabs,\n title,\n theme,\n ...props\n } = this.props\n return (\n \n \n \n {title && (\n \n \n {typeof title === 'string' ? (\n \n {title}\n \n ) : (\n title\n )}\n \n \n )}\n {children}\n {endContent && (\n \n {endContent}\n \n )}\n \n \n {tabs =>\n tabs &&\n (styles => (\n \n
    {tabs}
    \n
    \n ))\n }\n \n \n
    \n )\n }\n}\n\nconst AppBarTitle = PublicUrl.hocWrap(styled.h1`\n padding-right: 20px;\n margin-right: calc(20px - 7px);\n white-space: nowrap;\n background-image: ${({ chevron }) =>\n chevron ? css`url(${PublicUrl.styledUrl(chevronSvg)})` : 'none'};\n background-position: 100% 50%;\n background-repeat: no-repeat;\n cursor: ${({ clickable }) => (clickable ? 'pointer' : 'default')};\n`)\n\nconst TabsWrapper = styled(animated.div)`\n position: relative;\n z-index: 1;\n`\n\nexport default function(props) {\n const theme = useTheme()\n return \n}\n"],"names":["BAR_HEIGHT","AppBar","tabsHeight","React","createRef","updateTabsHeight","prevProps","Boolean","tabs","props","el","_tabsRef","current","setState","clientHeight","state","children","endContent","onTitleClick","padding","title","theme","Inside","surface","unselectable","border","Text","Transition","opacity","height","springs","smooth","styles","Component","PropTypes","node","func","number","element","object","noop","AppBarTitle","PublicUrl","hocWrap","styled","h1","chevron","css","styledUrl","chevronSvg","clickable","TabsWrapper","animated","div","useTheme"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iBAAe;;;;;;ACcf,IAAMA,UAAU,GAAG,EAAnB;;;;;4NAyD0BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAvDpBC;;;;;;;;;;;;;;;;wFAgBI;AACNC,MAAAA,UAAU,EAAE;AADN;;wGAGGC,yBAAK,CAACC,SAAN;;;;;;;wCAES;AAClB,WAAKC,gBAAL;AACD;;;uCACkBC,WAAW;AAC5B,UAAIC,OAAO,CAACD,SAAS,CAACE,IAAX,CAAP,KAA4BD,OAAO,CAAC,KAAKE,KAAL,CAAWD,IAAZ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,CAAkBC,2BAAM,CAACC,EAAzB;AAAA;AAAA;AAAA,wKAIE;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,SAClBA,OAAO,GAAGC,WAAH,gBAAaL,mBAAS,CAACM,SAAV,CAAoBC,UAApB,CAAb,IAAkD,MADvC;AAAA,CAJF,EAQR;AAAA,MAAGC,SAAH,SAAGA,SAAH;AAAA,SAAoBA,SAAS,GAAG,SAAH,GAAe,SAA5C;AAAA,CARQ,EAApB;AAWA,IAAMC,WAAW,GAAGP,2BAAM,CAACQ,oBAAQ,CAACC,GAAV,CAAT;AAAA;AAAA;AAAA,oCAAjB;AAKe,mBAAS5C,KAAT,EAAgB;AAC7B,MAAMY,KAAK,GAAGiC,cAAQ,EAAtB;AACA,sBAAOnD,wCAAC,MAAD,0BAAYM,KAAZ;AAAmB,IAAA,KAAK,EAAEY;AAA1B,KAAP;AACD;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/AppView.js b/packages/govern-console/public/aragon-ui/AppView.js new file mode 100644 index 000000000..252f80c1d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AppView.js @@ -0,0 +1,115 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +require('./contains-component.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./url.js'); +require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./getDisplayName-7f913e84.js'); +require('./PublicUrl-7d4b6d6d.js'); +require('./ToastHub.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +require('./BaseStyles.js'); +require('./ScrollView.js'); +var Main = require('./Main.js'); +require('./Text.js'); +var AppBar = require('./AppBar.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "AppView___StyledDiv", + componentId: "sm6g80-0" +})(["display:flex;height:", ";flex-direction:column;align-items:stretch;justify-content:stretch;"], function (p) { + return p.height; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "AppView___StyledDiv2", + componentId: "sm6g80-1" +})(["position:relative;z-index:2;flex-shrink:0;"]); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "AppView___StyledDiv3", + componentId: "sm6g80-2" +})(["position:relative;z-index:1;height:100%;overflow:auto;"]); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "AppView___StyledDiv4", + componentId: "sm6g80-3" +})(["display:flex;flex-direction:column;min-height:100%;padding:", ";"], function (_ref) { + var padding = _ref.padding; + return "".concat(padding, "px"); +}); + +function AppView(_ref2) { + var appBar = _ref2.appBar, + children = _ref2.children, + height = _ref2.height, + padding = _ref2.padding, + tabs = _ref2.tabs, + title = _ref2.title, + props = objectWithoutProperties.objectWithoutProperties(_ref2, ["appBar", "children", "height", "padding", "tabs", "title"]); + + // Notify Main that it contains this AppView + Main.useRegisterAppView(); + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends._extends_1({ + height: height + }, props), /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, null, appBar || /*#__PURE__*/React__default['default'].createElement(AppBar.default, { + title: title, + tabs: tabs + })), /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, null, /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, { + padding: padding + }, children))); +} + +AppView.defaultProps = { + title: '', + padding: 30, + height: '100vh' +}; +AppView.propTypes = { + appBar: index.propTypes.element, + title: index.propTypes.string, + children: index.propTypes.node, + padding: index.propTypes.number, + height: index.propTypes.string, + tabs: index.propTypes.element +}; + +exports.default = AppView; +//# sourceMappingURL=AppView.js.map diff --git a/packages/govern-console/public/aragon-ui/AppView.js.map b/packages/govern-console/public/aragon-ui/AppView.js.map new file mode 100644 index 000000000..a757c1e55 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AppView.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AppView.js","sources":["../src/components/AppView/AppView.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport AppBar from './AppBar'\nimport { useRegisterAppView } from '../Main/Main'\n\nfunction AppView({ appBar, children, height, padding, tabs, title, ...props }) {\n // Notify Main that it contains this AppView\n useRegisterAppView()\n\n return (\n p.height};\n flex-direction: column;\n align-items: stretch;\n justify-content: stretch;\n `}\n {...props}\n >\n \n {appBar || }\n \n \n `${padding}px`};\n `}\n >\n {children}\n \n \n \n )\n}\n\nAppView.defaultProps = {\n title: '',\n padding: 30,\n height: '100vh',\n}\n\nAppView.propTypes = {\n appBar: PropTypes.element,\n title: PropTypes.string,\n children: PropTypes.node,\n padding: PropTypes.number,\n height: PropTypes.string,\n tabs: PropTypes.element,\n}\n\nexport default AppView\n"],"names":["p","height","padding","AppView","appBar","children","tabs","title","props","useRegisterAppView","React","AppBar","defaultProps","propTypes","PropTypes","element","string","node","number"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oGAckB,UAAAA,CAAC;AAAA,SAAIA,CAAC,CAACC,MAAN;AAAA;;;;;;;;;;;;;;;yEA8BI;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,mBAAoBA,OAApB;AAAA;;AAvCvB,SAASC,OAAT,QAA+E;AAAA,MAA5DC,MAA4D,SAA5DA,MAA4D;AAAA,MAApDC,QAAoD,SAApDA,QAAoD;AAAA,MAA1CJ,MAA0C,SAA1CA,MAA0C;AAAA,MAAlCC,OAAkC,SAAlCA,OAAkC;AAAA,MAAzBI,IAAyB,SAAzBA,IAAyB;AAAA,MAAnBC,KAAmB,SAAnBA,KAAmB;AAAA,MAATC,KAAS;;AAC7E;AACAC,EAAAA,uBAAkB;AAElB,sBACEC;AACE,IAAA,MAAM,EAAET;AADV,KASMO,KATN,gBAWEE,2DAOGN,MAAM,iBAAIM,wCAACC,cAAD;AAAQ,IAAA,KAAK,EAAEJ,KAAf;AAAsB,IAAA,IAAI,EAAED;AAA5B,IAPb,CAXF,eAoBEI,wEAQEA;AACE,IAAA,OAAO,EAAER;AADX,KASGG,QATH,CARF,CApBF,CADF;AA2CD;;AAEDF,OAAO,CAACS,YAAR,GAAuB;AACrBL,EAAAA,KAAK,EAAE,EADc;AAErBL,EAAAA,OAAO,EAAE,EAFY;AAGrBD,EAAAA,MAAM,EAAE;AAHa,CAAvB;AAMAE,OAAO,CAACU,SAAR,GAAoB;AAClBT,EAAAA,MAAM,EAAEU,eAAS,CAACC,OADA;AAElBR,EAAAA,KAAK,EAAEO,eAAS,CAACE,MAFC;AAGlBX,EAAAA,QAAQ,EAAES,eAAS,CAACG,IAHF;AAIlBf,EAAAA,OAAO,EAAEY,eAAS,CAACI,MAJD;AAKlBjB,EAAAA,MAAM,EAAEa,eAAS,CAACE,MALA;AAMlBV,EAAAA,IAAI,EAAEQ,eAAS,CAACC;AANE,CAApB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/AutoComplete.js b/packages/govern-console/public/aragon-ui/AutoComplete.js new file mode 100644 index 000000000..b0bd0b642 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AutoComplete.js @@ -0,0 +1,268 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +var css = require('./css.js'); +var miscellaneous = require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +var keycodes = require('./keycodes.js'); +require('./constants.js'); +require('./breakpoints.js'); +var springs = require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconCross.js'); +require('./IconSearch.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +require('./TextInput.js'); +var useArrowKeysFocus = require('./useArrowKeysFocus.js'); +var useClickOutside = require('./useClickOutside.js'); +var useFocusLeave = require('./useFocusLeave.js'); +require('./useImageExists.js'); +var useKeyDown = require('./useKeyDown.js'); +var SearchInput = require('./SearchInput.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "AutoComplete___StyledDiv", + componentId: "bpnxyo-0" +})(["position:relative"]); + +function AutoComplete(_ref) { + var forwardedRef = _ref.forwardedRef, + _ref$itemButtonStyles = _ref.itemButtonStyles, + itemButtonStyles = _ref$itemButtonStyles === void 0 ? '' : _ref$itemButtonStyles, + _ref$items = _ref.items, + items = _ref$items === void 0 ? [] : _ref$items, + _ref$onSelect = _ref.onSelect, + onSelect = _ref$onSelect === void 0 ? miscellaneous.noop : _ref$onSelect, + _ref$onChange = _ref.onChange, + onChange = _ref$onChange === void 0 ? miscellaneous.noop : _ref$onChange, + placeholder = _ref.placeholder, + _ref$renderItem = _ref.renderItem, + renderItem = _ref$renderItem === void 0 ? miscellaneous.identity : _ref$renderItem, + required = _ref.required, + value = _ref.value, + wide = _ref.wide; + var ref = forwardedRef; + var uniqueItems = new Set(items); + + var _useState = React.useState(true), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + opened = _useState2[0], + setOpened = _useState2[1]; + + var wrapRef = React.useRef(); + var refs = React.useRef([]); + var handleClose = React.useCallback(function () { + return setOpened(false); + }, []); + var handleFocus = React.useCallback(function () { + return setOpened(true); + }, []); + var handleSelect = React.useCallback(function (item) { + onSelect(item); + setOpened(false); + }, [onSelect]); + var handleInputChange = React.useCallback(function () { + setOpened(true); + onChange.apply(void 0, arguments); + }, [onChange]); + + var _useFocusLeave = useFocusLeave.useFocusLeave(handleClose, wrapRef), + handleFocusLeave = _useFocusLeave.handleFocusLeave; + + var _useArrowKeysFocus = useArrowKeysFocus.useArrowKeysFocus(refs), + highlightedIndex = _useArrowKeysFocus.highlightedIndex, + setHighlightedIndex = _useArrowKeysFocus.setHighlightedIndex; + + useClickOutside.useClickOutside(handleClose, wrapRef); + useKeyDown.useKeyDown(keycodes.KEY_ESC, handleClose); + React.useEffect(function () { + setHighlightedIndex(-1); + }, [opened, items, value, setHighlightedIndex]); + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + ref: wrapRef, + onBlur: handleFocusLeave + }, /*#__PURE__*/React__default['default'].createElement(SearchInput.default, { + ref: ref, + wide: wide, + placeholder: placeholder, + required: required, + onChange: handleInputChange, + onFocus: handleFocus, + value: value + }), /*#__PURE__*/React__default['default'].createElement(web.Transition, { + config: springs.springs.swift, + items: opened && items.length > 0, + from: { + scale: 0.98, + opacity: 0 + }, + enter: { + scale: 1, + opacity: 1 + }, + leave: { + scale: 1, + opacity: 0 + }, + native: true + }, function (show) { + return show && + /* eslint-disable react/prop-types */ + function (_ref2) { + var scale = _ref2.scale, + opacity = _ref2.opacity; + return /*#__PURE__*/React__default['default'].createElement(Items, { + style: { + opacity: opacity, + transform: scale.interpolate(function (t) { + return "scale3d(".concat(t, ",").concat(t, ",1)"); + }) + } + }, Array.from(uniqueItems).map(function (item, index) { + return /*#__PURE__*/React__default['default'].createElement(Item, { + key: item.key || item, + ref: function ref(node) { + return refs.current[index] = node; + }, + index: index, + item: item, + itemButtonStyles: itemButtonStyles, + onHighlight: setHighlightedIndex, + onSelect: handleSelect, + selected: index === highlightedIndex + }, renderItem(item, value)); + })); + }; + } + /* eslint-enable react/prop-types */ + )); +} + +AutoComplete.propTypes = { + forwardedRef: index.propTypes.object, + itemButtonStyles: index.propTypes.string, + items: index.propTypes.array.isRequired, + onSelect: index.propTypes.func.isRequired, + onChange: index.propTypes.func.isRequired, + placeholder: index.propTypes.string, + renderItem: index.propTypes.func, + required: index.propTypes.bool, + value: index.propTypes.string, + wide: index.propTypes.bool +}; +/* eslint-disable react/prop-types */ + +var _StyledLi = _styled__default['default']("li").withConfig({ + displayName: "AutoComplete___StyledLi", + componentId: "bpnxyo-1" +})(["overflow:hidden;cursor:pointer;", ";"], function (p) { + return p._css; +}); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "AutoComplete___StyledButtonBase", + componentId: "bpnxyo-2" +})(["text-align:left;padding:4px 8px;width:100%;border-radius:0;border-left:3px solid transparent;cursor:pointer;", ";", ";"], function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +var Item = /*#__PURE__*/React__default['default'].forwardRef(function Item(_ref3, ref) { + var children = _ref3.children, + index = _ref3.index, + item = _ref3.item, + itemButtonStyles = _ref3.itemButtonStyles, + onHighlight = _ref3.onHighlight, + onSelect = _ref3.onSelect, + selected = _ref3.selected; + var theme = Theme.useTheme(); + var handleClick = React.useCallback(function (event) { + event.preventDefault(); + onSelect(item); + }, [item, onSelect]); + var handleFocusOrMouseOver = React.useCallback(function () { + onHighlight(index); + }, [index, onHighlight]); + return /*#__PURE__*/React__default['default'].createElement(_StyledLi, { + role: "option", + _css: css.unselectable() + }, /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, { + ref: ref, + onClick: handleClick, + onFocus: handleFocusOrMouseOver, + onMouseOver: handleFocusOrMouseOver, + _css2: selected ? "\n outline: 2px solid ".concat(theme.accent, ";\n background: ").concat(theme.surfaceHighlight, ";\n border-left: 3px solid ").concat(theme.accent, ";\n ") : '', + _css3: itemButtonStyles + }, children)); +}); +/* eslint-enable react/prop-types */ + +/* eslint-disable react/prop-types */ + +var _StyledAnimatedUl = _styled__default['default'](web.extendedAnimated.ul).withConfig({ + displayName: "AutoComplete___StyledAnimatedUl", + componentId: "bpnxyo-3" +})(["position:absolute;z-index:2;top:100%;width:100%;padding:8px 0;color:", ";background:", ";border:1px solid ", ";box-shadow:0 4px 4px 0 rgba(0,0,0,0.06);border-radius:3px;padding:0;margin:0;list-style:none;& > li:first-child{border-top-left-radius:3px;border-top-right-radius:3px;}& > li:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;}"], function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +var Items = function Items(props) { + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedUl, _extends._extends_1({ + role: "listbox" + }, props, { + _css4: theme.surfaceContent, + _css5: theme.surface, + _css6: theme.border + })); +}; +/* eslint-enable react/prop-types */ + + +var AutoCompleteMemo = /*#__PURE__*/React__default['default'].memo(AutoComplete); +var AutoComplete$1 = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) { + return /*#__PURE__*/React__default['default'].createElement(AutoCompleteMemo, _extends._extends_1({}, props, { + forwardedRef: ref + })); +}); + +exports.default = AutoComplete$1; +//# sourceMappingURL=AutoComplete.js.map diff --git a/packages/govern-console/public/aragon-ui/AutoComplete.js.map b/packages/govern-console/public/aragon-ui/AutoComplete.js.map new file mode 100644 index 000000000..d7ab48e29 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AutoComplete.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AutoComplete.js","sources":["../src/components/AutoComplete/AutoComplete.js"],"sourcesContent":["import React, { useState, useRef, useCallback, useEffect } from 'react'\nimport PropTypes from 'prop-types'\nimport { Transition, animated } from 'react-spring'\nimport {\n useArrowKeysFocus,\n useClickOutside,\n useKeyDown,\n useFocusLeave,\n} from '../../hooks'\nimport { springs } from '../../style'\nimport { useTheme } from '../../theme'\nimport { unselectable, noop, identity, KEY_ESC } from '../../utils'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport SearchInput from '../Input/SearchInput'\n\nfunction AutoComplete({\n forwardedRef,\n itemButtonStyles = '',\n items = [],\n onSelect = noop,\n onChange = noop,\n placeholder,\n renderItem = identity,\n required,\n value,\n wide,\n}) {\n const ref = forwardedRef\n const uniqueItems = new Set(items)\n const [opened, setOpened] = useState(true)\n const wrapRef = useRef()\n const refs = useRef([])\n\n const handleClose = useCallback(() => setOpened(false), [])\n const handleFocus = useCallback(() => setOpened(true), [])\n\n const handleSelect = useCallback(\n item => {\n onSelect(item)\n setOpened(false)\n },\n [onSelect]\n )\n\n const handleInputChange = useCallback(\n (...params) => {\n setOpened(true)\n onChange(...params)\n },\n [onChange]\n )\n\n const { handleFocusLeave } = useFocusLeave(handleClose, wrapRef)\n const { highlightedIndex, setHighlightedIndex } = useArrowKeysFocus(refs)\n\n useClickOutside(handleClose, wrapRef)\n useKeyDown(KEY_ESC, handleClose)\n\n useEffect(() => {\n setHighlightedIndex(-1)\n }, [opened, items, value, setHighlightedIndex])\n\n return (\n
    \n \n 0}\n from={{ scale: 0.98, opacity: 0 }}\n enter={{ scale: 1, opacity: 1 }}\n leave={{ scale: 1, opacity: 0 }}\n native\n >\n {show =>\n show &&\n /* eslint-disable react/prop-types */\n (({ scale, opacity }) => (\n `scale3d(${t},${t},1)`),\n }}\n >\n {Array.from(uniqueItems).map((item, index) => (\n (refs.current[index] = node)}\n index={index}\n item={item}\n itemButtonStyles={itemButtonStyles}\n onHighlight={setHighlightedIndex}\n onSelect={handleSelect}\n selected={index === highlightedIndex}\n >\n {renderItem(item, value)}\n \n ))}\n \n ))\n /* eslint-enable react/prop-types */\n }\n \n
    \n )\n}\n\nAutoComplete.propTypes = {\n forwardedRef: PropTypes.object,\n itemButtonStyles: PropTypes.string,\n items: PropTypes.array.isRequired,\n onSelect: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n placeholder: PropTypes.string,\n renderItem: PropTypes.func,\n required: PropTypes.bool,\n value: PropTypes.string,\n wide: PropTypes.bool,\n}\n\n/* eslint-disable react/prop-types */\nconst Item = React.forwardRef(function Item(\n { children, index, item, itemButtonStyles, onHighlight, onSelect, selected },\n ref\n) {\n const theme = useTheme()\n\n const handleClick = useCallback(\n event => {\n event.preventDefault()\n onSelect(item)\n },\n [item, onSelect]\n )\n\n const handleFocusOrMouseOver = useCallback(() => {\n onHighlight(index)\n }, [index, onHighlight])\n\n return (\n \n \n {children}\n \n \n )\n})\n/* eslint-enable react/prop-types */\n\n/* eslint-disable react/prop-types */\nconst Items = function Items(props) {\n const theme = useTheme()\n return (\n li:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n }\n & > li:last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n }\n `}\n {...props}\n />\n )\n}\n/* eslint-enable react/prop-types */\n\nconst AutoCompleteMemo = React.memo(AutoComplete)\n\nexport default React.forwardRef((props, ref) => (\n \n))\n"],"names":["AutoComplete","forwardedRef","itemButtonStyles","items","onSelect","noop","onChange","placeholder","renderItem","identity","required","value","wide","ref","uniqueItems","Set","useState","opened","setOpened","wrapRef","useRef","refs","handleClose","useCallback","handleFocus","handleSelect","item","handleInputChange","useFocusLeave","handleFocusLeave","useArrowKeysFocus","highlightedIndex","setHighlightedIndex","useClickOutside","useKeyDown","KEY_ESC","useEffect","React","SearchInput","Transition","springs","swift","length","scale","opacity","show","transform","interpolate","t","Array","from","map","index","key","node","current","propTypes","PropTypes","object","string","array","isRequired","func","bool","Item","forwardRef","children","onHighlight","selected","theme","useTheme","handleClick","event","preventDefault","handleFocusOrMouseOver","unselectable","accent","surfaceHighlight","Items","props","surfaceContent","surface","border","AutoCompleteMemo","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,SAASA,YAAT,OAWG;AAAA,MAVDC,YAUC,QAVDA,YAUC;AAAA,mCATDC,gBASC;AAAA,MATDA,gBASC,sCATkB,EASlB;AAAA,wBARDC,KAQC;AAAA,MARDA,KAQC,2BARO,EAQP;AAAA,2BAPDC,QAOC;AAAA,MAPDA,QAOC,8BAPUC,kBAOV;AAAA,2BANDC,QAMC;AAAA,MANDA,QAMC,8BANUD,kBAMV;AAAA,MALDE,WAKC,QALDA,WAKC;AAAA,6BAJDC,UAIC;AAAA,MAJDA,UAIC,gCAJYC,sBAIZ;AAAA,MAHDC,QAGC,QAHDA,QAGC;AAAA,MAFDC,KAEC,QAFDA,KAEC;AAAA,MADDC,IACC,QADDA,IACC;AACD,MAAMC,GAAG,GAAGZ,YAAZ;AACA,MAAMa,WAAW,GAAG,IAAIC,GAAJ,CAAQZ,KAAR,CAApB;;AAFC,kBAG2Ba,cAAQ,CAAC,IAAD,CAHnC;AAAA;AAAA,MAGMC,MAHN;AAAA,MAGcC,SAHd;;AAID,MAAMC,OAAO,GAAGC,YAAM,EAAtB;AACA,MAAMC,IAAI,GAAGD,YAAM,CA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AAEA,kCAAeqC,yBAAK,CAAC4B,UAAN,CAAiB,UAACc,KAAD,EAAQlE,GAAR;AAAA,sBAC9BwB,wCAAC,gBAAD,0BAAsB0C,KAAtB;AAA6B,IAAA,YAAY,EAAElE;AAA3C,KAD8B;AAAA,CAAjB,CAAf;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/AutoCompleteSelected.js b/packages/govern-console/public/aragon-ui/AutoCompleteSelected.js new file mode 100644 index 000000000..8526ad312 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AutoCompleteSelected.js @@ -0,0 +1,155 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +var miscellaneous = require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconCross.js'); +require('./IconSearch.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +require('./TextInput.js'); +require('./useArrowKeysFocus.js'); +require('./useClickOutside.js'); +require('./useFocusLeave.js'); +require('./useImageExists.js'); +require('./useKeyDown.js'); +require('./SearchInput.js'); +var AutoComplete = require('./AutoComplete.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "AutoCompleteSelected___StyledButtonBase", + componentId: "sc-15vq9oz-0" +})(["height:40px;width:100%;text-align:left;background:", ";cursor:pointer;border:1px solid ", ";padding:4px 8px;", ";"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +function AutoCompleteSelected(_ref) { + var forwardedRef = _ref.forwardedRef, + itemButtonStyles = _ref.itemButtonStyles, + items = _ref.items, + onChange = _ref.onChange, + onSelect = _ref.onSelect, + _ref$onSelectedClick = _ref.onSelectedClick, + onSelectedClick = _ref$onSelectedClick === void 0 ? miscellaneous.noop : _ref$onSelectedClick, + placeholder = _ref.placeholder, + renderItem = _ref.renderItem, + required = _ref.required, + _ref$renderSelected = _ref.renderSelected, + renderSelected = _ref$renderSelected === void 0 ? miscellaneous.identity : _ref$renderSelected, + selected = _ref.selected, + _ref$selectedButtonSt = _ref.selectedButtonStyles, + selectedButtonStyles = _ref$selectedButtonSt === void 0 ? '' : _ref$selectedButtonSt, + value = _ref.value, + wide = _ref.wide; + var theme = Theme.useTheme(); + var ref = forwardedRef; + var selectedRef = React.useRef(); + var handleSelect = React.useCallback(function (selected) { + onSelect(selected); + setTimeout(function () { + selectedRef.current.focus(); + }, 0); + }, [onSelect]); + var handleSelectedClick = React.useCallback(function () { + onSelectedClick(); + setTimeout(function () { + if (ref && ref.current) { + ref.current.select(); + ref.current.focus(); + } + }, 0); + }, [ref, onSelectedClick]); + + if (selected) { + return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, { + onClick: handleSelectedClick, + ref: selectedRef, + focusRingRadius: constants.RADIUS, + focusRingSpacing: 1, + _css: theme.surface, + _css2: theme.border, + _css3: selectedButtonStyles + }, renderSelected(selected)); + } + + return /*#__PURE__*/React__default['default'].createElement(AutoComplete.default, { + itemButtonStyles: itemButtonStyles, + items: items, + onChange: onChange, + onSelect: handleSelect, + placeholder: placeholder, + ref: ref, + renderItem: renderItem, + required: required, + value: value, + wide: wide + }); +} + +AutoCompleteSelected.propTypes = { + forwardedRef: index.propTypes.object, + itemButtonStyles: index.propTypes.string, + items: index.propTypes.array.isRequired, + onChange: index.propTypes.func.isRequired, + onSelect: index.propTypes.func.isRequired, + onSelectedClick: index.propTypes.func, + placeholder: index.propTypes.string, + renderItem: index.propTypes.func, + renderSelected: index.propTypes.func, + required: index.propTypes.bool, + selected: index.propTypes.object, + selectedButtonStyles: index.propTypes.string, + value: index.propTypes.string, + wide: index.propTypes.bool +}; +var AutoCompleteSelectedMemo = /*#__PURE__*/React__default['default'].memo(AutoCompleteSelected); +var AutoCompleteSelected$1 = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) { + return /*#__PURE__*/React__default['default'].createElement(AutoCompleteSelectedMemo, _extends._extends_1({}, props, { + forwardedRef: ref + })); +}); + +exports.default = AutoCompleteSelected$1; +//# sourceMappingURL=AutoCompleteSelected.js.map diff --git a/packages/govern-console/public/aragon-ui/AutoCompleteSelected.js.map b/packages/govern-console/public/aragon-ui/AutoCompleteSelected.js.map new file mode 100644 index 000000000..95a6654f5 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/AutoCompleteSelected.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AutoCompleteSelected.js","sources":["../src/components/AutoComplete/AutoCompleteSelected.js"],"sourcesContent":["import React, { useRef, useCallback } from 'react'\nimport PropTypes from 'prop-types'\nimport { RADIUS } from '../../style'\nimport { useTheme } from '../../theme'\nimport { identity, noop } from '../../utils'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport AutoComplete from './AutoComplete'\n\nfunction AutoCompleteSelected({\n forwardedRef,\n itemButtonStyles,\n items,\n onChange,\n onSelect,\n onSelectedClick = noop,\n placeholder,\n renderItem,\n required,\n renderSelected = identity,\n selected,\n selectedButtonStyles = '',\n value,\n wide,\n}) {\n const theme = useTheme()\n\n const ref = forwardedRef\n const selectedRef = useRef()\n\n const handleSelect = useCallback(\n selected => {\n onSelect(selected)\n setTimeout(() => {\n selectedRef.current.focus()\n }, 0)\n },\n [onSelect]\n )\n const handleSelectedClick = useCallback(() => {\n onSelectedClick()\n setTimeout(() => {\n if (ref && ref.current) {\n ref.current.select()\n ref.current.focus()\n }\n }, 0)\n }, [ref, onSelectedClick])\n\n if (selected) {\n return (\n \n {renderSelected(selected)}\n \n )\n }\n\n return (\n \n )\n}\n\nAutoCompleteSelected.propTypes = {\n forwardedRef: PropTypes.object,\n itemButtonStyles: PropTypes.string,\n items: PropTypes.array.isRequired,\n onChange: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n onSelectedClick: PropTypes.func,\n placeholder: PropTypes.string,\n renderItem: PropTypes.func,\n renderSelected: PropTypes.func,\n required: PropTypes.bool,\n selected: PropTypes.object,\n selectedButtonStyles: PropTypes.string,\n value: PropTypes.string,\n wide: PropTypes.bool,\n}\n\nconst AutoCompleteSelectedMemo = React.memo(AutoCompleteSelected)\n\nexport default React.forwardRef((props, ref) => (\n \n))\n"],"names":["AutoCompleteSelected","forwardedRef","itemButtonStyles","items","onChange","onSelect","onSelectedClick","noop","placeholder","renderItem","required","renderSelected","identity","selected","selectedButtonStyles","value","wide","theme","useTheme","ref","selectedRef","useRef","handleSelect","useCallback","setTimeout","current","focus","handleSelectedClick","select","React","RADIUS","surface","border","AutoComplete","propTypes","PropTypes","object","string","array","isRequired","func","bool","AutoCompleteSelectedMemo","memo","forwardRef","props"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAASA,oBAAT,OAeG;AAAA,MAdDC,YAcC,QAdDA,YAcC;AAAA,M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,MAXW;AAY/BtB,EAAAA,oBAAoB,EAAEqB,eAAS,CAACE,MAZD;AAa/BtB,EAAAA,KAAK,EAAEoB,eAAS,CAACE,MAbc;AAc/BrB,EAAAA,IAAI,EAAEmB,eAAS,CAACM;AAde,CAAjC;AAiBA,IAAMC,wBAAwB,gBAAGb,yBAAK,CAACc,IAAN,CAAW3C,oBAAX,CAAjC;AAEA,0CAAe6B,yBAAK,CAACe,UAAN,CAAiB,UAACC,KAAD,EAAQ1B,GAAR;AAAA,sBAC9BU,wCAAC,wBAAD,0BAA8BgB,KAA9B;AAAqC,IAAA,YAAY,EAAE1B;AAAnD,KAD8B;AAAA,CAAjB,CAAf;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/BackButton.js b/packages/govern-console/public/aragon-ui/BackButton.js new file mode 100644 index 000000000..2d14d7766 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BackButton.js @@ -0,0 +1,117 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +var Layout = require('./Layout.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +var IconArrowLeft = require('./IconArrowLeft.js'); +var Bar = require('./Bar.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "BackButton___StyledButtonBase", + componentId: "ebowg7-0" +})(["display:inline-flex;align-items:center;border-radius:", "px 0 0 ", "px;height:100%;margin-left:", "px;padding:0 ", "px 0 ", "px;border-right:1px solid ", ";color:", ";background:", ";&:active{background:", ";}"], constants.RADIUS, constants.RADIUS, function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}); + +var _StyledSpan = _styled__default['default']("span").withConfig({ + displayName: "BackButton___StyledSpan", + componentId: "ebowg7-1" +})(["position:relative;top:2px;color:", ";"], function (p) { + return p._css8; +}); + +var _StyledSpan2 = _styled__default['default']("span").withConfig({ + displayName: "BackButton___StyledSpan2", + componentId: "ebowg7-2" +})(["padding-left:", "px;font-size:16px;font-weight:600;"], function (p) { + return p._css9; +}); + +function BackButton(_ref) { + var label = _ref.label, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["label"]); + + var theme = Theme.useTheme(); + + var _useInside = index.o('Bar:primary'), + _useInside2 = slicedToArray.slicedToArray(_useInside, 1), + insideBarPrimary = _useInside2[0]; + + var _useLayout = Layout.useLayout(), + layoutName = _useLayout.layoutName; + + var compact = layoutName === 'small'; + var horizontalPadding = (compact ? 2 : 3) * constants.GU; + return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, _extends._extends_1({ + focusRingRadius: constants.RADIUS, + focusRingSpacing: 1 + }, props, { + _css: insideBarPrimary ? -Bar.default.PADDING : 0, + _css2: horizontalPadding, + _css3: horizontalPadding - 4, + _css4: theme.border, + _css5: theme.surfaceContent, + _css6: theme.surfaceInteractive, + _css7: theme.surfaceHighlight + }), /*#__PURE__*/React__default['default'].createElement(_StyledSpan, { + _css8: theme.accent + }, /*#__PURE__*/React__default['default'].createElement(IconArrowLeft.default, null)), /*#__PURE__*/React__default['default'].createElement(_StyledSpan2, { + _css9: 1 * constants.GU + }, label)); +} + +BackButton.propTypes = { + label: index$1.propTypes.string +}; +BackButton.defaultProps = { + label: 'Back' +}; + +exports.default = BackButton; +//# sourceMappingURL=BackButton.js.map diff --git a/packages/govern-console/public/aragon-ui/BackButton.js.map b/packages/govern-console/public/aragon-ui/BackButton.js.map new file mode 100644 index 000000000..ffd00fbec --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BackButton.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BackButton.js","sources":["../src/components/BackButton/BackButton.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { useInside } from 'use-inside'\nimport { RADIUS, GU } from '../../style'\nimport { useTheme } from '../../theme'\nimport Bar from '../Bar/Bar'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport { useLayout } from '../Layout/Layout'\nimport { IconArrowLeft } from '../../icons'\n\nfunction BackButton({ label, ...props }) {\n const theme = useTheme()\n const [insideBarPrimary] = useInside('Bar:primary')\n\n const { layoutName } = useLayout()\n const compact = layoutName === 'small'\n const horizontalPadding = (compact ? 2 : 3) * GU\n\n return (\n \n \n \n \n \n {label}\n \n \n )\n}\n\nBackButton.propTypes = {\n label: PropTypes.string,\n}\n\nBackButton.defaultProps = {\n label: 'Back',\n}\n\nexport default BackButton\n"],"names":["RADIUS","BackButton","label","props","theme","useTheme","useInside","insideBarPrimary","useLayout","layoutName","compact","horizontalPadding","GU","React","Bar","PADDING","border","surfaceContent","surfaceInteractive","surfaceHighlight","accent","IconArrowLeft","propTypes","PropTypes","string","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0NAyByBA,kBAAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAfzC,SAASC,UAAT,OAAyC;AAAA,MAAnBC,KAAmB,QAAnBA,KAAmB;AAAA,MAATC,KAAS;;AACvC,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;;AADuC,mBAEZC,OAAS,CAAC,aAAD,CAFG;AAAA;AAAA,MAEhCC,gBAFgC;;AAAA,mBAIhBC,gBAAS,EAJO;AAAA,MAI/BC,UAJ+B,cAI/BA,UAJ+B;;AAKvC,MAAMC,OAAO,GAAGD,UAAU,KAAK,OAA/B;AACA,MAAME,iBAAiB,GAAG,CAACD,OAAO,GAAG,CAAH,GAAO,CAAf,IAAoBE,YAA9C;AAEA,sBACEC;AACE,IAAA,eAAe,EAAEb,gBADnB;AAEE,IAAA,gBAAgB,EAAE;AAFpB,KAkBMG,KAlBN;AAAA,UAQmBI,gBAAgB,GAAG,CAACO,WAAG,CAACC,OAAR,GAAkB,CARrD;AAAA,WAUiBJ,iBAVjB;AAAA,WAU0CA,iBAAiB,GAAG,CAV9D;AAAA,WAW8BP,KAAK,CAACY,MAXpC;AAAA,WAYaZ,KAAK,CAACa,cAZnB;AAAA,WAakBb,KAAK,CAACc,kBAbxB;AAAA,WAeoBd,KAAK,CAACe;AAf1B,mBAoBEN;AAAA,WAIaT,KAAK,CAACgB;AAJnB,kBAOEP,wCAACQ,qBAAD,OAPF,CApBF,eA6BER;AAAA,WAEoB,IAAID;AAFxB,KAOGV,KAPH,CA7BF,CADF;AAyCD;;AAEDD,UAAU,CAACqB,SAAX,GAAuB;AACrBpB,EAAAA,KAAK,EAAEqB,iBAAS,CAACC;AADI,CAAvB;AAIAvB,UAAU,CAACwB,YAAX,GAA0B;AACxBvB,EAAAA,KAAK,EAAE;AADiB,CAA1B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Badge.js b/packages/govern-console/public/aragon-ui/Badge.js new file mode 100644 index 000000000..518bcae50 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Badge.js @@ -0,0 +1,114 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var Tag = require('./Tag.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function deprecationWarning() { + environment.warnOnce('Badge', '"Badge" and its variants have been deprecated. Please use "Tag" instead.'); +} +/* eslint-disable react/prop-types */ + + +function Badge(_ref) { + var background = _ref.background, + foreground = _ref.foreground, + shape = _ref.shape, + children = _ref.children, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["background", "foreground", "shape", "children"]); + + deprecationWarning(); + return /*#__PURE__*/React__default['default'].createElement(Tag.default, _extends._extends_1({ + background: background, + color: foreground, + size: shape === 'smalldisc' || shape === 'compact' ? 'small' : 'normal' + }, props), children); +} + +function BadgeNumber(_ref2) { + var background = _ref2.background, + children = _ref2.children, + foreground = _ref2.foreground, + label = _ref2.label, + shape = _ref2.shape, + small = _ref2.small, + props = objectWithoutProperties.objectWithoutProperties(_ref2, ["background", "children", "foreground", "label", "shape", "small"]); + + deprecationWarning(); + + if (!children && typeof label === 'number') { + return /*#__PURE__*/React__default['default'].createElement(Badge, _extends._extends_1({ + limitDigits: true, + background: background, + color: foreground, + label: label, + size: small ? 'small' : 'normal' + }, props)); + } + + return /*#__PURE__*/React__default['default'].createElement(Tag.default, _extends._extends_1({ + count: true, + background: background, + color: foreground + }, props), children || label); +} + +function BadgeInfo(props) { + return /*#__PURE__*/React__default['default'].createElement(BadgeNumber, props); +} + +function BadgeIdentity(props) { + return /*#__PURE__*/React__default['default'].createElement(Badge, _extends._extends_1({}, props, { + uppercase: false + })); +} + +function BadgeApp(props) { + return /*#__PURE__*/React__default['default'].createElement(Badge, _extends._extends_1({}, props, { + mode: "identifier" + })); +} + +function BadgeNotification(props) { + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(BadgeNumber, _extends._extends_1({ + background: String(theme.positive), + foreground: String(theme.positiveContent) + }, props)); +} +/* eslint-enable react/prop-types */ + + +Badge.Info = BadgeInfo; +Badge.Notification = BadgeNotification; +Badge.Identity = BadgeIdentity; +Badge.App = BadgeApp; + +exports.BadgeNumber = BadgeNumber; +exports.default = Badge; +//# sourceMappingURL=Badge.js.map diff --git a/packages/govern-console/public/aragon-ui/Badge.js.map b/packages/govern-console/public/aragon-ui/Badge.js.map new file mode 100644 index 000000000..acb3a997c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Badge.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Badge.js","sources":["../src/components/Badge/Badge.js"],"sourcesContent":["import React from 'react'\nimport Tag from '../Tag/Tag'\nimport { warnOnce } from '../../utils/environment'\nimport { useTheme } from '../../theme'\n\nfunction deprecationWarning() {\n warnOnce(\n 'Badge',\n '\"Badge\" and its variants have been deprecated. Please use \"Tag\" instead.'\n )\n}\n\n/* eslint-disable react/prop-types */\nfunction Badge({ background, foreground, shape, children, ...props }) {\n deprecationWarning()\n return (\n \n {children}\n \n )\n}\n\nfunction BadgeNumber({\n background,\n children,\n foreground,\n label,\n shape,\n small,\n ...props\n}) {\n deprecationWarning()\n if (!children && typeof label === 'number') {\n return (\n \n )\n }\n return (\n \n {children || label}\n \n )\n}\n\nfunction BadgeInfo(props) {\n return \n}\n\nfunction BadgeIdentity(props) {\n return \n}\n\nfunction BadgeApp(props) {\n return \n}\n\nfunction BadgeNotification(props) {\n const theme = useTheme()\n return (\n \n )\n}\n/* eslint-enable react/prop-types */\n\nBadge.Info = BadgeInfo\nBadge.Notification = BadgeNotification\nBadge.Identity = BadgeIdentity\nBadge.App = BadgeApp\n\nexport { BadgeNumber }\nexport default Badge\n"],"names":["deprecationWarning","warnOnce","Badge","background","foreground","shape","children","props","React","Tag","BadgeNumber","label","small","BadgeInfo","BadgeIdentity","BadgeApp","BadgeNotification","theme","useTheme","String","positive","positiveContent","Info","Notification","Identity","App"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAASA,kBAAT,GAA8B;AAC5BC,EAAAA,oBAAQ,CACN,OADM,EAEN,0EAFM,CAAR;AAID;AAED;;;AACA,SAASC,KAAT,OAAsE;AAAA,MAArDC,UAAqD,QAArDA,UAAqD;AAAA,MAAzCC,UAAyC,QAAzCA,UAAyC;AAAA,MAA7BC,KAA6B,QAA7BA,KAA6B;AAAA,MAAtBC,QAAsB,QAAtBA,QAAsB;AAAA,MAATC,KAAS;;AACpEP,EAAAA,kBAAkB;AAClB,sBACEQ,wCAACC,WAAD;AACE,IAAA,UAAU,EAAEN,UADd;AAEE,IAAA,KAAK,EAAEC,UAFT;AAGE,IAAA,IAAI,EAAEC,KAAK,KAAK,WAAV,IAAyBA,KAAK,KAAK,SAAnC,GAA+C,OAA/C,GAAyD;AAHjE,KAIME,KAJN,GAMGD,QANH,CADF;AAUD;;AAED,SAASI,WAAT,QAQG;AAAA,MAPDP,UAOC,SAPDA,UAOC;AAAA,MANDG,QAMC,SANDA,QAMC;AAAA,MALDF,UAKC,SALDA,UAKC;AAAA,MAJDO,KAIC,SAJDA,KAIC;AAAA,MAHDN,KAGC,SAHDA,KAGC;AAAA,MAFDO,KAEC,SAFDA,KAEC;AAAA,MADEL,KACF;;AACDP,EAAAA,kBAAkB;;AAClB,MAAI,CAACM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line at end of file diff --git a/packages/govern-console/public/aragon-ui/BadgeBase.js b/packages/govern-console/public/aragon-ui/BadgeBase.js new file mode 100644 index 000000000..b4839c91e --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BadgeBase.js @@ -0,0 +1,131 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "BadgeBase___StyledButtonBase", + componentId: "sc-4zaahn-0" +})(["display:inline-flex;overflow:hidden;color:", ";height:", "px;background:", ";", ";&:active{", ";}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "BadgeBase___StyledDiv", + componentId: "sc-4zaahn-1" +})(["overflow:hidden;display:flex;align-items:center;text-decoration:none;", ";"], function (p) { + return p._css6; +}); + +var _StyledSpan = _styled__default['default']("span").withConfig({ + displayName: "BadgeBase___StyledSpan", + componentId: "sc-4zaahn-2" +})(["white-space:nowrap;text-overflow:ellipsis;overflow:hidden;", " ", ""], function (p) { + return p._css7; +}, function (p) { + return p._css8; +}); + +var BadgeBase = /*#__PURE__*/React__default['default'].memo(function BadgeBase(_ref) { + var badgeRef = _ref.badgeRef, + children = _ref.children, + className = _ref.className, + compact = _ref.compact, + disabled = _ref.disabled, + href = _ref.href, + icon = _ref.icon, + label = _ref.label, + labelStyle = _ref.labelStyle, + onClick = _ref.onClick, + style = _ref.style, + title = _ref.title, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["badgeRef", "children", "className", "compact", "disabled", "href", "icon", "label", "labelStyle", "onClick", "style", "title"]); + + var theme = Theme.useTheme(); + + var _useInside = index.o('DropDown'), + _useInside2 = slicedToArray.slicedToArray(_useInside, 1), + insideDropDownMenu = _useInside2[0]; + + if (insideDropDownMenu) { + disabled = true; + } + + return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, { + ref: badgeRef, + title: title, + disabled: disabled, + element: href || disabled ? 'a' : 'button', + onClick: !disabled ? onClick : undefined, + href: !disabled ? href : undefined, + focusRingRadius: constants.RADIUS, + _css: theme.badgeContent, + _css2: 3 * constants.GU, + _css3: compact ? 'transparent' : theme.badge, + _css4: insideDropDownMenu ? 'cursor: pointer' : '', + _css5: !disabled && compact ? "background: ".concat(theme.badgePressed) : '' + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + className: className, + style: style, + _css6: compact ? "\n padding: 0 ".concat(1 * constants.GU, "px;\n border-radius: 2px;\n ") : "\n padding-left: ".concat((icon ? 0 : 1.5) * constants.GU, "px;\n padding-right: ").concat((icon ? 1 : 1.5) * constants.GU, "px;\n border-radius: ").concat(constants.RADIUS, "px;\n ") + }, icon, /*#__PURE__*/React__default['default'].createElement(_StyledSpan, { + _css7: textStyles.textStyle('body2'), + _css8: labelStyle + }, label))), typeof children === 'function' ? children(disabled) // whether popover is disabled + : children); +}); +BadgeBase.propTypes = { + badgeRef: index$1.propTypes.any, + children: index$1.propTypes.oneOfType([index$1.propTypes.node, index$1.propTypes.func]), + className: index$1.propTypes.string, + compact: index$1.propTypes.bool, + disabled: index$1.propTypes.bool, + href: index$1.propTypes.string, + icon: index$1.propTypes.node, + label: index$1.propTypes.node.isRequired, + labelStyle: index$1.propTypes.string, + onClick: index$1.propTypes.func, + style: index$1.propTypes.object, + title: index$1.propTypes.string +}; + +exports.default = BadgeBase; +//# sourceMappingURL=BadgeBase.js.map diff --git a/packages/govern-console/public/aragon-ui/BadgeBase.js.map b/packages/govern-console/public/aragon-ui/BadgeBase.js.map new file mode 100644 index 000000000..a33cb9d25 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BadgeBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BadgeBase.js","sources":["../src/components/BadgeBase/BadgeBase.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { useInside } from 'use-inside'\nimport { GU, RADIUS, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst BadgeBase = React.memo(function BadgeBase({\n badgeRef,\n children,\n className,\n compact,\n disabled,\n href,\n icon,\n label,\n labelStyle,\n onClick,\n style,\n title,\n ...props\n}) {\n const theme = useTheme()\n const [insideDropDownMenu] = useInside('DropDown')\n\n if (insideDropDownMenu) {\n disabled = true\n }\n\n return (\n \n \n \n {icon}\n \n {label}\n \n \n \n {typeof children === 'function'\n ? children(disabled) // whether popover is disabled\n : children}\n \n )\n})\n\nBadgeBase.propTypes = {\n badgeRef: PropTypes.any,\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n className: PropTypes.string,\n compact: PropTypes.bool,\n disabled: PropTypes.bool,\n href: PropTypes.string,\n icon: PropTypes.node,\n label: PropTypes.node.isRequired,\n labelStyle: PropTypes.string,\n onClick: PropTypes.func,\n style: PropTypes.object,\n title: PropTypes.string,\n}\n\nexport default BadgeBase\n"],"names":["BadgeBase","React","memo","badgeRef","children","className","compact","disabled","href","icon","label","labelStyle","onClick","style","title","props","theme","useTheme","useInside","insideDropDownMenu","undefined","RADIUS","badgeContent","GU","badge","badgePressed","textStyle","propTypes","PropTypes","any","oneOfType","node","func","string","bool","isRequired","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOMA,SAAS,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,SAAT,OAc1B;AAAA,MAbDG,QAaC,QAbDA,QAaC;AAAA,MAZDC,QAYC,QAZDA,QAYC;AAAA,MAXDC,SAWC,QAXDA,SAWC;AAAA,MAVDC,OAUC,QAVDA,OAUC;AAAA,MATDC,QASC,QATDA,QASC;AAAA,MARDC,IAQC,QARDA,IAQC;AAAA,MAPDC,IAOC,QAPDA,IAOC;AAAA,MANDC,KAMC,QANDA,KAMC;AAAA,MALDC,UAKC,QALDA,UAKC;AAAA,MAJDC,OAIC,QAJDA,OAIC;AAAA,MAHDC,KAGC,QAHDA,KAGC;AAAA,MAFDC,KAEC,QAFDA,KAEC;AAAA,MADEC,KACF;;AACD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;;AADC,mBAE4BC,OAAS,CAAC,UAAD,CAFrC;AAAA;AAAA,MAEMC,kBAFN;;AAID,MAAIA,kBAAJ,EAAwB;AACtBZ,IAAAA,QAAQ,GAAG,IAAX;AACD;;AAED,sBACEN,wCAACA,yBAAD,CAAO,QAAP,qBACEA;AACE,IAAA,GAAG,EAAEE,QADP;AAEE,IAAA,KAAK,EAAEW,KAFT;AAGE,IAAA,QAAQ,EAAEP,QAHZ;AAIE,IAAA,OAAO,EAAEC,IAAI,IAAID,QAAR,GAAmB,GAAnB,GAAyB,QAJpC;AAKE,IAAA,OAAO,EAAE,CAACA,QAAD,GAAYK,O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oB,iBAAS,CAACK,MANI;AAOpBxB,EAAAA,IAAI,EAAEmB,iBAAS,CAACG,IAPI;AAQpBrB,EAAAA,KAAK,EAAEkB,iBAAS,CAACG,IAAV,CAAeI,UARF;AASpBxB,EAAAA,UAAU,EAAEiB,iBAAS,CAACK,MATF;AAUpBrB,EAAAA,OAAO,EAAEgB,iBAAS,CAACI,IAVC;AAWpBnB,EAAAA,KAAK,EAAEe,iBAAS,CAACQ,MAXG;AAYpBtB,EAAAA,KAAK,EAAEc,iBAAS,CAACK;AAZG,CAAtB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/BadgePopoverActionType.js b/packages/govern-console/public/aragon-ui/BadgePopoverActionType.js new file mode 100644 index 000000000..6b270ed57 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BadgePopoverActionType.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); + +var BadgePopoverActionType = index.propTypes.shape({ + label: index.propTypes.node.isRequired, + onClick: index.propTypes.func.isRequired +}); + +exports.default = BadgePopoverActionType; +//# sourceMappingURL=BadgePopoverActionType.js.map diff --git a/packages/govern-console/public/aragon-ui/BadgePopoverActionType.js.map b/packages/govern-console/public/aragon-ui/BadgePopoverActionType.js.map new file mode 100644 index 000000000..0773e0241 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BadgePopoverActionType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BadgePopoverActionType.js","sources":["../src/components/BadgeBase/BadgePopoverActionType.js"],"sourcesContent":["import PropTypes from 'prop-types'\n\nexport default PropTypes.shape({\n label: PropTypes.node.isRequired,\n onClick: PropTypes.func.isRequired,\n})\n"],"names":["PropTypes","shape","label","node","isRequired","onClick","func"],"mappings":";;;;;;;AAEA,6BAAeA,eAAS,CAACC,KAAV,CAAgB;AAC7BC,EAAAA,KAAK,EAAEF,eAAS,CAACG,IAAV,CAAeC,UADO;AAE7BC,EAAAA,OAAO,EAAEL,eAAS,CAACM,IAAV,CAAeF;AAFK,CAAhB,CAAf;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/BadgePopoverBase.js b/packages/govern-console/public/aragon-ui/BadgePopoverBase.js new file mode 100644 index 000000000..df456552d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BadgePopoverBase.js @@ -0,0 +1,181 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +require('./css.js'); +var miscellaneous = require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +var IconCross = require('./IconCross.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +var Button = require('./Button.js'); +var ButtonIcon = require('./ButtonIcon.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +var BadgePopoverActionType = require('./BadgePopoverActionType.js'); +var proptypes = require('./proptypes-9c58a90f.js'); +var Popover = require('./Popover.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledSection = _styled__default['default']("section").withConfig({ + displayName: "BadgePopoverBase___StyledSection", + componentId: "xfkga1-0" +})(["position:relative;max-width:calc(100vw - 20px);min-width:300px;"]); + +var _StyledButtonIcon = _styled__default['default'](ButtonIcon.default).withConfig({ + displayName: "BadgePopoverBase___StyledButtonIcon", + componentId: "xfkga1-1" +})(["position:absolute;top:0;right:0;border-radius:0;color:", ";"], function (p) { + return p._css; +}); + +var _StyledHeader = _styled__default['default']("header").withConfig({ + displayName: "BadgePopoverBase___StyledHeader", + componentId: "xfkga1-2" +})(["display:flex;align-items:center;height:", "px;padding-left:", "px;border-bottom:1px solid ", ";"], function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var _StyledH = _styled__default['default']("h1").withConfig({ + displayName: "BadgePopoverBase___StyledH", + componentId: "xfkga1-3" +})(["", " font-weight:400;color:", ";"], function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "BadgePopoverBase___StyledDiv", + componentId: "xfkga1-4" +})(["padding:", "px;"], function (p) { + return p._css7; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "BadgePopoverBase___StyledDiv2", + componentId: "xfkga1-5" +})(["display:flex;margin-top:", "px;", ""], function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledP = _styled__default['default']("p").withConfig({ + displayName: "BadgePopoverBase___StyledP", + componentId: "xfkga1-6" +})(["", ";"], function (p) { + return p._css10; +}); + +var _StyledButton = _styled__default['default'](Button.default).withConfig({ + displayName: "BadgePopoverBase___StyledButton", + componentId: "xfkga1-7" +})(["padding:0 ", "px;color:", ";"], function (p) { + return p._css11; +}, function (p) { + return p._css12; +}); + +var BadgePopoverBase = /*#__PURE__*/React__default['default'].memo(function BadgePopoverBase(_ref) { + var addressField = _ref.addressField, + link = _ref.link, + onClose = _ref.onClose, + opener = _ref.opener, + popoverAction = _ref.popoverAction, + title = _ref.title, + titleTag = _ref.titleTag, + visible = _ref.visible; + var theme = Theme.useTheme(); + var handlePopoverActionClick = React.useCallback(function () { + onClose(); + + if (popoverAction && popoverAction.onClick) { + popoverAction.onClick(); + } + }, [onClose, popoverAction]); + return /*#__PURE__*/React__default['default'].createElement(Popover.default, { + visible: visible, + opener: opener, + onClose: onClose + }, /*#__PURE__*/React__default['default'].createElement(_StyledSection, null, /*#__PURE__*/React__default['default'].createElement(_StyledButtonIcon, { + label: "Close", + onClick: onClose, + _css: theme.surfaceIcon + }, /*#__PURE__*/React__default['default'].createElement(IconCross.default, { + size: "small" + })), /*#__PURE__*/React__default['default'].createElement(_StyledHeader, { + _css2: 4 * constants.GU, + _css3: 2 * constants.GU, + _css4: theme.border + }, /*#__PURE__*/React__default['default'].createElement(_StyledH, { + _css5: textStyles.textStyle('label2'), + _css6: theme.surfaceContentSecondary + }, title), titleTag), /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css7: 2 * constants.GU + }, addressField, /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css8: 2 * constants.GU, + _css9: link ? "\n flex-direction: row-reverse;\n justify-content: space-between;\n " : '' + }, link && /*#__PURE__*/React__default['default'].createElement(_StyledP, { + _css10: textStyles.textStyle('body3') + }, link), popoverAction && /*#__PURE__*/React__default['default'].createElement(_StyledButton, { + size: "medium", + onClick: handlePopoverActionClick, + _css11: 2 * constants.GU, + _css12: theme.surfaceContentSecondary + }, popoverAction.label))))); +}); +BadgePopoverBase.propTypes = { + addressField: proptypes.ExtendedPropTypes.node.isRequired, + link: proptypes.ExtendedPropTypes.node, + onClose: proptypes.ExtendedPropTypes.func, + opener: proptypes.ExtendedPropTypes._element, + popoverAction: BadgePopoverActionType.default, + title: proptypes.ExtendedPropTypes.node.isRequired, + titleTag: proptypes.ExtendedPropTypes.node, + visible: proptypes.ExtendedPropTypes.bool +}; +BadgePopoverBase.defaultProps = { + onClose: miscellaneous.noop +}; + +exports.default = BadgePopoverBase; +//# sourceMappingURL=BadgePopoverBase.js.map diff --git a/packages/govern-console/public/aragon-ui/BadgePopoverBase.js.map b/packages/govern-console/public/aragon-ui/BadgePopoverBase.js.map new file mode 100644 index 000000000..1f5f610b7 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BadgePopoverBase.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BadgePopoverBase.js","sources":["../src/components/BadgeBase/BadgePopoverBase.js"],"sourcesContent":["import React, { useCallback } from 'react'\nimport PropTypes from '../../proptypes'\nimport { IconClose } from '../../icons'\nimport { GU, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { noop } from '../../utils'\nimport Button from '../Button/Button'\nimport ButtonIcon from '../Button/ButtonIcon'\nimport Popover from '../Popover/Popover'\nimport BadgePopoverActionType from './BadgePopoverActionType'\n\nconst BadgePopoverBase = React.memo(function BadgePopoverBase({\n addressField,\n link,\n onClose,\n opener,\n popoverAction,\n title,\n titleTag,\n visible,\n}) {\n const theme = useTheme()\n const handlePopoverActionClick = useCallback(() => {\n onClose()\n if (popoverAction && popoverAction.onClick) {\n popoverAction.onClick()\n }\n }, [onClose, popoverAction])\n\n return (\n \n \n \n \n \n \n \n {title}\n

\n {titleTag}\n \n \n {addressField}\n \n {link && (\n \n {link}\n

\n )}\n {popoverAction && (\n \n {popoverAction.label}\n \n )}\n \n \n \n \n )\n})\nBadgePopoverBase.propTypes = {\n addressField: PropTypes.node.isRequired,\n link: PropTypes.node,\n onClose: PropTypes.func,\n opener: PropTypes._element,\n popoverAction: BadgePopoverActionType,\n title: PropTypes.node.isRequired,\n titleTag: PropTypes.node,\n visible: PropTypes.bool,\n}\nBadgePopoverBase.defaultProps = {\n onClose: noop,\n}\n\nexport default BadgePopoverBase\n"],"names":["BadgePopoverBase","React","memo","addressField","link","onClose","opener","popoverAction","title","titleTag","visible","theme","useTheme","handlePopoverActionClick","useCallback","onClick","Popover","surfaceIcon","IconClose","GU","border","textStyle","surfaceContentSecondary","label","propTypes","PropTypes","node","isRequired","func","_element","BadgePopoverActionType","bool","defaultProps","noop"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWMA,gBAAgB,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,gBAAT,OASjC;AAAA,MARDG,YAQC,QARDA,YAQC;AAAA,MAPDC,IAOC,QAPDA,IAOC;AAAA,MANDC,OAMC,QANDA,OAMC;AAAA,MALDC,MAKC,QALDA,MAKC;AAAA,MAJDC,aAIC,QAJDA,aAIC;AAAA,MAHDC,KAGC,QAHDA,KAGC;AAAA,MAFDC,QAEC,QAFDA,QAEC;AAAA,MADDC,OACC,QADDA,OACC;AACD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AACA,MAAMC,wBAAwB,GAAGC,iBAAW,CAAC,YAAM;AACjDT,IAAAA,OAAO;;AACP,QAAIE,aAAa,IAAIA,aAAa,CAACQ,OAAnC,EAA4C;AAC1CR,MAAAA,aAAa,CAACQ,OAAd;AACD;AACF,GAL2C,EAKzC,CAACV,OAAD,EAAUE,aAAV,CALyC,CAA5C;AAOA,sBACEN,wCAACe,eAAD;AAAS,IAAA,OAAO,EAAEN,OAAlB;AAA2B,IAAA,MAAM,EAAEJ,MAAnC;AAA2C,IAAA,OAAO,EAAED;AAApD,kBACEJ,2EAOEA;AACE,IAAA,KAAK,EAAC,OADR;AAEE,IAAA,OAAO,EAAEI,OAFX;AAAA,UAQaM,KAAK,CAACM;AARnB,kBAWEhB,wCAACiB,iBAAD;AAAW,IAAA,IAAI,EAAC;AAAhB,IAXF,CAPF,eAoBEjB;AAAA,WAIc,IAAIkB,YAJlB;AAAA,WAKoB,IAAIA,YALxB;AAAA,WAM+BR,KAAK,CAACS;AANrC,kBASEnB;AAAA,WAEMoB,oBAAS,CAAC,QAAD,CAFf;AAAA,WAIaV,KAAK,CAACW;AAJnB,KAOGd,KAPH,CATF,EAkBGC,QAlBH,CApBF,eAwCER;AAAA,WAEe,IAAIkB;AAFnB,KAKGhB,YALH,eAMEF;AAAA,WAGkB,IAAIkB,YAHtB;AAAA,WAIMf,IAAI,6HAKF;AATR,KAYGA,IAAI,iBACHH;AAAA,YAEMoB,oBAAS,CAAC,OAAD;AAFf,KAKGjB,IALH,CAbJ,EAqBGG,aAAa,iBACZN;AACE,IAAA,IAAI,EAAC,QADP;AAEE,IAAA,OAAO,EAAEY,wBAFX;AAAA,YAIiB,IAAIM,YAJrB;AAAA,YAKaR,KAAK,CAACW;AALnB,KAQGf,aAAa,CAACgB,KARjB,CAtBJ,CANF,CAxCF,CADF,CADF;AAsFD,CAxGwB;AAyGzBvB,gBAAgB,CAACwB,SAAjB,GAA6B;AAC3BrB,EAAAA,YAAY,EAAEsB,2BAAS,CAACC,IAAV,CAAeC,UADF;AAE3BvB,EAAAA,IAAI,EAAEqB,2BAAS,CAACC,IAFW;AAG3BrB,EAAAA,OAAO,EAAEoB,2BAAS,CAACG,IAHQ;AAI3BtB,EAAAA,MAAM,EAAEmB,2BAAS,CAACI,QAJS;AAK3BtB,EAAAA,aAAa,EAAEuB,8BALY;AAM3BtB,EAAAA,KAAK,EAAEiB,2BAAS,CAACC,IAAV,CAAeC,UANK;AAO3BlB,EAAAA,QAAQ,EAAEgB,2BAAS,CAACC,IAPO;AAQ3BhB,EAAAA,OAAO,EAAEe,2BAAS,CAACM;AARQ,CAA7B;AAUA/B,gBAAgB,CAACgC,YAAjB,GAAgC;AAC9B3B,EAAAA,OAAO,EAAE4B;AADqB,CAAhC;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Bar.js b/packages/govern-console/public/aragon-ui/Bar.js new file mode 100644 index 000000000..015ee64e9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Bar.js @@ -0,0 +1,106 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +var Layout = require('./Layout.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var BAR_PADDING = 2 * constants.GU; + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "Bar___StyledDiv", + componentId: "sc-1tcfrs9-0" +})(["display:flex;justify-content:space-between;width:100%;height:100%;"]); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "Bar___StyledDiv2", + componentId: "sc-1tcfrs9-1" +})(["display:flex;align-items:center;height:100%;padding-left:", "px;"], BAR_PADDING); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "Bar___StyledDiv3", + componentId: "sc-1tcfrs9-2" +})(["display:flex;align-items:center;height:100%;padding-right:", "px;"], BAR_PADDING); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "Bar___StyledDiv4", + componentId: "sc-1tcfrs9-3" +})(["border-radius:", "px;background:", ";border-style:solid;border-color:", ";border-width:", ";height:", "px;margin-bottom:", "px;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +function Bar(_ref) { + var children = _ref.children, + primary = _ref.primary, + secondary = _ref.secondary, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["children", "primary", "secondary"]); + + var theme = Theme.useTheme(); + + var _useLayout = Layout.useLayout(), + layoutName = _useLayout.layoutName; + + var fullScreen = layoutName === 'small'; + var content = children || /*#__PURE__*/React__default['default'].createElement(_StyledDiv, null, /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, null, /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "Bar:primary" + }, primary)), /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, null, /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "Bar:secondary" + }, secondary))); + return /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "Bar" + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, _extends._extends_1({}, props, { + _css: fullScreen ? 0 : constants.RADIUS, + _css2: theme.surface, + _css3: theme.border, + _css4: fullScreen ? '1px 0' : '1px', + _css5: 8 * constants.GU, + _css6: 2 * constants.GU + }), content)); +} + +Bar.propTypes = { + children: index$1.propTypes.node, + primary: index$1.propTypes.node, + secondary: index$1.propTypes.node +}; +Bar.PADDING = BAR_PADDING; + +exports.default = Bar; +//# sourceMappingURL=Bar.js.map diff --git a/packages/govern-console/public/aragon-ui/Bar.js.map b/packages/govern-console/public/aragon-ui/Bar.js.map new file mode 100644 index 000000000..8604ae070 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Bar.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Bar.js","sources":["../src/components/Bar/Bar.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside } from 'use-inside'\nimport { GU, RADIUS } from '../../style'\nimport { useTheme } from '../../theme/Theme'\nimport { useLayout } from '../Layout/Layout'\n\nconst BAR_PADDING = 2 * GU\n\nfunction Bar({ children, primary, secondary, ...props }) {\n const theme = useTheme()\n const { layoutName } = useLayout()\n\n const fullScreen = layoutName === 'small'\n\n const content = children || (\n \n \n {primary}\n \n \n {secondary}\n \n \n )\n\n return (\n \n \n {content}\n \n \n )\n}\n\nBar.propTypes = {\n children: PropTypes.node,\n primary: PropTypes.node,\n secondary: PropTypes.node,\n}\n\nBar.PADDING = BAR_PADDING\n\nexport default Bar\n"],"names":["BAR_PADDING","GU","Bar","children","primary","secondary","props","theme","useTheme","useLayout","layoutName","fullScreen","content","React","Inside","RADIUS","surface","border","propTypes","PropTypes","node","PADDING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,WAAW,GAAG,IAAIC,YAAxB;;;;;;;;;;yEAsB0BD;;;;;0EAUCA;;;;;;;;;;;;;;;;;;;AA9B3B,SAASE,GAAT,OAAyD;AAAA,MAA1CC,QAA0C,QAA1CA,QAA0C;AAAA,MAAhCC,OAAgC,QAAhCA,OAAgC;AAAA,MAAvBC,SAAuB,QAAvBA,SAAuB;AAAA,MAATC,KAAS;;AACvD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;;AADuD,mBAEhCC,gBAAS,EAFuB;AAAA,MAE/CC,UAF+C,cAE/CA,UAF+C;;AAIvD,MAAMC,UAAU,GAAGD,UAAU,KAAK,OAAlC;AAEA,MAAME,OAAO,GAAGT,QAAQ,iBACtBU,uEAQEA,wEAQEA,wCAACC,OAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,KAA4BV,OAA5B,CARF,CARF,eAkBES,wEAQEA,wCAACC,OAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,KAA8BT,SAA9B,CARF,CAlBF,CADF;AAgCA,sBACEQ,wCAACC,OAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,kBACED,6EAUMP,KAVN;AAAA,UAEqBK,UAAU,GAAG,CAAH,GAAOI,gBAFtC;AAAA,WAGkBR,KAAK,CAACS,OAHxB;AAAA,WAKoBT,KAAK,CAACU,MAL1B;AAAA,WAMoBN,UAAU,GAAG,OAAH,GAAa,KAN3C;AAAA,WAOc,IAAIV,YAPlB;AAAA,WAQqB,IAAIA;AARzB,MAYGW,OAZH,CADF,CADF;AAkBD;;AAEDV,GAAG,CAACgB,SAAJ,GAAgB;AACdf,EAAAA,QAAQ,EAAEgB,iBAAS,CAACC,IADN;AAEdhB,EAAAA,OAAO,EAAEe,iBAAS,CAACC,IAFL;AAGdf,EAAAA,SAAS,EAAEc,iBAAS,CAACC;AAHP,CAAhB;AAMAlB,GAAG,CAACmB,OAAJ,GAAcrB,WAAd;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/BaseStyles.js b/packages/govern-console/public/aragon-ui/BaseStyles.js new file mode 100644 index 000000000..2b1ad74fa --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BaseStyles.js @@ -0,0 +1,135 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +require('./environment.js'); +var font = require('./font.js'); +require('./url.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +require('./getDisplayName-7f913e84.js'); +var PublicUrl = require('./PublicUrl-7d4b6d6d.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function _taggedTemplateLiteral(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + return Object.freeze(Object.defineProperties(strings, { + raw: { + value: Object.freeze(raw) + } + })); +} + +var taggedTemplateLiteral = _taggedTemplateLiteral; + +var overpassLightWoff2 = "cf790334a5a6d45c.woff2"; + +var overpassRegularWoff2 = "32a3f11e7740ce58.woff2"; + +var overpassSemiBoldWoff2 = "5cfe62515c2f9b42.woff2"; + +var overpassMonoLightWoff2 = "3dd21d4f0d28fecb.woff2"; + +function _templateObject() { + var data = taggedTemplateLiteral(["\n\n // @font-face declarations\n ", "\n\n *, *:before, *:after {\n box-sizing: border-box;\n }\n html {\n -webkit-overflow-scrolling: touch;\n }\n body {\n height: 0;\n min-height: 100vh;\n color: ", ";\n background: ", ";\n font-family: ", ";\n ", ";\n }\n html, body {\n overflow: hidden;\n }\n body, ul, p, h1, h2, h3, h4, h5, h6 {\n margin: 0;\n padding: 0;\n }\n button, select, input, textarea, h1, h2, h3, h4, h5, h6 {\n font-size: inherit;\n font-family: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n a, button, select, input, textarea {\n color: inherit;\n }\n strong, b {\n font-weight: 600;\n }\n ::selection {\n background: ", ";\n color: ", ";\n }\n"]); + + _templateObject = function _templateObject() { + return data; + }; + + return data; +} +var DEFAULT_FONTS = { + '400': { + url: overpassLightWoff2, + format: 'woff2' + }, + '600': { + url: overpassRegularWoff2, + format: 'woff2' + }, + '800': { + url: overpassSemiBoldWoff2, + format: 'woff2' + } +}; +var MONOSPACE_FONTS = { + '400': { + url: overpassMonoLightWoff2, + format: 'woff2' + } +}; + +function fontSrc(publicUrl, _ref) { + var url = _ref.url, + format = _ref.format; + return "url(".concat(publicUrl + url, ") format('").concat(format, "')"); +} + +function fontFaceDeclarations(_ref2) { + var fontFamily = _ref2.fontFamily, + publicUrl = _ref2.publicUrl; + + // No need to declare the font faces if the font family has changed. + if (fontFamily !== BaseStyles.defaultProps.fontFamily) { + return ''; + } + + return "\n @font-face {\n font-family: ".concat(font.DEFAULT_FONT_FAMILY, ";\n src: ").concat(fontSrc(publicUrl, DEFAULT_FONTS['400']), ";\n font-weight: 400;\n font-style: normal;\n }\n @font-face {\n font-family: ").concat(font.DEFAULT_FONT_FAMILY, ";\n src: ").concat(fontSrc(publicUrl, DEFAULT_FONTS['600']), ";\n font-weight: 600;\n font-style: normal;\n }\n @font-face {\n font-family: ").concat(font.DEFAULT_FONT_FAMILY, ";\n src: ").concat(fontSrc(publicUrl, DEFAULT_FONTS['800']), ";\n font-weight: 800;\n font-style: normal;\n }\n @font-face {\n font-family: ").concat(font.MONOSPACE_FONT_FAMILY, ";\n src: ").concat(fontSrc(publicUrl, MONOSPACE_FONTS['400']), ";\n font-weight: 400;\n font-style: normal;\n }\n "); +} + +var BaseStyles = /*#__PURE__*/React__default['default'].memo(function BaseStyles(props) { + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(GlobalStyle, _extends._extends_1({}, props, { + theme: theme, + fontFaces: fontFaceDeclarations(props), + textStyleCss: textStyles.textStyle('body2') + })); +}); +BaseStyles.propTypes = { + publicUrl: index.propTypes.string, + fontFamily: index.propTypes.string +}; +BaseStyles.defaultProps = { + publicUrl: '/', + fontFamily: "".concat(font.DEFAULT_FONT_FAMILY, ", sans-serif") +}; +var GlobalStyle = _styled.createGlobalStyle(_templateObject(), function (p) { + return p.fontFaces ? p.fontFaces : ''; +}, function (p) { + return p.theme.content; +}, function (p) { + return p.theme.background; +}, function (p) { + return p.fontFamily; +}, function (p) { + return p.textStyleCss; +}, function (p) { + return p.theme.selected; +}, function (p) { + return p.theme.selectedContent; +}); +var BaseStyles$1 = PublicUrl.PublicUrl.hocWrap(BaseStyles); + +exports.default = BaseStyles$1; +//# sourceMappingURL=BaseStyles.js.map diff --git a/packages/govern-console/public/aragon-ui/BaseStyles.js.map b/packages/govern-console/public/aragon-ui/BaseStyles.js.map new file mode 100644 index 000000000..453763559 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/BaseStyles.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BaseStyles.js","sources":["../node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js","../src/components/BaseStyles/assets/overpass/overpass-light.woff2","../src/components/BaseStyles/assets/overpass/overpass-regular.woff2","../src/components/BaseStyles/assets/overpass/overpass-semibold.woff2","../src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2","../src/components/BaseStyles/BaseStyles.js"],"sourcesContent":["function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}\n\nmodule.exports = _taggedTemplateLiteral;","export default \"cf790334a5a6d45c.woff2\"","export default \"32a3f11e7740ce58.woff2\"","export default \"5cfe62515c2f9b42.woff2\"","export default \"3dd21d4f0d28fecb.woff2\"","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { createGlobalStyle } from 'styled-components'\nimport { PublicUrl } from '../../providers/PublicUrl'\nimport { DEFAULT_FONT_FAMILY, MONOSPACE_FONT_FAMILY } from '../../utils'\nimport { textStyle } from '../../style'\nimport { useTheme } from '../../theme'\n\nimport overpassLightWoff2 from './assets/overpass/overpass-light.woff2'\nimport overpassRegularWoff2 from './assets/overpass/overpass-regular.woff2'\nimport overpassSemiBoldWoff2 from './assets/overpass/overpass-semibold.woff2'\nimport overpassMonoLightWoff2 from './assets/overpass-mono/overpass-mono-light.woff2'\n\nconst DEFAULT_FONTS = {\n '400': { url: overpassLightWoff2, format: 'woff2' },\n '600': { url: overpassRegularWoff2, format: 'woff2' },\n '800': { url: overpassSemiBoldWoff2, format: 'woff2' },\n}\n\nconst MONOSPACE_FONTS = {\n '400': { url: overpassMonoLightWoff2, format: 'woff2' },\n}\n\nfunction fontSrc(publicUrl, { url, format }) {\n return `url(${publicUrl + url}) format('${format}')`\n}\n\nfunction fontFaceDeclarations({ fontFamily, publicUrl }) {\n // No need to declare the font faces if the font family has changed.\n if (fontFamily !== BaseStyles.defaultProps.fontFamily) {\n return ''\n }\n return `\n @font-face {\n font-family: ${DEFAULT_FONT_FAMILY};\n src: ${fontSrc(publicUrl, DEFAULT_FONTS['400'])};\n font-weight: 400;\n font-style: normal;\n }\n @font-face {\n font-family: ${DEFAULT_FONT_FAMILY};\n src: ${fontSrc(publicUrl, DEFAULT_FONTS['600'])};\n font-weight: 600;\n font-style: normal;\n }\n @font-face {\n font-family: ${DEFAULT_FONT_FAMILY};\n src: ${fontSrc(publicUrl, DEFAULT_FONTS['800'])};\n font-weight: 800;\n font-style: normal;\n }\n @font-face {\n font-family: ${MONOSPACE_FONT_FAMILY};\n src: ${fontSrc(publicUrl, MONOSPACE_FONTS['400'])};\n font-weight: 400;\n font-style: normal;\n }\n `\n}\n\nconst BaseStyles = React.memo(function BaseStyles(props) {\n const theme = useTheme()\n return (\n \n )\n})\n\nBaseStyles.propTypes = {\n publicUrl: PropTypes.string,\n fontFamily: PropTypes.string,\n}\n\nBaseStyles.defaultProps = {\n publicUrl: '/',\n fontFamily: `${DEFAULT_FONT_FAMILY}, sans-serif`,\n}\n\nconst GlobalStyle = createGlobalStyle`\n\n // @font-face declarations\n ${p => (p.fontFaces ? p.fontFaces : '')}\n\n *, *:before, *:after {\n box-sizing: border-box;\n }\n html {\n -webkit-overflow-scrolling: touch;\n }\n body {\n height: 0;\n min-height: 100vh;\n color: ${p => p.theme.content};\n background: ${p => p.theme.background};\n font-family: ${p => p.fontFamily};\n ${p => p.textStyleCss};\n }\n html, body {\n overflow: hidden;\n }\n body, ul, p, h1, h2, h3, h4, h5, h6 {\n margin: 0;\n padding: 0;\n }\n button, select, input, textarea, h1, h2, h3, h4, h5, h6 {\n font-size: inherit;\n font-family: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n a, button, select, input, textarea {\n color: inherit;\n }\n strong, b {\n font-weight: 600;\n }\n ::selection {\n background: ${p => p.theme.selected};\n color: ${p => p.theme.selectedContent};\n }\n`\n\nexport default PublicUrl.hocWrap(BaseStyles)\n"],"names":["DEFAULT_FONTS","url","overpassLightWoff2","format","overpassRegularWoff2","overpassSemiBoldWoff2","MONOSPACE_FONTS","overpassMonoLightWoff2","fontSrc","publicUrl","fontFaceDeclarations","fontFamily","BaseStyles","defaultProps","DEFAULT_FONT_FAMILY","MONOSPACE_FONT_FAMILY","React","memo","props","theme","useTheme","textStyle","propTypes","PropTypes","string","GlobalStyle","createGlobalStyle","p","fontFaces","content","background","textStyleCss","selected","selectedContent","PublicUrl","hocWrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,sBAAsB,CAAC,OAAO,EAAE,GAAG,EAAE;AAC9C,EAAE,IAAI,CAAC,GAAG,EAAE;AACZ,IAAI,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC3B,GAAG;AACH;AACA,EAAE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE;AACxD,IAAI,GAAG,EAAE;AACT,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;AAC/B,KAAK;AACL,GAAG,CAAC,CAAC,CAAC;AACN,CAAC;AACD;AACA,yBAAc,GAAG,sBAAsB;;ACZvC,yBAAe;;ACAf,2BAAe;;ACAf,4BAAe;;ACAf,6BAAe;;;;;;;;;;;ACaf,IAAMA,aAAa,GAAG;AACpB,SAAO;AAAEC,IAAAA,GAAG,EAAEC,kBAAP;AAA2BC,IAAAA,MAAM,EAAE;AAAnC,GADa;AAEpB,SAAO;AAAEF,IAAAA,GAAG,EAAEG,oBAAP;AAA6BD,IAAAA,MAAM,EAAE;AAArC,GAFa;AAGpB,SAAO;AAAEF,IAAAA,GAAG,EAAEI,qBAAP;AAA8BF,IAAAA,MAAM,EAAE;AAAtC;AAHa,CAAtB;AAMA,IAAMG,eAAe,GAAG;AACtB,SAAO;AAAEL,IAAAA,GAAG,EAAEM,sBAAP;AAA+BJ,IAAAA,MAAM,EAAE;AAAvC;AADe,CAAxB;;AAIA,SAASK,OAAT,CAAiBC,SAAjB,QAA6C;AAAA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A,IAAMW,WAAW,GAAGC,yBAAH,oBAGb,UAAAC,CAAC;AAAA,SAAKA,CAAC,CAACC,SAAF,GAAcD,CAAC,CAACC,SAAhB,GAA4B,EAAjC;AAAA,CAHY,EAcJ,UAAAD,CAAC;AAAA,SAAIA,CAAC,CAACR,KAAF,CAAQU,OAAZ;AAAA,CAdG,EAeC,UAAAF,CAAC;AAAA,SAAIA,CAAC,CAACR,KAAF,CAAQW,UAAZ;AAAA,CAfF,EAgBE,UAAAH,CAAC;AAAA,SAAIA,CAAC,CAAChB,UAAN;AAAA,CAhBH,EAiBX,UAAAgB,CAAC;AAAA,SAAIA,CAAC,CAACI,YAAN;AAAA,CAjBU,EAuCC,UAAAJ,CAAC;AAAA,SAAIA,CAAC,CAACR,KAAF,CAAQa,QAAZ;AAAA,CAvCF,EAwCJ,UAAAL,CAAC;AAAA,SAAIA,CAAC,CAACR,KAAF,CAAQc,eAAZ;AAAA,CAxCG,CAAjB;AA4CA,mBAAeC,mBAAS,CAACC,OAAV,CAAkBvB,UAAlB,CAAf;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Box.js b/packages/govern-console/public/aragon-ui/Box.js new file mode 100644 index 000000000..758424077 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Box.js @@ -0,0 +1,139 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +var Layout = require('./Layout.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "Box___StyledDiv", + componentId: "sc-54p6u6-0" +})(["position:relative;border-radius:", "px;border-style:solid;border-color:", ";border-width:", ";background:", ";color:", ";& + &{margin-top:", "px;}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +var _StyledH = _styled__default['default']("h1").withConfig({ + displayName: "Box___StyledH", + componentId: "sc-54p6u6-1" +})(["display:flex;align-items:center;height:", "px;padding:0 ", "px;border-bottom:1px solid ", ";color:", ";", ";"], function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "Box___StyledDiv2", + componentId: "sc-54p6u6-2" +})(["padding:", "px;"], function (p) { + return p._css12; +}); + +function Box(_ref) { + var heading = _ref.heading, + children = _ref.children, + padding = _ref.padding, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["heading", "children", "padding"]); + + var theme = Theme.useTheme(); + + var _useInside = index.o('Split:primary'), + _useInside2 = slicedToArray.slicedToArray(_useInside, 1), + insideSplitPrimary = _useInside2[0]; + + var _useLayout = Layout.useLayout(), + layoutName = _useLayout.layoutName; + + var fullWidth = layoutName === 'small'; + var defaultPadding = (fullWidth ? 2 : insideSplitPrimary ? 5 : 3) * constants.GU; + + if (padding === true) { + environment.warnOnce('Box:padding:true', 'Box: setting true on the padding prop is deprecated. Omit it, or set it to undefined instead.'); + padding = defaultPadding; + } + + if (padding === false) { + environment.warnOnce('Box:padding:false', 'Box: setting false on the padding prop is deprecated. Use 0.'); + padding = 0; + } + + var contentPadding = padding === undefined ? defaultPadding : padding; + return /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "Box" + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends._extends_1({ + as: heading ? 'section' : 'div' + }, props, { + _css: fullWidth ? 0 : constants.RADIUS, + _css2: theme.border, + _css3: fullWidth ? '1px 0' : '1px', + _css4: theme.surface, + _css5: theme.surfaceContent, + _css6: 2 * constants.GU + }), heading && /*#__PURE__*/React__default['default'].createElement(_StyledH, { + _css7: 4 * constants.GU, + _css8: defaultPadding, + _css9: theme.border, + _css10: theme.surfaceContentSecondary, + _css11: textStyles.textStyle('label2') + }, /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "Box:heading" + }, heading)), /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css12: contentPadding + }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "Box:content" + }, children))))); +} + +Box.propTypes = { + heading: index$1.propTypes.node, + children: index$1.propTypes.node, + padding: index$1.propTypes.oneOfType([index$1.propTypes.number, // deprecated + index$1.propTypes.bool]) +}; + +exports.default = Box; +//# sourceMappingURL=Box.js.map diff --git a/packages/govern-console/public/aragon-ui/Box.js.map b/packages/govern-console/public/aragon-ui/Box.js.map new file mode 100644 index 000000000..bd3d1c415 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Box.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Box.js","sources":["../src/components/Box/Box.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside, useInside } from 'use-inside'\nimport { GU, RADIUS, textStyle } from '../../style'\nimport { useTheme } from '../../theme/Theme'\nimport { useLayout } from '../Layout/Layout'\nimport { warnOnce } from '../../utils'\n\nfunction Box({ heading, children, padding, ...props }) {\n const theme = useTheme()\n const [insideSplitPrimary] = useInside('Split:primary')\n const { layoutName } = useLayout()\n const fullWidth = layoutName === 'small'\n\n const defaultPadding = (fullWidth ? 2 : insideSplitPrimary ? 5 : 3) * GU\n\n if (padding === true) {\n warnOnce(\n 'Box:padding:true',\n 'Box: setting true on the padding prop is deprecated. Omit it, or set it to undefined instead.'\n )\n padding = defaultPadding\n }\n if (padding === false) {\n warnOnce(\n 'Box:padding:false',\n 'Box: setting false on the padding prop is deprecated. Use 0.'\n )\n padding = 0\n }\n\n const contentPadding = padding === undefined ? defaultPadding : padding\n\n return (\n \n \n {heading && (\n \n {heading}\n \n )}\n \n
\n {children}\n
\n \n \n
\n )\n}\n\nBox.propTypes = {\n heading: PropTypes.node,\n children: PropTypes.node,\n padding: PropTypes.oneOfType([\n PropTypes.number,\n\n // deprecated\n PropTypes.bool,\n ]),\n}\n\nexport default Box\n"],"names":["Box","heading","children","padding","props","theme","useTheme","useInside","insideSplitPrimary","useLayout","layoutName","fullWidth","defaultPadding","GU","warnOnce","contentPadding","undefined","React","Inside","RADIUS","border","surface","surfaceContent","surfaceContentSecondary","textStyle","propTypes","PropTypes","node","oneOfType","number","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAASA,GAAT,OAAuD;AAAA,MAAxCC,OAAwC,QAAxCA,OAAwC;AAAA,MAA/BC,QAA+B,QAA/BA,QAA+B;AAAA,MAArBC,OAAqB,QAArBA,OAAqB;AAAA,MAATC,KAAS;;AACrD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;;AADqD,mBAExBC,OAAS,CAAC,eAAD,CAFe;AAAA;AAAA,MAE9CC,kBAF8C;;AAAA,mBAG9BC,gBAAS,EAHqB;AAAA,MAG7CC,UAH6C,cAG7CA,UAH6C;;AAIrD,MAAMC,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iDD;;AAEDF,GAAG,CAACyB,SAAJ,GAAgB;AACdxB,EAAAA,OAAO,EAAEyB,iBAAS,CAACC,IADL;AAEdzB,EAAAA,QAAQ,EAAEwB,iBAAS,CAACC,IAFN;AAGdxB,EAAAA,OAAO,EAAEuB,iBAAS,CAACE,SAAV,CAAoB,CAC3BF,iBAAS,CAACG,MADiB;AAI3BH,EAAAA,iBAAS,CAACI,IAJiB,CAApB;AAHK,CAAhB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Button.js b/packages/govern-console/public/aragon-ui/Button.js new file mode 100644 index 000000000..353061284 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Button.js @@ -0,0 +1,369 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +var css = require('./css.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index$1 = require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +var Layout = require('./Layout.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +// See src/icons/icon-size.js for the corresponding icon sizes. + +var SIZE_STYLES = { + medium: { + textStyleName: 'body2', + height: 5 * constants.GU, + padding: 3 * constants.GU, + iconPadding: 2 * constants.GU, + minWidth: 14.5 * constants.GU, + middleSpace: 1 * constants.GU + }, + small: { + textStyleName: 'body2', + height: 4 * constants.GU, + padding: 2 * constants.GU, + iconPadding: 1.5 * constants.GU, + minWidth: 13 * constants.GU, + middleSpace: 1 * constants.GU + }, + mini: { + textStyleName: 'body4', + height: 3 * constants.GU, + padding: 1.5 * constants.GU, + iconPadding: 1 * constants.GU, + minWidth: 9.25 * constants.GU, + middleSpace: 0.5 * constants.GU + } +}; + +function getPadding(size, displayIcon, displayLabel) { + var _SIZE_STYLES$size = SIZE_STYLES[size], + padding = _SIZE_STYLES$size.padding, + iconPadding = _SIZE_STYLES$size.iconPadding; + + if (displayIcon && !displayLabel) { + return '0'; + } + + if (displayIcon && displayLabel) { + return "0 ".concat(padding, "px 0 ").concat(iconPadding, "px"); + } + + return "0 ".concat(padding, "px"); +} + +function getWidth(size, displayIconOnly, wide) { + var height = SIZE_STYLES[size].height; + + if (wide) { + return '100%'; + } + + if (displayIconOnly) { + return "".concat(height, "px"); + } + + return 'auto'; +} + +function getMinWidth(size, displayLabelOnly) { + var minWidth = SIZE_STYLES[size].minWidth; + return displayLabelOnly ? "".concat(minWidth, "px") : '0'; +} // CSS styles related to the current size + + +function sizeStyles(size, wide, displayIcon, displayLabel) { + var _SIZE_STYLES$size2 = SIZE_STYLES[size], + height = _SIZE_STYLES$size2.height, + textStyleName = _SIZE_STYLES$size2.textStyleName, + middleSpace = _SIZE_STYLES$size2.middleSpace; + return { + height: "".concat(height, "px"), + middleSpace: displayIcon && displayLabel ? "".concat(middleSpace, "px") : '0', + minWidth: getMinWidth(size, !displayIcon && displayLabel), + padding: getPadding(size, displayIcon, displayLabel), + textStyleCss: textStyles.textStyle(textStyleName), + width: getWidth(size, displayIcon && !displayLabel, wide) + }; +} // CSS styles related to the current mode + + +function modeStyles(theme, mode, disabled) { + if (disabled) { + return { + background: theme.disabled, + color: theme.disabledContent, + iconColor: theme.disabledContent, + border: '0' + }; + } + + if (mode === 'strong') { + return { + background: "\n linear-gradient(\n 190deg,\n ".concat(theme.accentStart, " -100%,\n ").concat(theme.accentEnd, " 80%\n )\n "), + color: theme.accentContent, + iconColor: theme.accentContent, + border: '0' + }; + } + + if (mode === 'positive') { + return { + background: theme.positive, + color: theme.positiveContent, + iconColor: theme.positiveContent, + border: '0' + }; + } + + if (mode === 'negative') { + return { + background: theme.negative, + color: theme.negativeContent, + iconColor: theme.negativeContent, + border: '0' + }; + } + + return { + background: theme.surfaceInteractive, + color: theme.surfaceContent, + iconColor: theme.surfaceIcon, + border: "1px solid ".concat(theme.border) + }; +} + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "Button___StyledButtonBase", + componentId: "sc-8npd5h-0" +})(["display:", ";align-items:center;justify-content:center;width:", ";height:", ";min-width:", ";padding:", ";", ";", ";background:", ";color:", ";white-space:nowrap;border:", ";box-shadow:", ";transition-property:transform,box-shadow;transition-duration:50ms;transition-timing-function:ease-in-out;&:active{transform:", ";box-shadow:", ";}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, css.unselectable, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}, function (p) { + return p._css12; +}); + +var _StyledSpan = _styled__default['default']("span").withConfig({ + displayName: "Button___StyledSpan", + componentId: "sc-8npd5h-1" +})(["position:relative;top:-1px;display:flex;color:", ";margin-right:", ";"], function (p) { + return p._css13; +}, function (p) { + return p._css14; +}); + +function Button(_ref) { + var children = _ref.children, + disabled = _ref.disabled, + display = _ref.display, + icon = _ref.icon, + iconOnly = _ref.iconOnly, + innerRef = _ref.innerRef, + label = _ref.label, + mode = _ref.mode, + size = _ref.size, + wide = _ref.wide, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["children", "disabled", "display", "icon", "iconOnly", "innerRef", "label", "mode", "size", "wide"]); + + // backward compatibility and deprecated props + if (iconOnly) { + environment.warnOnce('Button:iconOnly', 'Button: "iconOnly" is deprecated, please use "display".'); + display = 'icon'; + } + + if (mode === 'outline' || mode === 'secondary') { + environment.warnOnce('Button:mode', "Button: the mode \"".concat(mode, "\" is deprecated, please use \"normal\".")); + mode = 'normal'; + } + + if (size === 'normal' || size === 'large') { + environment.warnOnce('Button:size', "Button: the size \"".concat(size, "\" is deprecated, please use \"medium\".")); + size = 'medium'; + } // prop warnings + + + if (display === 'icon' && !icon) { + environment.warn('Button: the display "icon" was used without providing an icon.'); + } + + if (!children && !label) { + environment.warn('Button: please provide a label.'); + } + + var theme = Theme.useTheme(); + + var _useLayout = Layout.useLayout(), + layoutName = _useLayout.layoutName; + + var _useInside = index$1.o('EmptyStateCard'), + _useInside2 = slicedToArray.slicedToArray(_useInside, 1), + insideEmptyStateCard = _useInside2[0]; + + var _useInside3 = index$1.o('Header:secondary'), + _useInside4 = slicedToArray.slicedToArray(_useInside3, 1), + insideHeaderSecondary = _useInside4[0]; // Always wide + strong when used as an empty state card action + + + if (insideEmptyStateCard) { + mode = 'strong'; + wide = true; + } // Alternate between icon and label automatically when used in Header + + + if (insideHeaderSecondary && display === 'auto' && icon && label) { + display = layoutName === 'small' ? 'icon' : 'label'; + } // Otherwise, display both + + + if (display === 'auto') { + display = 'all'; + } + + var displayIcon = icon && (display === 'all' || display === 'icon'); + var displayLabel = label && (display === 'all' || display === 'label'); // Mode styles + + var _useMemo = React.useMemo(function () { + return modeStyles(theme, mode, disabled); + }, [mode, theme, disabled]), + background = _useMemo.background, + color = _useMemo.color, + iconColor = _useMemo.iconColor, + border = _useMemo.border; // Size styles + + + var _useMemo2 = React.useMemo(function () { + return sizeStyles(size, wide, displayIcon, displayLabel); + }, [size, wide, displayIcon, displayLabel]), + height = _useMemo2.height, + middleSpace = _useMemo2.middleSpace, + minWidth = _useMemo2.minWidth, + padding = _useMemo2.padding, + textStyleCss = _useMemo2.textStyleCss, + width = _useMemo2.width; // Use the label as a title when only the icon is displayed + + + if (displayIcon && !displayLabel && label && typeof label === 'string') { + props.title = label; + } + + var insideData = { + size: size + }; + return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, _extends._extends_1({ + ref: innerRef, + focusRingSpacing: border === '0' ? 0 : 1, + focusRingRadius: constants.RADIUS, + disabled: disabled + }, props, { + _css: wide ? 'flex' : 'inline-flex', + _css2: width, + _css3: height, + _css4: minWidth, + _css5: padding, + _css6: textStyleCss, + _css7: background, + _css8: color, + _css9: border, + _css10: disabled ? 'none' : '0 1px 3px rgba(0, 0, 0, 0.1)', + _css11: disabled ? 'none' : 'translateY(1px)', + _css12: disabled ? 'none' : '0px 1px 2px rgba(0, 0, 0, 0.08)' + }), /*#__PURE__*/React__default['default'].createElement(index$1.i, { + name: "Button", + data: insideData + }, children || /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, displayIcon && /*#__PURE__*/React__default['default'].createElement(index$1.i, { + name: "Button:icon", + data: insideData + }, /*#__PURE__*/React__default['default'].createElement(_StyledSpan, { + _css13: iconColor, + _css14: middleSpace + }, icon)), displayLabel && /*#__PURE__*/React__default['default'].createElement(index$1.i, { + name: "Button:label", + data: insideData + }, label)))); +} + +Button.propTypes = { + children: index.propTypes.node, + disabled: index.propTypes.bool, + display: index.propTypes.oneOf(['auto', 'all', 'icon', 'label']), + icon: index.propTypes.node, + innerRef: index.propTypes.any, + label: index.propTypes.string, + mode: index.propTypes.oneOf(['normal', 'strong', 'positive', 'negative', // deprecated + 'outline', 'secondary', 'text']), + size: index.propTypes.oneOf(['medium', 'small', 'mini', // deprecated + 'large', 'normal']), + wide: index.propTypes.bool, + // deprecated + iconOnly: index.propTypes.bool +}; +Button.defaultProps = { + disabled: false, + display: 'auto', + mode: 'normal', + size: 'medium', + wide: false +}; +var ButtonWithRef = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) { + return /*#__PURE__*/React__default['default'].createElement(Button, _extends._extends_1({ + innerRef: ref + }, props)); +}); +ButtonWithRef.Anchor = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) { + environment.warnOnce('Button.Anchor', 'Button.Anchor is deprecated: please use Button with a href prop instead.'); + return /*#__PURE__*/React__default['default'].createElement(ButtonWithRef, _extends._extends_1({ + ref: ref + }, props)); +}); + +exports.default = ButtonWithRef; +//# sourceMappingURL=Button.js.map diff --git a/packages/govern-console/public/aragon-ui/Button.js.map b/packages/govern-console/public/aragon-ui/Button.js.map new file mode 100644 index 000000000..8ddaa427a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Button.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Button.js","sources":["../src/components/Button/Button.js"],"sourcesContent":["import React, { useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside, useInside } from 'use-inside'\nimport { textStyle, GU, RADIUS } from '../../style'\nimport { useTheme } from '../../theme'\nimport { warn, warnOnce, unselectable } from '../../utils'\nimport { useLayout } from '../Layout/Layout'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\n// Base styles related to every size.\n// See src/icons/icon-size.js for the corresponding icon sizes.\nconst SIZE_STYLES = {\n medium: {\n textStyleName: 'body2',\n height: 5 * GU,\n padding: 3 * GU,\n iconPadding: 2 * GU,\n minWidth: 14.5 * GU,\n middleSpace: 1 * GU,\n },\n small: {\n textStyleName: 'body2',\n height: 4 * GU,\n padding: 2 * GU,\n iconPadding: 1.5 * GU,\n minWidth: 13 * GU,\n middleSpace: 1 * GU,\n },\n mini: {\n textStyleName: 'body4',\n height: 3 * GU,\n padding: 1.5 * GU,\n iconPadding: 1 * GU,\n minWidth: 9.25 * GU,\n middleSpace: 0.5 * GU,\n },\n}\n\nfunction getPadding(size, displayIcon, displayLabel) {\n const { padding, iconPadding } = SIZE_STYLES[size]\n\n if (displayIcon && !displayLabel) {\n return '0'\n }\n\n if (displayIcon && displayLabel) {\n return `0 ${padding}px 0 ${iconPadding}px`\n }\n\n return `0 ${padding}px`\n}\n\nfunction getWidth(size, displayIconOnly, wide) {\n const { height } = SIZE_STYLES[size]\n\n if (wide) {\n return '100%'\n }\n\n if (displayIconOnly) {\n return `${height}px`\n }\n\n return 'auto'\n}\n\nfunction getMinWidth(size, displayLabelOnly) {\n const { minWidth } = SIZE_STYLES[size]\n return displayLabelOnly ? `${minWidth}px` : '0'\n}\n\n// CSS styles related to the current size\nfunction sizeStyles(size, wide, displayIcon, displayLabel) {\n const { height, textStyleName, middleSpace } = SIZE_STYLES[size]\n\n return {\n height: `${height}px`,\n middleSpace: displayIcon && displayLabel ? `${middleSpace}px` : '0',\n minWidth: getMinWidth(size, !displayIcon && displayLabel),\n padding: getPadding(size, displayIcon, displayLabel),\n textStyleCss: textStyle(textStyleName),\n width: getWidth(size, displayIcon && !displayLabel, wide),\n }\n}\n\n// CSS styles related to the current mode\nfunction modeStyles(theme, mode, disabled) {\n if (disabled) {\n return {\n background: theme.disabled,\n color: theme.disabledContent,\n iconColor: theme.disabledContent,\n border: '0',\n }\n }\n if (mode === 'strong') {\n return {\n background: `\n linear-gradient(\n 190deg,\n ${theme.accentStart} -100%,\n ${theme.accentEnd} 80%\n )\n `,\n color: theme.accentContent,\n iconColor: theme.accentContent,\n border: '0',\n }\n }\n\n if (mode === 'positive') {\n return {\n background: theme.positive,\n color: theme.positiveContent,\n iconColor: theme.positiveContent,\n border: '0',\n }\n }\n\n if (mode === 'negative') {\n return {\n background: theme.negative,\n color: theme.negativeContent,\n iconColor: theme.negativeContent,\n border: '0',\n }\n }\n\n return {\n background: theme.surfaceInteractive,\n color: theme.surfaceContent,\n iconColor: theme.surfaceIcon,\n border: `1px solid ${theme.border}`,\n }\n}\n\nfunction Button({\n children,\n disabled,\n display,\n icon,\n iconOnly,\n innerRef,\n label,\n mode,\n size,\n wide,\n ...props\n}) {\n // backward compatibility and deprecated props\n if (iconOnly) {\n warnOnce(\n 'Button:iconOnly',\n 'Button: \"iconOnly\" is deprecated, please use \"display\".'\n )\n display = 'icon'\n }\n if (mode === 'outline' || mode === 'secondary') {\n warnOnce(\n 'Button:mode',\n `Button: the mode \"${mode}\" is deprecated, please use \"normal\".`\n )\n mode = 'normal'\n }\n if (size === 'normal' || size === 'large') {\n warnOnce(\n 'Button:size',\n `Button: the size \"${size}\" is deprecated, please use \"medium\".`\n )\n size = 'medium'\n }\n\n // prop warnings\n if (display === 'icon' && !icon) {\n warn('Button: the display \"icon\" was used without providing an icon.')\n }\n if (!children && !label) {\n warn('Button: please provide a label.')\n }\n\n const theme = useTheme()\n const { layoutName } = useLayout()\n\n const [insideEmptyStateCard] = useInside('EmptyStateCard')\n const [insideHeaderSecondary] = useInside('Header:secondary')\n\n // Always wide + strong when used as an empty state card action\n if (insideEmptyStateCard) {\n mode = 'strong'\n wide = true\n }\n\n // Alternate between icon and label automatically when used in Header\n if (insideHeaderSecondary && display === 'auto' && icon && label) {\n display = layoutName === 'small' ? 'icon' : 'label'\n }\n\n // Otherwise, display both\n if (display === 'auto') {\n display = 'all'\n }\n\n const displayIcon = icon && (display === 'all' || display === 'icon')\n const displayLabel = label && (display === 'all' || display === 'label')\n\n // Mode styles\n const { background, color, iconColor, border } = useMemo(\n () => modeStyles(theme, mode, disabled),\n [mode, theme, disabled]\n )\n\n // Size styles\n const {\n height,\n middleSpace,\n minWidth,\n padding,\n textStyleCss,\n width,\n } = useMemo(() => sizeStyles(size, wide, displayIcon, displayLabel), [\n size,\n wide,\n displayIcon,\n displayLabel,\n ])\n\n // Use the label as a title when only the icon is displayed\n if (displayIcon && !displayLabel && label && typeof label === 'string') {\n props.title = label\n }\n\n const insideData = { size }\n\n return (\n \n \n {children || (\n \n {displayIcon && (\n \n \n {icon}\n \n \n )}\n {displayLabel && (\n \n {label}\n \n )}\n \n )}\n \n \n )\n}\n\nButton.propTypes = {\n children: PropTypes.node,\n disabled: PropTypes.bool,\n display: PropTypes.oneOf(['auto', 'all', 'icon', 'label']),\n icon: PropTypes.node,\n innerRef: PropTypes.any,\n label: PropTypes.string,\n mode: PropTypes.oneOf([\n 'normal',\n 'strong',\n 'positive',\n 'negative',\n\n // deprecated\n 'outline',\n 'secondary',\n 'text',\n ]),\n size: PropTypes.oneOf([\n 'medium',\n 'small',\n 'mini',\n\n // deprecated\n 'large',\n 'normal',\n ]),\n wide: PropTypes.bool,\n\n // deprecated\n iconOnly: PropTypes.bool,\n}\n\nButton.defaultProps = {\n disabled: false,\n display: 'auto',\n mode: 'normal',\n size: 'medium',\n wide: false,\n}\n\nconst ButtonWithRef = React.forwardRef((props, ref) => (\n
\n )}\n \n )\n }\n}\n\n/* eslint-disable react/prop-types */\n\nconst Dash = ({ color }) => (\n /* Use SVG to have subpixels (strokeWidth=\"1.5\") on Chrome */\n \n \n \n)\n\nconst Check = ({ color }) => (\n \n \n \n)\n\nconst Bullet = ({ color }) => (\n \n)\n\nconst CheckBoxWithTheme = React.forwardRef((props, ref) => {\n const theme = useTheme()\n return \n})\n\n/* eslint-enable react/prop-types */\n\nexport default CheckBoxWithTheme\n"],"names":["SIZE","CHECKBOX_RADIUS","RADIO_BULLET_SIZE","Checkbox","React","createRef","props","onChange","checked","indeterminate","_element","current","focus","visible","Icon","disabled","theme","Spring","progress","Number","springs","instant","opacity","transform","interpolate","v","selectedDisabled","selected","tabIndex","variant","FocusVisible","focusVisible","onFocus","getAriaChecked","handleClick","GU","controlDisabled","control","controlBorder","controlBorderPressed","renderCheck","Check","Dash","Bullet","RADIUS","PureComponent","PropTypes","bool","func","string","object","oneOf","noop","color","CheckBoxWithTheme","forwardRef","ref","useTheme"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,IAAI,GAAG,EAAb;AACA,IAAMC,eAAe,GAAG,CAAxB;AACA,IAAMC,iBAAiB,GAAG,EAA1B;;;;;;;;;;wMA4FuBF,MACCA;;;;;;;;;;;;;;;;;;;;;IA3Fl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AA,EAAE,EAAC,GAA/B;AAAmC,MAAA,MAAM,EAAEiD,KAA3C;AAAkD,MAAA,WAAW,EAAC;AAA9D,MADF;AAFW;AAAA,CAAb;;AAOA,IAAMZ,KAAK,GAAG,SAARA,KAAQ;AAAA,MAAGY,KAAH,SAAGA,KAAH;AAAA,sBACZjD;AAAK,IAAA,KAAK,EAAC,IAAX;AAAgB,IAAA,MAAM,EAAC,GAAvB;AAA2B,IAAA,OAAO,EAAC;AAAnC,kBACEA;AACE,IAAA,CAAC,wLADH;AAWE,IAAA,IAAI,EAAEiD;AAXR,IADF,CADY;AAAA,CAAd;;;;;oFAsBenD,mBACCA;;;;AALhB,IAAMyC,MAAM,GAAG,SAATA,MAAS;AAAA,MAAGU,KAAH,SAAGA,KAAH;AAAA,sBACbjD;AAAA,WAMkBiD;AANlB,IADa;AAAA,CAAf;;IAYMC,iBAAiB,gBAAGlD,yBAAK,CAACmD,UAAN,CAAiB,UAACjD,KAAD,EAAQkD,GAAR,EAAgB;AACzD,MAAMxC,KAAK,GAAGyC,cAAQ,EAAtB;AACA,sBAAOrD,wCAAC,QAAD;AAAU,IAAA,KAAK,EAAEY,KAAjB;AAAwB,IAAA,GAAG,EAAEwC;AAA7B,KAAsClD,KAAtC,EAAP;AACD,CAHyB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/CircleGraph.js b/packages/govern-console/public/aragon-ui/CircleGraph.js new file mode 100644 index 000000000..07e1ad6f3 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/CircleGraph.js @@ -0,0 +1,211 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +var math = require('./math-ecfd5d91.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +var STROKE_WIDTH = 4; +var SIZE_DEFAULT = 80; + +function labelDefault(animValue, value) { + var parts = { + suffix: '%', + value: String(Math.floor(animValue * 100)) + }; + var animPercentage = animValue * 100; + var percentage = value * 100; + var lessThanOne = percentage > 0 && percentage < 1 && animPercentage > 0 && // We know that the actual percentage is less than 1, + // so this is to avoid a jump with “1%” without prefix. + animPercentage < 2; + return lessThanOne ? _objectSpread(_objectSpread({}, parts), {}, { + prefix: '<', + value: '1' + }) : parts; +} + +function labelCompat(parts) { + if (typeof parts === 'string' || typeof parts === 'number' || /*#__PURE__*/React__default['default'].isValidElement(parts)) { + environment.warnOnce('CircleGraph:label:string', 'CircleGraph: the function passed to the label should not ' + 'return a React node anymore: please check the CircleGraph documentation.'); + return { + value: String(parts) + }; + } + + return parts; +} + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "CircleGraph___StyledDiv", + componentId: "sc-2a8gt2-0" +})(["position:relative;display:flex;align-items:center;justify-content center;width:", "px;height:", "px;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +var _StyledSvg = _styled__default['default']("svg").withConfig({ + displayName: "CircleGraph___StyledSvg", + componentId: "sc-2a8gt2-1" +})(["position:absolute;top:0;left:0;"]); + +var _StyledAnimatedCircle = _styled__default['default'](web.extendedAnimated.circle).withConfig({ + displayName: "CircleGraph___StyledAnimatedCircle", + componentId: "sc-2a8gt2-2" +})(["transform:rotate(270deg);transform-origin:50% 50%;"]); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "CircleGraph___StyledDiv2", + componentId: "sc-2a8gt2-3" +})(["display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:1.2;"]); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "CircleGraph___StyledDiv3", + componentId: "sc-2a8gt2-4" +})(["position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);"]); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "CircleGraph___StyledDiv4", + componentId: "sc-2a8gt2-5" +})(["display:flex;align-items:baseline;justify-content:center;"]); + +var _StyledAnimatedDiv = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "CircleGraph___StyledAnimatedDiv", + componentId: "sc-2a8gt2-6" +})(["display:flex;color:", ";"], function (p) { + return p._css3; +}); + +var _StyledAnimatedDiv2 = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "CircleGraph___StyledAnimatedDiv2", + componentId: "sc-2a8gt2-7" +})(["position:absolute;top:100%;left:0;right:0;display:flex;justify-content:center;color:", ";"], function (p) { + return p._css4; +}); + +function CircleGraph(_ref) { + var color = _ref.color, + label = _ref.label, + size = _ref.size, + strokeWidth = _ref.strokeWidth, + value = _ref.value; + var theme = Theme.useTheme(); + var length = Math.PI * 2 * (size - strokeWidth); + var radius = (size - strokeWidth) / 2; + + if (label === undefined) { + label = labelDefault; + } + + var labelPart = React.useCallback(function (name) { + return function (animValue) { + if (typeof label !== 'function') { + return null; + } + + var cValue = math.clamp(animValue); + var parts = labelCompat(label(cValue, value)); + return (parts[name] === undefined ? labelDefault(cValue, value)[name] : parts[name]) || ''; + }; + }, [label, value]); + var colorFn = typeof color === 'function' ? color : function () { + return color || theme.accent; + }; + return /*#__PURE__*/React__default['default'].createElement(web.Spring, { + to: { + progressValue: value + }, + native: true + }, function (_ref2) { + var progressValue = _ref2.progressValue; + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css: size, + _css2: size + }, /*#__PURE__*/React__default['default'].createElement(_StyledSvg, { + width: size, + height: size, + viewBox: "0 0 ".concat(size, " ").concat(size) + }, /*#__PURE__*/React__default['default'].createElement("circle", { + cx: size / 2, + cy: size / 2, + r: radius, + style: { + strokeWidth: strokeWidth + }, + fill: "none", + stroke: theme.border + }), /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedCircle, { + cx: size / 2, + cy: size / 2, + r: radius, + fill: "none", + strokeLinecap: "round", + strokeDasharray: length, + strokeWidth: strokeWidth, + style: { + stroke: progressValue.interpolate(colorFn), + strokeDashoffset: progressValue.interpolate(function (t) { + return length - length * t / 2; + }) + } + })), /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, null, typeof label !== 'function' ? label : label && /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, null, /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, null, /*#__PURE__*/React__default['default'].createElement(web.extendedAnimated.div, { + style: { + fontSize: "".concat(size * 0.2, "px") + } + }, progressValue.interpolate(labelPart('prefix'))), /*#__PURE__*/React__default['default'].createElement(web.extendedAnimated.div, { + style: { + fontSize: "".concat(size * 0.25, "px") + } + }, progressValue.interpolate(labelPart('value'))), /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedDiv, { + style: { + fontSize: "".concat(size * 0.13, "px") + }, + _css3: theme.surfaceContentSecondary + }, progressValue.interpolate(labelPart('suffix')))), /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedDiv2, { + style: { + fontSize: "".concat(size * 0.1, "px") + }, + _css4: theme.surfaceContentSecondary + }, progressValue.interpolate(labelPart('secondary')))))); + }); +} + +CircleGraph.propTypes = { + color: index.propTypes.oneOfType([index.propTypes.func, index.propTypes.string]), + label: index.propTypes.oneOfType([index.propTypes.node, index.propTypes.func]), + size: index.propTypes.number, + strokeWidth: index.propTypes.number, + value: index.propTypes.number.isRequired +}; +CircleGraph.defaultProps = { + size: SIZE_DEFAULT, + strokeWidth: STROKE_WIDTH +}; + +exports.default = CircleGraph; +//# sourceMappingURL=CircleGraph.js.map diff --git a/packages/govern-console/public/aragon-ui/CircleGraph.js.map b/packages/govern-console/public/aragon-ui/CircleGraph.js.map new file mode 100644 index 000000000..835b1744a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/CircleGraph.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CircleGraph.js","sources":["../src/components/CircleGraph/CircleGraph.js"],"sourcesContent":["import React, { useCallback } from 'react'\nimport PropTypes from 'prop-types'\nimport { Spring, animated } from 'react-spring'\nimport { useTheme } from '../../theme'\nimport { clamp, warnOnce } from '../../utils'\n\nconst STROKE_WIDTH = 4\nconst SIZE_DEFAULT = 80\n\nfunction labelDefault(animValue, value) {\n const parts = {\n suffix: '%',\n value: String(Math.floor(animValue * 100)),\n }\n\n const animPercentage = animValue * 100\n const percentage = value * 100\n\n const lessThanOne =\n percentage > 0 &&\n percentage < 1 &&\n animPercentage > 0 &&\n // We know that the actual percentage is less than 1,\n // so this is to avoid a jump with “1%” without prefix.\n animPercentage < 2\n\n return lessThanOne ? { ...parts, prefix: '<', value: '1' } : parts\n}\n\nfunction labelCompat(parts) {\n if (\n typeof parts === 'string' ||\n typeof parts === 'number' ||\n React.isValidElement(parts)\n ) {\n warnOnce(\n 'CircleGraph:label:string',\n 'CircleGraph: the function passed to the label should not ' +\n 'return a React node anymore: please check the CircleGraph documentation.'\n )\n return { value: String(parts) }\n }\n return parts\n}\n\nfunction CircleGraph({ color, label, size, strokeWidth, value }) {\n const theme = useTheme()\n const length = Math.PI * 2 * (size - strokeWidth)\n const radius = (size - strokeWidth) / 2\n\n if (label === undefined) {\n label = labelDefault\n }\n\n const labelPart = useCallback(\n name => animValue => {\n if (typeof label !== 'function') {\n return null\n }\n\n const cValue = clamp(animValue)\n const parts = labelCompat(label(cValue, value))\n\n return (\n (parts[name] === undefined\n ? labelDefault(cValue, value)[name]\n : parts[name]) || ''\n )\n },\n [label, value]\n )\n\n const colorFn =\n typeof color === 'function' ? color : () => color || theme.accent\n\n return (\n \n {({ progressValue }) => (\n \n \n \n length - (length * t) / 2\n ),\n }}\n css={`\n transform: rotate(270deg);\n transform-origin: 50% 50%;\n `}\n />\n \n \n {typeof label !== 'function'\n ? label\n : label && (\n \n \n \n {progressValue.interpolate(labelPart('prefix'))}\n \n \n {progressValue.interpolate(labelPart('value'))}\n \n \n {progressValue.interpolate(labelPart('suffix'))}\n \n \n \n {progressValue.interpolate(labelPart('secondary'))}\n \n \n )}\n \n \n )}\n \n )\n}\n\nCircleGraph.propTypes = {\n color: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n label: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n size: PropTypes.number,\n strokeWidth: PropTypes.number,\n value: PropTypes.number.isRequired,\n}\n\nCircleGraph.defaultProps = {\n size: SIZE_DEFAULT,\n strokeWidth: STROKE_WIDTH,\n}\n\nexport default CircleGraph\n"],"names":["STROKE_WIDTH","SIZE_DEFAULT","labelDefault","animValue","value","parts","suffix","String","Math","floor","animPercentage","percentage","lessThanOne","prefix","labelCompat","React","isValidElement","warnOnce","CircleGraph","color","label","size","strokeWidth","theme","useTheme","length","PI","radius","undefined","labelPart","useCallback","name","cValue","clamp","colorFn","accent","Spring","progressValue","border","stroke","interpolate","strokeDashoffset","t","animated","fontSize","surfaceContentSecondary","propTypes","PropTypes","oneOfType","func","string","node","number","isRequired","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAMA,YAAY,GAAG,CAArB;AACA,IAAMC,YAAY,GAAG,EAArB;;AAEA,SAASC,YAAT,CAAsBC,SAAtB,EAAiCC,KAAjC,EAAwC;AACtC,MAAMC,KAAK,GAAG;AACZC,IAAAA,MAAM,EAAE,GADI;AAEZF,IAAAA,KAAK,EAAEG,MAAM,CAACC,IAAI,CAACC,KAAL,CAAWN,SAAS,GAAG,GAAvB,CAAD;AAFD,GAAd;AAKA,MAAMO,cAAc,GAAGP,SAAS,GAAG,GAAnC;AACA,MAAMQ,UAAU,GAAGP,KAAK,GAAG,GAA3B;AAEA,MAAMQ,WAAW,GACfD,UAAU,GAAG,CAAb,IACAA,UAAU,GAAG,CADb,IAEAD,cAAc,GAAG,CAFjB;AAIA;AACAA,EAAAA,cAAc,GAAG,CANnB;AAQA,SAAOE,WAAW,mCAAQP,KAAR;AAAeQ,IAAAA,MAAM,EAAE,GAAvB;AAA4BT,IAAAA,KAAK,EAAE;AAAnC,OAA2CC,KAA7D;AACD;;AAED,SAASS,WAAT,CAAqBT,KAArB,EAA4B;AAC1B,MACE,OAAOA,KAAP,KAAiB,QAAjB,IACA,OAAOA,KAAP,KAAiB,QADjB,iBAEAU,yBAAK,CAACC,cAAN,CAAqBX,KAArB,CAHF,EAIE;AACAY,IAAAA,oBAAQ,CACN,0BADM,EAEN,8DACE,0EAHI,CAAR;AAKA,WAAO;AAAEb,MAAAA,KAAK,EAAEG,MAAM,CAACF,KAAD;AAAf,KAAP;AACD;;AACD,SAAOA,KAAP;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,SAASa,WAAT,OAAiE;AAAA,MAA1CC,KAA0C,QAA1CA,KAA0C;AAAA,MAAnCC,KAAmC,QAAnCA,KAAmC;AAAA,MAA5BC,IAA4B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KAAK,EAAE;AAAEC,QAAAA,QAAQ,YAAKvB,IAAI,GAAG,IAAZ;AAAV;AAArB,OACGgB,aAAa,CAACG,WAAd,CAA0BX,SAAS,CAAC,OAAD,CAAnC,CADH,CAVF,eAaEd;AAKE,MAAA,KAAK,EAAE;AAAE6B,QAAAA,QAAQ,YAAKvB,IAAI,GAAG,IAAZ;AAAV,OALT;AAAA,aAGaE,KAAK,CAACsB;AAHnB,OAOGR,aAAa,CAACG,WAAd,CAA0BX,SAAS,CAAC,QAAD,CAAnC,CAPH,CAbF,CATF,eAgCEd;AAUE,MAAA,KAAK,EAAE;AAAE6B,QAAAA,QAAQ,YAAKvB,IAAI,GAAG,GAAZ;AAAV,OAVT;AAAA,aAQaE,KAAK,CAACsB;AARnB,OAYGR,aAAa,CAACG,WAAd,CAA0BX,SAAS,CAAC,WAAD,CAAnC,CAZH,CAhCF,CAZR,CAhDF,CADD;AAAA,GADH,CADF;AAoHD;;AAEDX,WAAW,CAAC4B,SAAZ,GAAwB;AACtB3B,EAAAA,KAAK,EAAE4B,eAAS,CAACC,SAAV,CAAoB,CAACD,eAAS,CAACE,IAAX,EAAiBF,eAAS,CAACG,MAA3B,CAApB,CADe;AAEtB9B,EAAAA,KAAK,EAAE2B,eAAS,CAACC,SAAV,CAAoB,CAACD,eAAS,CAACI,IAAX,EAAiBJ,eAAS,CAACE,IAA3B,CAApB,CAFe;AAGtB5B,EAAAA,IAAI,EAAE0B,eAAS,CAACK,MAHM;AAItB9B,EAAAA,WAAW,EAAEyB,eAAS,CAACK,MAJD;AAKtBhD,EAAAA,KAAK,EAAE2C,eAAS,CAACK,MAAV,CAAiBC;AALF,CAAxB;AAQAnC,WAAW,CAACoC,YAAZ,GAA2B;AACzBjC,EAAAA,IAAI,EAAEpB,YADmB;AAEzBqB,EAAAA,WAAW,EAAEtB;AAFY,CAA3B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/ContextMenu.js b/packages/govern-console/public/aragon-ui/ContextMenu.js new file mode 100644 index 000000000..bf55e708a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/ContextMenu.js @@ -0,0 +1,320 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +var springs = require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +var IconDown = require('./IconDown.js'); +var IconEllipsis = require('./IconEllipsis.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +var ReactDOM = require('react-dom'); +var web = require('./web-7cbdbd84.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); +var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM); + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + + + + +var ClickOutComponent = function (_React$Component) { + _inherits(ClickOutComponent, _React$Component); + + function ClickOutComponent() { + _classCallCheck(this, ClickOutComponent); + + return _possibleConstructorReturn(this, (ClickOutComponent.__proto__ || Object.getPrototypeOf(ClickOutComponent)).call(this)); + } + + _createClass(ClickOutComponent, [{ + key: 'componentDidMount', + value: function componentDidMount() { + var self = this; + var elTouchIsClick = true; + var documentTouchIsClick = true; + var el = ReactDOM__default['default'].findDOMNode(this); + + self.__documentTouchStarted = function (e) { + el.removeEventListener('click', self.__elementClicked); + document.removeEventListener('click', self.__documentClicked); + }; + + self.__documentTouchMoved = function (e) { + documentTouchIsClick = false; + }; + + self.__documentTouchEnded = function (e) { + if (documentTouchIsClick) self.__documentClicked(e); + documentTouchIsClick = true; + }; + + self.__documentClicked = function (e) { + if ((e.__clickedElements || []).indexOf(el) !== -1) return; + + var clickOutHandler = self.onClickOut || self.props.onClickOut; + if (!clickOutHandler) { + return console.warn('onClickOut is not defined.'); + } + + clickOutHandler.call(self, e); + }; + + self.__elementTouchMoved = function (e) { + elTouchIsClick = false; + }; + + self.__elementTouchEnded = function (e) { + if (elTouchIsClick) self.__elementClicked(e); + elTouchIsClick = true; + }; + + self.__elementClicked = function (e) { + e.__clickedElements = e.__clickedElements || []; + e.__clickedElements.push(el); + }; + + setTimeout(function () { + if (self.__unmounted) return; + self.toggleListeners('addEventListener'); + }, 0); + } + }, { + key: 'toggleListeners', + value: function toggleListeners(listenerMethod) { + var el = ReactDOM__default['default'].findDOMNode(this); + + el[listenerMethod]('touchmove', this.__elementTouchMoved); + el[listenerMethod]('touchend', this.__elementTouchEnded); + el[listenerMethod]('click', this.__elementClicked); + + document[listenerMethod]('touchstart', this.__documentTouchStarted); + document[listenerMethod]('touchmove', this.__documentTouchMoved); + document[listenerMethod]('touchend', this.__documentTouchEnded); + document[listenerMethod]('click', this.__documentClicked); + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.toggleListeners('removeEventListener'); + this.__unmounted = true; + } + }, { + key: 'render', + value: function render() { + return Array.isArray(this.props.children) ? React__default['default'].createElement( + 'div', + null, + this.props.children + ) : React__default['default'].Children.only(this.props.children); + } + }]); + + return ClickOutComponent; +}(React__default['default'].Component); + +var reactOnclickout = ClickOutComponent; + +var BASE_WIDTH = 46; +var BASE_HEIGHT = 32; + +var _StyledIconEllipsis = _styled__default['default'](IconEllipsis.default).withConfig({ + displayName: "ContextMenu___StyledIconEllipsis", + componentId: "ris724-0" +})([""]); + +var _StyledIconDown = _styled__default['default'](IconDown.default).withConfig({ + displayName: "ContextMenu___StyledIconDown", + componentId: "ris724-1" +})(["color:", ";"], function (p) { + return p._css7; +}); + +var _StyledAnimatedDiv = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "ContextMenu___StyledAnimatedDiv", + componentId: "ris724-2" +})(["z-index:", ";overflow:hidden;position:absolute;top:", "px;right:0;background:", ";border:1px solid ", ";border-radius:3px 0 3px 3px;"], function (p) { + return p._css8; +}, function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "ContextMenu___StyledDiv", + componentId: "ris724-3" +})(["z-index:", ";position:absolute;bottom:0;right:1px;height:1px;width:", "px;background:", ";"], function (p) { + return p._css12; +}, function (p) { + return p._css13; +}, function (p) { + return p._css14; +}); + +function ContextMenu(_ref) { + var children = _ref.children, + zIndex = _ref.zIndex, + disabled = _ref.disabled; + var theme = Theme.useTheme(); + + var _useState = React.useState(false), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + opened = _useState2[0], + setOpened = _useState2[1]; + + var handleClose = React.useCallback(function () { + setOpened(false); + }, []); + var handleBaseButtonClick = React.useCallback(function () { + setOpened(function (opened) { + return !opened; + }); + }, []); // Increase the z-index on an opened menu, to make sure it's above any other + // context menus below it using the same z-index (e.g. when used in a list) + + var appliedZIndex = opened ? zIndex + 1 : zIndex; + return /*#__PURE__*/React__default['default'].createElement(reactOnclickout, { + onClickOut: handleClose + }, /*#__PURE__*/React__default['default'].createElement(web.Spring, { + config: springs.springs.smooth, + to: { + openProgress: Number(opened) + }, + native: true + }, function (_ref2) { + var openProgress = _ref2.openProgress; + return /*#__PURE__*/React__default['default'].createElement(_StyledMain, { + style: { + boxShadow: openProgress.interpolate(function (t) { + return "0 4px 4px rgba(0, 0, 0, ".concat(t * 0.03, ")"); + }) + }, + _css: appliedZIndex + }, /*#__PURE__*/React__default['default'].createElement(_StyledButton, { + onClick: handleBaseButtonClick, + opened: opened, + disabled: disabled, + focusRingRadius: constants.RADIUS, + _css2: disabled ? theme.disabledContent : opened ? theme.accent : theme.surfaceContent, + _css3: disabled ? theme.disabled : theme.surface, + _css4: disabled ? '0' : "1px solid ".concat(theme.border), + _css5: opened ? theme.surface : theme.border, + _css6: disabled ? '' : "&:active {\n background: ".concat(theme.surfacePressed, ";\n border-bottom-color: ").concat(opened ? theme.surfacePressed : theme.border, ";\n }") + }, /*#__PURE__*/React__default['default'].createElement(_StyledIconEllipsis, null), /*#__PURE__*/React__default['default'].createElement(web.extendedAnimated.div, { + style: { + display: 'flex', + alignItems: 'center', + transformOrigin: '50% 50%', + transform: openProgress.interpolate(function (v) { + return "rotate(".concat(v * 180, "deg)"); + }) + } + }, /*#__PURE__*/React__default['default'].createElement(_StyledIconDown, { + size: "tiny", + _css7: disabled ? theme.disabledIcon : theme.surfaceIcon + }))), opened && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedDiv, { + onClick: handleClose, + style: { + opacity: openProgress, + boxShadow: openProgress.interpolate(function (t) { + return "0 4px 4px rgba(0, 0, 0, ".concat(t * 0.03, ")"); + }) + }, + _css8: appliedZIndex + 1, + _css9: BASE_HEIGHT - 1, + _css10: theme.surface, + _css11: theme.border + }, children), /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css12: appliedZIndex + 1, + _css13: BASE_WIDTH - 2, + _css14: theme.surface + }))); + })); +} + +ContextMenu.propTypes = { + children: index.propTypes.node, + zIndex: index.propTypes.number, + disabled: index.propTypes.bool +}; +ContextMenu.defaultProps = { + zIndex: 0, + disabled: false +}; +var Main = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "ContextMenu__Main", + componentId: "ris724-4" +})(["position:relative;width:", "px;height:", "px;"], BASE_WIDTH, BASE_HEIGHT); + +var _StyledMain = _styled__default['default'](Main).withConfig({ + displayName: "ContextMenu___StyledMain", + componentId: "ris724-5" +})(["z-index:", ";"], function (p) { + return p._css; +}); + +var Button = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "ContextMenu__Button", + componentId: "ris724-6" +})(["display:flex;justify-content:center;align-items:center;width:100%;height:", "px;border-radius:", ";box-shadow:", ";"], BASE_HEIGHT, function (_ref3) { + var opened = _ref3.opened; + return opened ? "".concat(constants.RADIUS, "px ").concat(constants.RADIUS, "px 0 0") : "".concat(constants.RADIUS, "px"); +}, function (_ref4) { + var disabled = _ref4.disabled; + return disabled ? 'none' : "0px 1px 3px rgba(0, 0, 0, 0.1)"; +}); + +var _StyledButton = _styled__default['default'](Button).withConfig({ + displayName: "ContextMenu___StyledButton", + componentId: "ris724-7" +})(["color:", ";background:", ";border:", ";border-bottom-color:", ";", ""], function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +exports.default = ContextMenu; +//# sourceMappingURL=ContextMenu.js.map diff --git a/packages/govern-console/public/aragon-ui/ContextMenu.js.map b/packages/govern-console/public/aragon-ui/ContextMenu.js.map new file mode 100644 index 000000000..2f7985631 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/ContextMenu.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ContextMenu.js","sources":["../node_modules/react-onclickout/index.js","../src/components/ContextMenu/ContextMenu.js"],"sourcesContent":["'use strict';\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar React = require('react');\nvar ReactDOM = require('react-dom');\n\nvar ClickOutComponent = function (_React$Component) {\n _inherits(ClickOutComponent, _React$Component);\n\n function ClickOutComponent() {\n _classCallCheck(this, ClickOutComponent);\n\n return _possibleConstructorReturn(this, (ClickOutComponent.__proto__ || Object.getPrototypeOf(ClickOutComponent)).call(this));\n }\n\n _createClass(ClickOutComponent, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var self = this;\n var elTouchIsClick = true;\n var documentTouchIsClick = true;\n var el = ReactDOM.findDOMNode(this);\n\n self.__documentTouchStarted = function (e) {\n el.removeEventListener('click', self.__elementClicked);\n document.removeEventListener('click', self.__documentClicked);\n };\n\n self.__documentTouchMoved = function (e) {\n documentTouchIsClick = false;\n };\n\n self.__documentTouchEnded = function (e) {\n if (documentTouchIsClick) self.__documentClicked(e);\n documentTouchIsClick = true;\n };\n\n self.__documentClicked = function (e) {\n if ((e.__clickedElements || []).indexOf(el) !== -1) return;\n\n var clickOutHandler = self.onClickOut || self.props.onClickOut;\n if (!clickOutHandler) {\n return console.warn('onClickOut is not defined.');\n }\n\n clickOutHandler.call(self, e);\n };\n\n self.__elementTouchMoved = function (e) {\n elTouchIsClick = false;\n };\n\n self.__elementTouchEnded = function (e) {\n if (elTouchIsClick) self.__elementClicked(e);\n elTouchIsClick = true;\n };\n\n self.__elementClicked = function (e) {\n e.__clickedElements = e.__clickedElements || [];\n e.__clickedElements.push(el);\n };\n\n setTimeout(function () {\n if (self.__unmounted) return;\n self.toggleListeners('addEventListener');\n }, 0);\n }\n }, {\n key: 'toggleListeners',\n value: function toggleListeners(listenerMethod) {\n var el = ReactDOM.findDOMNode(this);\n\n el[listenerMethod]('touchmove', this.__elementTouchMoved);\n el[listenerMethod]('touchend', this.__elementTouchEnded);\n el[listenerMethod]('click', this.__elementClicked);\n\n document[listenerMethod]('touchstart', this.__documentTouchStarted);\n document[listenerMethod]('touchmove', this.__documentTouchMoved);\n document[listenerMethod]('touchend', this.__documentTouchEnded);\n document[listenerMethod]('click', this.__documentClicked);\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.toggleListeners('removeEventListener');\n this.__unmounted = true;\n }\n }, {\n key: 'render',\n value: function render() {\n return Array.isArray(this.props.children) ? React.createElement(\n 'div',\n null,\n this.props.children\n ) : React.Children.only(this.props.children);\n }\n }]);\n\n return ClickOutComponent;\n}(React.Component);\n\nmodule.exports = ClickOutComponent;\n","import React, { useState, useCallback } from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\nimport { Spring, animated } from 'react-spring'\nimport ClickOutHandler from 'react-onclickout'\nimport { useTheme } from '../../theme'\nimport { springs, RADIUS } from '../../style'\nimport { IconEllipsis, IconDown } from '../../icons/components'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst BASE_WIDTH = 46\nconst BASE_HEIGHT = 32\n\nfunction ContextMenu({ children, zIndex, disabled }) {\n const theme = useTheme()\n const [opened, setOpened] = useState(false)\n\n const handleClose = useCallback(() => {\n setOpened(false)\n }, [])\n\n const handleBaseButtonClick = useCallback(() => {\n setOpened(opened => !opened)\n }, [])\n\n // Increase the z-index on an opened menu, to make sure it's above any other\n // context menus below it using the same z-index (e.g. when used in a list)\n const appliedZIndex = opened ? zIndex + 1 : zIndex\n\n return (\n \n \n {({ openProgress }) => (\n `0 4px 4px rgba(0, 0, 0, ${t * 0.03})`\n ),\n }}\n >\n \n \n `rotate(${v * 180}deg)`\n ),\n }}\n >\n \n \n \n {opened && (\n \n `0 4px 4px rgba(0, 0, 0, ${t * 0.03})`\n ),\n }}\n css={`\n z-index: ${appliedZIndex + 1};\n overflow: hidden;\n position: absolute;\n top: ${BASE_HEIGHT - 1}px;\n right: 0;\n background: ${theme.surface};\n border: 1px solid ${theme.border};\n border-radius: 3px 0 3px 3px;\n `}\n >\n {children}\n \n \n \n )}\n \n )}\n \n \n )\n}\n\nContextMenu.propTypes = {\n children: PropTypes.node,\n zIndex: PropTypes.number,\n disabled: PropTypes.bool,\n}\nContextMenu.defaultProps = {\n zIndex: 0,\n disabled: false,\n}\n\nconst Main = styled(animated.div)`\n position: relative;\n width: ${BASE_WIDTH}px;\n height: ${BASE_HEIGHT}px;\n`\n\nconst Button = styled(ButtonBase)`\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: ${BASE_HEIGHT}px;\n border-radius: ${({ opened }) =>\n opened ? `${RADIUS}px ${RADIUS}px 0 0` : `${RADIUS}px`};\n\n box-shadow: ${({ disabled }) =>\n disabled ? 'none' : `0px 1px 3px rgba(0, 0, 0, 0.1)`};\n`\n\nexport default ContextMenu\n"],"names":["ReactDOM","React","BASE_WIDTH","BASE_HEIGHT","ContextMenu","children","zIndex","disabled","theme","useTheme","useState","opened","setOpened","handleClose","useCallback","handleBaseButtonClick","appliedZIndex","ClickOutHandler","Spring","springs","smooth","openProgress","Number","boxShadow","interpolate","t","RADIUS","disabledContent","accent","surfaceContent","surface","border","surfacePressed","animated","display","alignItems","transformOrigin","transform","v","disabledIcon","surfaceIcon","opacity","propTypes","PropTypes","node","number","bool","defaultProps","Main","styled","div","Button","ButtonBase"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAI,YAAY,GAAG,YAAY,EAAE,SAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,KAAK,CAAC,CAAC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC,IAAI,OAAO,IAAI,UAAU,EAAE,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,UAAU,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,IAAI,UAAU,EAAE,gBAAgB,CAAC,WAAW,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE,WAA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B,QAAH,SAAGA,QAAH;AAAA,SACZA,QAAQ,GAAG,MAAH,mCADI;AAAA,CATJ,CAAZ;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/ContextMenuItem.js b/packages/govern-console/public/aragon-ui/ContextMenuItem.js new file mode 100644 index 000000000..720032b65 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/ContextMenuItem.js @@ -0,0 +1,56 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +var css = require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "ContextMenuItem___StyledButtonBase", + componentId: "sc-6mg7lj-0" +})(["display:flex;align-items:center;padding:5px 16px 5px 10px;cursor:pointer;white-space:nowrap;width:100%;", " ", ";&:active{background:", ";}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +var ContextMenuItem = /*#__PURE__*/React__default['default'].memo(function ContextMenuItem(props) { + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, _extends._extends_1({}, props, { + _css: textStyles.textStyle('body2'), + _css2: css.unselectable(), + _css3: theme.surfacePressed + })); +}); + +exports.default = ContextMenuItem; +//# sourceMappingURL=ContextMenuItem.js.map diff --git a/packages/govern-console/public/aragon-ui/ContextMenuItem.js.map b/packages/govern-console/public/aragon-ui/ContextMenuItem.js.map new file mode 100644 index 000000000..0831bf5dc --- /dev/null +++ b/packages/govern-console/public/aragon-ui/ContextMenuItem.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ContextMenuItem.js","sources":["../src/components/ContextMenu/ContextMenuItem.js"],"sourcesContent":["import React from 'react'\nimport { textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { unselectable } from '../../utils'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst ContextMenuItem = React.memo(function ContextMenuItem(props) {\n const theme = useTheme()\n return (\n \n )\n})\n\nexport default ContextMenuItem\n"],"names":["ContextMenuItem","React","memo","props","theme","useTheme","textStyle","unselectable","surfacePressed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMMA,eAAe,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,eAAT,CAAyBG,KAAzB,EAAgC;AACjE,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AACA,sBACEJ,mFAcME,KAdN;AAAA,UAQMG,oBAAS,CAAC,OAAD,CARf;AAAA,WASMC,gBAAY,EATlB;AAAA,WAWoBH,KAAK,CAACI;AAX1B,KADF;AAkBD,CApBuB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Countdown.js b/packages/govern-console/public/aragon-ui/Countdown.js new file mode 100644 index 000000000..69b477563 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Countdown.js @@ -0,0 +1,87 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +require('styled-components'); +var getPrototypeOf = require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./dayjs.min-ac79806e.js'); +require('./date.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconClock.js'); +require('./getDisplayName-7f913e84.js'); +require('./Redraw-8835074e.js'); +var Timer = require('./Timer.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf.getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf.getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return getPrototypeOf.possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +var Countdown = /*#__PURE__*/function (_React$Component) { + getPrototypeOf.inherits(Countdown, _React$Component); + + var _super = _createSuper(Countdown); + + function Countdown() { + getPrototypeOf.classCallCheck(this, Countdown); + + return _super.apply(this, arguments); + } + + getPrototypeOf.createClass(Countdown, [{ + key: "deprecationWarning", + value: function deprecationWarning() { + environment.warnOnce('Countdown', '"Countdown" has been deprecated. Please use "Timer" instead.'); + } + }, { + key: "render", + value: function render() { + this.deprecationWarning(); + var _this$props = this.props, + end = _this$props.end, + removeDaysAndHours = _this$props.removeDaysAndHours; + var format = removeDaysAndHours ? 'ms' : 'dhms'; + return /*#__PURE__*/React__default['default'].createElement(Timer.default, { + end: end, + format: format + }); + } + }]); + + return Countdown; +}(React__default['default'].Component); + +Countdown.propTypes = { + end: index.propTypes.instanceOf(Date).isRequired, + removeDaysAndHours: index.propTypes.bool +}; +Countdown.defaultProps = { + removeDaysAndHours: false +}; + +exports.default = Countdown; +//# sourceMappingURL=Countdown.js.map diff --git a/packages/govern-console/public/aragon-ui/Countdown.js.map b/packages/govern-console/public/aragon-ui/Countdown.js.map new file mode 100644 index 000000000..3094b4fdb --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Countdown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Countdown.js","sources":["../src/components/Countdown/Countdown.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport Timer from '../Timer/Timer'\nimport { warnOnce } from '../../utils'\n\nclass Countdown extends React.Component {\n deprecationWarning() {\n warnOnce(\n 'Countdown',\n '\"Countdown\" has been deprecated. Please use \"Timer\" instead.'\n )\n }\n\n render() {\n this.deprecationWarning()\n const { end, removeDaysAndHours } = this.props\n const format = removeDaysAndHours ? 'ms' : 'dhms'\n return \n }\n}\n\nCountdown.propTypes = {\n end: PropTypes.instanceOf(Date).isRequired,\n removeDaysAndHours: PropTypes.bool,\n}\n\nCountdown.defaultProps = {\n removeDaysAndHours: false,\n}\n\nexport default Countdown\n"],"names":["Countdown","warnOnce","deprecationWarning","props","end","removeDaysAndHours","format","React","Timer","Component","propTypes","PropTypes","instanceOf","Date","isRequired","bool","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKMA;;;;;;;;;;;;;yCACiB;AACnBC,MAAAA,oBAAQ,CACN,WADM,EAEN,8DAFM,CAAR;AAID;;;6BAEQ;AACP,WAAKC,kBAAL;AADO,wBAE6B,KAAKC,KAFlC;AAAA,UAECC,GAFD,eAECA,GAFD;AAAA,UAEMC,kBAFN,eAEMA,kBAFN;AAGP,UAAMC,MAAM,GAAGD,kBAAkB,GAAG,IAAH,GAAU,MAA3C;AACA,0BAAOE,wCAACC,aAAD;AAAO,QAAA,GAAG,EAAEJ,GAAZ;AAAiB,QAAA,MAAM,EAAEE;AAAzB,QAAP;AACD;;;;EAbqBC,yBAAK,CAACE;;AAgB9BT,SAAS,CAACU,SAAV,GAAsB;AACpBN,EAAAA,GAAG,EAAEO,eAAS,CAACC,UAAV,CAAqBC,IAArB,EAA2BC,UADZ;AAEpBT,EAAAA,kBAAkB,EAAEM,eAAS,CAACI;AAFV,CAAtB;AAKAf,SAAS,CAACgB,YAAV,GAAyB;AACvBX,EAAAA,kBAAkB,EAAE;AADG,CAAzB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/DataView.js b/packages/govern-console/public/aragon-ui/DataView.js new file mode 100644 index 000000000..9e0289e15 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DataView.js @@ -0,0 +1,450 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +var toConsumableArray = require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +var miscellaneous = require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./url.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +var Layout = require('./Layout.js'); +var Box = require('./Box.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./PaginationItem.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconDown.js'); +require('./IconEllipsis.js'); +require('./IconUp.js'); +require('./PaginationSeparator.js'); +var Pagination = require('./Pagination.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Checkbox.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +require('./ToggleButton.js'); +require('./OpenedSurfaceBorder.js'); +var TableView = require('./TableView.js'); +var ListView = require('./ListView.js'); +require('./getDisplayName-7f913e84.js'); +require('./PublicUrl-7d4b6d6d.js'); +require('./LoadingRing.js'); +require('./Link.js'); +var EmptyState = require('./EmptyState.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function prepareEntries(entries, from, to, selectedIndexes) { + return entries.slice(from, to).map(function (entry, index) { + var entryIndex = from + index; + var selected = selectedIndexes.includes(entryIndex); + return { + value: entry || null, + index: entryIndex, + selected: selected + }; + }); +} + +function prepareFields(fields) { + return fields.map(function (fieldFromProps, index, fields) { + // Convert non-object fields (e.g. a simple string) into objects + var field = fieldFromProps && fieldFromProps.label ? fieldFromProps : { + label: fieldFromProps + }; // Auto align the last column to the end (right) + + if (!field.align) { + field.align = index === fields.length - 1 && fields.length > 1 ? 'end' : 'start'; + } + + return field; + }); +} + +function entryExpansion(content) { + // Rows + if (Array.isArray(content) && content.length > 0) { + return { + content: content, + freeLayout: false + }; + } // Free layout + + + if (content && !Array.isArray(content)) { + return { + content: [content], + freeLayout: true + }; + } // No expansion + + + return { + content: [], + freeLayout: false + }; +} + +function renderEntries(entries, _ref) { + var fields = _ref.fields, + renderEntry = _ref.renderEntry, + renderEntryActions = _ref.renderEntryActions, + renderEntryExpansion = _ref.renderEntryExpansion, + mode = _ref.mode; + return entries.map(function (entry) { + var value = entry.value, + index = entry.index, + selected = entry.selected; + var entryNodes = renderEntry(value, index, { + selected: selected, + mode: mode + }); + + if (!Array.isArray(entryNodes)) { + entryNodes = []; + } // Create undefined cells too + + + while (entryNodes.length < fields.length) { + entryNodes.push(null); + } + + var expansion = entryExpansion(renderEntryExpansion ? renderEntryExpansion(value, index, { + selected: selected, + mode: mode + }) : null); + var actions = renderEntryActions ? renderEntryActions(value, index, { + selected: selected, + mode: mode + }) : null; + return { + actions: actions, + entryNodes: entryNodes, + expansion: expansion, + index: index, + selected: selected + }; + }); +} + +function useSelection(entries, selection, onSelectEntries) { + // Only used if `selection` is not passed via props. The selection supports + // both a managed and a controlled mode, to provide a better developer + // experience out of the box. + var _useState = React.useState([]), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + selectionManaged = _useState2[0], + setSelectionManaged = _useState2[1]; + + var currentSelection = selection === undefined ? selectionManaged : selection; + var updateSelection = React.useCallback(function (newSelection) { + // Managed state + if (selection === undefined) { + setSelectionManaged(newSelection); + } // Useful to notify, even in managed mode + + + onSelectEntries(toConsumableArray.toConsumableArray(newSelection).sort().map(function (index) { + return entries[index]; + }), newSelection); + }, [selection, onSelectEntries, entries]); + var allSelected = React.useMemo(function () { + // none selected + if (currentSelection.length === 0) { + return -1; + } // all selected + + + if (currentSelection.length === entries.length) { + return 1; + } // some selected + + + return 0; + }, [entries, currentSelection]); + var toggleEntrySelect = React.useCallback(function (entryIndex) { + updateSelection(currentSelection.includes(entryIndex) ? currentSelection.filter(function (index) { + return index !== entryIndex; + }) : [].concat(toConsumableArray.toConsumableArray(currentSelection), [entryIndex])); + }, [updateSelection, currentSelection]); + var selectAll = React.useCallback(function () { + updateSelection(currentSelection.length === 0 ? entries.map(function (_, index) { + return index; + }) : []); + }, [entries, currentSelection, updateSelection]); + return { + allSelected: allSelected, + selectAll: selectAll, + toggleEntrySelect: toggleEntrySelect, + selectedIndexes: currentSelection + }; +} + +function deprecatedEmptyStatePropsCompat(_ref2) { + var emptyState = _ref2.emptyState, + statusEmpty = _ref2.statusEmpty, + statusLoading = _ref2.statusLoading, + statusEmptyFilters = _ref2.statusEmptyFilters, + statusEmptySearch = _ref2.statusEmptySearch; + + for (var _i = 0, _arr = [['statusEmpty', statusEmpty, 'default', 'title'], ['statusEmptyFilters', statusEmptyFilters, 'empty-filters', 'subtitle'], ['statusEmptySearch', statusEmptySearch, 'empty-search', 'subtitle'], ['statusLoading', statusLoading, 'loading', 'title']]; _i < _arr.length; _i++) { + var _arr$_i = slicedToArray.slicedToArray(_arr[_i], 4), + propName = _arr$_i[0], + propValue = _arr$_i[1], + emptyStateName = _arr$_i[2], + partName = _arr$_i[3]; + + if (!propValue) { + continue; + } + + environment.warnOnce("DataView:".concat(propName), "DataView: the ".concat(propName, " prop is now deprecated, please use emptyState instead.")); // Only set the default state title if not set already + + if (!emptyState[emptyStateName] || !emptyState[emptyStateName][partName]) { + emptyState[emptyStateName] = _objectSpread(_objectSpread({}, emptyState[emptyStateName]), {}, defineProperty.defineProperty({}, partName, propValue)); + } + } + + return emptyState; +} + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "DataView___StyledDiv", + componentId: "sc-49otbs-0" +})(["padding:", "px ", "px;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +var _StyledH = _styled__default['default']("h1").withConfig({ + displayName: "DataView___StyledH", + componentId: "sc-49otbs-1" +})(["margin-bottom:", "px;", ";"], function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "DataView___StyledDiv2", + componentId: "sc-49otbs-2" +})(["border-top:1px solid ", ";"], function (p) { + return p._css5; +}); + +var DataView = /*#__PURE__*/React__default['default'].memo(function DataView(_ref3) { + var emptyState = _ref3.emptyState, + entries = _ref3.entries, + entriesPerPage = _ref3.entriesPerPage, + fields = _ref3.fields, + heading = _ref3.heading, + mode = _ref3.mode, + onPageChange = _ref3.onPageChange, + onSelectEntries = _ref3.onSelectEntries, + onStatusEmptyClear = _ref3.onStatusEmptyClear, + page = _ref3.page, + renderEntry = _ref3.renderEntry, + renderEntryActions = _ref3.renderEntryActions, + renderEntryExpansion = _ref3.renderEntryExpansion, + renderSelectionCount = _ref3.renderSelectionCount, + selection = _ref3.selection, + status = _ref3.status, + tableRowHeight = _ref3.tableRowHeight, + renderEntryChild = _ref3.renderEntryChild, + statusEmpty = _ref3.statusEmpty, + statusEmptyFilters = _ref3.statusEmptyFilters, + statusEmptySearch = _ref3.statusEmptySearch, + statusLoading = _ref3.statusLoading; + + if (renderEntryChild && !renderEntryExpansion) { + environment.warnOnce('DataView:renderEntryChild', 'DataView: the renderEntryChild prop has been renamed ' + 'renderEntryExpansion and will be removed in a future version. ' + 'Please use the new name.'); + renderEntryExpansion = renderEntryChild; + } + + if (renderEntryExpansion && onSelectEntries) { + environment.warnOnce('DataView: renderEntryExpansion + onSelectEntries', 'A DataView cannot be made selectable with some of its entries ' + 'expandable. Please use only one of renderEntryExpansion or ' + 'onSelectEntries at a time. Ignoring renderEntryExpansion.'); + renderEntryExpansion = undefined; + } + + emptyState = deprecatedEmptyStatePropsCompat({ + emptyState: emptyState, + statusEmpty: statusEmpty, + statusEmptyFilters: statusEmptyFilters, + statusEmptySearch: statusEmptySearch, + statusLoading: statusLoading + }); // Only used if `page` is not passed. The pagination supports both a + // managed and a controlled mode, to provide a better developer experience + // out of the box. + + var _useState3 = React.useState(0), + _useState4 = slicedToArray.slicedToArray(_useState3, 2), + pageManaged = _useState4[0], + setPageManaged = _useState4[1]; + + var handlePageChange = React.useCallback(function (newPage) { + // Managed state + if (page === undefined) { + setPageManaged(newPage); + } // Useful to notify, even in managed mode + + + onPageChange(newPage); + }, [onPageChange, page]); // Reset managed pagination if the entries or the pagination changes. + + React.useEffect(function () { + setPageManaged(0); + }, [entries]); + var selectedPage = page === undefined ? pageManaged : page; + var theme = Theme.useTheme(); + + var _useLayout = Layout.useLayout(), + layoutName = _useLayout.layoutName; + + var listMode = mode === 'list' || mode !== 'table' && layoutName === 'small'; + + var _useSelection = useSelection(entries, selection, onSelectEntries), + allSelected = _useSelection.allSelected, + selectAll = _useSelection.selectAll, + toggleEntrySelect = _useSelection.toggleEntrySelect, + selectedIndexes = _useSelection.selectedIndexes; + + var hasAnyActions = Boolean(renderEntryActions); + var hasAnyExpansion = Boolean(renderEntryExpansion); + var canSelect = Boolean(onSelectEntries); // If entriesPerPage is -1 (or 0): no pagination + + if (entriesPerPage < 1) { + entriesPerPage = entries.length; + } + + var pages = Math.ceil(entries.length / entriesPerPage); + var displayFrom = entriesPerPage * selectedPage; + var displayTo = displayFrom + entriesPerPage; + var displayedEntries = prepareEntries(entries, displayFrom, displayTo, selectedIndexes); + var preparedFields = prepareFields(fields); + var renderedEntries = renderEntries(displayedEntries, { + fields: fields, + renderEntry: renderEntry, + renderEntryActions: renderEntryActions, + renderEntryExpansion: renderEntryExpansion, + mode: listMode ? 'list' : 'table' + }); + var alignChildOnField = fields.findIndex(function (field) { + return field && field.childStart; + }); + var emptyEntries = renderedEntries.length === 0; + return /*#__PURE__*/React__default['default'].createElement(Box.default, { + padding: 0 + }, heading && /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css: 2 * constants.GU, + _css2: layoutName === 'small' ? 2 * constants.GU : 3 * constants.GU + }, typeof heading === 'string' ? /*#__PURE__*/React__default['default'].createElement(_StyledH, { + _css3: 2 * constants.GU, + _css4: textStyles.textStyle('body2') + }, heading) : heading), !emptyEntries && (listMode ? /*#__PURE__*/React__default['default'].createElement(ListView.ListView, { + allSelected: allSelected, + entries: renderedEntries, + fields: preparedFields, + hasAnyExpansion: hasAnyExpansion, + onSelect: toggleEntrySelect, + onSelectAll: selectAll, + renderSelectionCount: renderSelectionCount, + rowHeight: tableRowHeight, + selectable: canSelect + }) : /*#__PURE__*/React__default['default'].createElement(TableView.TableView, { + alignChildOnField: Math.min(Math.max(-1, alignChildOnField), fields.length - 1), + allSelected: allSelected, + entries: renderedEntries, + fields: preparedFields, + hasAnyActions: hasAnyActions, + hasAnyExpansion: hasAnyExpansion, + onSelect: toggleEntrySelect, + onSelectAll: selectAll, + renderSelectionCount: renderSelectionCount, + rowHeight: tableRowHeight, + selectable: canSelect, + selectedCount: selectedIndexes.length + })), emptyEntries && /*#__PURE__*/React__default['default'].createElement(EmptyState.default, { + status: status, + configurator: emptyState, + onStatusEmptyClear: onStatusEmptyClear + }), pages > 1 && /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css5: theme.border + }, /*#__PURE__*/React__default['default'].createElement(Pagination.default, { + pages: pages, + selected: selectedPage, + onChange: handlePageChange, + touchMode: layoutName === 'small' + }))); +}); +DataView.propTypes = { + page: index.propTypes.number, + entries: index.propTypes.array.isRequired, + entriesPerPage: index.propTypes.number, + fields: index.propTypes.array.isRequired, + heading: index.propTypes.node, + mode: index.propTypes.oneOf(['adaptive', 'table', 'list']), + onPageChange: index.propTypes.func, + onSelectEntries: index.propTypes.func, + renderEntry: index.propTypes.func.isRequired, + renderEntryActions: index.propTypes.func, + renderEntryExpansion: index.propTypes.func, + renderSelectionCount: index.propTypes.func, + selection: index.propTypes.array, + tableRowHeight: index.propTypes.number, + status: index.propTypes.oneOf(['default', 'empty-filters', 'empty-search', 'loading']), + onStatusEmptyClear: index.propTypes.func, + emptyState: index.propTypes.oneOfType([index.propTypes.func, index.propTypes.object]), + // deprecated + renderEntryChild: index.propTypes.func, + statusEmpty: index.propTypes.node, + statusLoading: index.propTypes.node, + statusEmptyFilters: index.propTypes.node, + statusEmptySearch: index.propTypes.node +}; +DataView.defaultProps = { + emptyState: {}, + entriesPerPage: 10, + mode: 'adaptive', + onPageChange: miscellaneous.noop, + renderSelectionCount: function renderSelectionCount(count) { + return "".concat(count, " items selected"); + }, + status: 'default', + tableRowHeight: 8 * constants.GU +}; + +exports.default = DataView; +//# sourceMappingURL=DataView.js.map diff --git a/packages/govern-console/public/aragon-ui/DataView.js.map b/packages/govern-console/public/aragon-ui/DataView.js.map new file mode 100644 index 000000000..60e934153 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DataView.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DataView.js","sources":["../src/components/DataView/DataView.js"],"sourcesContent":["import React, { useEffect, useCallback, useMemo, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { noop, warnOnce } from '../../utils'\nimport { textStyle, GU } from '../../style'\nimport { useTheme } from '../../theme'\nimport Box from '../../components/Box/Box'\nimport Pagination from '../../components/Pagination/Pagination'\nimport { useLayout } from '../../components/Layout/Layout'\nimport { TableView } from './TableView'\nimport { ListView } from './ListView'\nimport EmptyState from './EmptyState'\n\nfunction prepareEntries(entries, from, to, selectedIndexes) {\n return entries.slice(from, to).map((entry, index) => {\n const entryIndex = from + index\n const selected = selectedIndexes.includes(entryIndex)\n return { value: entry || null, index: entryIndex, selected }\n })\n}\n\nfunction prepareFields(fields) {\n return fields.map((fieldFromProps, index, fields) => {\n // Convert non-object fields (e.g. a simple string) into objects\n const field =\n fieldFromProps && fieldFromProps.label\n ? fieldFromProps\n : { label: fieldFromProps }\n\n // Auto align the last column to the end (right)\n if (!field.align) {\n field.align =\n index === fields.length - 1 && fields.length > 1 ? 'end' : 'start'\n }\n\n return field\n })\n}\n\nfunction entryExpansion(content) {\n // Rows\n if (Array.isArray(content) && content.length > 0) {\n return {\n content,\n freeLayout: false,\n }\n }\n // Free layout\n if (content && !Array.isArray(content)) {\n return {\n content: [content],\n freeLayout: true,\n }\n }\n // No expansion\n return {\n content: [],\n freeLayout: false,\n }\n}\n\nfunction renderEntries(\n entries,\n { fields, renderEntry, renderEntryActions, renderEntryExpansion, mode }\n) {\n return entries.map(entry => {\n const { value, index, selected } = entry\n\n let entryNodes = renderEntry(value, index, { selected, mode })\n\n if (!Array.isArray(entryNodes)) {\n entryNodes = []\n }\n\n // Create undefined cells too\n while (entryNodes.length < fields.length) {\n entryNodes.push(null)\n }\n\n const expansion = entryExpansion(\n renderEntryExpansion\n ? renderEntryExpansion(value, index, { selected, mode })\n : null\n )\n\n const actions = renderEntryActions\n ? renderEntryActions(value, index, { selected, mode })\n : null\n\n return {\n actions,\n entryNodes,\n expansion,\n index,\n selected,\n }\n })\n}\n\nfunction useSelection(entries, selection, onSelectEntries) {\n // Only used if `selection` is not passed via props. The selection supports\n // both a managed and a controlled mode, to provide a better developer\n // experience out of the box.\n const [selectionManaged, setSelectionManaged] = useState([])\n\n const currentSelection =\n selection === undefined ? selectionManaged : selection\n\n const updateSelection = useCallback(\n newSelection => {\n // Managed state\n if (selection === undefined) {\n setSelectionManaged(newSelection)\n }\n\n // Useful to notify, even in managed mode\n onSelectEntries(\n [...newSelection].sort().map(index => entries[index]),\n newSelection\n )\n },\n [selection, onSelectEntries, entries]\n )\n\n const allSelected = useMemo(() => {\n // none selected\n if (currentSelection.length === 0) {\n return -1\n }\n // all selected\n if (currentSelection.length === entries.length) {\n return 1\n }\n // some selected\n return 0\n }, [entries, currentSelection])\n\n const toggleEntrySelect = useCallback(\n entryIndex => {\n updateSelection(\n currentSelection.includes(entryIndex)\n ? currentSelection.filter(index => index !== entryIndex)\n : [...currentSelection, entryIndex]\n )\n },\n [updateSelection, currentSelection]\n )\n\n const selectAll = useCallback(() => {\n updateSelection(\n currentSelection.length === 0 ? entries.map((_, index) => index) : []\n )\n }, [entries, currentSelection, updateSelection])\n\n return {\n allSelected,\n selectAll,\n toggleEntrySelect,\n selectedIndexes: currentSelection,\n }\n}\n\nfunction deprecatedEmptyStatePropsCompat({\n emptyState,\n statusEmpty,\n statusLoading,\n statusEmptyFilters,\n statusEmptySearch,\n}) {\n for (const [propName, propValue, emptyStateName, partName] of [\n ['statusEmpty', statusEmpty, 'default', 'title'],\n ['statusEmptyFilters', statusEmptyFilters, 'empty-filters', 'subtitle'],\n ['statusEmptySearch', statusEmptySearch, 'empty-search', 'subtitle'],\n ['statusLoading', statusLoading, 'loading', 'title'],\n ]) {\n if (!propValue) {\n continue\n }\n\n warnOnce(\n `DataView:${propName}`,\n `DataView: the ${propName} prop is now deprecated, please use emptyState instead.`\n )\n\n // Only set the default state title if not set already\n if (!emptyState[emptyStateName] || !emptyState[emptyStateName][partName]) {\n emptyState[emptyStateName] = {\n ...emptyState[emptyStateName],\n [partName]: propValue,\n }\n }\n }\n\n return emptyState\n}\n\nconst DataView = React.memo(function DataView({\n emptyState,\n entries,\n entriesPerPage,\n fields,\n heading,\n mode,\n onPageChange,\n onSelectEntries,\n onStatusEmptyClear,\n page,\n renderEntry,\n renderEntryActions,\n renderEntryExpansion,\n renderSelectionCount,\n selection,\n status,\n tableRowHeight,\n\n // deprecated\n renderEntryChild,\n statusEmpty,\n statusEmptyFilters,\n statusEmptySearch,\n statusLoading,\n}) {\n if (renderEntryChild && !renderEntryExpansion) {\n warnOnce(\n 'DataView:renderEntryChild',\n 'DataView: the renderEntryChild prop has been renamed ' +\n 'renderEntryExpansion and will be removed in a future version. ' +\n 'Please use the new name.'\n )\n renderEntryExpansion = renderEntryChild\n }\n\n if (renderEntryExpansion && onSelectEntries) {\n warnOnce(\n 'DataView: renderEntryExpansion + onSelectEntries',\n 'A DataView cannot be made selectable with some of its entries ' +\n 'expandable. Please use only one of renderEntryExpansion or ' +\n 'onSelectEntries at a time. Ignoring renderEntryExpansion.'\n )\n renderEntryExpansion = undefined\n }\n\n emptyState = deprecatedEmptyStatePropsCompat({\n emptyState,\n statusEmpty,\n statusEmptyFilters,\n statusEmptySearch,\n statusLoading,\n })\n\n // Only used if `page` is not passed. The pagination supports both a\n // managed and a controlled mode, to provide a better developer experience\n // out of the box.\n const [pageManaged, setPageManaged] = useState(0)\n\n const handlePageChange = useCallback(\n newPage => {\n // Managed state\n if (page === undefined) {\n setPageManaged(newPage)\n }\n\n // Useful to notify, even in managed mode\n onPageChange(newPage)\n },\n [onPageChange, page]\n )\n\n // Reset managed pagination if the entries or the pagination changes.\n useEffect(() => {\n setPageManaged(0)\n }, [entries])\n\n const selectedPage = page === undefined ? pageManaged : page\n\n const theme = useTheme()\n const { layoutName } = useLayout()\n\n const listMode =\n mode === 'list' || (mode !== 'table' && layoutName === 'small')\n\n const {\n allSelected,\n selectAll,\n toggleEntrySelect,\n selectedIndexes,\n } = useSelection(entries, selection, onSelectEntries)\n\n const hasAnyActions = Boolean(renderEntryActions)\n const hasAnyExpansion = Boolean(renderEntryExpansion)\n const canSelect = Boolean(onSelectEntries)\n\n // If entriesPerPage is -1 (or 0): no pagination\n if (entriesPerPage < 1) {\n entriesPerPage = entries.length\n }\n\n const pages = Math.ceil(entries.length / entriesPerPage)\n\n const displayFrom = entriesPerPage * selectedPage\n const displayTo = displayFrom + entriesPerPage\n const displayedEntries = prepareEntries(\n entries,\n displayFrom,\n displayTo,\n selectedIndexes\n )\n\n const preparedFields = prepareFields(fields)\n const renderedEntries = renderEntries(displayedEntries, {\n fields,\n renderEntry,\n renderEntryActions,\n renderEntryExpansion,\n mode: listMode ? 'list' : 'table',\n })\n\n const alignChildOnField = fields.findIndex(field => field && field.childStart)\n\n const emptyEntries = renderedEntries.length === 0\n\n return (\n \n {heading && (\n \n {typeof heading === 'string' ? (\n \n {heading}\n \n ) : (\n heading\n )}\n \n )}\n\n {!emptyEntries &&\n (listMode ? (\n \n ) : (\n \n ))}\n\n {emptyEntries && (\n \n )}\n\n {pages > 1 && (\n \n \n \n )}\n \n )\n})\n\nDataView.propTypes = {\n page: PropTypes.number,\n entries: PropTypes.array.isRequired,\n entriesPerPage: PropTypes.number,\n fields: PropTypes.array.isRequired,\n heading: PropTypes.node,\n mode: PropTypes.oneOf(['adaptive', 'table', 'list']),\n onPageChange: PropTypes.func,\n onSelectEntries: PropTypes.func,\n renderEntry: PropTypes.func.isRequired,\n renderEntryActions: PropTypes.func,\n renderEntryExpansion: PropTypes.func,\n renderSelectionCount: PropTypes.func,\n selection: PropTypes.array,\n tableRowHeight: PropTypes.number,\n status: PropTypes.oneOf([\n 'default',\n 'empty-filters',\n 'empty-search',\n 'loading',\n ]),\n onStatusEmptyClear: PropTypes.func,\n emptyState: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n\n // deprecated\n renderEntryChild: PropTypes.func,\n statusEmpty: PropTypes.node,\n statusLoading: PropTypes.node,\n statusEmptyFilters: PropTypes.node,\n statusEmptySearch: PropTypes.node,\n}\n\nDataView.defaultProps = {\n emptyState: {},\n entriesPerPage: 10,\n mode: 'adaptive',\n onPageChange: noop,\n renderSelectionCount: count => `${count} items selected`,\n status: 'default',\n tableRowHeight: 8 * GU,\n}\n\nexport default DataView\n"],"names":["prepareEntries","entries","from","to","selectedIndexes","slice","map","entry","index","entryIndex","selected","includes","value","prepareFields","fields","fieldFromProps","field","label","align","length","entryExpansion","content","Array","isArray","freeLayout","renderEntries","renderEntry","renderEntryActions","renderEntryExpansion","mode","entryNodes","push","expansion","actions","useSelection","selection","onSelectEntries","useState","selectionManaged","setSelectionManaged","currentSelection","undefined","updateSelection","useCallback","newSelection","_toConsumableArray","sort","allSelected","useMemo","toggleEntrySelect","filter","selectAll","_","deprecatedEmptyStatePropsCompat","emptyState","statusEmpty","statusLoading","statusEmptyFilters","statusEmptySearch","propName","propValue","emptyStateName","partName","warnOnce","DataView","React","memo","entriesPerPage","heading","onPageChange","onStatusEmptyClear","page","renderSelectionCount","status","tableRowHeight","renderEntryChild","pageManaged","setPageManaged","handlePageChange","newPage","useEffect","selectedPage","theme","useTheme","useLayout","layoutName","listMode","hasAnyActions","Boolean","hasAnyExpansion","canSelect","pages","Math","ceil","displayFrom","displayTo","displayedEntries","preparedFields","renderedEntries","alignChildOnField","findIndex","childStart","emptyEntries","Box","GU","textStyle","ListView","TableView","min","max","EmptyState","border","Pagination","propTypes","PropTypes","number","array","isRequired","node","oneOf","func","oneOfType","object","defaultProps","noop","count"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,SAASA,cAAT,CAAwBC,OAAxB,EAAiCC,IAAjC,EAAuCC,EAAvC,EAA2CC,eAA3C,EAA4D;AAC1D,SAAOH,OAAO,CAACI,KAAR,CAAcH,IAAd,EAAoBC,EAApB,EAAwBG,GAAxB,CAA4B,UAACC,KAAD,EAAQC,KAAR,EAAkB;AACnD,QAAMC,UAAU,GAAGP,IAAI,GAAGM,KAA1B;AACA,QAAME,QAAQ,GAAGN,eAAe,CAACO,QAAhB,CAAyBF,UAAzB,CAAjB;AACA,WAAO;AAAEG,MAAAA,KAAK,EAAEL,KAAK,IAAI,IAAlB;AAAwBC,MAAAA,KAAK,EAAEC,UAA/B;AAA2CC,MAAAA,QAAQ,EAARA;AAA3C,KAAP;AACD,GAJM,CAAP;AAKD;;AAED,SAASG,aAAT,CAAuBC,MAAvB,EAA+B;AAC7B,SAAOA,MAAM,CAACR,GAAP,CAAW,UAACS,cAAD,EAAiBP,KAAjB,EAAwBM,MAAxB,EAAmC;AACnD;AACA,QAAME,KAAK,GACTD,cAAc,IAAIA,cAAc,CAACE,KAAjC,GACIF,cADJ,GAEI;AAAEE,MAAAA,KAAK,EAAEF;AAAT,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BAAkB,EAAE4C,eAAS,CAACM,IArBX;AAsBnBlE,EAAAA,UAAU,EAAE4D,eAAS,CAACO,SAAV,CAAoB,CAACP,eAAS,CAACM,IAAX,EAAiBN,eAAS,CAACQ,MAA3B,CAApB,CAtBO;AAwBnB;AACA/C,EAAAA,gBAAgB,EAAEuC,eAAS,CAACM,IAzBT;AA0BnBjE,EAAAA,WAAW,EAAE2D,eAAS,CAACI,IA1BJ;AA2BnB9D,EAAAA,aAAa,EAAE0D,eAAS,CAACI,IA3BN;AA4BnB7D,EAAAA,kBAAkB,EAAEyD,eAAS,CAACI,IA5BX;AA6BnB5D,EAAAA,iBAAiB,EAAEwD,eAAS,CAACI;AA7BV,CAArB;AAgCAtD,QAAQ,CAAC2D,YAAT,GAAwB;AACtBrE,EAAAA,UAAU,EAAE,EADU;AAEtBa,EAAAA,cAAc,EAAE,EAFM;AAGtBtC,EAAAA,IAAI,EAAE,UAHgB;AAItBwC,EAAAA,YAAY,EAAEuD,kBAJQ;AAKtBpD,EAAAA,oBAAoB,EAAE,8BAAAqD,KAAK;AAAA,qBAAOA,KAAP;AAAA,GALL;AAMtBpD,EAAAA,MAAM,EAAE,SANc;AAOtBC,EAAAA,cAAc,EAAE,IAAI8B;AAPE,CAAxB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/DatePicker.js b/packages/govern-console/public/aragon-ui/DatePicker.js new file mode 100644 index 000000000..122ca97e1 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DatePicker.js @@ -0,0 +1,186 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +var dayjs_min = require('./dayjs.min-ac79806e.js'); +var date = require('./date.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconLeft.js'); +require('./IconRight.js'); +var MonthDay = require('./MonthDay-2e515f76.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "DatePicker___StyledDiv", + componentId: "sc-6xp23y-0" +})(["display:grid;"]); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "DatePicker___StyledDiv2", + componentId: "sc-6xp23y-1" +})(["display:grid;grid-template:auto / repeat(7,1fr);width:", "px;"], function (p) { + return p._css; +}); + +function DatePicker(_ref) { + var initialDate = _ref.initialDate, + onSelect = _ref.onSelect, + datesRangeStart = _ref.datesRangeStart, + datesRangeEnd = _ref.datesRangeEnd, + hideYearSelector = _ref.hideYearSelector, + yearFormat = _ref.yearFormat, + hideMonthSelector = _ref.hideMonthSelector, + monthFormat = _ref.monthFormat, + monthYearFormat = _ref.monthYearFormat, + hideWeekDays = _ref.hideWeekDays, + weekDayFormat = _ref.weekDayFormat, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["initialDate", "onSelect", "datesRangeStart", "datesRangeEnd", "hideYearSelector", "yearFormat", "hideMonthSelector", "monthFormat", "monthYearFormat", "hideWeekDays", "weekDayFormat"]); + + var _useState = React.useState(initialDate), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + selectedDate = _useState2[0], + setSelectedDate = _useState2[1]; + + var setDate = function setDate(_ref2) { + var year = _ref2.year, + add = _ref2.add; + return function (event) { + setSelectedDate(dayjs_min.dayjs_min(selectedDate).startOf('month')[add ? 'add' : 'subtract'](1, year ? 'year' : 'month').toDate()); + }; + }; + + var today = dayjs_min.dayjs_min().startOf('day').toDate(); + var selectedDayjs = dayjs_min.dayjs_min(selectedDate || today); + + var isSelected = function isSelected(day) { + if (datesRangeStart || datesRangeEnd) { + return day.isSame(datesRangeStart, 'day') || day.isSame(datesRangeEnd, 'day'); + } + + return false; + }; + + var isInRange = function isInRange(day) { + if (datesRangeStart && datesRangeEnd) { + return day.isAfter(datesRangeStart) && day.isBefore(datesRangeEnd); + } + }; + + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, props, !hideYearSelector && /*#__PURE__*/React__default['default'].createElement(MonthDay.Selector, { + prev: setDate({ + year: true, + add: false + }), + next: setDate({ + year: true, + add: true + }), + small: true + }, selectedDayjs.format(yearFormat)), !hideMonthSelector && /*#__PURE__*/React__default['default'].createElement(MonthDay.Selector, { + prev: setDate({ + year: false, + add: false + }), + next: setDate({ + year: false, + add: true + }) + }, selectedDayjs.format(!hideYearSelector ? monthFormat : monthYearFormat)), /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css: 31.5 * constants.GU + }, !hideWeekDays && date.eachDayOfInterval({ + start: selectedDayjs.startOf('week'), + end: selectedDayjs.endOf('week') + }).map(function (day) { + var dayJs = dayjs_min.dayjs_min(day); + return /*#__PURE__*/React__default['default'].createElement(MonthDay.WrappedMonthDay, { + key: dayJs.format('dd'), + weekDay: true + }, dayJs.format(weekDayFormat)); + }), date.eachDayOfInterval({ + start: selectedDayjs.startOf('month').startOf('week'), + end: selectedDayjs.endOf('month').endOf('week') + }).map(function (day) { + var dayJs = dayjs_min.dayjs_min(day); + return /*#__PURE__*/React__default['default'].createElement(MonthDay.WrappedMonthDay, { + key: dayJs.valueOf(), + disabled: !selectedDayjs.isSame(dayJs, 'month'), + selected: isSelected(dayJs), + inRange: isInRange(dayJs), + rangeBoundaryBegin: datesRangeStart && datesRangeEnd && dayJs.isSame(datesRangeStart, 'day'), + rangeBoundaryEnd: datesRangeStart && datesRangeEnd && dayJs.isSame(datesRangeEnd, 'day'), + today: dayJs.isSame(today, 'day'), + onClick: function onClick() { + return onSelect(dayJs.toDate()); + } + }, dayJs.format(props.dayFormat)); + }))); +} + +DatePicker.propTypes = { + /** + * For displaying a selected dates range - start + */ + datesRangeStart: index.propTypes.instanceOf(Date), + + /** + * For displaying a selected dates range - end + */ + datesRangeEnd: index.propTypes.instanceOf(Date), + + /** + * Initial date - calendar will start from here. + */ + initialDate: index.propTypes.instanceOf(Date), + // Events + onSelect: index.propTypes.func, + // Visibility + hideMonthSelector: index.propTypes.bool, + hideWeekDays: index.propTypes.bool, + hideYearSelector: index.propTypes.bool, + // Formatting + dayFormat: index.propTypes.string, + monthFormat: index.propTypes.string, + monthYearFormat: index.propTypes.string, + weekDayFormat: index.propTypes.string, + yearFormat: index.propTypes.string +}; +DatePicker.defaultProps = { + onSelect: function onSelect() {}, + dayFormat: 'D', + monthFormat: 'MMMM', + monthYearFormat: 'MMMM YYYY', + weekDayFormat: 'ddd', + yearFormat: 'YYYY' +}; + +exports.default = DatePicker; +//# sourceMappingURL=DatePicker.js.map diff --git a/packages/govern-console/public/aragon-ui/DatePicker.js.map b/packages/govern-console/public/aragon-ui/DatePicker.js.map new file mode 100644 index 000000000..78a6074a8 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DatePicker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DatePicker.js","sources":["../src/components/DateRangePicker/DatePicker.js"],"sourcesContent":["import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport dayjs from 'dayjs'\nimport { GU } from '../../style'\nimport { eachDayOfInterval } from '../../utils'\nimport { Selector } from './components'\nimport MonthDay from './MonthDay'\n\nfunction DatePicker({\n initialDate,\n onSelect,\n datesRangeStart,\n datesRangeEnd,\n hideYearSelector,\n yearFormat,\n hideMonthSelector,\n monthFormat,\n monthYearFormat,\n hideWeekDays,\n weekDayFormat,\n ...props\n}) {\n const [selectedDate, setSelectedDate] = useState(initialDate)\n\n const setDate = ({ year, add }) => event => {\n setSelectedDate(\n dayjs(selectedDate)\n .startOf('month')\n [add ? 'add' : 'subtract'](1, year ? 'year' : 'month')\n .toDate()\n )\n }\n\n const today = dayjs()\n .startOf('day')\n .toDate()\n\n const selectedDayjs = dayjs(selectedDate || today)\n\n const isSelected = day => {\n if (datesRangeStart || datesRangeEnd) {\n return (\n day.isSame(datesRangeStart, 'day') || day.isSame(datesRangeEnd, 'day')\n )\n }\n return false\n }\n\n const isInRange = day => {\n if (datesRangeStart && datesRangeEnd) {\n return day.isAfter(datesRangeStart) && day.isBefore(datesRangeEnd)\n }\n }\n\n return (\n \n {!hideYearSelector && (\n \n {selectedDayjs.format(yearFormat)}\n \n )}\n\n {!hideMonthSelector && (\n \n {selectedDayjs.format(\n !hideYearSelector ? monthFormat : monthYearFormat\n )}\n \n )}\n\n \n {!hideWeekDays &&\n eachDayOfInterval({\n start: selectedDayjs.startOf('week'),\n end: selectedDayjs.endOf('week'),\n }).map(day => {\n const dayJs = dayjs(day)\n return (\n \n {dayJs.format(weekDayFormat)}\n \n )\n })}\n\n {eachDayOfInterval({\n start: selectedDayjs.startOf('month').startOf('week'),\n end: selectedDayjs.endOf('month').endOf('week'),\n }).map(day => {\n const dayJs = dayjs(day)\n return (\n onSelect(dayJs.toDate())}\n >\n {dayJs.format(props.dayFormat)}\n \n )\n })}\n \n \n )\n}\n\nDatePicker.propTypes = {\n /**\n * For displaying a selected dates range - start\n */\n datesRangeStart: PropTypes.instanceOf(Date),\n /**\n * For displaying a selected dates range - end\n */\n datesRangeEnd: PropTypes.instanceOf(Date),\n /**\n * Initial date - calendar will start from here.\n */\n initialDate: PropTypes.instanceOf(Date),\n\n // Events\n onSelect: PropTypes.func,\n\n // Visibility\n hideMonthSelector: PropTypes.bool,\n hideWeekDays: PropTypes.bool,\n hideYearSelector: PropTypes.bool,\n\n // Formatting\n dayFormat: PropTypes.string,\n monthFormat: PropTypes.string,\n monthYearFormat: PropTypes.string,\n weekDayFormat: PropTypes.string,\n yearFormat: PropTypes.string,\n}\n\nDatePicker.defaultProps = {\n onSelect: () => {},\n dayFormat: 'D',\n monthFormat: 'MMMM',\n monthYearFormat: 'MMMM YYYY',\n weekDayFormat: 'ddd',\n yearFormat: 'YYYY',\n}\n\nexport default DatePicker\n"],"names":["DatePicker","initialDate","onSelect","datesRangeStart","datesRangeEnd","hideYearSelector","yearFormat","hideMonthSelector","monthFormat","monthYearFormat","hideWeekDays","weekDayFormat","props","useState","selectedDate","setSelectedDate","setDate","year","add","event","dayjs","startOf","toDate","today","selectedDayjs","isSelected","day","isSame","isInRange","isAfter","isBefore","React","Selector","format","GU","eachDayOfInterval","start","end","endOf","map","dayJs","MonthDay","valueOf","dayFormat","propTypes","PropTypes","instanceOf","Date","func","bool","string","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAASA,UAAT,OAaG;AAAA,MAZDC,WAYC,QAZDA,WAYC;AAAA,MAXDC,QAWC,QAXDA,QAWC;AAAA,MAVDC,eAUC,QAVDA,eAUC;AAAA,MATDC,aASC,QATDA,aASC;AAAA,MARDC,gBAQC,QARDA,gBAQC;AAAA,MAPDC,UAOC,QAPDA,UAOC;AAAA,MANDC,iBAMC,QANDA,iBAMC;AAAA,MALDC,WAKC,QALDA,WAKC;AAAA,MAJDC,eAIC,QAJDA,eAIC;AAAA,MAHDC,YAGC,QAHDA,YAGC;AAAA,MAFDC,aAEC,QAFDA,aAEC;AAAA,MADEC,KACF;;AAAA,kBACuCC,cAAQ,CAACZ,WAAD,CAD/C;AAAA;AAAA,MACMa,YADN;AAAA,MACoBC,eADpB;;AAGD,MAAMC,OAAO,GAAG,SAAVA,OAAU;AAAA,QAAGC,IAAH,SAAGA,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,CAACI,IApBP;AAsBrB;AACAN,EAAAA,SAAS,EAAEE,eAAS,CAACK,MAvBA;AAwBrB1C,EAAAA,WAAW,EAAEqC,eAAS,CAACK,MAxBF;AAyBrBzC,EAAAA,eAAe,EAAEoC,eAAS,CAACK,MAzBN;AA0BrBvC,EAAAA,aAAa,EAAEkC,eAAS,CAACK,MA1BJ;AA2BrB5C,EAAAA,UAAU,EAAEuC,eAAS,CAACK;AA3BD,CAAvB;AA8BAlD,UAAU,CAACmD,YAAX,GAA0B;AACxBjD,EAAAA,QAAQ,EAAE,oBAAM,EADQ;AAExByC,EAAAA,SAAS,EAAE,GAFa;AAGxBnC,EAAAA,WAAW,EAAE,MAHW;AAIxBC,EAAAA,eAAe,EAAE,WAJO;AAKxBE,EAAAA,aAAa,EAAE,KALS;AAMxBL,EAAAA,UAAU,EAAE;AANY,CAA1B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/DateRangePicker.js b/packages/govern-console/public/aragon-ui/DateRangePicker.js new file mode 100644 index 000000000..03b66d590 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DateRangePicker.js @@ -0,0 +1,252 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +require('./css.js'); +var dayjs_min = require('./dayjs.min-ac79806e.js'); +require('./date.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +var Viewport = require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconCalendar.js'); +require('./IconLeft.js'); +require('./IconRight.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +var Button = require('./Button.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +require('./proptypes-9c58a90f.js'); +var Popover = require('./Popover.js'); +require('./MonthDay-2e515f76.js'); +var DatePicker = require('./DatePicker.js'); +var consts = require('./consts.js'); +var Labels = require('./Labels.js'); +var utils = require('./utils.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledPopover = _styled__default['default'](Popover.default).withConfig({ + displayName: "DateRangePicker___StyledPopover", + componentId: "s3s5m9-0" +})(["min-width:", "px;border:0;filter:none;background:none;margin:2px 0 0 0;"], function (p) { + return p._css; +}); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "DateRangePicker___StyledDiv", + componentId: "s3s5m9-1" +})(["padding:", "px ", "px ", "px;border:1px solid ", ";border-radius:", "px;background:", ";"], function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, constants.RADIUS, function (p) { + return p._css6; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "DateRangePicker___StyledDiv2", + componentId: "s3s5m9-2" +})(["display:flex;flex-direction:row;align-items:baseline;"]); + +var _StyledDatePicker = _styled__default['default'](DatePicker.default).withConfig({ + displayName: "DateRangePicker___StyledDatePicker", + componentId: "s3s5m9-3" +})(["margin-left:", "px;"], function (p) { + return p._css7; +}); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "DateRangePicker___StyledDiv3", + componentId: "s3s5m9-4" +})(["display:flex;align-items:center;justify-content:space-between;margin-top:", "px;", ";"], function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledButton = _styled__default['default'](Button.default).withConfig({ + displayName: "DateRangePicker___StyledButton", + componentId: "s3s5m9-5" +})(["margin-left:", "px;"], function (p) { + return p._css10; +}); + +function DateRangePicker(_ref) { + var format = _ref.format, + endDateProp = _ref.endDate, + onChange = _ref.onChange, + startDateProp = _ref.startDate; + var theme = Theme.useTheme(); + var labelsRef = React.useRef(); + + var _useState = React.useState(false), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + showPicker = _useState2[0], + setShowPicker = _useState2[1]; + + var _useState3 = React.useState(startDateProp), + _useState4 = slicedToArray.slicedToArray(_useState3, 2), + startDate = _useState4[0], + setStartDate = _useState4[1]; + + var _useState5 = React.useState(endDateProp), + _useState6 = slicedToArray.slicedToArray(_useState5, 2), + endDate = _useState6[0], + setEndDate = _useState6[1]; // on closing the picked, reset state + + + React.useEffect(function () { + if (!showPicker) { + setStartDate(startDateProp); + setEndDate(endDateProp); + } + }, [endDateProp, startDateProp, showPicker]); + var handlePopoverClose = React.useCallback(function () { + return setShowPicker(false); + }, []); + var handleLabelsClick = React.useCallback(function () { + setShowPicker(function (show) { + return !show; + }); + }, []); + var handleDateClick = React.useCallback(function (date) { + var result = utils.handleDateSelect({ + date: date, + startDate: startDate, + endDate: endDate + }); + result.startDate !== undefined && setStartDate(result.startDate); + result.endDate !== undefined && setEndDate(result.endDate); + }, [startDate, endDate]); + var handleApply = React.useCallback(function () { + setShowPicker(false); + + if (startDate && endDate) { + onChange({ + start: dayjs_min.dayjs_min(startDate).startOf('day').toDate(), + end: dayjs_min.dayjs_min(endDate).endOf('day').toDate() + }); + } + }, [endDate, onChange, startDate]); + var handleClear = React.useCallback(function () { + setStartDate(null); + setEndDate(null); + setShowPicker(false); + onChange({ + start: null, + end: null + }); + }, [onChange]); + var labelProps = React.useMemo(function () { + var _startDate = showPicker ? startDate : startDateProp; + + var _endDate = showPicker ? endDate : endDateProp; + + return { + startText: _startDate ? dayjs_min.dayjs_min(_startDate).format(format) : consts.START_DATE, + endText: _endDate ? dayjs_min.dayjs_min(_endDate).format(format) : consts.END_DATE + }; + }, [endDate, endDateProp, format, showPicker, startDate, startDateProp]); + var compactMode = Viewport.useViewport().below('medium'); + var displayMonthBeforeOnLeft = React.useMemo(function () { + // If both dates are in the same month, use the right calendar + // for it, and display month before on the left calendar. + var propsDatesInSameMonth = startDateProp && endDateProp && dayjs_min.dayjs_min(startDateProp).isSame(dayjs_min.dayjs_min(endDateProp), 'month'); + return !compactMode && (propsDatesInSameMonth || !startDateProp); + }, [compactMode, endDateProp, startDateProp]); + return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Labels.default, _extends._extends_1({ + ref: labelsRef, + enabled: showPicker, + hasSetDates: Boolean(startDateProp && endDateProp), + onClick: handleLabelsClick + }, labelProps)), /*#__PURE__*/React__default['default'].createElement(_StyledPopover, { + closeOnOpenerFocus: true, + onClose: handlePopoverClose, + opener: labelsRef.current, + placement: "bottom-start", + visible: showPicker, + _css: 37.5 * constants.GU + 2 + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css2: 2.5 * constants.GU, + _css3: 3 * constants.GU, + _css4: 3 * constants.GU, + _css5: theme.border, + _css6: theme.surface + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, null, /*#__PURE__*/React__default['default'].createElement(DatePicker.default, { + datesRangeEnd: endDate, + datesRangeStart: startDate, + initialDate: dayjs_min.dayjs_min(startDateProp || undefined).subtract(displayMonthBeforeOnLeft ? 1 : 0, 'month').toDate(), + onSelect: handleDateClick + }), !compactMode && /*#__PURE__*/React__default['default'].createElement(_StyledDatePicker, { + datesRangeEnd: endDate, + datesRangeStart: startDate, + initialDate: dayjs_min.dayjs_min(endDateProp || undefined).toDate(), + onSelect: handleDateClick, + _css7: 1 * constants.GU + })), /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, { + _css8: constants.GU * 2.25, + _css9: compactMode ? '' : "\n max-width: 247px;\n margin-left: auto;\n " + }, /*#__PURE__*/React__default['default'].createElement(Button.default, { + onClick: handleClear, + size: "small", + wide: true + }, "Reset"), /*#__PURE__*/React__default['default'].createElement(_StyledButton, { + disabled: !startDate || !endDate, + mode: "strong", + onClick: handleApply, + size: "small", + wide: true, + _css10: 1.5 * constants.GU + }, "Apply"))))); +} + +DateRangePicker.propTypes = { + endDate: index.propTypes.instanceOf(Date), + format: index.propTypes.string, + onChange: index.propTypes.func, + startDate: index.propTypes.instanceOf(Date) +}; +DateRangePicker.defaultProps = { + format: 'MM/DD/YYYY', + onChange: function onChange() {} +}; + +exports.default = DateRangePicker; +//# sourceMappingURL=DateRangePicker.js.map diff --git a/packages/govern-console/public/aragon-ui/DateRangePicker.js.map b/packages/govern-console/public/aragon-ui/DateRangePicker.js.map new file mode 100644 index 000000000..be97094a8 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DateRangePicker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DateRangePicker.js","sources":["../src/components/DateRangePicker/DateRangePicker.js"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport dayjs from 'dayjs'\nimport Button from '../Button/Button'\nimport { useViewport } from '../../providers/Viewport/Viewport'\nimport { GU, RADIUS } from '../../style'\nimport { useTheme } from '../../theme'\nimport DatePicker from './DatePicker'\nimport Labels from './Labels'\nimport { START_DATE, END_DATE } from './consts'\nimport { handleDateSelect } from './utils'\nimport Popover from '../Popover/Popover'\n\nfunction DateRangePicker({\n format,\n endDate: endDateProp,\n onChange,\n startDate: startDateProp,\n}) {\n const theme = useTheme()\n const labelsRef = useRef()\n const [showPicker, setShowPicker] = useState(false)\n const [startDate, setStartDate] = useState(startDateProp)\n const [endDate, setEndDate] = useState(endDateProp)\n\n // on closing the picked, reset state\n useEffect(() => {\n if (!showPicker) {\n setStartDate(startDateProp)\n setEndDate(endDateProp)\n }\n }, [endDateProp, startDateProp, showPicker])\n\n const handlePopoverClose = useCallback(() => setShowPicker(false), [])\n\n const handleLabelsClick = useCallback(() => {\n setShowPicker(show => !show)\n }, [])\n\n const handleDateClick = useCallback(\n date => {\n const result = handleDateSelect({ date, startDate, endDate })\n result.startDate !== undefined && setStartDate(result.startDate)\n result.endDate !== undefined && setEndDate(result.endDate)\n },\n [startDate, endDate]\n )\n\n const handleApply = useCallback(() => {\n setShowPicker(false)\n\n if (startDate && endDate) {\n onChange({\n start: dayjs(startDate)\n .startOf('day')\n .toDate(),\n end: dayjs(endDate)\n .endOf('day')\n .toDate(),\n })\n }\n }, [endDate, onChange, startDate])\n\n const handleClear = useCallback(() => {\n setStartDate(null)\n setEndDate(null)\n setShowPicker(false)\n onChange({ start: null, end: null })\n }, [onChange])\n\n const labelProps = useMemo(() => {\n const _startDate = showPicker ? startDate : startDateProp\n const _endDate = showPicker ? endDate : endDateProp\n return {\n startText: _startDate ? dayjs(_startDate).format(format) : START_DATE,\n endText: _endDate ? dayjs(_endDate).format(format) : END_DATE,\n }\n }, [endDate, endDateProp, format, showPicker, startDate, startDateProp])\n\n const compactMode = useViewport().below('medium')\n\n const displayMonthBeforeOnLeft = useMemo(() => {\n // If both dates are in the same month, use the right calendar\n // for it, and display month before on the left calendar.\n const propsDatesInSameMonth =\n startDateProp &&\n endDateProp &&\n dayjs(startDateProp).isSame(dayjs(endDateProp), 'month')\n\n return !compactMode && (propsDatesInSameMonth || !startDateProp)\n }, [compactMode, endDateProp, startDateProp])\n\n return (\n
\n \n \n \n \n \n {!compactMode && (\n \n )}\n
\n\n \n \n \n Apply\n \n \n \n \n \n )\n}\n\nDateRangePicker.propTypes = {\n endDate: PropTypes.instanceOf(Date),\n format: PropTypes.string,\n onChange: PropTypes.func,\n startDate: PropTypes.instanceOf(Date),\n}\n\nDateRangePicker.defaultProps = {\n format: 'MM/DD/YYYY',\n onChange: () => {},\n}\n\nexport default DateRangePicker\n"],"names":["RADIUS","DateRangePicker","format","endDateProp","endDate","onChange","startDateProp","startDate","theme","useTheme","labelsRef","useRef","useState","showPicker","setShowPicker","setStartDate","setEndDate","useEffect","handlePopoverClose","useCallback","handleLabelsClick","show","handleDateClick","date","result","handleDateSelect","undefined","handleApply","start","dayjs","startOf","toDate","end","endOf","handleClear","labelProps","useMemo","_startDate","_endDate","startText","START_DATE","endText","END_DATE","compactMode","useViewport","below","displayMonthBeforeOnLeft","propsDatesInSameMonth","isSame","React","Labels","Boolean","current","GU","border","surface","DatePicker","subtract","Button","propTypes","PropTypes","instanceOf","Date","string","func","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuH6BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1G7B,SAASC,eAAT,OAKG;AAAA,MAJDC,MAIC,QAJDA,MAIC;AAAA,MAHQC,WAGR,QAHDC,OAGC;AAAA,MAFDC,QAEC,QAFDA,QAEC;AAAA,MADUC,aACV,QADDC,SACC;AACD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AACA,MAAMC,SAAS,GAAGC,YAAM,EAAxB;;AAFC,kBAGmCC,cAAQ,CAAC,KAAD,CAH3C;AAAA;AAAA,MAGMC,UAHN;AAAA,MAGkBC,aAHlB;;AAAA,mBAIiCF,cAAQ,CAACN,aAAD,CAJzC;AAAA;AAAA,MAIMC,SAJN;AAAA,MAIiBQ,YAJjB;;AAAA,mBAK6BH,cAAQ,CAACT,WAAD,CALrC;AAAA;AAAA,MAKMC,OALN;AAAA,MAKeY,UALf;;;AAQDC,EAAAA,eAAS,CAAC,YAAM;AACd,QAAI,CAACJ,UAAL,EAAiB;AACfE,MAAAA,YAAY,CAACT,aAAD,CAAZ;AACAU,MAAAA,UA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,CARF,eAoCEJ;AAAA,WAKkBI,YAAE,GAAG,IALvB;AAAA,WAOMV,WAAW,GACT,EADS;AAPjB,kBAeEM,wCAACS,cAAD;AAAQ,IAAA,OAAO,EAAExB,WAAjB;AAA8B,IAAA,IAAI,EAAC,OAAnC;AAA2C,IAAA,IAAI;AAA/C,aAfF,eAkBEe;AACE,IAAA,QAAQ,EAAE,CAAC1C,SAAD,IAAc,CAACH,OAD3B;AAEE,IAAA,IAAI,EAAC,QAFP;AAGE,IAAA,OAAO,EAAEuB,WAHX;AAIE,IAAA,IAAI,EAAC,OAJP;AAKE,IAAA,IAAI,MALN;AAAA,YAOmB,MAAM0B;AAPzB,aAlBF,CApCF,CAdF,CARF,CADF;AA8FD;;AAEDpD,eAAe,CAAC0D,SAAhB,GAA4B;AAC1BvD,EAAAA,OAAO,EAAEwD,eAAS,CAACC,UAAV,CAAqBC,IAArB,CADiB;AAE1B5D,EAAAA,MAAM,EAAE0D,eAAS,CAACG,MAFQ;AAG1B1D,EAAAA,QAAQ,EAAEuD,eAAS,CAACI,IAHM;AAI1BzD,EAAAA,SAAS,EAAEqD,eAAS,CAACC,UAAV,CAAqBC,IAArB;AAJe,CAA5B;AAOA7D,eAAe,CAACgE,YAAhB,GAA+B;AAC7B/D,EAAAA,MAAM,EAAE,YADqB;AAE7BG,EAAAA,QAAQ,EAAE,oBAAM;AAFa,CAA/B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Details.js b/packages/govern-console/public/aragon-ui/Details.js new file mode 100644 index 000000000..55a2d17ba --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Details.js @@ -0,0 +1,275 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +var springs = require('./springs.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +var IconDown = require('./IconDown.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +// In / out example: [0, 0.25, 0.5, 0.75, 1] => [0, 0.5, 1, 0.5, 0] + +function interpolateToggleElevation(value, fn) { + return value.interpolate(function (v) { + return fn(1 - Math.abs(v * 2 - 1)); + }); +} + +var _StyledSection = _styled__default['default']("section").withConfig({ + displayName: "Details___StyledSection", + componentId: "b3f99g-0" +})(["", ""], function (p) { + return p._css; +}); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "Details___StyledButtonBase", + componentId: "b3f99g-1" +})(["position:relative;width:100%;&:active{background:", ";}"], function (p) { + return p._css2; +}); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "Details___StyledDiv", + componentId: "b3f99g-2" +})(["position:absolute;left:", "px;right:", "px;bottom:0;"], function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "Details___StyledDiv2", + componentId: "b3f99g-3" +})(["height:1px;box-shadow:0 1px 1px rgba(0,0,0,0.1);"]); + +var _StyledH = _styled__default['default']("h1").withConfig({ + displayName: "Details___StyledH", + componentId: "b3f99g-4" +})(["display:flex;justify-content:flex-start;align-items:center;height:", "px;margin-left:", "px;color:", ";", " font-weight:400;"], function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "Details___StyledDiv3", + componentId: "b3f99g-5" +})(["margin-top:2px;"]); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "Details___StyledDiv4", + componentId: "b3f99g-6" +})(["display:flex;align-items:center;justify-content:center;"]); + +var _StyledDiv5 = _styled__default['default']("div").withConfig({ + displayName: "Details___StyledDiv5", + componentId: "b3f99g-7" +})(["overflow:hidden"]); + +var _StyledAnimatedDiv = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "Details___StyledAnimatedDiv", + componentId: "b3f99g-8" +})(["display:flex;flex-direction:column;justify-content:flex-end;"]); + +var _StyledDiv6 = _styled__default['default']("div").withConfig({ + displayName: "Details___StyledDiv6", + componentId: "b3f99g-9" +})(["", ""], function (p) { + return p._css9; +}); + +function Details(_ref) { + var children = _ref.children, + label = _ref.label, + onToggle = _ref.onToggle, + openedProp = _ref.opened, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["children", "label", "onToggle", "opened"]); + + var theme = Theme.useTheme(); + + var _useInside = index.o('Box'), + _useInside2 = slicedToArray.slicedToArray(_useInside, 1), + insideBox = _useInside2[0]; + + var _useInside3 = index.o('SidePanel'), + _useInside4 = slicedToArray.slicedToArray(_useInside3, 1), + insideSidePanel = _useInside4[0]; + + var contentRef = React.useRef(null); + var contentHeight = React.useRef(0); // Details supports two modes: managed (internal state), + // or controlled (external state). + + var _useState = React.useState(false), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + openedManaged = _useState2[0], + setOpenedManaged = _useState2[1]; + + var opened = openedProp === undefined ? openedManaged : openedProp; + var updateHeight = React.useCallback(function () { + if (contentRef.current) { + contentHeight.current = contentRef.current.clientHeight; + } + }, []); + var handleContentRef = React.useCallback(function (element) { + contentRef.current = element; + updateHeight(); + }, [updateHeight]); + var handleToggle = React.useCallback(function () { + var newOpened = !opened; // Managed state + + if (openedProp === undefined) { + setOpenedManaged(newOpened); + } // Useful to notify even in managed mode + + + if (onToggle) { + onToggle(newOpened); + } + }, [onToggle, opened, openedProp]); // Animate after the initial render + + var animate = React.useRef(false); + React.useEffect(function () { + animate.current = true; + }, []); // Use height: 'auto' when opened + + var _useState3 = React.useState(false), + _useState4 = slicedToArray.slicedToArray(_useState3, 2), + forceHeight = _useState4[0], + setForceHeight = _useState4[1]; + + var handleStart = React.useCallback(function () { + return setForceHeight(true); + }, []); + var handleRest = React.useCallback(function () { + // Note: we need to use the opened from the previous + // render cycle here, which is why we don’t use a callback. + setForceHeight(!opened); + }, [opened]); // Update the height + + React.useEffect(updateHeight, [opened, updateHeight]); + var spacingCss = React.useMemo(function () { + if (insideSidePanel) { + return { + section: "\n margin: ".concat(2 * constants.GU, "px ").concat(-3 * constants.GU, "px 0;\n padding-bottom: ").concat(3 * constants.GU, "px;\n "), + content: "\n padding: ".concat(2 * constants.GU, "px ").concat(3 * constants.GU, "px 0;\n ") + }; + } + + if (insideBox) { + return { + section: "\n margin: 0 ".concat(-3 * constants.GU, "px;\n "), + content: "\n padding: ".concat(1 * constants.GU, "px ").concat(3 * constants.GU, "px 0;\n ") + }; + } + + return { + section: "\n margin: 0;\n padding-bottom: ".concat(3 * constants.GU, "px;\n "), + content: "\n padding: 0;\n " + }; + }, [insideSidePanel, insideBox]); + return /*#__PURE__*/React__default['default'].createElement(web.Spring, { + config: springs.springs.smooth, + from: { + openProgress: 0 + }, + to: { + openProgress: Number(opened) + }, + immediate: !animate, + onRest: handleRest, + onStart: handleStart, + native: true + }, function (_ref2) { + var openProgress = _ref2.openProgress; + return /*#__PURE__*/React__default['default'].createElement(_StyledSection, _extends._extends_1({}, props, { + _css: spacingCss.section + }), /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, { + onClick: handleToggle, + _css2: theme.surfacePressed + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css3: 3 * constants.GU, + _css4: 3 * constants.GU + }, /*#__PURE__*/React__default['default'].createElement(web.extendedAnimated.div, { + style: { + transform: interpolateToggleElevation(openProgress, function (v) { + return "scale3d(".concat(v, ", 1, 1)"); + }), + opacity: interpolateToggleElevation(openProgress, function (v) { + return v; + }) + } + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, null))), /*#__PURE__*/React__default['default'].createElement(_StyledH, _extends._extends_1({}, props, { + _css5: 5 * constants.GU, + _css6: 3 * constants.GU, + _css7: theme.surfaceContentSecondary, + _css8: textStyles.textStyle('label2') + }), /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, null, label), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(web.extendedAnimated.div, { + style: { + marginLeft: "".concat(1 * constants.GU, "px"), + transform: openProgress.interpolate(function (v) { + return "rotate(".concat((1 - v) * 180, "deg)"); + }), + transformOrigin: '50% calc(50% - 0.5px)' + } + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, null, /*#__PURE__*/React__default['default'].createElement(IconDown.default, { + size: "tiny" + })))))), /*#__PURE__*/React__default['default'].createElement(_StyledDiv5, null, /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedDiv, { + style: { + opacity: openProgress, + height: forceHeight ? openProgress.interpolate(function (v) { + return "".concat(v * contentHeight.current, "px"); + }) : 'auto' + } + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv6, { + ref: handleContentRef, + _css9: spacingCss.content + }, /*#__PURE__*/React__default['default'].createElement("div", null, children))))); + }); +} + +Details.propTypes = { + children: index$1.propTypes.node.isRequired, + label: index$1.propTypes.string.isRequired, + onToggle: index$1.propTypes.func, + opened: index$1.propTypes.bool +}; + +exports.default = Details; +//# sourceMappingURL=Details.js.map diff --git a/packages/govern-console/public/aragon-ui/Details.js.map b/packages/govern-console/public/aragon-ui/Details.js.map new file mode 100644 index 000000000..e0c2f869d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Details.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Details.js","sources":["../src/components/Details/Details.js"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Spring, animated } from 'react-spring'\nimport { useInside } from 'use-inside'\nimport { GU, springs, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { IconDown } from '../../icons'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\n// Interpolate the elevation of the toggle from which the drawer slides down.\n// In / out example: [0, 0.25, 0.5, 0.75, 1] => [0, 0.5, 1, 0.5, 0]\nfunction interpolateToggleElevation(value, fn) {\n return value.interpolate(v => fn(1 - Math.abs(v * 2 - 1)))\n}\n\nfunction Details({ children, label, onToggle, opened: openedProp, ...props }) {\n const theme = useTheme()\n const [insideBox] = useInside('Box')\n const [insideSidePanel] = useInside('SidePanel')\n\n const contentRef = useRef(null)\n const contentHeight = useRef(0)\n\n // Details supports two modes: managed (internal state),\n // or controlled (external state).\n const [openedManaged, setOpenedManaged] = useState(false)\n const opened = openedProp === undefined ? openedManaged : openedProp\n\n const updateHeight = useCallback(() => {\n if (contentRef.current) {\n contentHeight.current = contentRef.current.clientHeight\n }\n }, [])\n\n const handleContentRef = useCallback(\n element => {\n contentRef.current = element\n updateHeight()\n },\n [updateHeight]\n )\n\n const handleToggle = useCallback(() => {\n const newOpened = !opened\n\n // Managed state\n if (openedProp === undefined) {\n setOpenedManaged(newOpened)\n }\n\n // Useful to notify even in managed mode\n if (onToggle) {\n onToggle(newOpened)\n }\n }, [onToggle, opened, openedProp])\n\n // Animate after the initial render\n const animate = useRef(false)\n useEffect(() => {\n animate.current = true\n }, [])\n\n // Use height: 'auto' when opened\n const [forceHeight, setForceHeight] = useState(false)\n\n const handleStart = useCallback(() => setForceHeight(true), [])\n const handleRest = useCallback(() => {\n // Note: we need to use the opened from the previous\n // render cycle here, which is why we don’t use a callback.\n setForceHeight(!opened)\n }, [opened])\n\n // Update the height\n useEffect(updateHeight, [opened, updateHeight])\n\n const spacingCss = useMemo(() => {\n if (insideSidePanel) {\n return {\n section: `\n margin: ${2 * GU}px ${-3 * GU}px 0;\n padding-bottom: ${3 * GU}px;\n `,\n content: `\n padding: ${2 * GU}px ${3 * GU}px 0;\n `,\n }\n }\n if (insideBox) {\n return {\n section: `\n margin: 0 ${-3 * GU}px;\n `,\n content: `\n padding: ${1 * GU}px ${3 * GU}px 0;\n `,\n }\n }\n return {\n section: `\n margin: 0;\n padding-bottom: ${3 * GU}px;\n `,\n content: `\n padding: 0;\n `,\n }\n }, [insideSidePanel, insideBox])\n\n return (\n \n {({ openProgress }) => (\n
\n \n \n `scale3d(${v}, 1, 1)`\n ),\n opacity: interpolateToggleElevation(openProgress, v => v),\n }}\n >\n \n \n \n\n \n \n {label}\n \n
\n `rotate(${(1 - v) * 180}deg)`\n ),\n transformOrigin: '50% calc(50% - 0.5px)',\n }}\n >\n \n \n
\n \n \n \n \n
\n `${v * contentHeight.current}px`\n )\n : 'auto',\n }}\n >\n
\n
{children}
\n
\n \n
\n
\n )}\n \n )\n}\n\nDetails.propTypes = {\n children: PropTypes.node.isRequired,\n label: PropTypes.string.isRequired,\n onToggle: PropTypes.func,\n opened: PropTypes.bool,\n}\n\nexport default Details\n"],"names":["interpolateToggleElevation","value","fn","interpolate","v","Math","abs","Details","children","label","onToggle","openedProp","opened","props","theme","useTheme","useInside","insideBox","insideSidePanel","contentRef","useRef","contentHeight","useState","openedManaged","setOpenedManaged","undefined","updateHeight","useCallback","current","clientHeight","handleContentRef","element","handleToggle","newOpened","animate","useEffect","forceHeight","setForceHeight","handleStart","handleRest","spacingCss","useMemo","section","GU","content","React","Spring","springs","smooth","openProgress","Number","surfacePressed","animated","transform","opacity","surfaceContentSecondary","textStyle","marginLeft","transformOr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P;AAElBvD,EAAAA,KAAK,EAAEqD,iBAAS,CAACG,MAAV,CAAiBD,UAFN;AAGlBtD,EAAAA,QAAQ,EAAEoD,iBAAS,CAACI,IAHF;AAIlBtD,EAAAA,MAAM,EAAEkD,iBAAS,CAACK;AAJA,CAApB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/DiscButton.js b/packages/govern-console/public/aragon-ui/DiscButton.js new file mode 100644 index 000000000..8b619970f --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DiscButton.js @@ -0,0 +1,77 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "DiscButton___StyledButtonBase", + componentId: "sc-1ay99f2-0" +})(["display:flex;align-items:center;justify-content:center;width:", "px;height:", "px;background:", ";color:", ";border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,0.25);transition-property:transform,box-shadow;transition-duration:50ms;transition-timing-function:ease-in-out;&:active{transform:translateY(1px);box-shadow:0px 1px 3px rgba(0,0,0,0.125);}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var DiscButton = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) { + var children = _ref.children, + description = _ref.description, + size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["children", "description", "size"]); + + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, _extends._extends_1({ + ref: ref, + focusRingSpacing: 4, + focusRingRadius: size, + title: description + }, props, { + _css: size, + _css2: size, + _css3: theme.help, + _css4: theme.helpContent + }), children); +}); +DiscButton.propTypes = { + children: index.propTypes.node.isRequired, + description: index.propTypes.string.isRequired, + size: index.propTypes.number +}; +DiscButton.defaultProps = { + size: 5 * constants.GU +}; + +exports.default = DiscButton; +//# sourceMappingURL=DiscButton.js.map diff --git a/packages/govern-console/public/aragon-ui/DiscButton.js.map b/packages/govern-console/public/aragon-ui/DiscButton.js.map new file mode 100644 index 000000000..c45685f02 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DiscButton.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DiscButton.js","sources":["../src/components/DiscButton/DiscButton.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { GU } from '../../style'\nimport { useTheme } from '../../theme'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst DiscButton = React.forwardRef(\n ({ children, description, size, ...props }, ref) => {\n const theme = useTheme()\n return (\n \n {children}\n \n )\n }\n)\n\nDiscButton.propTypes = {\n children: PropTypes.node.isRequired,\n description: PropTypes.string.isRequired,\n size: PropTypes.number,\n}\n\nDiscButton.defaultProps = {\n size: 5 * GU,\n}\n\nexport default DiscButton\n"],"names":["DiscButton","React","forwardRef","ref","children","description","size","props","theme","useTheme","help","helpContent","propTypes","PropTypes","node","isRequired","string","number","defaultProps","GU"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMMA,UAAU,gBAAGC,yBAAK,CAACC,UAAN,CACjB,gBAA4CC,GAA5C,EAAoD;AAAA,MAAjDC,QAAiD,QAAjDA,QAAiD;AAAA,MAAvCC,WAAuC,QAAvCA,WAAuC;AAAA,MAA1BC,IAA0B,QAA1BA,IAA0B;AAAA,MAAjBC,KAAiB;;AAClD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AACA,sBACER;AACE,IAAA,GAAG,EAAEE,GADP;AAEE,IAAA,gBAAgB,EAAE,CAFpB;AAGE,IAAA,eAAe,EAAEG,IAHnB;AAIE,IAAA,KAAK,EAAED;AAJT,KAyBME,KAzBN;AAAA,UASaD,IATb;AAAA,WAUcA,IAVd;AAAA,WAWkBE,KAAK,CAACE,IAXxB;AAAA,WAYaF,KAAK,CAACG;AAZnB,MA2BGP,QA3BH,CADF;AA+BD,CAlCgB;AAqCnBJ,UAAU,CAACY,SAAX,GAAuB;AACrBR,EAAAA,QAAQ,EAAES,eAAS,CAACC,IAAV,CAAeC,UADJ;AAErBV,EAAAA,WAAW,EAAEQ,eAAS,CAACG,MAAV,CAAiBD,UAFT;AAGrBT,EAAAA,IAAI,EAAEO,eAAS,CAACI;AAHK,CAAvB;AAMAjB,UAAU,CAACkB,YAAX,GAA0B;AACxBZ,EAAAA,IAAI,EAAE,IAAIa;AADc,CAA1B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Distribution.js b/packages/govern-console/public/aragon-ui/Distribution.js new file mode 100644 index 000000000..8b8a86e9e --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Distribution.js @@ -0,0 +1,205 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "Distribution___StyledDiv", + componentId: "r4l1i4-0" +})(["margin-bottom:", "px;"], function (p) { + return p._css; +}); + +var _StyledH = _styled__default['default']("h1").withConfig({ + displayName: "Distribution___StyledH", + componentId: "r4l1i4-1" +})(["", ""], function (p) { + return p._css2; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "Distribution___StyledDiv2", + componentId: "r4l1i4-2" +})(["display:flex;width:100%;overflow:hidden;margin:0 0 ", "px;border-radius:3px;div{height:6px;}"], function (p) { + return p._css3; +}); + +var _StyledUl = _styled__default['default']("ul").withConfig({ + displayName: "Distribution___StyledUl", + componentId: "r4l1i4-3" +})(["margin-top:", "px;"], function (p) { + return p._css4; +}); + +var _StyledLi = _styled__default['default']("li").withConfig({ + displayName: "Distribution___StyledLi", + componentId: "r4l1i4-4" +})(["display:flex;align-items:center;justify-content:space-between;margin-top:10px;list-style:none;"]); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "Distribution___StyledDiv3", + componentId: "r4l1i4-5" +})(["display:flex;align-items:center;flex-shrink:1;flex-grow:1;"]); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "Distribution___StyledDiv4", + componentId: "r4l1i4-6" +})(["width:0;flex-shrink:1;flex-grow:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"]); + +var _StyledDiv5 = _styled__default['default']("div").withConfig({ + displayName: "Distribution___StyledDiv5", + componentId: "r4l1i4-7" +})(["padding-left:", "px;flex-shrink:0;"], function (p) { + return p._css5; +}); + +function Distribution(_ref) { + var colors = _ref.colors, + showLegend = _ref.showLegend, + heading = _ref.heading, + itemTitle = _ref.itemTitle, + LegendItem = _ref.renderLegendItem, + FullLegendItem = _ref.renderFullLegendItem, + items = _ref.items; + var theme = Theme.useTheme(); + + if (!colors) { + colors = [theme.blue, theme.red, theme.brown, theme.yellow, theme.purple, theme.green]; + } + + var total = items.reduce(function (total, _ref2) { + var percentage = _ref2.percentage; + return total + percentage; + }, 0); // Sort by percentage + + items = items.sort(function (a, b) { + return b.percentage - a.percentage; + }); + return /*#__PURE__*/React__default['default'].createElement("section", null, heading && /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css: 1 * constants.GU + }, typeof heading === 'string' ? /*#__PURE__*/React__default['default'].createElement(_StyledH, { + _css2: textStyles.textStyle('body2') + }, heading) : heading), /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css3: 1 * constants.GU + }, items.map(function (_ref3, index) { + var item = _ref3.item, + percentage = _ref3.percentage; + return /*#__PURE__*/React__default['default'].createElement("div", { + key: index, + title: itemTitle({ + item: item, + percentage: percentage, + index: index + }), + style: { + width: "".concat(percentage / total * 100, "%"), + background: colors[index % colors.length] + } + }); + })), showLegend && /*#__PURE__*/React__default['default'].createElement(_StyledUl, { + _css4: 3 * constants.GU + }, items.map(function (_ref4, index) { + var item = _ref4.item, + percentage = _ref4.percentage; + var color = colors[index % colors.length]; + return /*#__PURE__*/React__default['default'].createElement(_StyledLi, { + key: index + }, FullLegendItem ? /*#__PURE__*/React__default['default'].createElement(FullLegendItem, { + bullet: /*#__PURE__*/React__default['default'].createElement(Bullet, { + color: color + }), + color: color, + index: index, + item: item, + percentage: percentage + }) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, null, /*#__PURE__*/React__default['default'].createElement(Bullet, { + color: color + }), /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, null, /*#__PURE__*/React__default['default'].createElement(LegendItem, { + color: color, + index: index, + item: item, + percentage: percentage + }))), /*#__PURE__*/React__default['default'].createElement(_StyledDiv5, { + _css5: 1 * constants.GU + }, /*#__PURE__*/React__default['default'].createElement("strong", null, percentage, "%")))); + }))); +} + +Distribution.propTypes = { + colors: index.propTypes.array, + heading: index.propTypes.node, + itemTitle: index.propTypes.func, + renderLegendItem: index.propTypes.func, + renderFullLegendItem: index.propTypes.func, + showLegend: index.propTypes.bool, + items: index.propTypes.arrayOf(index.propTypes.shape({ + item: index.propTypes.any.isRequired, + percentage: index.propTypes.number.isRequired + })).isRequired +}; +Distribution.defaultProps = { + heading: null, + itemTitle: function itemTitle(_ref5) { + var item = _ref5.item, + percentage = _ref5.percentage, + index = _ref5.index; + return "".concat(typeof item === 'string' ? item : "Item ".concat(index + 1), ": ").concat(percentage, "%"); + }, + renderLegendItem: function renderLegendItem(_ref6) { + var item = _ref6.item, + percentage = _ref6.percentage, + index = _ref6.index; + return typeof item === 'string' ? item : "Item ".concat(index + 1); + }, + showLegend: true +}; +/* eslint-disable react/prop-types */ + +var _StyledDiv6 = _styled__default['default']("div").withConfig({ + displayName: "Distribution___StyledDiv6", + componentId: "r4l1i4-8" +})(["width:", "px;height:", "px;margin-right:", "px;border-radius:50%;flex-shrink:0;"], function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}); + +function Bullet(_ref7) { + var color = _ref7.color; + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv6, { + style: { + background: color + }, + _css6: 1 * constants.GU, + _css7: 1 * constants.GU, + _css8: 1 * constants.GU + }); +} + +exports.default = Distribution; +//# sourceMappingURL=Distribution.js.map diff --git a/packages/govern-console/public/aragon-ui/Distribution.js.map b/packages/govern-console/public/aragon-ui/Distribution.js.map new file mode 100644 index 000000000..1d9eef98a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Distribution.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Distribution.js","sources":["../src/components/Distribution/Distribution.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { useTheme } from '../../theme'\nimport { GU, textStyle } from '../../style'\n\nfunction Distribution({\n colors,\n showLegend,\n heading,\n itemTitle,\n renderLegendItem: LegendItem,\n renderFullLegendItem: FullLegendItem,\n items,\n}) {\n const theme = useTheme()\n\n if (!colors) {\n colors = [\n theme.blue,\n theme.red,\n theme.brown,\n theme.yellow,\n theme.purple,\n theme.green,\n ]\n }\n\n const total = items.reduce((total, { percentage }) => total + percentage, 0)\n\n // Sort by percentage\n items = items.sort((a, b) => b.percentage - a.percentage)\n\n return (\n
\n {heading && (\n \n {typeof heading === 'string' ? (\n

{heading}

\n ) : (\n heading\n )}\n \n )}\n \n {items.map(({ item, percentage }, index) => (\n \n ))}\n \n {showLegend && (\n \n {items.map(({ item, percentage }, index) => {\n const color = colors[index % colors.length]\n return (\n \n {FullLegendItem ? (\n }\n color={color}\n index={index}\n item={item}\n percentage={percentage}\n />\n ) : (\n \n \n \n \n \n \n \n \n {percentage}%\n \n \n )}\n \n )\n })}\n \n )}\n
\n )\n}\n\nDistribution.propTypes = {\n colors: PropTypes.array,\n heading: PropTypes.node,\n itemTitle: PropTypes.func,\n renderLegendItem: PropTypes.func,\n renderFullLegendItem: PropTypes.func,\n showLegend: PropTypes.bool,\n items: PropTypes.arrayOf(\n PropTypes.shape({\n item: PropTypes.any.isRequired,\n percentage: PropTypes.number.isRequired,\n })\n ).isRequired,\n}\n\nDistribution.defaultProps = {\n heading: null,\n itemTitle: ({ item, percentage, index }) => {\n return `${\n typeof item === 'string' ? item : `Item ${index + 1}`\n }: ${percentage}%`\n },\n renderLegendItem: ({ item, percentage, index }) => {\n return typeof item === 'string' ? item : `Item ${index + 1}`\n },\n showLegend: true,\n}\n\n/* eslint-disable react/prop-types */\nfunction Bullet({ color }) {\n return (\n \n )\n}\n/* eslint-enable react/prop-types */\n\nexport default Distribution\n"],"names":["Distribution","colors","showLegend","heading","itemTitle","LegendItem","renderLegendItem","FullLegendItem","renderFullLegendItem","items","theme","useTheme","blue","red","brown","yellow","purple","green","total","reduce","percentage","sort","a","b","React","GU","textStyle","map","index","item","width","background","length","color","propTypes","PropTypes","array","node","func","bool","arrayOf","shape","any","isRequired","number","defaultProps","Bullet"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAASA,YAAT,OAQG;AAAA,MAPDC,MAOC,QAPDA,MAOC;AAAA,MANDC,UAMC,QANDA,UAMC;AAAA,MALDC,OAKC,QALDA,OAKC;AAAA,MAJDC,SAIC,QAJDA,SAIC;AAAA,MAHiBC,UAGjB,QAHDC,gBAGC;AAAA,MAFqBC,cAErB,QAFDC,oBAEC;AAAA,MADDC,KACC,QADDA,KACC;AACD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;;AAEA,MAAI,CAACV,MAAL,EAAa;AACXA,IAAAA,MAAM,GAAG,CACPS,KAAK,CAACE,IADC,EAEPF,KAAK,CAACG,GAFC,EAGPH,KAAK,CAACI,KAHC,EAIPJ,KAAK,CAACK,MAJC,EAKPL,KAAK,CAACM,MALC,EAMPN,KAAK,CAACO,KANC,CAAT;AAQD;;AAED,MAAMC,KAAK,GAAGT,KAAK,CAACU,MAAN,CAAa,UAACD,KAAD;AAAA,QAAUE,UAAV,SAAUA,UAAV;AAAA,WAA2BF,KAAK,GAAGE,UAAnC;AAAA,GAAb,EAA4D,CAA5D,CAAd,CAdC;;AAiBDX,EAAAA,KAAK,GAAGA,KAAK,CAACY,IAAN,CAAW,UAACC,CAAD,EAAIC,CAAJ;AAAA,WAAUA,CAAC,CAACH,UAAF,GAAeE,CAAC,CAACF,UAA3B;AAAA,GAAX,CAAR;AAEA,sBACEI,yDACGrB,OAAO,iBACNqB;AAAA,UAEqB,IAAIC;AAFz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AAG,CAAlD,CADF,eAEKR,UAFL;AAGD,GANyB;AAO1Bd,EAAAA,gBAAgB,EAAE,iCAAiC;AAAA,QAA9BuB,IAA8B,SAA9BA,IAA8B;AAAA,QAAxBT,UAAwB,SAAxBA,UAAwB;AAAA,QAAZQ,KAAY,SAAZA,KAAY;AACjD,WAAO,OAAOC,IAAP,KAAgB,QAAhB,GAA2BA,IAA3B,kBAA0CD,KAAK,GAAG,CAAlD,CAAP;AACD,GATyB;AAU1B1B,EAAAA,UAAU,EAAE;AAVc,CAA5B;AAaA;;;;;;;;;;;;;AACA,SAAS4C,MAAT,QAA2B;AAAA,MAATb,KAAS,SAATA,KAAS;AACzB,sBACET;AAQE,IAAA,KAAK,EAAE;AAAEO,MAAAA,UAAU,EAAEE;AAAd,KART;AAAA,WAEa,IAAIR,YAFjB;AAAA,WAGc,IAAIA,YAHlB;AAAA,WAIoB,IAAIA;AAJxB,IADF;AAYD;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/DropDown.js b/packages/govern-console/public/aragon-ui/DropDown.js new file mode 100644 index 000000000..b0cccbf91 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DropDown.js @@ -0,0 +1,471 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +var css = require('./css.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +var Viewport = require('./Viewport-819c53c9.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +var IconDown = require('./IconDown.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +require('./proptypes-9c58a90f.js'); +var Popover = require('./Popover.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var MIN_WIDTH = 128; + +function useDropDown(_ref) { + var buttonRef = _ref.buttonRef, + items = _ref.items, + displayedLabel = _ref.displayedLabel, + onChange = _ref.onChange, + placeholder = _ref.placeholder, + selected = _ref.selected; + + var _useState = React.useState(displayedLabel), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + selectedLabel = _useState2[0], + setSelectedLabel = _useState2[1]; + + var _useState3 = React.useState(false), + _useState4 = slicedToArray.slicedToArray(_useState3, 2), + opened = _useState4[0], + setOpened = _useState4[1]; + + var close = React.useCallback(function () { + setOpened(false); + + if (buttonRef.current) { + buttonRef.current.focus(); + } + }, [buttonRef]); + var toggle = React.useCallback(function () { + return setOpened(function (opened) { + return !opened; + }); + }, []); + var handleItemSelect = React.useCallback(function (index) { + onChange(index); + close(); + }, [onChange, close]); + React.useEffect(function () { + if (selected === -1 || !items[selected]) { + if (displayedLabel) { + setSelectedLabel(displayedLabel); + } + + return; + } + + setSelectedLabel(items[selected]); + }, [items, selected, displayedLabel]); + return { + handleItemSelect: handleItemSelect, + close: close, + toggle: toggle, + opened: opened, + selectedLabel: selectedLabel + }; +} + +function useButtonRef(cb) { + var buttonRef = React.useRef(null); + var refCallback = React.useCallback(function (el) { + if (el) { + cb(el); + } + + buttonRef.current = el; + }, [cb]); + return { + buttonRef: buttonRef, + refCallback: refCallback + }; +} + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "DropDown___StyledButtonBase", + componentId: "sc-17zpefi-0" +})(["display:", ";justify-content:space-between;align-items:center;height:", "px;padding-left:", "px;padding-right:", "px;width:", ";min-width:", ";background:", ";color:", ";border:", "px solid ", ";", ";", ""], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}, function (p) { + return p._css12; +}); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "DropDown___StyledDiv", + componentId: "sc-17zpefi-1" +})(["overflow:hidden;"]); + +var _StyledIconDown = _styled__default['default'](IconDown.default).withConfig({ + displayName: "DropDown___StyledIconDown", + componentId: "sc-17zpefi-2" +})(["margin-left:", "px;color:", ";"], function (p) { + return p._css13; +}, function (p) { + return p._css14; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "DropDown___StyledDiv2", + componentId: "sc-17zpefi-3" +})(["position:absolute;top:-100vh;left:-100vw;opacity:0;visibility:hidden;"]); + +var DropDown = /*#__PURE__*/React__default['default'].memo(function DropDown(_ref2) { + var disabled = _ref2.disabled, + header = _ref2.header, + items = _ref2.items, + onChange = _ref2.onChange, + placeholder = _ref2.placeholder, + renderLabel = _ref2.renderLabel, + selected = _ref2.selected, + wide = _ref2.wide, + width = _ref2.width, + active = _ref2.active, + label = _ref2.label, + props = objectWithoutProperties.objectWithoutProperties(_ref2, ["disabled", "header", "items", "onChange", "placeholder", "renderLabel", "selected", "wide", "width", "active", "label"]); + + if (active !== undefined) { + environment.warnOnce('DropDown:active', 'The “active” prop is deprecated. Please use “selected” to pass the selected index instead.'); + } + + if (label !== undefined) { + environment.warnOnce('DropDown:label', 'DropDown: the “label” prop is deprecated, please use “placeholder” instead.'); + } + + var theme = Theme.useTheme(); + + var _useViewport = Viewport.useViewport(), + vw = _useViewport.width; + + var _split = (width || '').split('px'), + _split2 = slicedToArray.slicedToArray(_split, 1), + _split2$ = _split2[0], + widthNoPx = _split2$ === void 0 ? MIN_WIDTH : _split2$; + + var _useState5 = React.useState(0), + _useState6 = slicedToArray.slicedToArray(_useState5, 2), + buttonWidth = _useState6[0], + setButtonWidth = _useState6[1]; + + var _useState7 = React.useState(true), + _useState8 = slicedToArray.slicedToArray(_useState7, 2), + measureWidth = _useState8[0], + setMeasureWidth = _useState8[1]; // Adjust the button width if the item widths are larger than declared width + + + var _useState9 = React.useState(Math.min(widthNoPx, MIN_WIDTH)), + _useState10 = slicedToArray.slicedToArray(_useState9, 2), + placeholderMinWidth = _useState10[0], + setPlaceholderMinWidth = _useState10[1]; + + var popoverRefCallback = React.useCallback(function (el) { + if (!el) { + return; + } + + setPlaceholderMinWidth(el.clientWidth); + setMeasureWidth(false); + }, []); + React.useEffect(function () { + setMeasureWidth(true); + }, [vw, items]); // Update the button width every time the reference updates + + var _useButtonRef = useButtonRef(function (el) { + setButtonWidth(el.clientWidth); + }), + refCallback = _useButtonRef.refCallback, + buttonRef = _useButtonRef.buttonRef; // And every time the viewport resizes + + + React.useEffect(function () { + if (!buttonRef.current) { + return; + } + + setButtonWidth(buttonRef.current.clientWidth); + }, [buttonRef, vw]); + var selectedIndex = React.useMemo(function () { + if (selected !== undefined) { + return selected; + } + + if (active !== undefined) { + return active; + } + + return -1; + }, [active, selected]); + + var _useDropDown = useDropDown({ + buttonRef: buttonRef, + displayedLabel: placeholder || label, + items: items, + onChange: onChange, + selected: selected + }), + handleItemSelect = _useDropDown.handleItemSelect, + close = _useDropDown.close, + toggle = _useDropDown.toggle, + opened = _useDropDown.opened, + selectedLabel = _useDropDown.selectedLabel; + + var closedWithChanges = !opened && selectedIndex !== -1; + var Label = renderLabel; + return /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "DropDown" + }, /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, _extends._extends_1({ + ref: refCallback, + disabled: disabled, + onClick: toggle, + focusRingRadius: constants.RADIUS, + focusRingSpacing: 1 + }, props, { + _css: wide ? 'flex' : 'inline-flex', + _css2: 5 * constants.GU, + _css3: 2 * constants.GU, + _css4: 1.5 * constants.GU, + _css5: width || (wide ? '100%' : 'auto'), + _css6: wide ? 'auto' : "".concat(placeholderMinWidth, "px"), + _css7: disabled ? theme.disabled : theme.surface, + _css8: disabled ? theme.disabledContent : theme.surfaceContent, + _css9: disabled ? 0 : 1, + _css10: closedWithChanges ? theme.selected : theme.border, + _css11: textStyles.textStyle('body2'), + _css12: disabled ? 'font-weight: 600;' : "\n &:active {\n background: ".concat(theme.surfacePressed, ";\n }\n ") + }), /*#__PURE__*/React__default['default'].createElement(_StyledDiv, null, /*#__PURE__*/React__default['default'].createElement(Label, { + selectedIndex: selectedIndex, + selectedLabel: selectedLabel + })), /*#__PURE__*/React__default['default'].createElement(_StyledIconDown, { + size: "tiny", + _css13: 1.5 * constants.GU, + _css14: disabled ? theme.disabledIcon : closedWithChanges ? theme.accent : theme.surfaceIcon + })), measureWidth && /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, null, /*#__PURE__*/React__default['default'].createElement(PopoverContent, { + refCallback: popoverRefCallback, + buttonWidth: buttonWidth, + header: header, + items: items + })), /*#__PURE__*/React__default['default'].createElement(Popover.default, { + onClose: close, + opener: buttonRef.current, + visible: opened + }, /*#__PURE__*/React__default['default'].createElement(PopoverContent, { + buttonWidth: buttonWidth, + header: header, + items: items, + handleItemSelect: handleItemSelect, + selectedIndex: selectedIndex + }))); +}); +DropDown.propTypes = { + disabled: index$1.propTypes.bool, + header: index$1.propTypes.node, + items: index$1.propTypes.arrayOf(index$1.propTypes.node).isRequired, + onChange: index$1.propTypes.func.isRequired, + placeholder: index$1.propTypes.node, + renderLabel: index$1.propTypes.func, + selected: index$1.propTypes.number, + wide: index$1.propTypes.bool, + width: index$1.propTypes.string, + // deprecated + active: index$1.propTypes.number, + label: index$1.propTypes.string +}; +DropDown.defaultProps = { + placeholder: 'Select an item', + renderLabel: function renderLabel(_ref3) { + var selectedLabel = _ref3.selectedLabel; + return selectedLabel; + }, + wide: false +}; + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "DropDown___StyledDiv3", + componentId: "sc-17zpefi-4" +})(["min-width:", "px;color:", ";"], function (p) { + return p._css15; +}, function (p) { + return p._css16; +}); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "DropDown___StyledDiv4", + componentId: "sc-17zpefi-5" +})(["padding:", "px ", "px ", "px;", ";", ";"], function (p) { + return p._css17; +}, function (p) { + return p._css18; +}, function (p) { + return p._css19; +}, function (p) { + return p._css20; +}, css.unselectable); + +var _StyledUl = _styled__default['default']("ul").withConfig({ + displayName: "DropDown___StyledUl", + componentId: "sc-17zpefi-6" +})(["margin:0;padding:0;list-style:none;width:100%;"]); + +var PopoverContent = /*#__PURE__*/React__default['default'].memo(function PopoverContent(_ref4) { + var refCallback = _ref4.refCallback, + buttonWidth = _ref4.buttonWidth, + header = _ref4.header, + items = _ref4.items, + handleItemSelect = _ref4.handleItemSelect, + selectedIndex = _ref4.selectedIndex; + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, { + _css15: buttonWidth, + _css16: theme.surfaceContentSecondary + }, header && /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, { + _css17: 1.5 * constants.GU, + _css18: 2 * constants.GU, + _css19: 1.25 * constants.GU, + _css20: textStyles.textStyle('label2') + }, header), /*#__PURE__*/React__default['default'].createElement(_StyledUl, { + ref: refCallback + }, /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "DropDown:menu" + }, items.map(function (item, index) { + return /*#__PURE__*/React__default['default'].createElement(Item, { + key: index, + index: index, + onSelect: handleItemSelect, + theme: theme, + item: item, + header: header, + length: items.length, + selected: selectedIndex + }); + })))); +}); +PopoverContent.propTypes = { + refCallback: index$1.propTypes.func.isRequired, + buttonWidth: index$1.propTypes.number.isRequired, + header: index$1.propTypes.node, + items: index$1.propTypes.array.isRequired, + handleItemSelect: index$1.propTypes.func.isRequired, + selectedIndex: index$1.propTypes.number.isRequired +}; +PopoverContent.defaultProps = { + refCallback: function refCallback() { + return null; + }, + handleItemSelect: function handleItemSelect() { + return null; + }, + selectedIndex: -1 +}; + +var _StyledButtonBase2 = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "DropDown___StyledButtonBase2", + componentId: "sc-17zpefi-7" +})(["width:100%;text-align:left;padding:", "px ", "px;border-radius:0;color:", ";", ";", " ", " ", " &:active{background:", ";}"], function (p) { + return p._css21; +}, function (p) { + return p._css22; +}, function (p) { + return p._css23; +}, function (p) { + return p._css24; +}, function (p) { + return p._css25; +}, function (p) { + return p._css26; +}, function (p) { + return p._css27; +}, function (p) { + return p._css28; +}); + +var Item = /*#__PURE__*/React__default['default'].memo(function Item(_ref5) { + var header = _ref5.header, + index = _ref5.index, + item = _ref5.item, + length = _ref5.length, + onSelect = _ref5.onSelect, + selected = _ref5.selected, + theme = _ref5.theme; + var handleClick = React.useCallback(function () { + onSelect(index); + }, [index, onSelect]); + return /*#__PURE__*/React__default['default'].createElement("li", null, /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase2, { + onClick: handleClick, + _css21: 1.25 * constants.GU, + _css22: 2 * constants.GU, + _css23: theme.content, + _css24: textStyles.textStyle('body2'), + _css25: !header && index === 0 ? "border-top-left-radius: ".concat(constants.RADIUS, "px;") : '', + _css26: index === length - 1 ? "border-bottom-left-radius: ".concat(constants.RADIUS, "px;") : '', + _css27: selected === index ? "\n border-left: 2px solid ".concat(theme.accent, ";\n background: ").concat(theme.surfaceSelected, ";\n ") : '', + _css28: theme.surfacePressed + }, item)); +}); +Item.propTypes = { + header: index$1.propTypes.node, + index: index$1.propTypes.number.isRequired, + item: index$1.propTypes.node.isRequired, + length: index$1.propTypes.number.isRequired, + onSelect: index$1.propTypes.func.isRequired, + selected: index$1.propTypes.number.isRequired, + theme: index$1.propTypes.object.isRequired +}; + +exports.default = DropDown; +//# sourceMappingURL=DropDown.js.map diff --git a/packages/govern-console/public/aragon-ui/DropDown.js.map b/packages/govern-console/public/aragon-ui/DropDown.js.map new file mode 100644 index 000000000..05ac2217e --- /dev/null +++ b/packages/govern-console/public/aragon-ui/DropDown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DropDown.js","sources":["../src/components/DropDown/DropDown.js"],"sourcesContent":["import React, { useState, useRef, useEffect, useCallback, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside } from 'use-inside'\nimport { warnOnce, unselectable } from '../../utils'\nimport { GU, RADIUS, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { IconDown } from '../../icons'\nimport { useViewport } from '../../providers/Viewport/Viewport'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport Popover from '../Popover/Popover'\n\nconst MIN_WIDTH = 128\n\nfunction useDropDown({\n buttonRef,\n items,\n displayedLabel,\n onChange,\n placeholder,\n selected,\n}) {\n const [selectedLabel, setSelectedLabel] = useState(displayedLabel)\n const [opened, setOpened] = useState(false)\n\n const close = useCallback(() => {\n setOpened(false)\n\n if (buttonRef.current) {\n buttonRef.current.focus()\n }\n }, [buttonRef])\n\n const toggle = useCallback(() => setOpened(opened => !opened), [])\n\n const handleItemSelect = useCallback(\n index => {\n onChange(index)\n close()\n },\n [onChange, close]\n )\n\n useEffect(() => {\n if (selected === -1 || !items[selected]) {\n if (displayedLabel) {\n setSelectedLabel(displayedLabel)\n }\n return\n }\n setSelectedLabel(items[selected])\n }, [items, selected, displayedLabel])\n\n return {\n handleItemSelect,\n close,\n toggle,\n opened,\n selectedLabel,\n }\n}\n\nfunction useButtonRef(cb) {\n const buttonRef = useRef(null)\n\n const refCallback = useCallback(\n el => {\n if (el) {\n cb(el)\n }\n buttonRef.current = el\n },\n [cb]\n )\n\n return {\n buttonRef,\n refCallback,\n }\n}\n\nconst DropDown = React.memo(function DropDown({\n disabled,\n header,\n items,\n onChange,\n placeholder,\n renderLabel,\n selected,\n wide,\n width,\n\n // deprecated\n active,\n label,\n\n // rest\n ...props\n}) {\n if (active !== undefined) {\n warnOnce(\n 'DropDown:active',\n 'The “active” prop is deprecated. Please use “selected” to pass the selected index instead.'\n )\n }\n if (label !== undefined) {\n warnOnce(\n 'DropDown:label',\n 'DropDown: the “label” prop is deprecated, please use “placeholder” instead.'\n )\n }\n\n const theme = useTheme()\n const { width: vw } = useViewport()\n\n const [widthNoPx = MIN_WIDTH] = (width || '').split('px')\n const [buttonWidth, setButtonWidth] = useState(0)\n const [measureWidth, setMeasureWidth] = useState(true)\n\n // Adjust the button width if the item widths are larger than declared width\n const [placeholderMinWidth, setPlaceholderMinWidth] = useState(\n Math.min(widthNoPx, MIN_WIDTH)\n )\n const popoverRefCallback = useCallback(el => {\n if (!el) {\n return\n }\n setPlaceholderMinWidth(el.clientWidth)\n setMeasureWidth(false)\n }, [])\n useEffect(() => {\n setMeasureWidth(true)\n }, [vw, items])\n\n // Update the button width every time the reference updates\n const { refCallback, buttonRef } = useButtonRef(el => {\n setButtonWidth(el.clientWidth)\n })\n // And every time the viewport resizes\n useEffect(() => {\n if (!buttonRef.current) {\n return\n }\n setButtonWidth(buttonRef.current.clientWidth)\n }, [buttonRef, vw])\n\n const selectedIndex = useMemo(() => {\n if (selected !== undefined) {\n return selected\n }\n if (active !== undefined) {\n return active\n }\n return -1\n }, [active, selected])\n\n const {\n handleItemSelect,\n close,\n toggle,\n opened,\n selectedLabel,\n } = useDropDown({\n buttonRef,\n displayedLabel: placeholder || label,\n items,\n onChange,\n selected,\n })\n\n const closedWithChanges = !opened && selectedIndex !== -1\n const Label = renderLabel\n\n return (\n \n \n
\n
\n \n \n {measureWidth && (\n \n \n \n )}\n \n \n \n
\n )\n})\n\nDropDown.propTypes = {\n disabled: PropTypes.bool,\n header: PropTypes.node,\n items: PropTypes.arrayOf(PropTypes.node).isRequired,\n onChange: PropTypes.func.isRequired,\n placeholder: PropTypes.node,\n renderLabel: PropTypes.func,\n selected: PropTypes.number,\n wide: PropTypes.bool,\n width: PropTypes.string,\n\n // deprecated\n active: PropTypes.number,\n label: PropTypes.string,\n}\n\nDropDown.defaultProps = {\n placeholder: 'Select an item',\n renderLabel: ({ selectedLabel }) => selectedLabel,\n wide: false,\n}\n\nconst PopoverContent = React.memo(function PopoverContent({\n refCallback,\n buttonWidth,\n header,\n items,\n handleItemSelect,\n selectedIndex,\n}) {\n const theme = useTheme()\n return (\n \n {header && (\n \n {header}\n \n )}\n \n \n {items.map((item, index) => {\n return (\n \n )\n })}\n \n \n \n )\n})\n\nPopoverContent.propTypes = {\n refCallback: PropTypes.func.isRequired,\n buttonWidth: PropTypes.number.isRequired,\n header: PropTypes.node,\n items: PropTypes.array.isRequired,\n handleItemSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n}\n\nPopoverContent.defaultProps = {\n refCallback: () => null,\n handleItemSelect: () => null,\n selectedIndex: -1,\n}\n\nconst Item = React.memo(function Item({\n header,\n index,\n item,\n length,\n onSelect,\n selected,\n theme,\n}) {\n const handleClick = useCallback(() => {\n onSelect(index)\n }, [index, onSelect])\n\n return (\n
  • \n \n {item}\n \n
  • \n )\n})\n\nItem.propTypes = {\n header: PropTypes.node,\n index: PropTypes.number.isRequired,\n item: PropTypes.node.isRequired,\n length: PropTypes.number.isRequired,\n onSelect: PropTypes.func.isRequired,\n selected: PropTypes.number.isRequired,\n theme: PropTypes.object.isRequired,\n}\n\nexport default DropDown\n"],"names":["MIN_WIDTH","useDropDown","buttonRef","items","displayedLabel","onChange","placeholder","selected","useState","selectedLabel","setSelectedLabel","opened","setOpened","close","useCallback","current","focus","toggle","handleItemSelect","index","useEffect","useButtonRef","cb","useRef","refCallback","el","DropDown","React","memo","disabled","header","renderLabel","wide","width","active","label","props","undefined","warnOnce","theme","useTheme","useViewport","vw","split","widthNoPx","buttonWidth","setButtonWidth","measureWidth","setMeasureWidth","Math","min","placeholderMinWidth","setPlaceholderMinWidth","popoverRefCallback","clientWidth","selectedIndex","useMemo","closedWithChanges","Label","Inside","RADIUS","GU","surface","disabledContent","surfaceContent","border","textStyle","surfacePressed","disabledIcon","accent","surfaceIcon","Popover","propTypes","PropTypes","bool","node","arrayOf","isRequired","func","number","string","defaultProps","unselectable","PopoverContent","surfaceContentSecondary","map","item","length","array","Item","onSelect","handleClick","content","surfaceSelected","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,SAAS,GAAG,GAAlB;;AAEA,SAASC,WAAT,OAOG;AAAA,MANDC,SAMC,QANDA,SAMC;AAAA,MALDC,KAKC,QALDA,KAKC;AAAA,MAJDC,cAIC,QAJDA,cAIC;AAAA,MAHDC,QAGC,QAHDA,QAGC;AAAA,MAFDC,WAEC,QAFDA,WAEC;AAAA,MADDC,QACC,QADDA,QACC;;AAAA,kBACyCC,cAAQ,CAACJ,cAAD,CADjD;AAAA;AAAA,MACMK,aADN;AAAA,MACqBC,gBADrB;;AAAA,mBAE2BF,cAAQ,CAAC,KAAD,CAFnC;AAAA;AAAA,MAEMG,MAFN;AAAA,MAEcC,SAFd;;AAID,MAAMC,KAAK,GAAGC,iBAAW,CAAC,YAAM;AAC9BF,IAAAA,SAAS,CAAC,KAAD,CAAT;;AAEA,QAAIV,SAAS,CAACa,OAAd,EAAuB;AACrBb,MAAAA,SAAS,CAACa,OAAV,CAAkBC,KAAlB;AACD;AACF,GANwB,EAMtB,CAACd,SAAD,CANsB,CAAzB;AAQA,MAAMe,MAAM,GAAGH,iBAAW,CAAC;AAAA,WAAMF,SAAS,CAAC,UAAAD,MAAM;AAAA,aAAI,CAACA,MAAL;AAAA,KAAP,CAAf;AAAA,GAAD,EAAqC,EAArC,CAA1B;AAEA,M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,WAAW,GAAG7E,iBAAW,CAAC,YAAM;AACpC4E,IAAAA,QAAQ,CAACvE,KAAD,CAAR;AACD,GAF8B,EAE5B,CAACA,KAAD,EAAQuE,QAAR,CAF4B,CAA/B;AAIA,sBACE/D,iEACEA;AACE,IAAA,OAAO,EAAEgE,WADX;AAAA,YAKe,OAAO9B,YALtB;AAAA,YAK8B,IAAIA,YALlC;AAAA,YAOatB,KAAK,CAACqD,OAPnB;AAAA,YASM1B,oBAAS,CAAC,OAAD,CATf;AAAA,YAWM,CAACpC,MAAD,IAAWX,KAAK,KAAK,CAArB,qCAAoDyC,gBAApD,WAAkE,EAXxE;AAAA,YAcMzC,KAAK,KAAKoE,MAAM,GAAG,CAAnB,wCACkC3B,gBADlC,WAEI,EAhBV;AAAA,YAmBMrD,QAAQ,KAAKY,KAAb,oDAE2BoB,KAAK,CAAC8B,MAFjC,0CAGgB9B,KAAK,CAACsD,eAHtB,uBAKI,EAxBV;AAAA,YA4BoBtD,KAAK,CAAC4B;AA5B1B,KAgCGmB,IAhCH,CADF,CADF;AAsCD,CAnDY,CAAb;AAqDAG,IAAI,CAACjB,SAAL,GAAiB;AACf1C,EAAAA,MAAM,EAAE2C,iBAAS,CAACE,IADH;AAEfxD,EAAAA,KAAK,EAAEsD,iBAAS,CAACM,MAAV,CAAiBF,UAFT;AAGfS,EAAAA,IAAI,EAAEb,iBAAS,CAACE,IAAV,CAAeE,UAHN;AAIfU,EAAAA,MAAM,EAAEd,iBAAS,CAACM,MAAV,CAAiBF,UAJV;AAKfa,EAAAA,QAAQ,EAAEjB,iBAAS,CAACK,IAAV,CAAeD,UALV;AAMftE,EAAAA,QAAQ,EAAEkE,iBAAS,CAACM,MAAV,CAAiBF,UANZ;AAOftC,EAAAA,KAAK,EAAEkC,iBAAS,CAACqB,MAAV,CAAiBjB;AAPT,CAAjB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/EmptyState.js b/packages/govern-console/public/aragon-ui/EmptyState.js new file mode 100644 index 000000000..85407d118 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/EmptyState.js @@ -0,0 +1,184 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./url.js'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./getDisplayName-7f913e84.js'); +var PublicUrl = require('./PublicUrl-7d4b6d6d.js'); +var LoadingRing = require('./LoadingRing.js'); +var Link = require('./Link.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var illustrationRedImage = "5140b2d928ee3408.png"; + +var illustrationBlueImage = "665de3412d16a795.png"; + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function useEmptyStateParts(status, configurator, functionMode) { + var publicUrl = PublicUrl.usePublicUrl(); + var defaultConfigurator = React.useMemo(function () { + // eslint-disable-next-line react/prop-types + var Illustration = function Illustration(_ref) { + var path = _ref.path; + return /*#__PURE__*/React__default['default'].createElement("img", { + src: publicUrl + path, + alt: "", + height: 20 * constants.GU + }); + }; + + return { + default: { + displayLoader: false, + title: 'No data available.', + subtitle: null, + illustration: /*#__PURE__*/React__default['default'].createElement(Illustration, { + path: illustrationBlueImage + }), + clearLabel: null + }, + loading: { + displayLoader: true, + title: 'Loading data…', + subtitle: null, + illustration: /*#__PURE__*/React__default['default'].createElement(Illustration, { + path: illustrationBlueImage + }), + clearLabel: null + }, + 'empty-filters': { + displayLoader: false, + title: 'No results found.', + subtitle: 'We can’t find any item matching your filter selection.', + illustration: /*#__PURE__*/React__default['default'].createElement(Illustration, { + path: illustrationRedImage + }), + clearLabel: 'Clear filters' + }, + 'empty-search': { + displayLoader: false, + title: 'No results found.', + subtitle: 'We can’t find any item matching your search query.', + illustration: /*#__PURE__*/React__default['default'].createElement(Illustration, { + path: illustrationRedImage + }), + clearLabel: 'Clear filters' + } + }; + }, [publicUrl]); + var parts = functionMode ? {} : configurator[status]; + return _objectSpread(_objectSpread({}, defaultConfigurator[status]), parts); +} + +var _StyledSection = _styled__default['default']("section").withConfig({ + displayName: "EmptyState___StyledSection", + componentId: "sc-18fsc1i-0" +})(["display:flex;justify-content:center;align-items:center;"]); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "EmptyState___StyledDiv", + componentId: "sc-18fsc1i-1" +})(["width:", "px;padding:", "px 0;text-align:center;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "EmptyState___StyledDiv2", + componentId: "sc-18fsc1i-2" +})(["padding-bottom:", "px;"], function (p) { + return p._css3; +}); + +var _StyledH = _styled__default['default']("h1").withConfig({ + displayName: "EmptyState___StyledH", + componentId: "sc-18fsc1i-3" +})(["", ";display:flex;align-items:center;justify-content:center;"], function (p) { + return p._css4; +}); + +var _StyledLoadingRing = _styled__default['default'](LoadingRing.default).withConfig({ + displayName: "EmptyState___StyledLoadingRing", + componentId: "sc-18fsc1i-4" +})(["margin-right:", "px;"], function (p) { + return p._css5; +}); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "EmptyState___StyledDiv3", + componentId: "sc-18fsc1i-5" +})(["color:", ";"], function (p) { + return p._css6; +}); + +function EmptyState(_ref2) { + var status = _ref2.status, + configurator = _ref2.configurator, + onStatusEmptyClear = _ref2.onStatusEmptyClear; + var theme = Theme.useTheme(); + var functionMode = typeof configurator === 'function'; + var emptyState = useEmptyStateParts(status, configurator, functionMode); + var emptyStateOverride = functionMode ? configurator(status) : null; // Returning an element from the function mode overrides everything. + // If `null` or a non-element is returned, the default state is used instead. + + if ( /*#__PURE__*/React__default['default'].isValidElement(emptyStateOverride)) { + return emptyStateOverride; + } + + return /*#__PURE__*/React__default['default'].createElement(_StyledSection, null, /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css: 31 * constants.GU, + _css2: 8 * constants.GU + }, emptyState.illustration && /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css3: 2 * constants.GU + }, emptyState.illustration), emptyState.title && /*#__PURE__*/React__default['default'].createElement(_StyledH, { + _css4: textStyles.textStyle('title2') + }, emptyState.displayLoader && /*#__PURE__*/React__default['default'].createElement(_StyledLoadingRing, { + _css5: 1 * constants.GU + }), emptyState.title), emptyState.subtitle && /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, { + _css6: theme.surfaceContentSecondary + }, emptyState.subtitle, ' ', emptyState.clearLabel && /*#__PURE__*/React__default['default'].createElement(Link.default, { + onClick: onStatusEmptyClear + }, emptyState.clearLabel)))); +} + +EmptyState.propTypes = { + status: index.propTypes.oneOf(['default', 'empty-filters', 'empty-search', 'loading']), + configurator: index.propTypes.object, + onStatusEmptyClear: index.propTypes.func +}; + +exports.default = EmptyState; +//# sourceMappingURL=EmptyState.js.map diff --git a/packages/govern-console/public/aragon-ui/EmptyState.js.map b/packages/govern-console/public/aragon-ui/EmptyState.js.map new file mode 100644 index 000000000..c646743f4 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/EmptyState.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EmptyState.js","sources":["../src/components/DataView/assets/empty-state-illustration-red.png","../src/components/DataView/assets/empty-state-illustration-blue.png","../src/components/DataView/EmptyState.js"],"sourcesContent":["export default \"5140b2d928ee3408.png\"","export default \"665de3412d16a795.png\"","import React, { useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { useTheme } from '../../theme'\nimport { GU, textStyle } from '../../style'\nimport { usePublicUrl } from '../../providers/PublicUrl'\nimport LoadingRing from '../LoadingRing/LoadingRing'\nimport Link from '../Link/Link'\n\nimport illustrationRedImage from './assets/empty-state-illustration-red.png'\nimport illustrationBlueImage from './assets/empty-state-illustration-blue.png'\n\nfunction useEmptyStateParts(status, configurator, functionMode) {\n const publicUrl = usePublicUrl()\n\n const defaultConfigurator = useMemo(() => {\n // eslint-disable-next-line react/prop-types\n const Illustration = ({ path }) => (\n \"\"\n )\n return {\n default: {\n displayLoader: false,\n title: 'No data available.',\n subtitle: null,\n illustration: ,\n clearLabel: null,\n },\n loading: {\n displayLoader: true,\n title: 'Loading data…',\n subtitle: null,\n illustration: ,\n clearLabel: null,\n },\n 'empty-filters': {\n displayLoader: false,\n title: 'No results found.',\n subtitle: 'We can’t find any item matching your filter selection.',\n illustration: ,\n clearLabel: 'Clear filters',\n },\n 'empty-search': {\n displayLoader: false,\n title: 'No results found.',\n subtitle: 'We can’t find any item matching your search query.',\n illustration: ,\n clearLabel: 'Clear filters',\n },\n }\n }, [publicUrl])\n\n const parts = functionMode ? {} : configurator[status]\n\n return {\n ...defaultConfigurator[status],\n ...parts,\n }\n}\n\nfunction EmptyState({ status, configurator, onStatusEmptyClear }) {\n const theme = useTheme()\n\n const functionMode = typeof configurator === 'function'\n const emptyState = useEmptyStateParts(status, configurator, functionMode)\n const emptyStateOverride = functionMode ? configurator(status) : null\n\n // Returning an element from the function mode overrides everything.\n // If `null` or a non-element is returned, the default state is used instead.\n if (React.isValidElement(emptyStateOverride)) {\n return emptyStateOverride\n }\n\n return (\n \n \n {emptyState.illustration && (\n \n {emptyState.illustration}\n \n )}\n\n {emptyState.title && (\n \n {emptyState.displayLoader && (\n \n )}\n {emptyState.title}\n \n )}\n\n {emptyState.subtitle && (\n \n {emptyState.subtitle}{' '}\n {emptyState.clearLabel && (\n {emptyState.clearLabel}\n )}\n \n )}\n \n \n )\n}\n\nEmptyState.propTypes = {\n status: PropTypes.oneOf([\n 'default',\n 'empty-filters',\n 'empty-search',\n 'loading',\n ]),\n configurator: PropTypes.object,\n onStatusEmptyClear: PropTypes.func,\n}\n\nexport default EmptyState\n"],"names":["useEmptyStateParts","status","configurator","functionMode","publicUrl","usePublicUrl","defaultConfigurator","useMemo","Illustration","path","React","GU","default","displayLoader","title","subtitle","illustration","illustrationBlueImage","clearLabel","loading","illustrationRedImage","parts","EmptyState","onStatusEmptyClear","theme","useTheme","emptyState","emptyStateOverride","isValidElement","textStyle","surfaceContentSecondary","Link","propTypes","PropTypes","oneOf","object","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAe;;ACAf,4BAAe;;;;;;ACWf,SAASA,kBAAT,CAA4BC,MAA5B,EAAoCC,YAApC,EAAkDC,YAAlD,EAAgE;AAC9D,MAAMC,SAAS,GAAGC,sBAAY,EAA9B;AAEA,MAAMC,mBAAmB,GAAGC,aAAO,CAAC,YAAM;AACxC;AACA,QAAMC,YAAY,GAAG,SAAfA,YAAe;AAAA,UAAGC,IAAH,Q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AACU,SAAX,GAAuB;AACrB/B,EAAAA,MAAM,EAAEgC,eAAS,CAACC,KAAV,CAAgB,CACtB,SADsB,EAEtB,eAFsB,EAGtB,cAHsB,EAItB,SAJsB,CAAhB,CADa;AAOrBhC,EAAAA,YAAY,EAAE+B,eAAS,CAACE,MAPH;AAQrBZ,EAAAA,kBAAkB,EAAEU,eAAS,CAACG;AART,CAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/EmptyStateCard.js b/packages/govern-console/public/aragon-ui/EmptyStateCard.js new file mode 100644 index 000000000..b1594df64 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/EmptyStateCard.js @@ -0,0 +1,114 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./url.js'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./getDisplayName-7f913e84.js'); +var PublicUrl = require('./PublicUrl-7d4b6d6d.js'); +var Card = require('./Card.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var illustrationDefault = "48526b4ed811c6ff.png"; + +var _StyledCard = _styled__default['default'](Card.default).withConfig({ + displayName: "EmptyStateCard___StyledCard", + componentId: "ov2yly-0" +})(["display:grid;grid-template-columns:1fr;grid-template-rows:", "px 1fr auto;height:", "px;padding:", "px;text-align:center;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "EmptyStateCard___StyledDiv", + componentId: "ov2yly-1" +})(["display:flex;justify-content:center;overflow:hidden;"]); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "EmptyStateCard___StyledDiv2", + componentId: "ov2yly-2" +})(["color:", ";", ";"], function (p) { + return p._css4; +}, function (p) { + return p._css5; +}); + +var EmptyStateCard = /*#__PURE__*/React__default['default'].memo(function EmptyStateCard(_ref) { + var action = _ref.action, + icon = _ref.icon, + illustration = _ref.illustration, + text = _ref.text, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["action", "icon", "illustration", "text"]); + + var theme = Theme.useTheme(); + var publicUrl = PublicUrl.usePublicUrl(); + + if (icon !== undefined) { + environment.warnOnce('EmptyStateCard:icon', 'EmptyStateCard: the `icon` prop is deprecated, please use `illustration` instead.'); + + if (illustration === undefined) { + illustration = icon; + } + } // default illustration + + + if (!illustration) { + illustration = /*#__PURE__*/React__default['default'].createElement("img", { + src: publicUrl + illustrationDefault, + alt: "", + height: 20 * constants.GU + }); + } + + return /*#__PURE__*/React__default['default'].createElement(index.i, { + name: "EmptyStateCard" + }, /*#__PURE__*/React__default['default'].createElement(_StyledCard, _extends._extends_1({}, props, { + _css: 20 * constants.GU, + _css2: 42 * constants.GU, + _css3: 2 * constants.GU + }), /*#__PURE__*/React__default['default'].createElement(_StyledDiv, null, illustration), /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css4: theme.surfaceContent, + _css5: textStyles.textStyle('title4') + }, text), /*#__PURE__*/React__default['default'].createElement("div", null, action))); +}); +EmptyStateCard.propTypes = { + action: index$1.propTypes.node, + illustration: index$1.propTypes.node, + text: index$1.propTypes.node.isRequired, + // deprecated + icon: index$1.propTypes.node +}; + +exports.default = EmptyStateCard; +//# sourceMappingURL=EmptyStateCard.js.map diff --git a/packages/govern-console/public/aragon-ui/EmptyStateCard.js.map b/packages/govern-console/public/aragon-ui/EmptyStateCard.js.map new file mode 100644 index 000000000..f31f00c04 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/EmptyStateCard.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EmptyStateCard.js","sources":["../src/components/Card/assets/empty-state-card-illustration-default.png","../src/components/Card/EmptyStateCard.js"],"sourcesContent":["export default \"48526b4ed811c6ff.png\"","import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside } from 'use-inside'\nimport { GU, textStyle } from '../../style'\nimport { warnOnce } from '../../utils'\nimport { usePublicUrl } from '../../providers/PublicUrl'\nimport { useTheme } from '../../theme'\nimport Card from './Card'\nimport illustrationDefault from './assets/empty-state-card-illustration-default.png'\n\nconst EmptyStateCard = React.memo(function EmptyStateCard({\n action,\n icon,\n illustration,\n text,\n ...props\n}) {\n const theme = useTheme()\n const publicUrl = usePublicUrl()\n\n if (icon !== undefined) {\n warnOnce(\n 'EmptyStateCard:icon',\n 'EmptyStateCard: the `icon` prop is deprecated, please use `illustration` instead.'\n )\n if (illustration === undefined) {\n illustration = icon\n }\n }\n\n // default illustration\n if (!illustration) {\n illustration = (\n \"\"\n )\n }\n\n return (\n \n \n \n {illustration}\n \n \n {text}\n \n
    {action}
    \n \n
    \n )\n})\n\nEmptyStateCard.propTypes = {\n action: PropTypes.node,\n illustration: PropTypes.node,\n text: PropTypes.node.isRequired,\n\n // deprecated\n icon: PropTypes.node,\n}\n\nexport default EmptyStateCard\n"],"names":["EmptyStateCard","React","memo","action","icon","illustration","text","props","theme","useTheme","publicUrl","usePublicUrl","undefined","warnOnce","illustrationDefault","GU","Inside","surfaceContent","textStyle","propTypes","PropTypes","node","isRequired"],"mappings":";;;;;;;;;;;;;;;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IAAI,EAAEc,iBAAS,CAACC,IAAV,CAAeC,UAHI;AAKzB;AACAlB,EAAAA,IAAI,EAAEgB,iBAAS,CAACC;AANS,CAA3B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/EscapeOutside.js b/packages/govern-console/public/aragon-ui/EscapeOutside.js new file mode 100644 index 000000000..3872d4ee8 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/EscapeOutside.js @@ -0,0 +1,119 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +var getPrototypeOf = require('./getPrototypeOf-55c9e80c.js'); +var miscellaneous = require('./miscellaneous.js'); +var keycodes = require('./keycodes.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf.getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf.getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return getPrototypeOf.possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +var EscapeOutside = /*#__PURE__*/function (_React$Component) { + getPrototypeOf.inherits(EscapeOutside, _React$Component); + + var _super = _createSuper(EscapeOutside); + + function EscapeOutside() { + var _this; + + getPrototypeOf.classCallCheck(this, EscapeOutside); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + defineProperty.defineProperty(getPrototypeOf.assertThisInitialized(_this), "_element", /*#__PURE__*/React__default['default'].createRef()); + + defineProperty.defineProperty(getPrototypeOf.assertThisInitialized(_this), "_document", null); + + defineProperty.defineProperty(getPrototypeOf.assertThisInitialized(_this), "handleClick", function (e) { + var onEscapeOutside = _this.props.onEscapeOutside; + + if (!_this._element.contains(e.target)) { + onEscapeOutside(); + } + }); + + defineProperty.defineProperty(getPrototypeOf.assertThisInitialized(_this), "handleEscape", function (e) { + var onEscapeOutside = _this.props.onEscapeOutside; + + if (e.keyCode === keycodes.KEY_ESC) { + onEscapeOutside(); + } + }); + + return _this; + } + + getPrototypeOf.createClass(EscapeOutside, [{ + key: "componentDidMount", + value: function componentDidMount() { + var useCapture = this.props.useCapture; + this._document = this._element.ownerDocument; + + this._document.addEventListener('keydown', this.handleEscape, useCapture); + + this._document.addEventListener('click', this.handleClick, useCapture); + + this._document.addEventListener('touchend', this.handleClick, useCapture); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + var useCapture = this.props.useCapture; + + this._document.removeEventListener('keydown', this.handleEscape, useCapture); + + this._document.removeEventListener('click', this.handleClick, useCapture); + + this._document.removeEventListener('touchend', this.handleClick, useCapture); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + children = _this$props.children, + onEscapeOutside = _this$props.onEscapeOutside, + useCapture = _this$props.useCapture, + rest = objectWithoutProperties.objectWithoutProperties(_this$props, ["children", "onEscapeOutside", "useCapture"]); + + return /*#__PURE__*/React__default['default'].createElement("div", _extends._extends_1({}, rest, { + ref: function ref(n) { + return _this2._element = n; + } + }), children); + } + }]); + + return EscapeOutside; +}(React__default['default'].Component); + +defineProperty.defineProperty(EscapeOutside, "propTypes", { + children: index.propTypes.node.isRequired, + onEscapeOutside: index.propTypes.func.isRequired, + useCapture: index.propTypes.bool +}); + +defineProperty.defineProperty(EscapeOutside, "defaultProps", { + onEscapeOutside: miscellaneous.noop, + useCapture: false +}); + +exports.default = EscapeOutside; +//# sourceMappingURL=EscapeOutside.js.map diff --git a/packages/govern-console/public/aragon-ui/EscapeOutside.js.map b/packages/govern-console/public/aragon-ui/EscapeOutside.js.map new file mode 100644 index 000000000..d10bc80fe --- /dev/null +++ b/packages/govern-console/public/aragon-ui/EscapeOutside.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EscapeOutside.js","sources":["../src/components/EscapeOutside/EscapeOutside.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { noop, KEY_ESC } from '../../utils'\n\nclass EscapeOutside extends React.Component {\n static propTypes = {\n children: PropTypes.node.isRequired,\n onEscapeOutside: PropTypes.func.isRequired,\n useCapture: PropTypes.bool,\n }\n\n static defaultProps = {\n onEscapeOutside: noop,\n useCapture: false,\n }\n\n _element = React.createRef()\n _document = null\n\n componentDidMount() {\n const { useCapture } = this.props\n this._document = this._element.ownerDocument\n this._document.addEventListener('keydown', this.handleEscape, useCapture)\n this._document.addEventListener('click', this.handleClick, useCapture)\n this._document.addEventListener('touchend', this.handleClick, useCapture)\n }\n\n componentWillUnmount() {\n const { useCapture } = this.props\n this._document.removeEventListener('keydown', this.handleEscape, useCapture)\n this._document.removeEventListener('click', this.handleClick, useCapture)\n this._document.removeEventListener('touchend', this.handleClick, useCapture)\n }\n\n handleClick = e => {\n const { onEscapeOutside } = this.props\n if (!this._element.contains(e.target)) {\n onEscapeOutside()\n }\n }\n\n handleEscape = e => {\n const { onEscapeOutside } = this.props\n if (e.keyCode === KEY_ESC) {\n onEscapeOutside()\n }\n }\n\n render() {\n const { children, onEscapeOutside, useCapture, ...rest } = this.props\n\n return (\n
    (this._element = n)}>\n {children}\n
    \n )\n }\n}\n\nexport default EscapeOutside\n"],"names":["EscapeOutside","React","createRef","e","onEscapeOutside","props","_element","contains","target","keyCode","KEY_ESC","useCapture","_document","ownerDocument","addEventListener","handleEscape","handleClick","removeEventListener","children","rest","n","Component","PropTypes","node","isRequired","func","bool","noop"],"mappings":";;;;;;;;;;;;;;;;;;;;;;IAIMA;;;;;;;;;;;;;;;;wGAYOC,yBAAK,CAACC,SAAN;;4FACC;;8FAiBE,UAAAC,CAAC,EAAI;AAAA,UACTC,eADS,GACW,MAAKC,KADhB,CACTD,eADS;;AAEjB,UAAI,CAAC,MAAKE,QAAL,CAAcC,QAAd,CAAuBJ,CAAC,CAACK,MAAzB,CAAL,EAAuC;AACrCJ,QAAAA,eAAe;AAChB;AACF;;+FAEc,UAAAD,CAAC,EAAI;AAAA,UACVC,eADU,GACU,MAAKC,KADf,CACVD,eADU;;AAElB,UAAID,CAAC,CAACM,OAAF,KAAcC,gBAAlB,EAA2B;AACzBN,QAAAA,eAAe;AAChB;AACF;;;;;;;wCA3BmB;AAAA,UACVO,UADU,GACK,KAAKN,KADV,CACVM,UADU;AAElB,WAAKC,SAAL,GAAiB,KAAKN,QAAL,CAAcO,aAA/B;;AACA,WAAKD,SAAL,CAAeE,gBAAf,CAAgC,SAAhC,EAA2C,KAAKC,YAAhD,EAA8DJ,UAA9D;;AACA,WAAKC,SAAL,CAAeE,gBAAf,CAAgC,OAAhC,EAAyC,KAAKE,WAA9C,EAA2DL,UAA3D;;AACA,WAAKC,SAAL,CAAeE,gBAAf,CAAgC,UAAhC,EAA4C,KAAKE,WAAjD,EAA8DL,UAA9D;AACD;;;2CAEsB;AAAA,UACbA,UADa,GACE,KAAKN,KADP,CACbM,UADa;;AAErB,WAAKC,SAAL,CAAeK,mBAAf,CAAmC,SAAnC,EAA8C,KAAKF,YAAnD,EAAiEJ,UAAjE;;AACA,WAAKC,SAAL,CAAeK,mBAAf,CAAmC,OAAnC,EAA4C,KAAKD,WAAjD,EAA8DL,UAA9D;;AACA,WAAKC,SAAL,CAAeK,mBAAf,CAAmC,UAAnC,EAA+C,KAAKD,WAApD,EAAiEL,UAAjE;AACD;;;6BAgBQ;AAAA;;AAAA,wBACoD,KAAKN,KADzD;AAAA,UACCa,QADD,eACCA,QADD;AAAA,UACWd,eADX,eACWA,eADX;AAAA,UAC4BO,UAD5B,eAC4BA,UAD5B;AAAA,UAC2CQ,IAD3C;;AAGP,0BACElB,uEAASkB,IAAT;AAAe,QAAA,GAAG,EAAE,aAAAC,CAAC;AAAA,iBAAK,MAAI,CAACd,QAAL,GAAgBc,CAArB;AAAA;AAArB,UACGF,QADH,CADF;AAKD;;;;EApDyBjB,yBAAK,CAACoB;;8BAA5BrB,4BACe;AACjBkB,EAAAA,QAAQ,EAAEI,eAAS,CAACC,IAAV,CAAeC,UADR;AAEjBpB,EAAAA,eAAe,EAAEkB,eAAS,CAACG,IAAV,CAAeD,UAFf;AAGjBb,EAAAA,UAAU,EAAEW,eAAS,CAACI;AAHL;;8BADf1B,+BAOkB;AACpBI,EAAAA,eAAe,EAAEuB,kBADG;AAEpBhB,EAAAA,UAAU,EAAE;AAFQ;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/EthIdenticon.js b/packages/govern-console/public/aragon-ui/EthIdenticon.js new file mode 100644 index 000000000..6b944646a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/EthIdenticon.js @@ -0,0 +1,334 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +var _commonjsHelpers = require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +var getPrototypeOf = require('./getPrototypeOf-55c9e80c.js'); +var components = require('./components.js'); +require('./miscellaneous.js'); +require('./environment.js'); +var web3 = require('./web3-4e58c255.js'); +var _extends = require('./extends-023d783e.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var main = _commonjsHelpers.createCommonjsModule(function (module, exports) { + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + + +var _react2 = _interopRequireDefault(React__default['default']); + + + +var _propTypes2 = _interopRequireDefault(index.propTypes); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Identicon = function (_Component) { + _inherits(Identicon, _Component); + + function Identicon(props) { + _classCallCheck(this, Identicon); + + var _this = _possibleConstructorReturn(this, (Identicon.__proto__ || Object.getPrototypeOf(Identicon)).call(this, props)); + + _this.generateIdenticon = _this.generateIdenticon.bind(_this); + return _this; + } + + _createClass(Identicon, [{ + key: 'componentDidMount', + value: function componentDidMount() { + this.generateIdenticon(_extends({}, this.props)); + } + }, { + key: 'componentWillUpdate', + value: function componentWillUpdate(nextProps) { + if (!this.isEquivalent(this.props, nextProps)) this.generateIdenticon(_extends({}, nextProps)); + } + }, { + key: 'isEquivalent', + value: function isEquivalent(prevProps, nextProps) { + var aProps = Object.getOwnPropertyNames(prevProps); + var bProps = Object.getOwnPropertyNames(nextProps); + + if (aProps.length != bProps.length) { + return false; + } + + for (var i = 0; i < aProps.length; i++) { + var propName = aProps[i]; + + if (prevProps[propName] !== nextProps[propName]) { + return false; + } + } + + return true; + } + }, { + key: 'generateIdenticon', + value: function generateIdenticon(options) { + // NOTE -- Majority of this code is referenced from: https://github.com/alexvandesande/blockies + // Mostly to ensure congruence to Ethereum Mist's Identicons + + // The random number is a js implementation of the Xorshift PRNG + var randseed = new Array(4); // Xorshift: [x, y, z, w] 32 bit values + + function seedrand(seed) { + for (var i = 0; i < randseed.length; i++) { + randseed[i] = 0; + } + for (var _i = 0; _i < seed.length; _i++) { + randseed[_i % 4] = (randseed[_i % 4] << 5) - randseed[_i % 4] + seed.charCodeAt(_i); + } + } + + function rand() { + // based on Java's String.hashCode(), expanded to 4 32bit values + var t = randseed[0] ^ randseed[0] << 11; + + randseed[0] = randseed[1]; + randseed[1] = randseed[2]; + randseed[2] = randseed[3]; + randseed[3] = randseed[3] ^ randseed[3] >> 19 ^ t ^ t >> 8; + + return (randseed[3] >>> 0) / (1 << 31 >>> 0); + } + + function createColor() { + // saturation is the whole color spectrum + var h = Math.floor(rand() * 360); + // saturation goes from 40 to 100, it avoids greyish colors + var s = rand() * 60 + 40 + '%'; + // lightness can be anything from 0 to 100, but probabilities are a bell curve around 50% + var l = (rand() + rand() + rand() + rand()) * 25 + '%'; + + var color = 'hsl(' + h + ',' + s + ',' + l + ')'; + return color; + } + + function createImageData(size) { + var width = size; // Only support square icons for now + var height = size; + + var dataWidth = Math.ceil(width / 2); + var mirrorWidth = width - dataWidth; + + var data = []; + for (var y = 0; y < height; y++) { + var row = []; + for (var x = 0; x < dataWidth; x++) { + // this makes foreground and background color to have a 43% (1/2.3) probability + // spot color has 13% chance + row[x] = Math.floor(rand() * 2.3); + } + var r = row.slice(0, mirrorWidth); + r.reverse(); + row = row.concat(r); + + for (var i = 0; i < row.length; i++) { + data.push(row[i]); + } + } + + return data; + } + + function setCanvas(identicon, imageData, color, scale, bgcolor, spotcolor) { + var width = Math.sqrt(imageData.length); + var size = width * scale; + + identicon.width = size; + identicon.style.width = size + 'px'; + + identicon.height = size; + identicon.style.height = size + 'px'; + + var cc = identicon.getContext('2d'); + cc.fillStyle = bgcolor; + cc.fillRect(0, 0, identicon.width, identicon.height); + cc.fillStyle = color; + + for (var i = 0; i < imageData.length; i++) { + // if data is 2, choose spot color, if 1 choose foreground + cc.fillStyle = imageData[i] === 1 ? color : spotcolor; + + // if data is 0, leave the background + if (imageData[i]) { + var row = Math.floor(i / width); + var col = i % width; + + cc.fillRect(col * scale, row * scale, scale, scale); + } + } + } + + var opts = options || {}; + var size = opts.size || 8; + var scale = opts.scale || 4; + var seed = opts.seed || Math.floor(Math.random() * Math.pow(10, 16)).toString(16); + + seedrand(seed); + + var color = opts.color || createColor(); + var bgcolor = opts.bgColor || createColor(); + var spotcolor = opts.spotColor || createColor(); + var imageData = createImageData(size); + var canvas = setCanvas(this.identicon, imageData, color, scale, bgcolor, spotcolor); + + return canvas; + } + }, { + key: 'render', + value: function render() { + var _this2 = this; + + return _react2.default.createElement('canvas', { + ref: function ref(identicon) { + _this2.identicon = identicon; + }, + className: this.props.className + }); + } + }]); + + return Identicon; +}(React__default['default'].Component); + +exports.default = Identicon; + + +Identicon.defaultProps = { + className: 'identicon' +}; + +Identicon.propTypes = { + seed: _propTypes2.default.string.isRequired, + size: _propTypes2.default.number, + scale: _propTypes2.default.number, + color: _propTypes2.default.string, + bgColor: _propTypes2.default.string, + spotColor: _propTypes2.default.string +}; +}); + +var Blockies = /*@__PURE__*/_commonjsHelpers.unwrapExports(main); + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf.getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf.getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return getPrototypeOf.possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +var PX_RATIO = typeof devicePixelRatio === 'undefined' ? 2 : devicePixelRatio; +var BLOCKIES_SQUARES = 8; // commonly used to represent Ethereum addresses + +var BASE_SCALE = 3; + +var EthIdenticon = /*#__PURE__*/function (_React$Component) { + getPrototypeOf.inherits(EthIdenticon, _React$Component); + + var _super = _createSuper(EthIdenticon); + + function EthIdenticon() { + getPrototypeOf.classCallCheck(this, EthIdenticon); + + return _super.apply(this, arguments); + } + + getPrototypeOf.createClass(EthIdenticon, [{ + key: "render", + value: function render() { + var _this$props = this.props, + address = _this$props.address, + scale = _this$props.scale, + radius = _this$props.radius, + soften = _this$props.soften; + var blockiesScale = scale * BASE_SCALE; + return web3.isAddress(address) ? /*#__PURE__*/React__default['default'].createElement(Main, _extends._extends_1({ + size: BLOCKIES_SQUARES * blockiesScale, + radius: radius + }, components.stylingProps(this)), /*#__PURE__*/React__default['default'].createElement(BlockiesScaling, { + size: BLOCKIES_SQUARES * blockiesScale * PX_RATIO + }, /*#__PURE__*/React__default['default'].createElement(BlockiesOpacity, { + soften: soften + }, /*#__PURE__*/React__default['default'].createElement(Blockies, { + seed: address.toLowerCase(), + size: BLOCKIES_SQUARES, + scale: blockiesScale * PX_RATIO + })))) : null; + } + }]); + + return EthIdenticon; +}(React__default['default'].Component); +/* + * `vertical-align` prevents the inline parent to have an incorrect height. + * + * See + * - https://bugzilla.mozilla.org/show_bug.cgi?id=491549#c9 + * - https://bugzilla.mozilla.org/show_bug.cgi?id=737757#c1 + */ + + +defineProperty.defineProperty(EthIdenticon, "propTypes", { + address: index.propTypes.string.isRequired, + scale: index.propTypes.number, + radius: index.propTypes.number, + soften: index.propTypes.number +}); + +defineProperty.defineProperty(EthIdenticon, "defaultProps", { + scale: 1, + radius: 0, + soften: 0.3 +}); + +var Main = _styled__default['default'].div.withConfig({ + displayName: "EthIdenticon__Main", + componentId: "sc-1h8gagr-0" +})(["display:inline-flex;vertical-align:middle;overflow:hidden;width:", "px;height:", "px;border-radius:", "px;mask-image:linear-gradient(red,red);"], function (p) { + return p.size; +}, function (p) { + return p.size; +}, function (p) { + return p.radius; +}); +var BlockiesOpacity = _styled__default['default'].div.withConfig({ + displayName: "EthIdenticon__BlockiesOpacity", + componentId: "sc-1h8gagr-1" +})(["opacity:", ";"], function (p) { + return 1 - p.soften; +}); +var BlockiesScaling = _styled__default['default'].div.withConfig({ + displayName: "EthIdenticon__BlockiesScaling", + componentId: "sc-1h8gagr-2" +})(["display:flex;width:", "px;height:", "px;background:#fff;transform:scale(", ",", ");transform-origin:0 0;"], function (p) { + return p.size; +}, function (p) { + return p.size; +}, 1 / PX_RATIO, 1 / PX_RATIO); + +exports.default = EthIdenticon; +//# sourceMappingURL=EthIdenticon.js.map diff --git a/packages/govern-console/public/aragon-ui/EthIdenticon.js.map b/packages/govern-console/public/aragon-ui/EthIdenticon.js.map new file mode 100644 index 000000000..242b60dd9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/EthIdenticon.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EthIdenticon.js","sources":["../node_modules/react-blockies/dist/main.js","../src/components/EthIdenticon/EthIdenticon.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Identicon = function (_Component) {\n _inherits(Identicon, _Component);\n\n function Identicon(props) {\n _classCallCheck(this, Identicon);\n\n var _this = _possibleConstructorReturn(this, (Identicon.__proto__ || Object.getPrototypeOf(Identicon)).call(this, props));\n\n _this.generateIdenticon = _this.generateIdenticon.bind(_this);\n return _this;\n }\n\n _createClass(Identicon, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.generateIdenticon(_extends({}, this.props));\n }\n }, {\n key: 'componentWillUpdate',\n value: function componentWillUpdate(nextProps) {\n if (!this.isEquivalent(this.props, nextProps)) this.generateIdenticon(_extends({}, nextProps));\n }\n }, {\n key: 'isEquivalent',\n value: function isEquivalent(prevProps, nextProps) {\n var aProps = Object.getOwnPropertyNames(prevProps);\n var bProps = Object.getOwnPropertyNames(nextProps);\n\n if (aProps.length != bProps.length) {\n return false;\n }\n\n for (var i = 0; i < aProps.length; i++) {\n var propName = aProps[i];\n\n if (prevProps[propName] !== nextProps[propName]) {\n return false;\n }\n }\n\n return true;\n }\n }, {\n key: 'generateIdenticon',\n value: function generateIdenticon(options) {\n // NOTE -- Majority of this code is referenced from: https://github.com/alexvandesande/blockies\n // Mostly to ensure congruence to Ethereum Mist's Identicons\n\n // The random number is a js implementation of the Xorshift PRNG\n var randseed = new Array(4); // Xorshift: [x, y, z, w] 32 bit values\n\n function seedrand(seed) {\n for (var i = 0; i < randseed.length; i++) {\n randseed[i] = 0;\n }\n for (var _i = 0; _i < seed.length; _i++) {\n randseed[_i % 4] = (randseed[_i % 4] << 5) - randseed[_i % 4] + seed.charCodeAt(_i);\n }\n }\n\n function rand() {\n // based on Java's String.hashCode(), expanded to 4 32bit values\n var t = randseed[0] ^ randseed[0] << 11;\n\n randseed[0] = randseed[1];\n randseed[1] = randseed[2];\n randseed[2] = randseed[3];\n randseed[3] = randseed[3] ^ randseed[3] >> 19 ^ t ^ t >> 8;\n\n return (randseed[3] >>> 0) / (1 << 31 >>> 0);\n }\n\n function createColor() {\n // saturation is the whole color spectrum\n var h = Math.floor(rand() * 360);\n // saturation goes from 40 to 100, it avoids greyish colors\n var s = rand() * 60 + 40 + '%';\n // lightness can be anything from 0 to 100, but probabilities are a bell curve around 50%\n var l = (rand() + rand() + rand() + rand()) * 25 + '%';\n\n var color = 'hsl(' + h + ',' + s + ',' + l + ')';\n return color;\n }\n\n function createImageData(size) {\n var width = size; // Only support square icons for now\n var height = size;\n\n var dataWidth = Math.ceil(width / 2);\n var mirrorWidth = width - dataWidth;\n\n var data = [];\n for (var y = 0; y < height; y++) {\n var row = [];\n for (var x = 0; x < dataWidth; x++) {\n // this makes foreground and background color to have a 43% (1/2.3) probability\n // spot color has 13% chance\n row[x] = Math.floor(rand() * 2.3);\n }\n var r = row.slice(0, mirrorWidth);\n r.reverse();\n row = row.concat(r);\n\n for (var i = 0; i < row.length; i++) {\n data.push(row[i]);\n }\n }\n\n return data;\n }\n\n function setCanvas(identicon, imageData, color, scale, bgcolor, spotcolor) {\n var width = Math.sqrt(imageData.length);\n var size = width * scale;\n\n identicon.width = size;\n identicon.style.width = size + 'px';\n\n identicon.height = size;\n identicon.style.height = size + 'px';\n\n var cc = identicon.getContext('2d');\n cc.fillStyle = bgcolor;\n cc.fillRect(0, 0, identicon.width, identicon.height);\n cc.fillStyle = color;\n\n for (var i = 0; i < imageData.length; i++) {\n // if data is 2, choose spot color, if 1 choose foreground\n cc.fillStyle = imageData[i] === 1 ? color : spotcolor;\n\n // if data is 0, leave the background\n if (imageData[i]) {\n var row = Math.floor(i / width);\n var col = i % width;\n\n cc.fillRect(col * scale, row * scale, scale, scale);\n }\n }\n }\n\n var opts = options || {};\n var size = opts.size || 8;\n var scale = opts.scale || 4;\n var seed = opts.seed || Math.floor(Math.random() * Math.pow(10, 16)).toString(16);\n\n seedrand(seed);\n\n var color = opts.color || createColor();\n var bgcolor = opts.bgColor || createColor();\n var spotcolor = opts.spotColor || createColor();\n var imageData = createImageData(size);\n var canvas = setCanvas(this.identicon, imageData, color, scale, bgcolor, spotcolor);\n\n return canvas;\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n return _react2.default.createElement('canvas', {\n ref: function ref(identicon) {\n _this2.identicon = identicon;\n },\n className: this.props.className\n });\n }\n }]);\n\n return Identicon;\n}(_react.Component);\n\nexports.default = Identicon;\n\n\nIdenticon.defaultProps = {\n className: 'identicon'\n};\n\nIdenticon.propTypes = {\n seed: _propTypes2.default.string.isRequired,\n size: _propTypes2.default.number,\n scale: _propTypes2.default.number,\n color: _propTypes2.default.string,\n bgColor: _propTypes2.default.string,\n spotColor: _propTypes2.default.string\n};\n\n","import React from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\nimport Blockies from 'react-blockies'\nimport { stylingProps, isAddress } from '../../utils'\n\nconst PX_RATIO = typeof devicePixelRatio === 'undefined' ? 2 : devicePixelRatio\nconst BLOCKIES_SQUARES = 8 // commonly used to represent Ethereum addresses\nconst BASE_SCALE = 3\n\nclass EthIdenticon extends React.Component {\n static propTypes = {\n address: PropTypes.string.isRequired,\n scale: PropTypes.number,\n radius: PropTypes.number,\n soften: PropTypes.number,\n }\n static defaultProps = {\n scale: 1,\n radius: 0,\n soften: 0.3,\n }\n render() {\n const { address, scale, radius, soften } = this.props\n const blockiesScale = scale * BASE_SCALE\n return isAddress(address) ? (\n \n \n \n \n \n \n \n ) : null\n }\n}\n\n/*\n * `vertical-align` prevents the inline parent to have an incorrect height.\n *\n * See\n * - https://bugzilla.mozilla.org/show_bug.cgi?id=491549#c9\n * - https://bugzilla.mozilla.org/show_bug.cgi?id=737757#c1\n */\nconst Main = styled.div`\n display: inline-flex;\n vertical-align: middle;\n overflow: hidden;\n width: ${p => p.size}px;\n height: ${p => p.size}px;\n border-radius: ${p => p.radius}px;\n\n // Fix an issue where the border-radius wasn’t visible on Blink browsers.\n // See https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7b\n mask-image: linear-gradient(red, red);\n`\n\nconst BlockiesOpacity = styled.div`\n opacity: ${p => 1 - p.soften};\n`\n\nconst BlockiesScaling = styled.div`\n /* display:flex to remove the display:inline on the child without using a\n * selector (Blockies doesn’t allow the style prop to be passed). */\n display: flex;\n width: ${p => p.size}px;\n height: ${p => p.size}px;\n background: #fff;\n\n /* add high-res screens support to Blockies */\n transform: scale(${1 / PX_RATIO}, ${1 / PX_RATIO});\n transform-origin: 0 0;\n`\n\nexport default EthIdenticon\n"],"names":["_react","_propTypes","PX_RATIO","devicePixelRatio","BLOCKIES_SQUARES","BASE_SCALE","EthIdenticon","props","address","scale","radius","soften","blockiesScale","isAddress","React","stylingProps","toLowerCase","Component","PropTypes","string","isRequired","number","Main","styled","div","p","size","BlockiesOpacity","Bl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;AAAA,SAAIA,CAAC,CAACf,MAAN;AAAA,CANV,CAAV;AAaA,IAAMiB,eAAe,GAAGJ,2BAAM,CAACC,GAAV;AAAA;AAAA;AAAA,sBACR,UAAAC,CAAC;AAAA,SAAI,IAAIA,CAAC,CAACd,MAAV;AAAA,CADO,CAArB;AAIA,IAAMiB,eAAe,GAAGL,2BAAM,CAACC,GAAV;AAAA;AAAA;AAAA,iHAIV,UAAAC,CAAC;AAAA,SAAIA,CAAC,CAACC,IAAN;AAAA,CAJS,EAKT,UAAAD,CAAC;AAAA,SAAIA,CAAC,CAACC,IAAN;AAAA,CALQ,EASA,IAAIxB,QATJ,EASiB,IAAIA,QATrB,CAArB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Field.js b/packages/govern-console/public/aragon-ui/Field.js new file mode 100644 index 000000000..235e65a82 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Field.js @@ -0,0 +1,110 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +var css = require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +// be used to link the
    \n \n \n \n \n \n \n )\n}\n\nIconRotateRight.propTypes = IconPropTypes\nexport default IconRotateRight\n"],"names":["IconRotateRight","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,eAAT,OAA6C;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AAC3C,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,MAAM,EAAC,cAFT;AAGE,IAAA,WAAW,EAAE,GAHf;AAIE,IAAA,QAAQ,EAAC;AAJX,kBAMEA;AAAM,IAAA,CAAC,EAAC;AAAR,IANF,eAOEA;AAAM,IAAA,CAAC,EAAC;AAAR,IAPF,CAPF,eAgBEA,mEACEA;AAAU,IAAA,EAAE,EAAC;AAAb,kBACEA;AAAM,IAAA,IAAI,EAAC,MAAX;AAAkB,IAAA,CAAC,EAAC,eAApB;AAAoC,IAAA,SAAS,EAAC;AAA9C,IADF,CADF,CAhBF,CADF;AAwBD;;AAEDL,eAAe,CAACM,SAAhB,GAA4BC,2BAA5B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconSearch.js b/packages/govern-console/public/aragon-ui/IconSearch.js new file mode 100644 index 000000000..5461a95c0 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSearch.js @@ -0,0 +1,44 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconSearch(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M15.565 5.984A6.73 6.73 0 0010.775 4a6.73 6.73 0 00-4.79 1.984A6.73 6.73 0 004 10.774a6.73 6.73 0 001.984 4.79 6.73 6.73 0 004.79 1.985 6.73 6.73 0 004.79-1.984 6.73 6.73 0 001.985-4.79 6.73 6.73 0 00-1.984-4.79zm-4.79 10.272a5.488 5.488 0 01-5.482-5.482 5.488 5.488 0 015.481-5.481 5.488 5.488 0 015.482 5.481 5.488 5.488 0 01-5.482 5.482z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M19.81 18.896l-4.248-4.248a.646.646 0 10-.914.914l4.249 4.249a.644.644 0 00.914 0 .646.646 0 000-.915z" + })); +} + +IconSearch.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconSearch; +//# sourceMappingURL=IconSearch.js.map diff --git a/packages/govern-console/public/aragon-ui/IconSearch.js.map b/packages/govern-console/public/aragon-ui/IconSearch.js.map new file mode 100644 index 000000000..b3ba418b5 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSearch.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconSearch.js","sources":["../src/icons/components/IconSearch.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconSearch({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconSearch.propTypes = IconPropTypes\nexport default IconSearch\n"],"names":["IconSearch","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,UAAT,OAAwC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACtC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,CADF;AAkBD;;AAEDL,UAAU,CAACM,SAAX,GAAuBC,2BAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconSettings.js b/packages/govern-console/public/aragon-ui/IconSettings.js new file mode 100644 index 000000000..0cd1939ed --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSettings.js @@ -0,0 +1,48 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconSettings(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M18.964 10.504c.236.04.46.156.672.347a.91.91 0 01.316.702v.988a.782.782 0 01-.316.648 1.835 1.835 0 01-.672.34l-1.281.309c-.05.148-.104.295-.163.44-.056.14-.12.276-.192.409l.678 1.142c.134.206.216.443.248.71a.808.808 0 01-.248.695l-.694.695a.894.894 0 01-.71.27 1.455 1.455 0 01-.726-.224l-1.111-.71c-.143.07-.287.137-.433.2a4.829 4.829 0 01-.463.17l-.278 1.282a1.36 1.36 0 01-.347.672.909.909 0 01-.702.316h-.989a.782.782 0 01-.648-.316 1.844 1.844 0 01-.34-.672l-.31-1.268a6.31 6.31 0 01-.494-.177 5.081 5.081 0 01-.478-.224l-1.142.726c-.214.14-.463.217-.718.224a.857.857 0 01-.703-.27l-.71-.696a.827.827 0 01-.232-.693c.031-.268.108-.505.232-.71l.726-1.205a8.456 8.456 0 01-.178-.379 3.19 3.19 0 01-.147-.409l-1.28-.308a1.843 1.843 0 01-.673-.34.783.783 0 01-.316-.648v-.988c0-.278.105-.513.316-.702.21-.191.435-.306.673-.348l1.264-.278c.043-.148.094-.292.155-.432.062-.144.123-.283.186-.417L6.01 8.171a1.754 1.754 0 01-.232-.71.827.827 0 01.232-.695l.71-.695a.857.857 0 01.703-.27c.282.015.522.09.716.224l1.144.726c.306-.163.626-.297.957-.401l.325-1.267c.055-.246.166-.475.323-.672a.802.802 0 01.664-.316h.989c.277 0 .509.106.694.316.186.211.304.43.355.657l.279 1.296c.307.103.606.227.896.371l1.11-.71c.218-.137.468-.214.725-.223a.893.893 0 01.71.27l.696.695a.807.807 0 01.247.693 1.625 1.625 0 01-.248.71l-.678 1.143c.071.144.14.291.208.44.067.15.12.306.162.47l1.265.279.002.002zm0 1.96l.015-.88a.543.543 0 00-.216-.108l-1.837-.418-.17-.54a2.615 2.615 0 00-.123-.37 4.37 4.37 0 00-.185-.386l-.248-.494.973-1.621a.5.5 0 00.07-.123.3.3 0 00.022-.093l-.648-.632a.367.367 0 00-.2.06l-1.591 1.02-.51-.264c-.122-.06-.245-.12-.37-.177a2.006 2.006 0 00-.385-.13l-.54-.186-.402-1.867a.457.457 0 00-.047-.116l-.031-.054h-.91a.357.357 0 00-.062.092.546.546 0 00-.046.155l-.448 1.791-.525.169a4.756 4.756 0 00-.803.34l-.51.263-1.65-1.051-.079-.038a.706.706 0 00-.093-.04l-.648.65a.33.33 0 00.023.108c.02.048.043.094.07.139L7.863 9.33l-.246.478c-.057.123-.111.246-.163.37a2.936 2.936 0 00-.115.34l-.17.54-1.868.418a.562.562 0 00-.1.046.21.21 0 01-.07.032v.91a.272.272 0 00.092.054c.05.018.103.03.155.038l1.807.464.168.524c.07.226.164.443.28.649l.231.478-1.004 1.683a.5.5 0 00-.07.123.314.314 0 00-.023.109l.648.632a.25.25 0 00.102-.023.623.623 0 00.1-.053l1.62-1.035.51.263c.257.137.525.251.803.34l.525.168.463 1.823c.01.05.024.095.038.13a.28.28 0 00.054.085h.896a.542.542 0 00.108-.2l.401-1.837.54-.186c.255-.084.503-.187.742-.308l.51-.263 1.62 1.035.078.038c.03.015.06.028.092.04l.648-.649a.314.314 0 00-.023-.108.868.868 0 00-.07-.14l-.972-1.605.248-.494c.06-.113.116-.229.162-.348a7.4 7.4 0 00.13-.362l.17-.51 1.837-.463a.671.671 0 00.132-.038.269.269 0 00.084-.055l.001.001zm-6.917-3.428c.824 0 1.526.288 2.108.864a2.845 2.845 0 01.872 2.1 2.845 2.845 0 01-.872 2.099 2.883 2.883 0 01-2.108.864 2.87 2.87 0 01-2.092-.864 2.846 2.846 0 01-.872-2.1A2.845 2.845 0 019.955 9.9a2.866 2.866 0 012.092-.864zm0 4.94a1.9 1.9 0 001.398-.58c.386-.386.579-.85.579-1.397 0-.545-.193-1.011-.58-1.397a1.903 1.903 0 00-1.397-.579 1.9 1.9 0 00-1.397.58A1.9 1.9 0 0010.07 12c0 .546.193 1.012.58 1.398a1.9 1.9 0 001.396.579z", + clipRule: "evenodd" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M15.875 6.025c.218-.137.468-.214.725-.223a.892.892 0 01.71.27l.696.695a.807.807 0 01.247.693 1.634 1.634 0 01-.248.71l-.678 1.143c.071.144.14.291.208.44.067.15.12.306.162.47l1.265.279.002.002c.236.04.46.156.672.347a.91.91 0 01.316.702v.988a.782.782 0 01-.316.648 1.835 1.835 0 01-.672.34l-1.281.309c-.05.148-.104.295-.163.44-.056.14-.12.276-.192.409l.678 1.142c.134.206.216.443.248.71a.808.808 0 01-.248.695l-.694.695a.893.893 0 01-.71.27 1.454 1.454 0 01-.726-.224l-1.111-.71c-.143.07-.287.137-.433.2a4.84 4.84 0 01-.463.17l-.278 1.282a1.36 1.36 0 01-.347.672.909.909 0 01-.702.316h-.989a.782.782 0 01-.648-.316 1.844 1.844 0 01-.34-.672l-.31-1.268a6.31 6.31 0 01-.494-.177 5.081 5.081 0 01-.478-.224l-1.142.726a1.38 1.38 0 01-.718.224.857.857 0 01-.703-.27l-.71-.696a.828.828 0 01-.232-.693c.031-.268.108-.505.232-.71l.726-1.205a8.467 8.467 0 01-.178-.379 3.19 3.19 0 01-.147-.409l-1.28-.308a1.843 1.843 0 01-.673-.34.783.783 0 01-.316-.648v-.988c0-.278.105-.513.316-.702.21-.191.435-.306.673-.348l1.264-.278c.043-.148.094-.292.155-.432.062-.144.123-.283.186-.417L6.01 8.171a1.754 1.754 0 01-.232-.71.827.827 0 01.232-.695l.71-.695a.857.857 0 01.703-.27c.282.015.522.09.716.224l1.144.726c.306-.163.626-.297.957-.401l.325-1.267c.055-.246.166-.475.323-.672a.801.801 0 01.664-.316h.989c.277 0 .509.106.694.316.186.211.304.43.355.657l.279 1.296c.307.103.606.227.896.371l1.11-.71zm-1.117.602l1.066-.682c.232-.146.498-.228.771-.238a.988.988 0 01.783.298h.001l.693.694a.901.901 0 01.275.772 1.729 1.729 0 01-.26.75l-.653 1.096c.064.13.127.263.188.398.06.136.111.28.152.428l1.236.272v.001c.246.048.476.172.69.364.23.208.347.468.347.773v.988a.88.88 0 01-.353.723c-.22.172-.456.292-.706.357l-1.232.296a7.33 7.33 0 01-.148.397c-.051.126-.108.25-.172.37l.65 1.095c.143.219.229.47.262.749a.901.901 0 01-.276.774l-.692.693a.988.988 0 01-.784.298 1.55 1.55 0 01-.77-.238l-1.067-.681a8.172 8.172 0 01-.39.178 4.905 4.905 0 01-.42.157l-.264 1.227c-.054.27-.183.518-.372.717-.207.23-.467.347-.771.347h-.988a.878.878 0 01-.724-.354 1.94 1.94 0 01-.356-.704v-.001l-.298-1.217a6.436 6.436 0 01-.45-.164 5.184 5.184 0 01-.439-.202l-1.095.695c-.228.15-.492.232-.764.24a.952.952 0 01-.776-.3l-.71-.694a.921.921 0 01-.258-.772 1.86 1.86 0 01.244-.748l.7-1.16a8.57 8.57 0 01-.157-.335 3.28 3.28 0 01-.136-.368l-1.228-.296h-.001a1.939 1.939 0 01-.706-.356.88.88 0 01-.353-.725v-.987c0-.305.117-.565.348-.773.22-.2.46-.324.717-.37l1.208-.266c.04-.132.088-.262.143-.389.055-.127.11-.252.165-.373l-.7-1.162a1.849 1.849 0 01-.245-.747.922.922 0 01.26-.773l.709-.694a.952.952 0 01.777-.298c.296.016.552.094.763.239l1.095.696c.281-.147.573-.27.874-.367l.311-1.215c.06-.258.176-.5.341-.707a.897.897 0 01.74-.353h.988c.304 0 .562.118.765.349.194.22.321.453.377.698l.267 1.245c.276.094.546.206.809.335zm3.99 5.929l-1.838.464-.17.509a7.298 7.298 0 01-.13.362 2.97 2.97 0 01-.162.348l-.248.494.973 1.605a.86.86 0 01.07.14.312.312 0 01.022.108l-.648.648a.755.755 0 01-.093-.039l-.076-.038-1.621-1.035-.51.263a5.403 5.403 0 01-.741.308l-.541.186-.4 1.837a.542.542 0 01-.11.2h-.895a.268.268 0 01-.054-.084.755.755 0 01-.038-.13l-.463-1.824-.525-.169a4.755 4.755 0 01-.803-.339l-.51-.264-1.62 1.035a.615.615 0 01-.1.054.25.25 0 01-.102.023l-.648-.632a.314.314 0 01.023-.108.5.5 0 01.07-.124l1.004-1.683-.231-.478a3.313 3.313 0 01-.28-.649l-.168-.524-1.807-.464a.851.851 0 01-.155-.038.272.272 0 01-.092-.055v-.91a.21.21 0 00.07-.03.562.562 0 01.1-.047l1.869-.418.169-.54c.031-.115.07-.229.115-.34.052-.124.106-.247.163-.37l.246-.478L6.86 7.663a.947.947 0 01-.07-.14.33.33 0 01-.023-.108l.648-.648a.63.63 0 01.093.039l.078.038 1.652 1.05.509-.263c.257-.137.525-.251.803-.34l.525-.168.448-1.792a.546.546 0 01.046-.154.357.357 0 01.061-.092h.91l.032.054a.435.435 0 01.047.116l.401 1.867.54.186c.134.03.263.074.387.13.124.057.247.116.37.177l.509.264 1.591-1.02a.366.366 0 01.2-.06l.648.632a.292.292 0 01-.023.093.5.5 0 01-.07.123l-.972 1.62.248.495c.068.126.13.254.185.386.05.12.092.244.123.37l.17.54 1.837.418c.08.019.153.056.216.107l-.015.881h-.002a.267.267 0 01-.083.054.678.678 0 01-.132.038zm.095-.126a.172.172 0 00.027-.014l.013-.786a.445.445 0 00-.142-.062l-1.89-.43-.186-.593v-.003a2.51 2.51 0 00-.12-.358 4.243 4.243 0 00-.18-.377l-.002-.001-.271-.542 1.002-1.67.003-.005a.404.404 0 00.057-.1v-.001l.001-.002a.197.197 0 00.008-.022l-.582-.568a.272.272 0 00-.111.043h-.001L14.83 7.99l-.557-.289a12.13 12.13 0 00-.367-.176 1.91 1.91 0 00-.367-.124l-.005-.001-.596-.205-.413-1.918a.36.36 0 00-.036-.09l-.004-.006h-.81a.267.267 0 00-.02.036h-.001a.455.455 0 00-.038.129l-.001.005-.462 1.847-.575.185a4.656 4.656 0 00-.787.333H9.79l-.558.289L7.54 6.927l-.074-.036a.611.611 0 00-.027-.013l-.572.572a.392.392 0 00.012.04.852.852 0 00.062.123l1.03 1.713-.269.524a8.37 8.37 0 00-.16.364 2.842 2.842 0 00-.112.33v.001l-.186.594-1.917.428a.469.469 0 00-.102.05v.798c.009.004.019.01.031.014.044.015.09.026.136.033h.005l1.862.479.185.575c.068.22.159.43.271.63l.002.003.255.527-1.033 1.732-.004.004a.405.405 0 00-.056.1v.001a.22.22 0 00-.012.038l.582.568a.208.208 0 00.03-.01v-.001a.525.525 0 00.085-.046h.001l1.668-1.065.558.29c.252.134.516.245.788.332l.575.185.477 1.876v.002c.01.047.021.085.033.114a.165.165 0 00.013.025h.803a.45.45 0 00.063-.129l.41-1.885.592-.203a5.34 5.34 0 00.729-.304l.558-.287 1.662 1.061.073.036a.67.67 0 00.027.013l.572-.572a.775.775 0 00-.074-.163l-1-1.65.271-.543.001-.001c.06-.11.113-.222.157-.337a7.3 7.3 0 00.13-.358l.186-.559 1.89-.477h.003a.575.575 0 00.113-.033zm-6.796-3.394c.824 0 1.526.288 2.108.864a2.844 2.844 0 01.872 2.1 2.845 2.845 0 01-.872 2.099 2.883 2.883 0 01-2.107.864 2.868 2.868 0 01-2.093-.864 2.846 2.846 0 01-.872-2.1A2.845 2.845 0 019.955 9.9a2.867 2.867 0 012.092-.864zm-2.158.797a2.94 2.94 0 00-.901 2.166 2.94 2.94 0 00.9 2.167 2.961 2.961 0 002.16.892 2.98 2.98 0 002.174-.892 2.94 2.94 0 00.9-2.167 2.94 2.94 0 00-.9-2.167 2.98 2.98 0 00-2.174-.89 2.962 2.962 0 00-2.16.89zm3.489 3.496c.368-.368.55-.809.55-1.33 0-.52-.182-.962-.551-1.33l-.001-.001a1.81 1.81 0 00-1.327-.55h-.002c-.52 0-.962.183-1.33.552l-.001.001a1.81 1.81 0 00-.55 1.327V12c0 .52.183.962.552 1.33.368.368.809.55 1.33.55.52 0 .962-.182 1.33-.551zm-2.728-2.726a1.9 1.9 0 011.397-.58 1.904 1.904 0 011.397.579c.387.386.58.852.58 1.397 0 .546-.193 1.011-.579 1.397-.386.387-.852.58-1.398.58a1.9 1.9 0 01-1.396-.579 1.901 1.901 0 01-.58-1.398 1.903 1.903 0 01.579-1.396z", + clipRule: "evenodd" + })); +} + +IconSettings.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconSettings; +//# sourceMappingURL=IconSettings.js.map diff --git a/packages/govern-console/public/aragon-ui/IconSettings.js.map b/packages/govern-console/public/aragon-ui/IconSettings.js.map new file mode 100644 index 000000000..7b9234f53 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSettings.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconSettings.js","sources":["../src/icons/components/IconSettings.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconSettings({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconSettings.propTypes = IconPropTypes\nexport default IconSettings\n"],"names":["IconSettings","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,YAAT,OAA0C;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACxC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,giGAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAPF,eAaEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,4sMAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAbF,CADF;AAsBD;;AAEDL,YAAY,CAACM,SAAb,GAAyBC,2BAAzB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconShare.js b/packages/govern-console/public/aragon-ui/IconShare.js new file mode 100644 index 000000000..e2ab8b47b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconShare.js @@ -0,0 +1,43 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconShare(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M12.775 5.052a.606.606 0 01.634.089l6.386 5.377a.57.57 0 01.205.434.57.57 0 01-.202.435l-6.386 5.442a.606.606 0 01-.636.091.576.576 0 01-.348-.525v-2.548c-2.13.083-5.798 1.119-7.202 4.778a.595.595 0 01-.624.371.585.585 0 01-.52-.501c-.22-1.708-.053-4.281 1.207-6.453 1.222-2.106 3.443-3.777 7.139-3.938V5.577c0-.226.135-.431.347-.525zm.84 1.787v1.829a.585.585 0 01-.594.577c-3.634 0-5.627 1.517-6.699 3.364-.657 1.133-.98 2.412-1.09 3.588 2.233-2.95 5.978-3.586 7.817-3.501a.584.584 0 01.565.576v1.85l4.89-4.166-4.89-4.117z", + clipRule: "evenodd" + })); +} + +IconShare.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconShare; +//# sourceMappingURL=IconShare.js.map diff --git a/packages/govern-console/public/aragon-ui/IconShare.js.map b/packages/govern-console/public/aragon-ui/IconShare.js.map new file mode 100644 index 000000000..bcebbd1a0 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconShare.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconShare.js","sources":["../src/icons/components/IconShare.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconShare({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n )\n}\n\nIconShare.propTypes = IconPropTypes\nexport default IconShare\n"],"names":["IconShare","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,SAAT,OAAuC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACrC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,6gBAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAPF,CADF;AAgBD;;AAEDL,SAAS,CAACM,SAAV,GAAsBC,2BAAtB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconSquare.js b/packages/govern-console/public/aragon-ui/IconSquare.js new file mode 100644 index 000000000..251cd4560 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSquare.js @@ -0,0 +1,41 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconSquare(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M17.72 4H6.28A2.283 2.283 0 004 6.28v11.44A2.283 2.283 0 006.28 20h11.44A2.283 2.283 0 0020 17.72V6.28A2.283 2.283 0 0017.72 4zm.987 13.72a.989.989 0 01-.987.987H6.28a.989.989 0 01-.987-.987V6.28c0-.544.443-.987.987-.987h11.44c.544 0 .987.443.987.987v11.44z" + })); +} + +IconSquare.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconSquare; +//# sourceMappingURL=IconSquare.js.map diff --git a/packages/govern-console/public/aragon-ui/IconSquare.js.map b/packages/govern-console/public/aragon-ui/IconSquare.js.map new file mode 100644 index 000000000..012caffc8 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSquare.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconSquare.js","sources":["../src/icons/components/IconSquare.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconSquare({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n )\n}\n\nIconSquare.propTypes = IconPropTypes\nexport default IconSquare\n"],"names":["IconSquare","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,UAAT,OAAwC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACtC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,CADF;AAcD;;AAEDL,UAAU,CAACM,SAAX,GAAuBC,2BAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconSquareMinus.js b/packages/govern-console/public/aragon-ui/IconSquareMinus.js new file mode 100644 index 000000000..10d0b0120 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSquareMinus.js @@ -0,0 +1,44 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconSquareMinus(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M17.72 4H6.28A2.283 2.283 0 004 6.28v11.44A2.283 2.283 0 006.28 20h11.44A2.283 2.283 0 0020 17.72V6.28A2.283 2.283 0 0017.72 4zm.987 13.72a.99.99 0 01-.988.987H6.28a.989.989 0 01-.987-.988V6.28c0-.544.443-.987.987-.987h11.44c.544 0 .987.443.987.987v11.44z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M15.268 11.354H8.732a.646.646 0 100 1.292h6.536a.646.646 0 100-1.292z" + })); +} + +IconSquareMinus.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconSquareMinus; +//# sourceMappingURL=IconSquareMinus.js.map diff --git a/packages/govern-console/public/aragon-ui/IconSquareMinus.js.map b/packages/govern-console/public/aragon-ui/IconSquareMinus.js.map new file mode 100644 index 000000000..f9b4c3ffa --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSquareMinus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconSquareMinus.js","sources":["../src/icons/components/IconSquareMinus.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconSquareMinus({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconSquareMinus.propTypes = IconPropTypes\nexport default IconSquareMinus\n"],"names":["IconSquareMinus","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,eAAT,OAA6C;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AAC3C,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,CADF;AAkBD;;AAEDL,eAAe,CAACM,SAAhB,GAA4BC,2BAA5B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconSquarePlus.js b/packages/govern-console/public/aragon-ui/IconSquarePlus.js new file mode 100644 index 000000000..4b78dc130 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSquarePlus.js @@ -0,0 +1,47 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconSquarePlus(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M17.72 4H6.28A2.283 2.283 0 004 6.28v11.44A2.283 2.283 0 006.28 20h11.44A2.283 2.283 0 0020 17.72V6.28A2.283 2.283 0 0017.72 4zm.987 13.72a.99.99 0 01-.988.987H6.28a.989.989 0 01-.987-.988V6.28c0-.544.443-.987.987-.987h11.44c.544 0 .987.443.987.987v11.44z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M12 8.085a.646.646 0 00-.646.647v6.536a.646.646 0 101.292 0V8.732A.646.646 0 0012 8.085z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M15.268 11.354H8.732a.646.646 0 100 1.292h6.536a.646.646 0 100-1.292z" + })); +} + +IconSquarePlus.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconSquarePlus; +//# sourceMappingURL=IconSquarePlus.js.map diff --git a/packages/govern-console/public/aragon-ui/IconSquarePlus.js.map b/packages/govern-console/public/aragon-ui/IconSquarePlus.js.map new file mode 100644 index 000000000..d83095e23 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSquarePlus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconSquarePlus.js","sources":["../src/icons/components/IconSquarePlus.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconSquarePlus({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n \n )\n}\n\nIconSquarePlus.propTypes = IconPropTypes\nexport default IconSquarePlus\n"],"names":["IconSquarePlus","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,cAAT,OAA4C;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AAC1C,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,eAeEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAfF,CADF;AAsBD;;AAEDL,cAAc,CAACM,SAAf,GAA2BC,2BAA3B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconStar.js b/packages/govern-console/public/aragon-ui/IconStar.js new file mode 100644 index 000000000..1a8e62dc8 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconStar.js @@ -0,0 +1,41 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconStar(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M19.968 10.066a.656.656 0 00-.52-.46l-4.746-.727-2.122-4.502A.644.644 0 0012 4a.644.644 0 00-.58.377L9.299 8.88l-4.745.726a.655.655 0 00-.521.461.7.7 0 00.163.694l3.434 3.502-.81 4.947a.692.692 0 00.257.662.622.622 0 00.68.051L12 17.585l4.244 2.337a.622.622 0 00.68-.051.692.692 0 00.258-.662l-.81-4.947 3.433-3.502a.7.7 0 00.163-.694zm-4.742 3.474a.697.697 0 00-.186.6l.646 3.946-3.385-1.864a.622.622 0 00-.602 0l-3.385 1.864.646-3.946a.697.697 0 00-.186-.6l-2.74-2.793 3.787-.58a.65.65 0 00.486-.37L12 6.206l1.693 3.59a.65.65 0 00.486.371l3.786.58-2.74 2.793z" + })); +} + +IconStar.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconStar; +//# sourceMappingURL=IconStar.js.map diff --git a/packages/govern-console/public/aragon-ui/IconStar.js.map b/packages/govern-console/public/aragon-ui/IconStar.js.map new file mode 100644 index 000000000..f50f010af --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconStar.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconStar.js","sources":["../src/icons/components/IconStar.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconStar({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n )\n}\n\nIconStar.propTypes = IconPropTypes\nexport default IconStar\n"],"names":["IconStar","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,QAAT,OAAsC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACpC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,CADF;AAcD;;AAEDL,QAAQ,CAACM,SAAT,GAAqBC,2BAArB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconStarFilled.js b/packages/govern-console/public/aragon-ui/IconStarFilled.js new file mode 100644 index 000000000..091613593 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconStarFilled.js @@ -0,0 +1,41 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconStarFilled(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M19.968 10.066a.656.656 0 00-.52-.46l-4.746-.727-2.122-4.502A.644.644 0 0012 4a.644.644 0 00-.58.377L9.299 8.88l-4.745.726a.655.655 0 00-.521.461.7.7 0 00.163.694l3.434 3.502-.81 4.947a.692.692 0 00.257.662.622.622 0 00.68.051L12 17.585l4.244 2.337a.622.622 0 00.68-.051.692.692 0 00.258-.662l-.81-4.947 3.433-3.502a.7.7 0 00.163-.694z" + })); +} + +IconStarFilled.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconStarFilled; +//# sourceMappingURL=IconStarFilled.js.map diff --git a/packages/govern-console/public/aragon-ui/IconStarFilled.js.map b/packages/govern-console/public/aragon-ui/IconStarFilled.js.map new file mode 100644 index 000000000..9fbdfdd6b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconStarFilled.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconStarFilled.js","sources":["../src/icons/components/IconStarFilled.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconStarFilled({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n )\n}\n\nIconStarFilled.propTypes = IconPropTypes\nexport default IconStarFilled\n"],"names":["IconStarFilled","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,cAAT,OAA4C;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AAC1C,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,CADF;AAcD;;AAEDL,cAAc,CAACM,SAAf,GAA2BC,2BAA3B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconSwap.js b/packages/govern-console/public/aragon-ui/IconSwap.js new file mode 100644 index 000000000..ad3674bb9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSwap.js @@ -0,0 +1,48 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconSwap(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 22 21" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + stroke: "currentColor", + strokeWidth: 0.2, + d: "M21.399 12l-3.033-3.034a.566.566 0 00-.8.8l2.633 2.633-2.633 2.634a.566.566 0 00.8.8l3.033-3.034a.565.565 0 000-.8zm-16.166-.967L2.6 8.399l2.633-2.633a.566.566 0 10-.8-.8L1.4 8a.566.566 0 000 .8l3.033 3.033a.566.566 0 00.8-.8z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + stroke: "currentColor", + strokeWidth: 0.2, + d: "M21.564 12.4a.566.566 0 00-.565-.566H9.921a.566.566 0 000 1.131H21a.566.566 0 00.566-.566zm-8.121-4a.565.565 0 00-.566-.566H1.8a.566.566 0 100 1.131h11.077a.565.565 0 00.566-.565z" + })); +} + +IconSwap.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconSwap; +//# sourceMappingURL=IconSwap.js.map diff --git a/packages/govern-console/public/aragon-ui/IconSwap.js.map b/packages/govern-console/public/aragon-ui/IconSwap.js.map new file mode 100644 index 000000000..235c939b2 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconSwap.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconSwap.js","sources":["../src/icons/components/IconSwap.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconSwap({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconSwap.propTypes = IconPropTypes\nexport default IconSwap\n"],"names":["IconSwap","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,QAAT,OAAsC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACpC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,MAAM,EAAC,cAFT;AAGE,IAAA,WAAW,EAAE,GAHf;AAIE,IAAA,CAAC,EAAC;AAJJ,IAPF,eAaEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,MAAM,EAAC,cAFT;AAGE,IAAA,WAAW,EAAE,GAHf;AAIE,IAAA,CAAC,EAAC;AAJJ,IAbF,CADF;AAsBD;;AAEDL,QAAQ,CAACM,SAAT,GAAqBC,2BAArB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconTarget.js b/packages/govern-console/public/aragon-ui/IconTarget.js new file mode 100644 index 000000000..2760cc96e --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconTarget.js @@ -0,0 +1,47 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconTarget(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M17.657 6.343A7.947 7.947 0 0012 4a7.948 7.948 0 00-5.657 2.343A7.948 7.948 0 004 12c0 2.137.832 4.146 2.343 5.657A7.948 7.948 0 0012 20a7.948 7.948 0 005.657-2.343A7.948 7.948 0 0020 12a7.948 7.948 0 00-2.343-5.657zM12 18.707A6.715 6.715 0 015.293 12 6.715 6.715 0 0112 5.293 6.715 6.715 0 0118.707 12 6.715 6.715 0 0112 18.707z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M12 6.942A5.064 5.064 0 006.941 12c0 2.79 2.27 5.059 5.059 5.059 2.79 0 5.059-2.27 5.059-5.059 0-2.79-2.27-5.058-5.059-5.058zm0 8.824A3.77 3.77 0 018.234 12 3.77 3.77 0 0112 8.234 3.77 3.77 0 0115.766 12 3.77 3.77 0 0112 15.766z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M12 9.883A2.12 2.12 0 009.883 12 2.12 2.12 0 0012 14.117 2.12 2.12 0 0014.117 12 2.12 2.12 0 0012 9.883zm0 2.941a.825.825 0 010-1.648.825.825 0 010 1.648z" + })); +} + +IconTarget.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconTarget; +//# sourceMappingURL=IconTarget.js.map diff --git a/packages/govern-console/public/aragon-ui/IconTarget.js.map b/packages/govern-console/public/aragon-ui/IconTarget.js.map new file mode 100644 index 000000000..82ef09523 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconTarget.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconTarget.js","sources":["../src/icons/components/IconTarget.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconTarget({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n \n )\n}\n\nIconTarget.propTypes = IconPropTypes\nexport default IconTarget\n"],"names":["IconTarget","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,UAAT,OAAwC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACtC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,eAeEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAfF,CADF;AAsBD;;AAEDL,UAAU,CAACM,SAAX,GAAuBC,2BAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconToken.js b/packages/govern-console/public/aragon-ui/IconToken.js new file mode 100644 index 000000000..67def50e5 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconToken.js @@ -0,0 +1,48 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconToken(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M8.556 16.508c0-1.93 1.542-3.493 3.444-3.493s3.444 1.564 3.444 3.492C15.444 18.438 13.902 20 12 20s-3.444-1.564-3.444-3.492zM12 14.366c-1.166 0-2.112.959-2.112 2.142 0 1.182.946 2.141 2.112 2.141 1.166 0 2.112-.959 2.112-2.142 0-1.182-.946-2.141-2.112-2.141zM3 9.183c0-1.307 1.044-2.366 2.333-2.366 1.288 0 2.333 1.06 2.333 2.366s-1.045 2.366-2.333 2.366C4.044 11.549 3 10.489 3 9.183zm2.333-1.015c-.553 0-1.001.454-1.001 1.015 0 .56.448 1.015 1 1.015.554 0 1.002-.455 1.002-1.015 0-.56-.448-1.015-1.001-1.015zm11.001 1.015c0-1.307 1.045-2.366 2.333-2.366 1.289 0 2.333 1.06 2.333 2.366s-1.044 2.366-2.333 2.366c-1.288 0-2.333-1.06-2.333-2.366zm2.333-1.015c-.553 0-1 .454-1 1.015 0 .56.447 1.015 1 1.015.553 0 1.001-.455 1.001-1.015 0-.56-.448-1.015-1-1.015zm-9-1.802C9.667 5.059 10.711 4 12 4c1.288 0 2.333 1.06 2.333 2.366S13.288 8.73 12 8.73c-1.289 0-2.333-1.059-2.333-2.365zM12 5.35c-.553 0-1 .454-1 1.015 0 .56.447 1.015 1 1.015.553 0 1-.455 1-1.015 0-.56-.447-1.015-1-1.015z", + clipRule: "evenodd" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M11.334 13.68V7.775h1.332v5.907h-1.332zm1.723.396l3.907-3.962.942.955-3.907 3.962-.942-.955zm-2.166 0l-3.907-3.962-.942.955 3.907 3.962.942-.955z", + clipRule: "evenodd" + })); +} + +IconToken.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconToken; +//# sourceMappingURL=IconToken.js.map diff --git a/packages/govern-console/public/aragon-ui/IconToken.js.map b/packages/govern-console/public/aragon-ui/IconToken.js.map new file mode 100644 index 000000000..550078a2f --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconToken.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconToken.js","sources":["../src/icons/components/IconToken.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconToken({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconToken.propTypes = IconPropTypes\nexport default IconToken\n"],"names":["IconToken","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,SAAT,OAAuC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACrC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,s9BAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAPF,eAaEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,mJAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAbF,CADF;AAsBD;;AAEDL,SAAS,CAACM,SAAV,GAAsBC,2BAAtB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconTrash.js b/packages/govern-console/public/aragon-ui/IconTrash.js new file mode 100644 index 000000000..a52372979 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconTrash.js @@ -0,0 +1,47 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconTrash(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M18.618 6.941H5.382a.646.646 0 000 1.293h13.236a.646.646 0 100-1.293z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M17.148 6.941a.646.646 0 00-.647.647v10.295c0 .454-.37.824-.824.824H8.323a.825.825 0 01-.824-.824V7.588a.646.646 0 00-1.293 0v10.295A2.12 2.12 0 008.323 20h7.354a2.12 2.12 0 002.117-2.117V7.588a.646.646 0 00-.646-.647z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M13.47 4h-2.94a2.12 2.12 0 00-2.118 2.117v1.47a.646.646 0 001.293 0v-1.47c0-.455.37-.824.824-.824h2.942c.454 0 .824.37.824.824v1.47a.646.646 0 001.293 0v-1.47A2.12 2.12 0 0013.47 4zm-2.94 6.618a.646.646 0 00-.647.647v4.412a.646.646 0 101.293 0v-4.412a.646.646 0 00-.647-.647zm2.94 0a.646.646 0 00-.646.647v4.412a.646.646 0 101.293 0v-4.412a.646.646 0 00-.646-.647z" + })); +} + +IconTrash.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconTrash; +//# sourceMappingURL=IconTrash.js.map diff --git a/packages/govern-console/public/aragon-ui/IconTrash.js.map b/packages/govern-console/public/aragon-ui/IconTrash.js.map new file mode 100644 index 000000000..f5dd1687f --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconTrash.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconTrash.js","sources":["../src/icons/components/IconTrash.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconTrash({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n \n )\n}\n\nIconTrash.propTypes = IconPropTypes\nexport default IconTrash\n"],"names":["IconTrash","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,SAAT,OAAuC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACrC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,eAeEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAfF,CADF;AAsBD;;AAEDL,SAAS,CAACM,SAAV,GAAsBC,2BAAtB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconUnlock.js b/packages/govern-console/public/aragon-ui/IconUnlock.js new file mode 100644 index 000000000..de4d5dad3 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconUnlock.js @@ -0,0 +1,44 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconUnlock(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M17.669 10.48H6.332A2.334 2.334 0 004 12.812v5.668a2.334 2.334 0 002.332 2.332h11.337A2.334 2.334 0 0020 18.48v-5.668a2.334 2.334 0 00-2.331-2.332zm.907 8c0 .5-.407.908-.907.908H6.332a.909.909 0 01-.908-.908v-5.668c0-.5.407-.908.908-.908h11.337c.5 0 .907.407.907.908v5.668z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M16.666 6.813a4.774 4.774 0 00-1.655-2.74A4.773 4.773 0 0012 3h-.005A4.73 4.73 0 008.63 4.398a4.73 4.73 0 00-1.39 3.367v3.239a.712.712 0 101.423 0v-3.24c0-.891.345-1.73.975-2.36a3.315 3.315 0 012.359-.98H12a3.347 3.347 0 013.27 2.673.712.712 0 101.396-.284z" + })); +} + +IconUnlock.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconUnlock; +//# sourceMappingURL=IconUnlock.js.map diff --git a/packages/govern-console/public/aragon-ui/IconUnlock.js.map b/packages/govern-console/public/aragon-ui/IconUnlock.js.map new file mode 100644 index 000000000..8e03193e9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconUnlock.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconUnlock.js","sources":["../src/icons/components/IconUnlock.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconUnlock({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconUnlock.propTypes = IconPropTypes\nexport default IconUnlock\n"],"names":["IconUnlock","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,UAAT,OAAwC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACtC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,CADF;AAkBD;;AAEDL,UAAU,CAACM,SAAX,GAAuBC,2BAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconUp.js b/packages/govern-console/public/aragon-ui/IconUp.js new file mode 100644 index 000000000..c5c656cbe --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconUp.js @@ -0,0 +1,41 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconUp(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M5.215 15.219a.725.725 0 001.039 0L12 9.367l5.747 5.851a.725.725 0 001.038 0 .757.757 0 000-1.057l-6.266-6.38a.725.725 0 00-1.038 0l-6.266 6.38a.757.757 0 000 1.058z" + })); +} + +IconUp.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconUp; +//# sourceMappingURL=IconUp.js.map diff --git a/packages/govern-console/public/aragon-ui/IconUp.js.map b/packages/govern-console/public/aragon-ui/IconUp.js.map new file mode 100644 index 000000000..8ba6bc423 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconUp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconUp.js","sources":["../src/icons/components/IconUp.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconUp({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n )\n}\n\nIconUp.propTypes = IconPropTypes\nexport default IconUp\n"],"names":["IconUp","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,MAAT,OAAoC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AAClC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,CADF;AAcD;;AAEDL,MAAM,CAACM,SAAP,GAAmBC,2BAAnB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconUpload.js b/packages/govern-console/public/aragon-ui/IconUpload.js new file mode 100644 index 000000000..528fe5552 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconUpload.js @@ -0,0 +1,44 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconUpload(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M18.618 15.03a.646.646 0 00-.646.647v2.206c0 .454-.37.824-.824.824H6.852a.825.825 0 01-.824-.824v-2.206a.646.646 0 00-1.293 0v2.206A2.12 2.12 0 006.853 20h10.295a2.12 2.12 0 002.117-2.117v-2.206a.646.646 0 00-.647-.646zM8.602 8.045a.646.646 0 00.914 0L12 5.56l2.485 2.485a.646.646 0 00.914-.914l-2.942-2.942a.646.646 0 00-.914 0L8.602 7.131a.646.646 0 000 .914z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M12 15.588c.357 0 .646-.29.646-.646V4.646a.646.646 0 00-1.292 0v10.296c0 .356.289.646.646.646z" + })); +} + +IconUpload.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconUpload; +//# sourceMappingURL=IconUpload.js.map diff --git a/packages/govern-console/public/aragon-ui/IconUpload.js.map b/packages/govern-console/public/aragon-ui/IconUpload.js.map new file mode 100644 index 000000000..4b8d9db14 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconUpload.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconUpload.js","sources":["../src/icons/components/IconUpload.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconUpload({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconUpload.propTypes = IconPropTypes\nexport default IconUpload\n"],"names":["IconUpload","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,UAAT,OAAwC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACtC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,CADF;AAkBD;;AAEDL,UAAU,CAACM,SAAX,GAAuBC,2BAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconUser.js b/packages/govern-console/public/aragon-ui/IconUser.js new file mode 100644 index 000000000..864413c33 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconUser.js @@ -0,0 +1,41 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconUser(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M12 14c-4.806 0-8.571 2.227-8.571 5.07v.875a.694.694 0 101.388 0v-.875c0-1.996 3.29-3.682 7.183-3.682s7.183 1.686 7.183 3.682v.875a.694.694 0 101.388 0v-.875C20.57 16.227 16.806 14 12 14zm4.187-6.42a4.166 4.166 0 00-1.183-2.351 4.192 4.192 0 00-3.582-1.183A4.2 4.2 0 007.889 8.81a4.167 4.167 0 001.65 2.754 4.164 4.164 0 003.115.78 4.2 4.2 0 003.534-4.764zm-3.737 3.39a2.788 2.788 0 01-2.084-.522A2.788 2.788 0 019.26 8.607a2.81 2.81 0 013.189-3.189 2.79 2.79 0 012.365 2.365 2.81 2.81 0 01-2.365 3.188z" + })); +} + +IconUser.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconUser; +//# sourceMappingURL=IconUser.js.map diff --git a/packages/govern-console/public/aragon-ui/IconUser.js.map b/packages/govern-console/public/aragon-ui/IconUser.js.map new file mode 100644 index 000000000..679801aea --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconUser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconUser.js","sources":["../src/icons/components/IconUser.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconUser({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n )\n}\n\nIconUser.propTypes = IconPropTypes\nexport default IconUser\n"],"names":["IconUser","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,QAAT,OAAsC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACpC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,CADF;AAcD;;AAEDL,QAAQ,CAACM,SAAT,GAAqBC,2BAArB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconView.js b/packages/govern-console/public/aragon-ui/IconView.js new file mode 100644 index 000000000..bd21cf4b6 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconView.js @@ -0,0 +1,44 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconView(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M20.923 11.675c-.033-.066-.816-1.617-2.282-3.18-.87-.93-1.805-1.672-2.776-2.208-1.24-.684-2.54-1.03-3.865-1.03-1.325 0-2.626.346-3.865 1.03-.971.536-1.905 1.278-2.776 2.207-1.466 1.564-2.25 3.116-2.282 3.18a.727.727 0 000 .651c.032.066.816 1.617 2.282 3.18.87.93 1.805 1.672 2.776 2.208 1.24.684 2.54 1.03 3.865 1.03 1.325 0 2.625-.346 3.865-1.03.971-.536 1.905-1.278 2.776-2.207 1.466-1.564 2.25-3.116 2.282-3.18a.728.728 0 000-.651zM12 17.29c-1.964 0-3.833-.926-5.555-2.752A14.138 14.138 0 014.557 12C5.249 10.802 7.916 6.71 12 6.71c1.964 0 3.833.926 5.554 2.752A14.137 14.137 0 0119.444 12c-.694 1.198-3.36 5.29-7.444 5.29z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M12 9.017A2.987 2.987 0 009.017 12 2.987 2.987 0 0012 14.983 2.987 2.987 0 0014.983 12 2.987 2.987 0 0012 9.017zm0 4.512A1.53 1.53 0 0110.471 12c0-.843.686-1.53 1.53-1.53a1.53 1.53 0 010 3.058z" + })); +} + +IconView.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconView; +//# sourceMappingURL=IconView.js.map diff --git a/packages/govern-console/public/aragon-ui/IconView.js.map b/packages/govern-console/public/aragon-ui/IconView.js.map new file mode 100644 index 000000000..5a1336af0 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconView.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconView.js","sources":["../src/icons/components/IconView.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconView({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconView.propTypes = IconPropTypes\nexport default IconView\n"],"names":["IconView","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,QAAT,OAAsC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACpC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,CADF;AAkBD;;AAEDL,QAAQ,CAACM,SAAT,GAAqBC,2BAArB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconVote.js b/packages/govern-console/public/aragon-ui/IconVote.js new file mode 100644 index 000000000..d9b792aa0 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconVote.js @@ -0,0 +1,48 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconVote(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M8.023 2.178a.656.656 0 01.898 0l.713.675a1.553 1.553 0 01.458 1.459l-.001.005-.427 1.928h3.849c.829 0 1.543.645 1.543 1.482v1.061a1.845 1.845 0 01-.15.72l-2.03 4.488c-.306.694-1.022 1.156-1.83 1.156H4.992C3.912 15.152 3 14.32 3 13.245V7.727c0-.536.233-1.015.592-1.355l4.43-4.194zM4.49 7.283l-.45-.456.45.456a.61.61 0 00-.198.444v5.518c0 .334.29.64.7.64h6.053a.695.695 0 00.647-.4l2.025-4.477a.594.594 0 00.045-.22v-1.06c0-.097-.093-.216-.25-.216h-4.65a.652.652 0 01-.504-.236.624.624 0 01-.129-.532l.596-2.692a.297.297 0 00-.09-.288l-.264-.25-3.981 3.77z", + clipRule: "evenodd" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M15.977 21.822a.656.656 0 01-.898 0l-.713-.675a1.553 1.553 0 01-.457-1.464l.427-1.928h-3.849c-.829 0-1.543-.645-1.543-1.482v-1.061c0-.259.056-.49.14-.696l1.202.466a.6.6 0 00-.049.23v1.06c0 .097.093.216.25.216h4.65c.196 0 .381.087.504.236s.17.345.129.532l-.596 2.692a.297.297 0 00.09.288l.264.25 3.981-3.77.45.457-.45-.456a.61.61 0 00.198-.444v-5.518c0-.334-.29-.64-.7-.64H14.52V8.848h4.489c1.08 0 1.992.832 1.992 1.907v5.518c0 .536-.233 1.015-.592 1.355l-4.43 4.194z", + clipRule: "evenodd" + })); +} + +IconVote.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconVote; +//# sourceMappingURL=IconVote.js.map diff --git a/packages/govern-console/public/aragon-ui/IconVote.js.map b/packages/govern-console/public/aragon-ui/IconVote.js.map new file mode 100644 index 000000000..fb3557150 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconVote.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconVote.js","sources":["../src/icons/components/IconVote.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconVote({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconVote.propTypes = IconPropTypes\nexport default IconVote\n"],"names":["IconVote","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,QAAT,OAAsC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACpC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,6iBAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAPF,eAaEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,odAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAbF,CADF;AAsBD;;AAEDL,QAAQ,CAACM,SAAT,GAAqBC,2BAArB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconWallet.js b/packages/govern-console/public/aragon-ui/IconWallet.js new file mode 100644 index 000000000..534b50bf6 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconWallet.js @@ -0,0 +1,53 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconWallet(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M4 8.577c0-.329.266-.595.595-.595h14.81c.328 0 .595.266.595.595v10.815a.595.595 0 01-.595.595H4.595A.595.595 0 014 19.392V8.577zm1.19.595v9.625h13.62V9.172H5.19z", + clipRule: "evenodd" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M13.033 13.862a2.562 2.562 0 012.562-2.562h3.564c.329 0 .595.266.595.595v3.933a.595.595 0 01-.595.595h-3.564a2.562 2.562 0 01-2.562-2.561zm2.562-1.372a1.371 1.371 0 100 2.743h2.969V12.49h-2.97z", + clipRule: "evenodd" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M15.821 14.65a.778.778 0 100-1.556.778.778 0 000 1.557zm-.359-8.265c.078-.017.167-.04.25-.06l.05-.013a6.67 6.67 0 01.322-.073c.224-.045.413-.06.559-.04.131.02.196.062.242.123.058.076.146.263.146.686a.595.595 0 001.19 0c0-.568-.115-1.044-.384-1.402a1.514 1.514 0 00-1.024-.585c-.345-.05-.689-.004-.96.05a7.8 7.8 0 00-.438.1 6.18 6.18 0 01-.237.057L4.528 7.953a.595.595 0 00.295 1.153l10.639-2.721z", + clipRule: "evenodd" + })); +} + +IconWallet.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconWallet; +//# sourceMappingURL=IconWallet.js.map diff --git a/packages/govern-console/public/aragon-ui/IconWallet.js.map b/packages/govern-console/public/aragon-ui/IconWallet.js.map new file mode 100644 index 000000000..0e1073873 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconWallet.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconWallet.js","sources":["../src/icons/components/IconWallet.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconWallet({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n \n )\n}\n\nIconWallet.propTypes = IconPropTypes\nexport default IconWallet\n"],"names":["IconWallet","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,UAAT,OAAwC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACtC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,mKAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAPF,eAaEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,mMAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAbF,eAmBEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,QAAQ,EAAC,SAFX;AAGE,IAAA,CAAC,EAAC,8YAHJ;AAIE,IAAA,QAAQ,EAAC;AAJX,IAnBF,CADF;AA4BD;;AAEDL,UAAU,CAACM,SAAX,GAAuBC,2BAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconWarning.js b/packages/govern-console/public/aragon-ui/IconWarning.js new file mode 100644 index 000000000..0cba95d55 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconWarning.js @@ -0,0 +1,44 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconWarning(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M6.343 17.657A7.948 7.948 0 0012 20a7.948 7.948 0 005.657-2.343A7.947 7.947 0 0020 12a7.948 7.948 0 00-2.343-5.657A7.947 7.947 0 0012 4a7.948 7.948 0 00-5.657 2.343A7.948 7.948 0 004 12c0 2.137.832 4.146 2.343 5.657zM12 5.293A6.715 6.715 0 0118.707 12 6.715 6.715 0 0112 18.707 6.715 6.715 0 015.293 12 6.715 6.715 0 0112 5.293z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M12 12.646c.357 0 .646-.29.646-.646V9.058a.646.646 0 10-1.292 0V12c0 .357.29.646.646.646zm-.457 2.753c.12.12.287.189.457.189a.651.651 0 00.646-.646.651.651 0 00-.189-.458.65.65 0 00-.457-.189.65.65 0 00-.457.19.65.65 0 00-.19.456c0 .17.07.337.19.457z" + })); +} + +IconWarning.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconWarning; +//# sourceMappingURL=IconWarning.js.map diff --git a/packages/govern-console/public/aragon-ui/IconWarning.js.map b/packages/govern-console/public/aragon-ui/IconWarning.js.map new file mode 100644 index 000000000..d42e7c81a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconWarning.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconWarning.js","sources":["../src/icons/components/IconWarning.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconWarning({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n )\n}\n\nIconWarning.propTypes = IconPropTypes\nexport default IconWarning\n"],"names":["IconWarning","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,WAAT,OAAyC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACvC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,CADF;AAkBD;;AAEDL,WAAW,CAACM,SAAZ,GAAwBC,2BAAxB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconWorld.js b/packages/govern-console/public/aragon-ui/IconWorld.js new file mode 100644 index 000000000..414774ec5 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconWorld.js @@ -0,0 +1,47 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconWorld(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M17.657 6.343A7.947 7.947 0 0012 4a7.948 7.948 0 00-5.657 2.343A7.948 7.948 0 004 12c0 2.137.832 4.146 2.343 5.657A7.948 7.948 0 0012 20a7.948 7.948 0 005.657-2.343A7.948 7.948 0 0020 12a7.948 7.948 0 00-2.343-5.657zM12 18.707A6.715 6.715 0 015.293 12 6.715 6.715 0 0112 5.293 6.715 6.715 0 0118.707 12 6.715 6.715 0 0112 18.707z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M19.354 11.354H4.646a.646.646 0 100 1.292h14.708a.646.646 0 100-1.292z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M12.477 4.21a.646.646 0 00-.954 0 11.893 11.893 0 00-3.11 7.804 11.893 11.893 0 003.11 7.776.646.646 0 00.954 0 11.893 11.893 0 003.11-7.803 11.894 11.894 0 00-3.11-7.777zM12 18.358A10.6 10.6 0 019.705 12c.051-2.32.86-4.55 2.295-6.358A10.601 10.601 0 0114.295 12 10.6 10.6 0 0112 18.358z" + })); +} + +IconWorld.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconWorld; +//# sourceMappingURL=IconWorld.js.map diff --git a/packages/govern-console/public/aragon-ui/IconWorld.js.map b/packages/govern-console/public/aragon-ui/IconWorld.js.map new file mode 100644 index 000000000..37781aead --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconWorld.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconWorld.js","sources":["../src/icons/components/IconWorld.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconWorld({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n \n )\n}\n\nIconWorld.propTypes = IconPropTypes\nexport default IconWorld\n"],"names":["IconWorld","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,SAAT,OAAuC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACrC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,eAeEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAfF,CADF;AAsBD;;AAEDL,SAAS,CAACM,SAAV,GAAsBC,2BAAtB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconWrite.js b/packages/govern-console/public/aragon-ui/IconWrite.js new file mode 100644 index 000000000..7a583b41b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconWrite.js @@ -0,0 +1,47 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconWrite(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M18.518 5.479a5.029 5.029 0 00-3.58-1.483A5.029 5.029 0 0011.36 5.48l-4.964 4.964a.647.647 0 00-.189.457v6.25c0 .358.29.648.647.648h6.25a.647.647 0 00.459-.19l4.955-4.971A5.028 5.028 0 0020 9.057a5.028 5.028 0 00-1.482-3.578zm-.915 6.243v.001l-4.768 4.781H7.5v-5.336l4.775-4.775A3.743 3.743 0 0114.94 5.29c1.006 0 1.952.391 2.664 1.103a3.744 3.744 0 011.104 2.665 3.744 3.744 0 01-1.104 2.664z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M15.4 8.604a.647.647 0 00-.915 0L4.189 18.9a.647.647 0 00.915.914L15.399 9.52a.647.647 0 000-.915z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + fill: "currentColor", + d: "M15.678 13.563H9.794a.647.647 0 000 1.293h5.884a.647.647 0 100-1.293z" + })); +} + +IconWrite.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconWrite; +//# sourceMappingURL=IconWrite.js.map diff --git a/packages/govern-console/public/aragon-ui/IconWrite.js.map b/packages/govern-console/public/aragon-ui/IconWrite.js.map new file mode 100644 index 000000000..02d927463 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconWrite.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconWrite.js","sources":["../src/icons/components/IconWrite.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconWrite({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n \n )\n}\n\nIconWrite.propTypes = IconPropTypes\nexport default IconWrite\n"],"names":["IconWrite","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,SAAT,OAAuC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACrC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAPF,eAWEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAXF,eAeEA;AACE,IAAA,IAAI,EAAC,cADP;AAEE,IAAA,CAAC,EAAC;AAFJ,IAfF,CADF;AAsBD;;AAEDL,SAAS,CAACM,SAAV,GAAsBC,2BAAtB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconZoomIn.js b/packages/govern-console/public/aragon-ui/IconZoomIn.js new file mode 100644 index 000000000..f1ba81c78 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconZoomIn.js @@ -0,0 +1,53 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconZoomIn(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("g", { + fill: "currentColor", + clipPath: "url(#clip0)" + }, /*#__PURE__*/React__default['default'].createElement("path", { + d: "M15.73 6.84A6.244 6.244 0 0011.284 5 6.244 6.244 0 006.84 6.84 6.244 6.244 0 005 11.286c0 1.679.654 3.257 1.84 4.444a6.244 6.244 0 004.445 1.841 6.244 6.244 0 004.444-1.84 6.244 6.244 0 001.841-4.445 6.244 6.244 0 00-1.84-4.444zm-4.445 9.6a5.16 5.16 0 01-5.154-5.155 5.16 5.16 0 015.154-5.154 5.16 5.16 0 015.154 5.154 5.16 5.16 0 01-5.154 5.154z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + d: "M18.834 18.035l-3.11-3.11a.566.566 0 00-.8.8l3.11 3.11a.564.564 0 00.8 0 .566.566 0 000-.8zm-7.549-9.46a.566.566 0 00-.565.565v4.29a.566.566 0 001.13 0V9.14a.566.566 0 00-.565-.565z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + d: "M13.43 10.72H9.14a.566.566 0 000 1.13h4.29a.565.565 0 100-1.13z" + })), /*#__PURE__*/React__default['default'].createElement("defs", null, /*#__PURE__*/React__default['default'].createElement("clipPath", { + id: "clip0" + }, /*#__PURE__*/React__default['default'].createElement("path", { + fill: "#fff", + d: "M0 0h14v14H0z", + transform: "translate(5 5)" + })))); +} + +IconZoomIn.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconZoomIn; +//# sourceMappingURL=IconZoomIn.js.map diff --git a/packages/govern-console/public/aragon-ui/IconZoomIn.js.map b/packages/govern-console/public/aragon-ui/IconZoomIn.js.map new file mode 100644 index 000000000..21f105f99 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconZoomIn.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconZoomIn.js","sources":["../src/icons/components/IconZoomIn.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconZoomIn({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nIconZoomIn.propTypes = IconPropTypes\nexport default IconZoomIn\n"],"names":["IconZoomIn","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,UAAT,OAAwC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACtC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AAAG,IAAA,IAAI,EAAC,cAAR;AAAuB,IAAA,QAAQ,EAAC;AAAhC,kBACEA;AAAM,IAAA,CAAC,EAAC;AAAR,IADF,eAEEA;AAAM,IAAA,CAAC,EAAC;AAAR,IAFF,eAGEA;AAAM,IAAA,CAAC,EAAC;AAAR,IAHF,CAPF,eAYEA,mEACEA;AAAU,IAAA,EAAE,EAAC;AAAb,kBACEA;AAAM,IAAA,IAAI,EAAC,MAAX;AAAkB,IAAA,CAAC,EAAC,eAApB;AAAoC,IAAA,SAAS,EAAC;AAA9C,IADF,CADF,CAZF,CADF;AAoBD;;AAEDL,UAAU,CAACM,SAAX,GAAuBC,2BAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IconZoomOut.js b/packages/govern-console/public/aragon-ui/IconZoomOut.js new file mode 100644 index 000000000..b1a5d1420 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconZoomOut.js @@ -0,0 +1,51 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +var IconPropTypes = require('./IconPropTypes-12cd7567.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function IconZoomOut(_ref) { + var size = _ref.size, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["size"]); + + var sizeValue = IconPropTypes.useIconSize(size); + return /*#__PURE__*/React__default['default'].createElement("svg", _extends._extends_1({ + width: sizeValue, + height: sizeValue, + fill: "none", + viewBox: "0 0 24 24" + }, props), /*#__PURE__*/React__default['default'].createElement("g", { + fill: "currentColor", + clipPath: "url(#clip0)" + }, /*#__PURE__*/React__default['default'].createElement("path", { + d: "M15.73 6.84A6.244 6.244 0 0011.284 5 6.244 6.244 0 006.84 6.84 6.244 6.244 0 005 11.286c0 1.679.654 3.257 1.84 4.444a6.244 6.244 0 004.445 1.841 6.244 6.244 0 004.444-1.84 6.244 6.244 0 001.841-4.445 6.244 6.244 0 00-1.84-4.444zm-4.445 9.6a5.16 5.16 0 01-5.154-5.155 5.16 5.16 0 015.154-5.154 5.16 5.16 0 015.154 5.154 5.16 5.16 0 01-5.154 5.154z" + }), /*#__PURE__*/React__default['default'].createElement("path", { + d: "M18.834 18.035l-3.11-3.11a.566.566 0 00-.8.8l3.11 3.11a.564.564 0 00.8 0 .566.566 0 000-.8zM13.43 10.72H9.14a.566.566 0 000 1.13h4.29a.565.565 0 100-1.13z" + })), /*#__PURE__*/React__default['default'].createElement("defs", null, /*#__PURE__*/React__default['default'].createElement("clipPath", { + id: "clip0" + }, /*#__PURE__*/React__default['default'].createElement("path", { + fill: "#fff", + d: "M0 0h14v14H0z", + transform: "translate(5 5)" + })))); +} + +IconZoomOut.propTypes = IconPropTypes.IconPropTypes; + +exports.default = IconZoomOut; +//# sourceMappingURL=IconZoomOut.js.map diff --git a/packages/govern-console/public/aragon-ui/IconZoomOut.js.map b/packages/govern-console/public/aragon-ui/IconZoomOut.js.map new file mode 100644 index 000000000..88731f92b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IconZoomOut.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconZoomOut.js","sources":["../src/icons/components/IconZoomOut.js"],"sourcesContent":["import React from 'react'\nimport useIconSize from '../icon-size'\nimport IconPropTypes from '../IconPropTypes'\n\nfunction IconZoomOut({ size, ...props }) {\n const sizeValue = useIconSize(size)\n return (\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nIconZoomOut.propTypes = IconPropTypes\nexport default IconZoomOut\n"],"names":["IconZoomOut","size","props","sizeValue","useIconSize","React","propTypes","IconPropTypes"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,WAAT,OAAyC;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAAA,MAATC,KAAS;;AACvC,MAAMC,SAAS,GAAGC,yBAAW,CAACH,IAAD,CAA7B;AACA,sBACEI;AACE,IAAA,KAAK,EAAEF,SADT;AAEE,IAAA,MAAM,EAAEA,SAFV;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,OAAO,EAAC;AAJV,KAKMD,KALN,gBAOEG;AAAG,IAAA,IAAI,EAAC,cAAR;AAAuB,IAAA,QAAQ,EAAC;AAAhC,kBACEA;AAAM,IAAA,CAAC,EAAC;AAAR,IADF,eAEEA;AAAM,IAAA,CAAC,EAAC;AAAR,IAFF,CAPF,eAWEA,mEACEA;AAAU,IAAA,EAAE,EAAC;AAAb,kBACEA;AAAM,IAAA,IAAI,EAAC,MAAX;AAAkB,IAAA,CAAC,EAAC,eAApB;AAAoC,IAAA,SAAS,EAAC;AAA9C,IADF,CADF,CAXF,CADF;AAmBD;;AAEDL,WAAW,CAACM,SAAZ,GAAwBC,2BAAxB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IdentityBadge.js b/packages/govern-console/public/aragon-ui/IdentityBadge.js new file mode 100644 index 000000000..15dad7462 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IdentityBadge.js @@ -0,0 +1,166 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +require('./css.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var web3 = require('./web3-4e58c255.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconCopy.js'); +require('./IconCross.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +require('./Link.js'); +require('./TextInput.js'); +require('./ToastHub.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +require('./TextCopy.js'); +var EthIdenticon = require('./EthIdenticon.js'); +require('./AddressField.js'); +var BadgeBase = require('./BadgeBase.js'); +var BadgePopoverActionType = require('./BadgePopoverActionType.js'); +require('./Tag.js'); +require('./proptypes-9c58a90f.js'); +require('./Popover.js'); +require('./BadgePopoverBase.js'); +var IdentityBadgePopover = require('./IdentityBadgePopover.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "IdentityBadge___StyledDiv", + componentId: "q71pax-0" +})(["display:block;margin-right:", "px;", ";"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +var IdentityBadge = /*#__PURE__*/React__default['default'].memo(function IdentityBadge(_ref) { + var badgeOnly = _ref.badgeOnly, + compact = _ref.compact, + connectedAccount = _ref.connectedAccount, + entity = _ref.entity, + label = _ref.label, + labelStyle = _ref.labelStyle, + networkType = _ref.networkType, + popoverAction = _ref.popoverAction, + popoverTitle = _ref.popoverTitle, + shorten = _ref.shorten, + customLabel = _ref.customLabel, + fontSize = _ref.fontSize, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["badgeOnly", "compact", "connectedAccount", "entity", "label", "labelStyle", "networkType", "popoverAction", "popoverTitle", "shorten", "customLabel", "fontSize"]); + + if (customLabel) { + environment.warnOnce('IdentityBadge:customLabel', 'The “customLabel” prop is deprecated. Please use “label” instead.'); + label = label || customLabel; + } + + if (fontSize) { + environment.warnOnce('IdentityBadge:fontSize', 'The “fontSize” prop is deprecated. Please use “labelStyle” to style the label instead.'); + } + + var badgeRef = React.useRef(null); + + var _useState = React.useState(false), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + opened = _useState2[0], + setOpened = _useState2[1]; + + var handleClose = React.useCallback(function () { + return setOpened(false); + }, []); + var handleOpen = React.useCallback(function () { + return setOpened(true); + }, []); + var address = web3.isAddress(entity) ? entity : null; + var displayLabel = label || (address && shorten ? web3.shortenAddress(address) : entity); + return /*#__PURE__*/React__default['default'].createElement(BadgeBase.default, _extends._extends_1({ + badgeRef: badgeRef, + compact: compact, + disabled: badgeOnly, + icon: address && /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + _css: 1 * constants.GU, + _css2: compact ? "\n position: relative;\n top: -1px;\n " : '' + }, /*#__PURE__*/React__default['default'].createElement(EthIdenticon.default, { + scale: compact ? 0.75 : 1, + radius: compact ? 2 : 0, + address: address + })), + label: displayLabel, + labelStyle: "\n ".concat(!label && address ? textStyles.textStyle('address1') : '', "\n ").concat(labelStyle, "\n "), + onClick: address ? handleOpen : undefined, + title: address + }, props), function (popoverDisabled) { + return !popoverDisabled && address && /*#__PURE__*/React__default['default'].createElement(IdentityBadgePopover.default, { + address: address, + connectedAccount: connectedAccount, + networkType: networkType, + onClose: handleClose, + opener: badgeRef.current, + popoverAction: popoverAction, + title: popoverTitle, + visible: opened + }); + }); +}); +IdentityBadge.propTypes = { + badgeOnly: index.propTypes.bool, + compact: index.propTypes.bool, + connectedAccount: index.propTypes.bool, + entity: index.propTypes.string, + label: index.propTypes.string, + labelStyle: index.propTypes.string, + networkType: index.propTypes.string, + popoverAction: BadgePopoverActionType.default, + popoverTitle: index.propTypes.node, + shorten: index.propTypes.bool, + // Deprecated + customLabel: index.propTypes.string, + fontSize: index.propTypes.string +}; +IdentityBadge.defaultProps = { + entity: '', + labelStyle: '', + networkType: 'main', + shorten: true +}; + +exports.default = IdentityBadge; +//# sourceMappingURL=IdentityBadge.js.map diff --git a/packages/govern-console/public/aragon-ui/IdentityBadge.js.map b/packages/govern-console/public/aragon-ui/IdentityBadge.js.map new file mode 100644 index 000000000..dc111eb25 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IdentityBadge.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IdentityBadge.js","sources":["../src/components/IdentityBadge/IdentityBadge.js"],"sourcesContent":["import React, { useCallback, useRef, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { GU, textStyle } from '../../style'\nimport { isAddress, shortenAddress, warnOnce } from '../../utils'\nimport BadgeBase from '../BadgeBase/BadgeBase'\nimport BadgePopoverActionType from '../BadgeBase/BadgePopoverActionType'\nimport EthIdenticon from '../EthIdenticon/EthIdenticon'\nimport IdentityBadgePopover from './IdentityBadgePopover'\n\nconst IdentityBadge = React.memo(function IdentityBadge({\n badgeOnly,\n compact,\n connectedAccount,\n entity,\n label,\n labelStyle,\n networkType,\n popoverAction,\n popoverTitle,\n shorten,\n\n // Deprecated\n customLabel,\n fontSize,\n\n ...props\n}) {\n if (customLabel) {\n warnOnce(\n 'IdentityBadge:customLabel',\n 'The “customLabel” prop is deprecated. Please use “label” instead.'\n )\n label = label || customLabel\n }\n if (fontSize) {\n warnOnce(\n 'IdentityBadge:fontSize',\n 'The “fontSize” prop is deprecated. Please use “labelStyle” to style the label instead.'\n )\n }\n\n const badgeRef = useRef(null)\n const [opened, setOpened] = useState(false)\n const handleClose = useCallback(() => setOpened(false), [])\n const handleOpen = useCallback(() => setOpened(true), [])\n\n const address = isAddress(entity) ? entity : null\n const displayLabel =\n label || (address && shorten ? shortenAddress(address) : entity)\n\n return (\n \n \n \n )\n }\n label={displayLabel}\n labelStyle={`\n ${!label && address ? textStyle('address1') : ''}\n ${labelStyle}\n `}\n onClick={address ? handleOpen : undefined}\n title={address}\n {...props}\n >\n {popoverDisabled =>\n !popoverDisabled &&\n address && (\n \n )\n }\n \n )\n})\n\nIdentityBadge.propTypes = {\n badgeOnly: PropTypes.bool,\n compact: PropTypes.bool,\n connectedAccount: PropTypes.bool,\n entity: PropTypes.string,\n label: PropTypes.string,\n labelStyle: PropTypes.string,\n networkType: PropTypes.string,\n popoverAction: BadgePopoverActionType,\n popoverTitle: PropTypes.node,\n shorten: PropTypes.bool,\n\n // Deprecated\n customLabel: PropTypes.string,\n fontSize: PropTypes.string,\n}\n\nIdentityBadge.defaultProps = {\n entity: '',\n labelStyle: '',\n networkType: 'main',\n shorten: true,\n}\n\nexport default IdentityBadge\n"],"names":["IdentityBadge","React","memo","badgeOnly","compact","connectedAccount","entity","label","labelStyle","networkType","popoverAction","popoverTitle","shorten","customLabel","fontSize","props","warnOnce","badgeRef","useRef","useState","opened","setOpened","handleClose","useCallback","handleOpen","address","isAddress","displayLabel","shortenAddress","BadgeBase","GU","EthIdenticon","textStyle","undefined","popoverDisabled","IdentityBadgePopover","current","propTypes","PropTypes","bool","string","BadgePopoverActionType","node","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASMA,aAAa,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,aAAT,OAiB9B;AAAA,MAhBDG,SAgBC,QAhBDA,SAgBC;AAAA,MAfDC,OAeC,QAfDA,OAeC;AAAA,MAdDC,gBAcC,QAdDA,gBAcC;AAAA,MAbDC,MAaC,QAbDA,MAaC;AAAA,MAZDC,KAYC,QAZDA,KAYC;AAAA,MAXDC,UAWC,QAXDA,UAWC;AAAA,MAVDC,WAUC,QAVDA,WAUC;AAAA,MATDC,aASC,QATDA,aASC;AAAA,MARDC,YAQC,QARDA,YAQC;AAAA,MAPDC,OAOC,QAPDA,OAOC;AAAA,MAJDC,WAIC,QAJDA,WAIC;AAAA,MAHDC,QAGC,QAHDA,QAGC;AAAA,MADEC,KACF;;AACD,MAAIF,WAAJ,EAAiB;AACfG,IAAAA,oBAAQ,CACN,2BADM,EAEN,mEAFM,CAAR;AAIAT,IAAAA,KAAK,GAAGA,KAAK,IAAIM,WAAjB;AACD;;AACD,MAAIC,QAAJ,EAAc;AACZE,IAAAA,oBAAQ,CACN,wBADM,EAEN,wFAFM,CAAR;AAID;;AAED,MAAMC,QAAQ,GAAGC,YAAM,CAAC,IAAD,CAAvB;;AAfC,kBAgB2BC,cAAQ,CAAC,KAAD,CAhBnC;AAAA;AAAA,MAgBMC,MAhBN;AAAA,MAgBcC,SAhBd;;AAiBD,MAAMC,WAAW,GAAGC,iBAAW,CAAC;AAAA,WAAMF,SAAS,CAAC,KAAD,CAAf;AAAA,GAAD,EAAyB,EAAzB,CAA/B;AACA,MAAMG,UAAU,GAAGD,iBAAW,CAAC;AAAA,WAAMF,SAAS,CAAC,IAAD,CAAf;AAAA,GAAD,EA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AAES;AARX,MAHY;AAAA,GAnClB,CADF;AAqDD,CA9FqB;AAgGtBpB,aAAa,CAACqC,SAAd,GAA0B;AACxBlC,EAAAA,SAAS,EAAEmC,eAAS,CAACC,IADG;AAExBnC,EAAAA,OAAO,EAAEkC,eAAS,CAACC,IAFK;AAGxBlC,EAAAA,gBAAgB,EAAEiC,eAAS,CAACC,IAHJ;AAIxBjC,EAAAA,MAAM,EAAEgC,eAAS,CAACE,MAJM;AAKxBjC,EAAAA,KAAK,EAAE+B,eAAS,CAACE,MALO;AAMxBhC,EAAAA,UAAU,EAAE8B,eAAS,CAACE,MANE;AAOxB/B,EAAAA,WAAW,EAAE6B,eAAS,CAACE,MAPC;AAQxB9B,EAAAA,aAAa,EAAE+B,8BARS;AASxB9B,EAAAA,YAAY,EAAE2B,eAAS,CAACI,IATA;AAUxB9B,EAAAA,OAAO,EAAE0B,eAAS,CAACC,IAVK;AAYxB;AACA1B,EAAAA,WAAW,EAAEyB,eAAS,CAACE,MAbC;AAcxB1B,EAAAA,QAAQ,EAAEwB,eAAS,CAACE;AAdI,CAA1B;AAiBAxC,aAAa,CAAC2C,YAAd,GAA6B;AAC3BrC,EAAAA,MAAM,EAAE,EADmB;AAE3BE,EAAAA,UAAU,EAAE,EAFe;AAG3BC,EAAAA,WAAW,EAAE,MAHc;AAI3BG,EAAAA,OAAO,EAAE;AAJkB,CAA7B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/IdentityBadgePopover.js b/packages/govern-console/public/aragon-ui/IdentityBadgePopover.js new file mode 100644 index 000000000..3539b0e48 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IdentityBadgePopover.js @@ -0,0 +1,116 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var web3 = require('./web3-4e58c255.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconCopy.js'); +require('./IconCross.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +var Link = require('./Link.js'); +require('./TextInput.js'); +require('./ToastHub.js'); +require('./Root-8693e46b.js'); +require('./RootPortal.js'); +require('./TextCopy.js'); +require('./EthIdenticon.js'); +var AddressField = require('./AddressField.js'); +var BadgePopoverActionType = require('./BadgePopoverActionType.js'); +var Tag = require('./Tag.js'); +var proptypes = require('./proptypes-9c58a90f.js'); +require('./Popover.js'); +var BadgePopoverBase = require('./BadgePopoverBase.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledTag = _styled__default['default'](Tag.default).withConfig({ + displayName: "IdentityBadgePopover___StyledTag", + componentId: "sc-1yeyfty-0" +})(["margin-left:", "px;"], function (p) { + return p._css; +}); + +var IdentityBadgePopover = /*#__PURE__*/React__default['default'].memo(function IdentityBadgePopover(_ref) { + var address = _ref.address, + connectedAccount = _ref.connectedAccount, + networkType = _ref.networkType, + onClose = _ref.onClose, + opener = _ref.opener, + popoverAction = _ref.popoverAction, + title = _ref.title, + visible = _ref.visible; + var etherscanUrl = web3.blockExplorerUrl('address', address, { + networkType: networkType + }); + return /*#__PURE__*/React__default['default'].createElement(BadgePopoverBase.default, { + addressField: /*#__PURE__*/React__default['default'].createElement(AddressField.default, { + address: address + }), + link: etherscanUrl && /*#__PURE__*/React__default['default'].createElement(Link.default, { + href: etherscanUrl + }, "See on Etherscan"), + onClose: onClose, + opener: opener, + popoverAction: popoverAction, + title: title, + titleTag: connectedAccount && /*#__PURE__*/React__default['default'].createElement(_StyledTag, { + title: "This is your Ethereum address", + _css: 1 * constants.GU + }, "you"), + visible: visible + }); +}); +IdentityBadgePopover.propTypes = { + address: proptypes.ExtendedPropTypes.string, + connectedAccount: proptypes.ExtendedPropTypes.bool, + networkType: proptypes.ExtendedPropTypes.string, + onClose: proptypes.ExtendedPropTypes.func, + opener: proptypes.ExtendedPropTypes._element, + popoverAction: BadgePopoverActionType.default, + title: proptypes.ExtendedPropTypes.node, + visible: proptypes.ExtendedPropTypes.bool +}; +IdentityBadgePopover.defaultProps = { + title: 'Address' +}; + +exports.default = IdentityBadgePopover; +//# sourceMappingURL=IdentityBadgePopover.js.map diff --git a/packages/govern-console/public/aragon-ui/IdentityBadgePopover.js.map b/packages/govern-console/public/aragon-ui/IdentityBadgePopover.js.map new file mode 100644 index 000000000..8840cc57a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/IdentityBadgePopover.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IdentityBadgePopover.js","sources":["../src/components/IdentityBadge/IdentityBadgePopover.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from '../../proptypes'\nimport { GU } from '../../style'\nimport { blockExplorerUrl } from '../../utils'\nimport AddressField from '../AddressField/AddressField'\nimport BadgePopoverBase from '../BadgeBase/BadgePopoverBase'\nimport BadgePopoverActionType from '../BadgeBase/BadgePopoverActionType'\nimport Link from '../Link/Link'\nimport Tag from '../Tag/Tag'\n\nconst IdentityBadgePopover = React.memo(function IdentityBadgePopover({\n address,\n connectedAccount,\n networkType,\n onClose,\n opener,\n popoverAction,\n title,\n visible,\n}) {\n const etherscanUrl = blockExplorerUrl('address', address, { networkType })\n\n return (\n }\n link={etherscanUrl && See on Etherscan}\n onClose={onClose}\n opener={opener}\n popoverAction={popoverAction}\n title={title}\n titleTag={\n connectedAccount && (\n \n you\n \n )\n }\n visible={visible}\n />\n )\n})\nIdentityBadgePopover.propTypes = {\n address: PropTypes.string,\n connectedAccount: PropTypes.bool,\n networkType: PropTypes.string,\n onClose: PropTypes.func,\n opener: PropTypes._element,\n popoverAction: BadgePopoverActionType,\n title: PropTypes.node,\n visible: PropTypes.bool,\n}\nIdentityBadgePopover.defaultProps = {\n title: 'Address',\n}\n\nexport default IdentityBadgePopover\n"],"names":["IdentityBadgePopover","React","memo","address","connectedAccount","networkType","onClose","opener","popoverAction","title","visible","etherscanUrl","blockExplorerUrl","BadgePopoverBase","AddressField","Link","GU","propTypes","PropTypes","string","bool","func","_element","BadgePopoverActionType","node","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUMA,oBAAoB,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,oBAAT,OASrC;AAAA,MARDG,OAQC,QARDA,OAQC;AAAA,MAPDC,gBAOC,QAPDA,gBAOC;AAAA,MANDC,WAMC,QANDA,WAMC;AAAA,MALDC,OAKC,QALDA,OAKC;AAAA,MAJDC,MAIC,QAJDA,MAIC;AAAA,MAHDC,aAGC,QAHDA,aAGC;AAAA,MAFDC,KAEC,QAFDA,KAEC;AAAA,MADDC,OACC,QADDA,OACC;AACD,MAAMC,YAAY,GAAGC,qBAAgB,CAAC,SAAD,EAAYT,OAAZ,EAAqB;AAAEE,IAAAA,WAAW,EAAXA;AAAF,GAArB,CAArC;AAEA,sBACEJ,wCAACY,wBAAD;AACE,IAAA,YAAY,eAAEZ,wCAACa,oBAAD;AAAc,MAAA,OAAO,EAAEX;AAAvB,MADhB;AAEE,IAAA,IAAI,EAAEQ,YAAY,iBAAIV,wCAACc,YAAD;AAAM,MAAA,IAAI,EAAEJ;AAAZ,0BAFxB;AAGE,IAAA,OAAO,EAAEL,OAHX;AAIE,IAAA,MAAM,EAAEC,MAJV;AAKE,IAAA,aAAa,EAAEC,aALjB;AAME,IAAA,KAAK,EAAEC,KANT;AAOE,IAAA,QAAQ,EACNL,gBAAgB,iBACdH;AAIE,MAAA,KAAK,EAAC,+BAJR;AAAA,YAEmB,IAAIe;AAFvB,aATN;AAmBE,IAAA,OAAO,EAAEN;AAnBX,IADF;AAuBD,CAnC4B;AAoC7BV,oBAAoB,CAACiB,SAArB,GAAiC;AAC/Bd,EAAAA,OAAO,EAAEe,2BAAS,CAACC,MADY;AAE/Bf,EAAAA,gBAAgB,EAAEc,2BAAS,CAACE,IAFG;AAG/Bf,EAAAA,WAAW,EAAEa,2BAAS,CAACC,MAHQ;AAI/Bb,EAAAA,OAAO,EAAEY,2BAAS,CAACG,IAJY;AAK/Bd,EAAAA,MAAM,EAAEW,2BAAS,CAACI,QALa;AAM/Bd,EAAAA,aAAa,EAAEe,8BANgB;AAO/Bd,EAAAA,KAAK,EAAES,2BAAS,CAACM,IAPc;AAQ/Bd,EAAAA,OAAO,EAAEQ,2BAAS,CAACE;AARY,CAAjC;AAUApB,oBAAoB,CAACyB,YAArB,GAAoC;AAClChB,EAAAA,KAAK,EAAE;AAD2B,CAApC;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Info.js b/packages/govern-console/public/aragon-ui/Info.js new file mode 100644 index 000000000..1b9494a0d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Info.js @@ -0,0 +1,143 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function getModeStyles(theme, mode) { + if (mode === 'warning') { + return { + background: theme.warningSurface, + borderColor: theme.warning, + color: theme.warningSurfaceContent, + titleColor: theme.warningSurfaceContent + }; + } + + if (mode === 'error') { + return { + background: theme.negativeSurface, + borderColor: theme.negative, + color: theme.negativeSurfaceContent, + titleColor: theme.negativeSurfaceContent + }; + } + + if (mode === 'description') { + return { + background: theme.infoSurface, + borderColor: theme.info, + color: theme.surfaceContent, + titleColor: theme.surfaceContentSecondary + }; + } + + return { + background: theme.infoSurface, + borderColor: theme.info, + color: theme.infoSurfaceContent, + titleColor: theme.infoSurfaceContent + }; +} + +var _StyledSection = _styled__default['default']("section").withConfig({ + displayName: "Info___StyledSection", + componentId: "sc-1kgnlbm-0" +})(["color:", ";background:", ";border-left:2px solid ", ";padding:", "px;border-radius:", "px;word-wrap:break-word;", ";"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, constants.RADIUS, function (p) { + return p._css5; +}); + +var _StyledH = _styled__default['default']("h1").withConfig({ + displayName: "Info___StyledH", + componentId: "sc-1kgnlbm-1" +})(["display:flex;align-items:center;color:", ";", ";margin-bottom:", "px;"], function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}); + +function Info(_ref) { + var children = _ref.children, + mode = _ref.mode, + color = _ref.color, + titleColor = _ref.titleColor, + background = _ref.background, + borderColor = _ref.borderColor, + title = _ref.title, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["children", "mode", "color", "titleColor", "background", "borderColor", "title"]); + + var theme = Theme.useTheme(); // Get styles from the current mode + + var modeStyles = React.useMemo(function () { + var styles = getModeStyles(theme, mode); + return styles; + }, [mode, theme]); + return /*#__PURE__*/React__default['default'].createElement(_StyledSection, _extends._extends_1({}, props, { + _css: color || modeStyles.color, + _css2: background || modeStyles.background, + _css3: borderColor || modeStyles.borderColor, + _css4: 2 * constants.GU, + _css5: textStyles.textStyle('body3') + }), title && /*#__PURE__*/React__default['default'].createElement(_StyledH, { + _css6: titleColor || modeStyles.titleColor, + _css7: textStyles.textStyle('label2'), + _css8: 1 * constants.GU + }, title), children); +} + +Info.propTypes = { + children: index.propTypes.node, + title: index.propTypes.node, + mode: index.propTypes.oneOf(['info', 'description', 'warning', 'error']), + color: index.propTypes.string, + titleColor: index.propTypes.string, + background: index.propTypes.string, + borderColor: index.propTypes.string +}; // Backward compatibility + +function Warning(props) { + return /*#__PURE__*/React__default['default'].createElement(Info, _extends._extends_1({ + mode: "warning" + }, props)); +} + +Info.Action = Info; +Info.Permissions = Warning; +Info.Alert = Warning; + +exports.default = Info; +//# sourceMappingURL=Info.js.map diff --git a/packages/govern-console/public/aragon-ui/Info.js.map b/packages/govern-console/public/aragon-ui/Info.js.map new file mode 100644 index 000000000..d8e309747 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Info.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Info.js","sources":["../src/components/Info/Info.js"],"sourcesContent":["import React, { useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { useTheme } from '../../theme'\nimport { GU, RADIUS, textStyle } from '../../style'\n\nfunction getModeStyles(theme, mode) {\n if (mode === 'warning') {\n return {\n background: theme.warningSurface,\n borderColor: theme.warning,\n color: theme.warningSurfaceContent,\n titleColor: theme.warningSurfaceContent,\n }\n }\n if (mode === 'error') {\n return {\n background: theme.negativeSurface,\n borderColor: theme.negative,\n color: theme.negativeSurfaceContent,\n titleColor: theme.negativeSurfaceContent,\n }\n }\n if (mode === 'description') {\n return {\n background: theme.infoSurface,\n borderColor: theme.info,\n color: theme.surfaceContent,\n titleColor: theme.surfaceContentSecondary,\n }\n }\n return {\n background: theme.infoSurface,\n borderColor: theme.info,\n color: theme.infoSurfaceContent,\n titleColor: theme.infoSurfaceContent,\n }\n}\n\nfunction Info({\n children,\n mode,\n color,\n titleColor,\n background,\n borderColor,\n title,\n ...props\n}) {\n const theme = useTheme()\n\n // Get styles from the current mode\n const modeStyles = useMemo(() => {\n const styles = getModeStyles(theme, mode)\n\n return styles\n }, [mode, theme])\n\n return (\n \n {title && (\n \n {title}\n \n )}\n {children}\n \n )\n}\n\nInfo.propTypes = {\n children: PropTypes.node,\n title: PropTypes.node,\n mode: PropTypes.oneOf(['info', 'description', 'warning', 'error']),\n color: PropTypes.string,\n titleColor: PropTypes.string,\n background: PropTypes.string,\n borderColor: PropTypes.string,\n}\n\n// Backward compatibility\nfunction Warning(props) {\n return \n}\nInfo.Action = Info\nInfo.Permissions = Warning\nInfo.Alert = Warning\n\nexport default Info\n"],"names":["getModeStyles","theme","mode","background","warningSurface","borderColor","warning","color","warningSurfaceContent","titleColor","negativeSurface","negative","negativeSurfaceContent","infoSurface","info","surfaceContent","surfaceContentSecondary","infoSurfaceContent","RADIUS","Info","children","title","props","useTheme","modeStyles","useMemo","styles","React","GU","textStyle","propTypes","PropTypes","node","oneOf","string","Warning","Action","Permissions","Alert"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAASA,aAAT,CAAuBC,KAAvB,EAA8BC,IAA9B,EAAoC;AAClC,MAAIA,IAAI,KAAK,SAAb,EAAwB;AACtB,WAAO;AACLC,MAAAA,UAAU,EAAEF,KAAK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AhB,IAAI,CAACmB,KAAL,GAAaH,OAAb;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Labels.js b/packages/govern-console/public/aragon-ui/Labels.js new file mode 100644 index 000000000..3f52ce9b9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Labels.js @@ -0,0 +1,135 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +var IconCalendar = require('./IconCalendar.js'); +var consts = require('./consts.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "Labels___StyledDiv", + componentId: "sc-1is9uv6-0" +})(["position:relative;width:", "px;display:flex;justify-content:space-between;align-items:center;padding:7px 6px;border:", "px solid ", ";border-radius:", "px;background:", ";overflow:hidden;cursor:pointer;&:active{border-color:", ";}&:focus{outline:none;}"], function (p) { + return p._css; +}, consts.INPUT_BORDER, function (p) { + return p._css2; +}, constants.RADIUS, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "Labels___StyledDiv2", + componentId: "sc-1is9uv6-1" +})(["display:flex;flex:1;justify-content:space-around;align-items:center;"]); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "Labels___StyledDiv3", + componentId: "sc-1is9uv6-2" +})(["color:", ";text-align:center;", ""], function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "Labels___StyledDiv4", + componentId: "sc-1is9uv6-3" +})(["color:", ";font-size:13px;"], function (p) { + return p._css7; +}); + +var _StyledDiv5 = _styled__default['default']("div").withConfig({ + displayName: "Labels___StyledDiv5", + componentId: "sc-1is9uv6-4" +})(["color:", ";text-align:center;", ""], function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledDiv6 = _styled__default['default']("div").withConfig({ + displayName: "Labels___StyledDiv6", + componentId: "sc-1is9uv6-5" +})(["display:flex;padding:0 4px 0 10px;"]); + +var _StyledIconCalendar = _styled__default['default'](IconCalendar.default).withConfig({ + displayName: "Labels___StyledIconCalendar", + componentId: "sc-1is9uv6-6" +})(["color:", ";"], function (p) { + return p._css10; +}); + +var Labels = /*#__PURE__*/React.forwardRef(function Labels(_ref, ref) { + var enabled = _ref.enabled, + startText = _ref.startText, + endText = _ref.endText, + hasSetDates = _ref.hasSetDates, + onClick = _ref.onClick, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["enabled", "startText", "endText", "hasSetDates", "onClick"]); + + var theme = Theme.useTheme(); + var hasNoStart = startText === consts.START_DATE; + var hasNoEnd = endText === consts.END_DATE; + return /*#__PURE__*/React__default['default'].createElement(ButtonBase.default, { + focusRingRadius: constants.RADIUS, + ref: ref, + onClick: onClick + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends._extends_1({}, props, { + _css: 27.5 * constants.GU, + _css2: hasSetDates ? theme.accent : theme.border, + _css3: theme.surface, + _css4: theme.controlBorderPressed + }), /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, null, /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, { + _css5: hasNoStart ? theme.hint : 'inherit', + _css6: textStyles.textStyle(hasNoStart ? 'body2' : 'body3') + }, startText), /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, { + _css7: theme.hint.alpha(0.3) + }, "|"), /*#__PURE__*/React__default['default'].createElement(_StyledDiv5, { + _css8: hasNoEnd ? theme.hint : 'inherit', + _css9: textStyles.textStyle(hasNoEnd ? 'body2' : 'body3') + }, endText)), /*#__PURE__*/React__default['default'].createElement(_StyledDiv6, null, /*#__PURE__*/React__default['default'].createElement(_StyledIconCalendar, { + _css10: enabled ? theme.accent : theme.surfaceIcon + })))); +}); +Labels.propTypes = { + enabled: index.propTypes.bool, + hasSetDates: index.propTypes.bool, + onClick: index.propTypes.func, + startText: index.propTypes.string.isRequired, + endText: index.propTypes.string.isRequired +}; + +exports.default = Labels; +//# sourceMappingURL=Labels.js.map diff --git a/packages/govern-console/public/aragon-ui/Labels.js.map b/packages/govern-console/public/aragon-ui/Labels.js.map new file mode 100644 index 000000000..84caa9652 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Labels.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Labels.js","sources":["../src/components/DateRangePicker/Labels.js"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { IconCalendar } from '../../icons/components'\nimport { GU, RADIUS, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { START_DATE, END_DATE, INPUT_BORDER } from './consts'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst Labels = forwardRef(function Labels(\n { enabled, startText, endText, hasSetDates, onClick, ...props },\n ref\n) {\n const theme = useTheme()\n\n const hasNoStart = startText === START_DATE\n const hasNoEnd = endText === END_DATE\n\n return (\n \n \n \n \n {startText}\n \n \n |\n \n \n {endText}\n \n \n \n \n \n \n \n )\n})\n\nLabels.propTypes = {\n enabled: PropTypes.bool,\n hasSetDates: PropTypes.bool,\n onClick: PropTypes.func,\n startText: PropTypes.string.isRequired,\n endText: PropTypes.string.isRequired,\n}\n\nexport default Labels\n"],"names":["INPUT_BORDER","RADIUS","Labels","forwardRef","ref","enabled","startText","endText","hasSetDates","onClick","props","theme","useTheme","hasNoStart","START_DATE","hasNoEnd","END_DATE","React","ButtonBase","GU","accent","border","surface","controlBorderPressed","hint","textStyle","alpha","surfaceIcon","propTypes","PropTypes","bool","func","string","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BoBA;;GAEOC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IArBrBC,MAAM,gBAAGC,gBAAU,CAAC,SAASD,MAAT,OAExBE,GAFwB,EAGxB;AAAA,MAFEC,OAEF,QAFEA,OAEF;AAAA,MAFWC,SAEX,QAFWA,SAEX;AAAA,MAFsBC,OAEtB,QAFsBA,OAEtB;AAAA,MAF+BC,WAE/B,QAF+BA,WAE/B;AAAA,MAF4CC,OAE5C,QAF4CA,OAE5C;AAAA,MAFwDC,KAExD;;AACA,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AAEA,MAAMC,UAAU,GAAGP,SAAS,KAAKQ,iBAAjC;AACA,MAAMC,QAAQ,GAAGR,OAAO,KAAKS,eAA7B;AAEA,sBACEC,wCAACC,kBAAD;AAAY,IAAA,eAAe,EAAEjB,gBAA7B;AAAqC,IAAA,GAAG,EAAEG,GAA1C;AAA+C,IAAA,OAAO,EAAEK;AAAxD,kBACEQ,4EAqBMP,KArBN;AAAA,UAGa,OAAOS,YAHpB;AAAA,WASQX,WAAW,GAAGG,KAAK,CAACS,MAAT,GAAkBT,KAAK,CAACU,MAT3C;AAAA,WAWkBV,KAAK,CAACW,OAXxB;AAAA,WAesBX,KAAK,CAACY;AAf5B,mBAuBEN,wEAQEA;AAAA,WAEaJ,UAAU,GAAGF,KAAK,CAACa,IAAT,GAAgB,SAFvC;AAAA,WAIMC,oBAAS,CAACZ,UAAU,GAAG,OAAH,GAAa,OAAxB;AAJf,KAOGP,SAPH,CARF,eAiBEW;AAAA,WAEaN,KAAK,CAACa,IAAN,CAAWE,KAAX,CAAiB,GAAjB;AAFb,SAjBF,eAyBET;AAAA,WAEaF,QAAQ,GAAGJ,KAAK,CAACa,IAAT,GAAgB,SAFrC;AAAA,WAIMC,oBAAS,CAACV,QAAQ,GAAG,OAAH,GAAa,OAAtB;AAJf,KAOGR,OAPH,CAzBF,CAvBF,eA0DEU,wEAMEA;AAAA,YAEaZ,OAAO,GAAGM,KAAK,CAACS,MAAT,GAAkBT,KAAK,CAACgB;AAF5C,IANF,CA1DF,CADF,CADF;AA2ED,CApFwB;AAsFzBzB,MAAM,CAAC0B,SAAP,GAAmB;AACjBvB,EAAAA,OAAO,EAAEwB,eAAS,CAACC,IADF;AAEjBtB,EAAAA,WAAW,EAAEqB,eAAS,CAACC,IAFN;AAGjBrB,EAAAA,OAAO,EAAEoB,eAAS,CAACE,IAHF;AAIjBzB,EAAAA,SAAS,EAAEuB,eAAS,CAACG,MAAV,CAAiBC,UAJX;AAKjB1B,EAAAA,OAAO,EAAEsB,eAAS,CAACG,MAAV,CAAiBC;AALT,CAAnB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Layout.js b/packages/govern-console/public/aragon-ui/Layout.js new file mode 100644 index 000000000..ae6d9eba3 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Layout.js @@ -0,0 +1,184 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +var css = require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +var constants = require('./constants.js'); +var breakpoints = require('./breakpoints.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./_baseGetTag-42b4dd3e.js'); +var Viewport = require('./Viewport-819c53c9.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function getSizes(breakpoints) { + return Object.entries(breakpoints).filter(function (_ref) { + var _ref2 = slicedToArray.slicedToArray(_ref, 1), + name = _ref2[0]; + + return name !== 'min'; + }).sort(function (a, b) { + return a[1] - b[1]; + }); +} + +var breakpointsType = index.propTypes.shape({ + min: index.propTypes.number, + small: index.propTypes.number, + medium: index.propTypes.number, + large: index.propTypes.number +}); // Minimum margin around a layout + +var MIN_MARGIN = 3 * constants.GU; + +function getLayoutSize(parentWidth, breakpoints) { + var sizes = getSizes(breakpoints); + var index = sizes.length; + + while (index--) { + if (parentWidth >= sizes[index][1]) { + return [sizes[index][0], sizes[index][1] - (index === 0 ? 0 : MIN_MARGIN * 2)]; + } + } + + return sizes[0]; +} + +function useMergeBreakpoints(breakpoints$1) { + var breakpointsAsString = JSON.stringify(breakpoints$1); // Only compute once by comparing values rather than object references in dependency array + // eslint-disable-next-line react-hooks/exhaustive-deps + + return React.useMemo(function () { + return _objectSpread(_objectSpread({}, breakpoints.BREAKPOINTS), breakpoints$1); + }, [breakpointsAsString]); +} + +var LayoutContext = /*#__PURE__*/React__default['default'].createContext({}); + +function useLayout() { + var _useContext = React.useContext(LayoutContext), + layoutWidth = _useContext.layoutWidth, + layoutName = _useContext.layoutName; + + return { + layoutName: layoutName, + layoutWidth: layoutWidth, + // deprecated + name: layoutName, + width: layoutWidth + }; +} + +function Layout(_ref3) { + var breakpoints = _ref3.breakpoints, + children = _ref3.children, + paddingBottom = _ref3.paddingBottom, + parentWidth = _ref3.parentWidth, + props = objectWithoutProperties.objectWithoutProperties(_ref3, ["breakpoints", "children", "paddingBottom", "parentWidth"]); + + var mergedBreakpoints = useMergeBreakpoints(breakpoints); + return /*#__PURE__*/React__default['default'].createElement(LayoutProvider, { + parentWidth: parentWidth, + breakpoints: breakpoints + }, /*#__PURE__*/React__default['default'].createElement(LayoutWidthLimiter, _extends._extends_1({ + minWidth: mergedBreakpoints.min, + paddingBottom: paddingBottom + }, props), children)); +} + +Layout.propTypes = { + breakpoints: breakpointsType, + children: index.propTypes.node, + paddingBottom: index.propTypes.oneOfType([index.propTypes.number, index.propTypes.string]), + parentWidth: index.propTypes.number +}; +Layout.defaultProps = { + breakpoints: {}, + paddingBottom: 3 * constants.GU +}; + +function LayoutProvider(_ref4) { + var breakpoints = _ref4.breakpoints, + children = _ref4.children, + parentWidth = _ref4.parentWidth; + + var _useViewport = Viewport.useViewport(), + viewportWidth = _useViewport.width; + + var mergedBreakpoints = useMergeBreakpoints(breakpoints); // If the parent width is not passed, use the viewport width. + + var _useMemo = React.useMemo(function () { + return getLayoutSize(parentWidth === undefined ? viewportWidth : parentWidth, mergedBreakpoints); + }, [viewportWidth, parentWidth, mergedBreakpoints]), + _useMemo2 = slicedToArray.slicedToArray(_useMemo, 2), + layoutName = _useMemo2[0], + layoutWidth = _useMemo2[1]; + + return /*#__PURE__*/React__default['default'].createElement(LayoutContext.Provider, { + value: { + layoutWidth: layoutWidth, + layoutName: layoutName + } + }, children); +} + +LayoutProvider.propTypes = { + breakpoints: breakpointsType, + children: index.propTypes.node, + parentWidth: index.propTypes.number +}; +LayoutProvider.defaultProps = { + breakpoints: {} +}; +/* eslint-disable react/prop-types */ + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "Layout___StyledDiv", + componentId: "sc-16bvfls-0" +})(["width:", ";min-width:", "px;margin:0 auto;padding-bottom:", ";"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +function LayoutWidthLimiter(_ref5) { + var children = _ref5.children, + minWidth = _ref5.minWidth, + paddingBottom = _ref5.paddingBottom, + props = objectWithoutProperties.objectWithoutProperties(_ref5, ["children", "minWidth", "paddingBottom"]); + + var _useLayout = useLayout(), + layoutName = _useLayout.layoutName, + layoutWidth = _useLayout.layoutWidth; + + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends._extends_1({}, props, { + _css: layoutName === 'small' ? 'auto' : "".concat(layoutWidth, "px"), + _css2: minWidth, + _css3: css.cssPx(paddingBottom) + }), children); +} + +exports.LayoutProvider = LayoutProvider; +exports.default = Layout; +exports.useLayout = useLayout; +//# sourceMappingURL=Layout.js.map diff --git a/packages/govern-console/public/aragon-ui/Layout.js.map b/packages/govern-console/public/aragon-ui/Layout.js.map new file mode 100644 index 000000000..5b6a2c1f7 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Layout.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Layout.js","sources":["../src/components/Layout/Layout.js"],"sourcesContent":["import React, { useContext, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { useViewport } from '../../providers/Viewport/Viewport'\nimport { BREAKPOINTS, GU } from '../../style'\nimport { cssPx } from '../../utils'\n\nfunction getSizes(breakpoints) {\n return Object.entries(breakpoints)\n .filter(([name]) => name !== 'min')\n .sort((a, b) => a[1] - b[1])\n}\n\nconst breakpointsType = PropTypes.shape({\n min: PropTypes.number,\n small: PropTypes.number,\n medium: PropTypes.number,\n large: PropTypes.number,\n})\n\n// Minimum margin around a layout\nconst MIN_MARGIN = 3 * GU\n\nfunction getLayoutSize(parentWidth, breakpoints) {\n const sizes = getSizes(breakpoints)\n\n let index = sizes.length\n while (index--) {\n if (parentWidth >= sizes[index][1]) {\n return [\n sizes[index][0],\n sizes[index][1] - (index === 0 ? 0 : MIN_MARGIN * 2),\n ]\n }\n }\n\n return sizes[0]\n}\n\nfunction useMergeBreakpoints(breakpoints) {\n const breakpointsAsString = JSON.stringify(breakpoints)\n\n // Only compute once by comparing values rather than object references in dependency array\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useMemo(() => ({ ...BREAKPOINTS, ...breakpoints }), [\n breakpointsAsString,\n ])\n}\n\nconst LayoutContext = React.createContext({})\n\nfunction useLayout() {\n const { layoutWidth, layoutName } = useContext(LayoutContext)\n return {\n layoutName,\n layoutWidth,\n\n // deprecated\n name: layoutName,\n width: layoutWidth,\n }\n}\n\nfunction Layout({\n breakpoints,\n children,\n paddingBottom,\n parentWidth,\n ...props\n}) {\n const mergedBreakpoints = useMergeBreakpoints(breakpoints)\n\n return (\n \n \n {children}\n \n \n )\n}\n\nLayout.propTypes = {\n breakpoints: breakpointsType,\n children: PropTypes.node,\n paddingBottom: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n parentWidth: PropTypes.number,\n}\n\nLayout.defaultProps = {\n breakpoints: {},\n paddingBottom: 3 * GU,\n}\n\nfunction LayoutProvider({ breakpoints, children, parentWidth }) {\n const { width: viewportWidth } = useViewport()\n const mergedBreakpoints = useMergeBreakpoints(breakpoints)\n\n // If the parent width is not passed, use the viewport width.\n const [layoutName, layoutWidth] = useMemo(\n () =>\n getLayoutSize(\n parentWidth === undefined ? viewportWidth : parentWidth,\n mergedBreakpoints\n ),\n [viewportWidth, parentWidth, mergedBreakpoints]\n )\n\n return (\n \n {children}\n \n )\n}\n\nLayoutProvider.propTypes = {\n breakpoints: breakpointsType,\n children: PropTypes.node,\n parentWidth: PropTypes.number,\n}\n\nLayoutProvider.defaultProps = {\n breakpoints: {},\n}\n\n/* eslint-disable react/prop-types */\nfunction LayoutWidthLimiter({ children, minWidth, paddingBottom, ...props }) {\n const { layoutName, layoutWidth } = useLayout()\n\n return (\n \n {children}\n \n )\n}\n/* eslint-enable react/prop-types */\n\nexport default Layout\nexport { useLayout, LayoutProvider }\n"],"names":["getSizes","breakpoints","Object","entries","filter","name","sort","a","b","breakpointsType","PropTypes","shape","min","number","small","medium","large","MIN_MARGIN","GU","getLayoutSize","parentWidth","sizes","index","length","useMergeBreakpoints","breakpointsAsString","JSON","stringify","useMemo","BREAKPOINTS","LayoutContext","React","createContext","useLayout","useContext","layoutWidth","layoutName","width","Layout","children","paddingBottom","props","mergedBreakpoints","propTypes","node","oneOfType","string","defaultProps","LayoutProvider","useViewport","viewportWidth","undefined","LayoutWidthLimiter","minWidth","cssPx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,SAASA,QAAT,CAAkBC,WAAlB,EAA+B;AAC7B,SAAOC,MAAM,CAACC,OAAP,CAAeF,WAAf,EACJG,MADI,CACG;AAAA;AAAA,QAAEC,IAAF;;AAAA,WAAYA,IAAI,KAAK,KAArB;AAAA,GADH,EAEJC,IAFI,CAEC,UAACC,CAAD,EAAIC,CAAJ;AAAA,WAAUD,CAAC,CAAC,CAAD,CAAD,GAAOC,CAAC,CAAC,CAAD,CAAlB;AAAA,GAFD,CAAP;AAGD;;AAED,IAAMC,eAAe,GAAGC,eAAS,CAACC,KAAV,CAAgB;AACtCC,EAAAA,GAAG,EAAEF,eAAS,CAACG,MADuB;AAEtCC,EAAAA,KAAK,EAAEJ,eAAS,CAACG,MAFqB;AAGtCE,EAAAA,MAAM,EAAEL,eAAS,CAACG,MAHoB;AAIt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9B,WADjC,EAEXsB,iBAFW,CADf;AAAA,GADuC,EAMvC,CAACQ,aAAD,EAAgB9B,WAAhB,EAA6BsB,iBAA7B,CANuC,CALqB;AAAA;AAAA,MAKvDN,UALuD;AAAA,MAK3CD,WAL2C;;AAc9D,sBACEJ,wCAAC,aAAD,CAAe,QAAf;AAAwB,IAAA,KAAK,EAAE;AAAEI,MAAAA,WAAW,EAAXA,WAAF;AAAeC,MAAAA,UAAU,EAAVA;AAAf;AAA/B,KACGG,QADH,CADF;AAKD;;AAEDS,cAAc,CAACL,SAAf,GAA2B;AACzB1C,EAAAA,WAAW,EAAEQ,eADY;AAEzB8B,EAAAA,QAAQ,EAAE7B,eAAS,CAACkC,IAFK;AAGzBxB,EAAAA,WAAW,EAAEV,eAAS,CAACG;AAHE,CAA3B;AAMAmC,cAAc,CAACD,YAAf,GAA8B;AAC5B9C,EAAAA,WAAW,EAAE;AADe,CAA9B;AAIA;;;;;;;;;;;;;AACA,SAASmD,kBAAT,QAA6E;AAAA,MAA/Cb,QAA+C,SAA/CA,QAA+C;AAAA,MAArCc,QAAqC,SAArCA,QAAqC;AAAA,MAA3Bb,aAA2B,SAA3BA,aAA2B;AAAA,MAATC,KAAS;;AAAA,mBACvCR,SAAS,EAD8B;AAAA,MACnEG,UADmE,cACnEA,UADmE;AAAA,MACvDD,WADuD,cACvDA,WADuD;;AAG3E,sBACEJ,4EACMU,KADN;AAAA,UAGaL,UAAU,KAAK,OAAf,GAAyB,MAAzB,aAAqCD,WAArC,OAHb;AAAA,WAIiBkB,QAJjB;AAAA,WAMsBC,SAAK,CAACd,aAAD;AAN3B,MASGD,QATH,CADF;AAaD;;;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/LeftIcon.js b/packages/govern-console/public/aragon-ui/LeftIcon.js new file mode 100644 index 000000000..77fee0919 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/LeftIcon.js @@ -0,0 +1,28 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var React = require('react'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +var LeftIcon = function LeftIcon() { + return /*#__PURE__*/React__default['default'].createElement("svg", { + width: "24", + height: "19", + viewBox: "0 0 24 19" + }, /*#__PURE__*/React__default['default'].createElement("path", { + d: "M21 10H4l6-6-6 6 6 6", + stroke: "currentColor", + strokeWidth: "1.5", + fill: "none", + fillRule: "evenodd", + strokeLinecap: "round", + strokeLinejoin: "round" + })); +}; + +exports.default = LeftIcon; +//# sourceMappingURL=LeftIcon.js.map diff --git a/packages/govern-console/public/aragon-ui/LeftIcon.js.map b/packages/govern-console/public/aragon-ui/LeftIcon.js.map new file mode 100644 index 000000000..ef8794f73 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/LeftIcon.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LeftIcon.js","sources":["../src/components/NavigationBar/LeftIcon.js"],"sourcesContent":["import React from 'react'\n\nconst LeftIcon = () => (\n \n \n \n)\n\nexport default LeftIcon\n"],"names":["LeftIcon","React"],"mappings":";;;;;;;;;;IAEMA,QAAQ,GAAG,SAAXA,QAAW;AAAA,sBACfC;AAAK,IAAA,KAAK,EAAC,IAAX;AAAgB,IAAA,MAAM,EAAC,IAAvB;AAA4B,IAAA,OAAO,EAAC;AAApC,kBACEA;AACE,IAAA,CAAC,EAAC,sBADJ;AAEE,IAAA,MAAM,EAAC,cAFT;AAGE,IAAA,WAAW,EAAC,KAHd;AAIE,IAAA,IAAI,EAAC,MAJP;AAKE,IAAA,QAAQ,EAAC,SALX;AAME,IAAA,aAAa,EAAC,OANhB;AAOE,IAAA,cAAc,EAAC;AAPjB,IADF,CADe;AAAA;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/LineChart.js b/packages/govern-console/public/aragon-ui/LineChart.js new file mode 100644 index 000000000..ab3c301be --- /dev/null +++ b/packages/govern-console/public/aragon-ui/LineChart.js @@ -0,0 +1,242 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +var toConsumableArray = require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +var css = require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +var springs = require('./springs.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); +var proptypes = require('./proptypes-9c58a90f.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var LABELS_HEIGHT = 30; +var WIDTH_DEFAULT = 300; + +function useMeasuredWidth() { + var ref = React.useRef(); + + var _useState = React.useState(WIDTH_DEFAULT), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + measuredWidth = _useState2[0], + setMeasuredWidth = _useState2[1]; + + var onResize = React.useCallback(function () { + if (ref.current) { + setMeasuredWidth(ref.current.clientWidth); + } + }, []); + var onRef = React.useCallback(function (element) { + ref.current = element; + onResize(); + }, [onResize]); + React.useEffect(function () { + window.addEventListener('resize', onResize); + return function () { + return window.removeEventListener('resize', onResize); + }; + }, [onResize]); + return [measuredWidth, onRef]; +} + +var _StyledSvg = _styled__default['default']("svg").withConfig({ + displayName: "LineChart___StyledSvg", + componentId: "sc-8kiakb-0" +})(["display:block"]); + +var _StyledText = _styled__default['default']("text").withConfig({ + displayName: "LineChart___StyledText", + componentId: "sc-8kiakb-1" +})(["alignment-baseline:middle;font-size:12px;font-weight:300;", ";"], css.unselectable); + +function LineChart(_ref) { + var animDelay = _ref.animDelay, + borderColor = _ref.borderColor, + color = _ref.color, + dotRadius = _ref.dotRadius, + height = _ref.height, + label = _ref.label, + labelColor = _ref.labelColor, + linesProps = _ref.lines, + reset = _ref.reset, + springConfig = _ref.springConfig, + total = _ref.total, + widthProps = _ref.width, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["animDelay", "borderColor", "color", "dotRadius", "height", "label", "labelColor", "lines", "reset", "springConfig", "total", "width"]); + + var _useMeasuredWidth = useMeasuredWidth(), + _useMeasuredWidth2 = slicedToArray.slicedToArray(_useMeasuredWidth, 2), + width = _useMeasuredWidth2[0], + onSvgRef = _useMeasuredWidth2[1]; + + var lines = React.useMemo(function () { + return linesProps.map(function (lineOrValues) { + return Array.isArray(lineOrValues) ? { + values: lineOrValues + } : lineOrValues; + }); + }, [linesProps]); // the count of provided values + + var valuesCount = React.useMemo(function () { + // All the values have the same length, so we can use the first one. + return lines[0] ? lines[0].values.length : 0; + }, [lines]); // the total amount of values + + var totalCount = React.useMemo(function () { + // If no total is provided, the total is the number of provided values. + return total > 0 && total > valuesCount ? total : valuesCount; + }, [valuesCount, total]); + var getX = React.useCallback(function (index) { + return width / Math.max(1, totalCount - 1) * index; + }, [width, totalCount]); + var getY = React.useCallback(function (percentage, progress, height) { + var padding = dotRadius + 2; + return height - padding - (height - padding * 2) * percentage * progress; + }, [dotRadius]); + var getLabelPosition = React.useCallback(function (index, length) { + if (index === 0) return 'start'; + if (index === length - 1) return 'end'; + return 'middle'; + }, []); + var labels = label && totalCount > 0 ? toConsumableArray.toConsumableArray(Array(totalCount).keys()).map(label) : null; + var chartHeight = height - (labels ? LABELS_HEIGHT : 0); + var rectangle = /*#__PURE__*/React__default['default'].createElement("rect", { + width: width, + height: chartHeight, + rx: "3", + ry: "3", + fill: "#ffffff", + strokeWidth: "1", + stroke: borderColor + }); + return /*#__PURE__*/React__default['default'].createElement(web.Spring, { + from: { + progress: 0 + }, + to: { + progress: 1 + }, + config: springConfig, + delay: animDelay, + reset: reset + }, function (_ref2) { + var progress = _ref2.progress; + return /*#__PURE__*/React__default['default'].createElement(_StyledSvg, _extends._extends_1({ + ref: onSvgRef, + viewBox: "0 0 ".concat(width, " ").concat(height), + width: widthProps || 'auto', + height: "auto" + }, props), /*#__PURE__*/React__default['default'].createElement("mask", { + id: "chart-mask" + }, rectangle), rectangle, /*#__PURE__*/React__default['default'].createElement("g", { + mask: "url(#chart-mask)" + }, totalCount > 0 && /*#__PURE__*/React__default['default'].createElement("path", { + d: "\n ".concat(toConsumableArray.toConsumableArray(new Array(totalCount - 1)).reduce(function (path, _, index) { + return "".concat(path, " M ").concat(getX(index), ",").concat(chartHeight, " l 0,-8"); + }, ''), "\n "), + stroke: borderColor, + strokeWidth: "1" + }), lines.map(function (line, lineIndex) { + return /*#__PURE__*/React__default['default'].createElement("g", { + key: "line-plot-".concat(line.id || lineIndex) + }, /*#__PURE__*/React__default['default'].createElement("path", { + d: "\n M\n ".concat(getX(0), ",\n ").concat(getY(line.values[0], progress, chartHeight), "\n\n ").concat(line.values.slice(1).map(function (val, index) { + return "L\n ".concat(getX((index + 1) * progress), ",\n ").concat(getY(val, progress, chartHeight), "\n "); + }).join(''), "\n "), + fill: "transparent", + stroke: line.color || color(lineIndex, { + lines: lines + }), + strokeWidth: "2" + }), line.values.slice(1, -1).map(function (val, index) { + return /*#__PURE__*/React__default['default'].createElement("circle", { + key: index, + cx: getX(index + 1) * progress, + cy: getY(val, progress, chartHeight), + r: dotRadius, + fill: "white", + stroke: line.color || color(lineIndex, { + lines: lines + }), + strokeWidth: "1" + }); + })); + }), /*#__PURE__*/React__default['default'].createElement("line", { + x1: getX(valuesCount - 1) * progress, + y1: "0", + x2: getX(valuesCount - 1) * progress, + y2: chartHeight, + stroke: "#DAEAEF", + strokeWidth: "3" + })), labels && /*#__PURE__*/React__default['default'].createElement("g", { + transform: "translate(0,".concat(chartHeight, ")") + }, labels.map(function (label, index) { + return /*#__PURE__*/React__default['default'].createElement(_StyledText, { + key: index, + x: getX(index), + y: LABELS_HEIGHT / 2, + textAnchor: getLabelPosition(index, labels.length), + fill: labelColor + }, label); + }))); + }); +} + +LineChart.propTypes = { + springConfig: proptypes.ExtendedPropTypes._spring, + total: proptypes.ExtendedPropTypes.number, + width: proptypes.ExtendedPropTypes.number, + height: proptypes.ExtendedPropTypes.number, + dotRadius: proptypes.ExtendedPropTypes.number, + animDelay: proptypes.ExtendedPropTypes.number, + borderColor: proptypes.ExtendedPropTypes.string, + labelColor: proptypes.ExtendedPropTypes.string, + reset: proptypes.ExtendedPropTypes.bool, + lines: proptypes.ExtendedPropTypes.arrayOf(proptypes.ExtendedPropTypes.oneOfType([proptypes.ExtendedPropTypes.shape({ + id: proptypes.ExtendedPropTypes.number, + values: proptypes.ExtendedPropTypes.arrayOf(proptypes.ExtendedPropTypes.number).isRequired, + // numbers between 0 and 1 + color: proptypes.ExtendedPropTypes.string // overrides the color() prop if set + + }), // values can also be passed directly + proptypes.ExtendedPropTypes.arrayOf(proptypes.ExtendedPropTypes.number)])), + label: proptypes.ExtendedPropTypes.oneOfType([proptypes.ExtendedPropTypes.func, proptypes.ExtendedPropTypes._null]), + color: proptypes.ExtendedPropTypes.func +}; +LineChart.defaultProps = { + springConfig: springs.springs.lazy, + total: -1, + height: 200, + dotRadius: 7 / 2, + animDelay: 500, + reset: false, + borderColor: 'rgba(209, 209, 209, 0.5)', + labelColor: '#6d777b', + lines: [], + label: function label(index) { + return index + 1; + }, + color: function color(index, _ref3) { + var lines = _ref3.lines; + return "hsl(".concat((index * (360 / lines.length) + 40) % 360, ", 60%, 70%)"); + } +}; + +exports.default = LineChart; +//# sourceMappingURL=LineChart.js.map diff --git a/packages/govern-console/public/aragon-ui/LineChart.js.map b/packages/govern-console/public/aragon-ui/LineChart.js.map new file mode 100644 index 000000000..1c9e4bcd6 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/LineChart.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LineChart.js","sources":["../src/components/LineChart/LineChart.js"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport { Spring } from 'react-spring'\nimport PropTypes from '../../proptypes'\nimport { springs } from '../../style'\nimport { unselectable } from '../../utils'\n\nconst LABELS_HEIGHT = 30\nconst WIDTH_DEFAULT = 300\n\nfunction useMeasuredWidth() {\n const ref = useRef()\n const [measuredWidth, setMeasuredWidth] = useState(WIDTH_DEFAULT)\n\n const onResize = useCallback(() => {\n if (ref.current) {\n setMeasuredWidth(ref.current.clientWidth)\n }\n }, [])\n\n const onRef = useCallback(\n element => {\n ref.current = element\n onResize()\n },\n [onResize]\n )\n\n useEffect(() => {\n window.addEventListener('resize', onResize)\n return () => window.removeEventListener('resize', onResize)\n }, [onResize])\n\n return [measuredWidth, onRef]\n}\n\nfunction LineChart({\n animDelay,\n borderColor,\n color,\n dotRadius,\n height,\n label,\n labelColor,\n lines: linesProps,\n reset,\n springConfig,\n total,\n width: widthProps,\n ...props\n}) {\n const [width, onSvgRef] = useMeasuredWidth()\n\n const lines = useMemo(() => {\n return linesProps.map(lineOrValues =>\n Array.isArray(lineOrValues) ? { values: lineOrValues } : lineOrValues\n )\n }, [linesProps])\n\n // the count of provided values\n const valuesCount = useMemo(() => {\n // All the values have the same length, so we can use the first one.\n return lines[0] ? lines[0].values.length : 0\n }, [lines])\n\n // the total amount of values\n const totalCount = useMemo(() => {\n // If no total is provided, the total is the number of provided values.\n return total > 0 && total > valuesCount ? total : valuesCount\n }, [valuesCount, total])\n\n const getX = useCallback(\n index => {\n return (width / Math.max(1, totalCount - 1)) * index\n },\n [width, totalCount]\n )\n\n const getY = useCallback(\n (percentage, progress, height) => {\n const padding = dotRadius + 2\n return height - padding - (height - padding * 2) * percentage * progress\n },\n [dotRadius]\n )\n\n const getLabelPosition = useCallback((index, length) => {\n if (index === 0) return 'start'\n if (index === length - 1) return 'end'\n return 'middle'\n }, [])\n\n const labels =\n label && totalCount > 0 ? [...Array(totalCount).keys()].map(label) : null\n\n const chartHeight = height - (labels ? LABELS_HEIGHT : 0)\n\n const rectangle = (\n \n )\n\n return (\n \n {({ progress }) => (\n \n {rectangle}\n {rectangle}\n\n \n {totalCount > 0 && (\n \n `${path} M ${getX(index)},${chartHeight} l 0,-8`,\n ''\n )}\n `}\n stroke={borderColor}\n strokeWidth=\"1\"\n />\n )}\n {lines.map((line, lineIndex) => (\n \n \n `L\n ${getX((index + 1) * progress)},\n ${getY(val, progress, chartHeight)}\n `\n )\n .join('')}\n `}\n fill=\"transparent\"\n stroke={line.color || color(lineIndex, { lines })}\n strokeWidth=\"2\"\n />\n {line.values.slice(1, -1).map((val, index) => (\n \n ))}\n \n ))}\n \n \n {labels && (\n \n {labels.map((label, index) => (\n \n {label}\n \n ))}\n \n )}\n \n )}\n \n )\n}\n\nLineChart.propTypes = {\n springConfig: PropTypes._spring,\n total: PropTypes.number,\n width: PropTypes.number,\n height: PropTypes.number,\n dotRadius: PropTypes.number,\n animDelay: PropTypes.number,\n borderColor: PropTypes.string,\n labelColor: PropTypes.string,\n reset: PropTypes.bool,\n lines: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n id: PropTypes.number,\n values: PropTypes.arrayOf(PropTypes.number).isRequired, // numbers between 0 and 1\n color: PropTypes.string, // overrides the color() prop if set\n }),\n // values can also be passed directly\n PropTypes.arrayOf(PropTypes.number),\n ])\n ),\n label: PropTypes.oneOfType([PropTypes.func, PropTypes._null]),\n color: PropTypes.func,\n}\n\nLineChart.defaultProps = {\n springConfig: springs.lazy,\n total: -1,\n height: 200,\n dotRadius: 7 / 2,\n animDelay: 500,\n reset: false,\n borderColor: 'rgba(209, 209, 209, 0.5)',\n labelColor: '#6d777b',\n lines: [],\n label: index => index + 1,\n color: (index, { lines }) =>\n `hsl(${(index * (360 / lines.length) + 40) % 360}, 60%, 70%)`,\n}\n\nexport default LineChart\n"],"names":["LABELS_HEIGHT","WIDTH_DEFAULT","useMeasuredWidth","ref","useRef","useState","measuredWidth","setMeasuredWidth","onResize","useCallback","current","clientWidth","onRef","element","useEffect","window","addEventListener","removeEventListener","unselectable","LineChart","animDelay","borderColor","color","dotRadius","height","label","labelColor","linesProps","lines","reset","springConfig","total","widthProps","width","props","onSvgRef","useMemo","map","lineOrValues","Array","isArray","values","valuesCount","length","totalCount","getX","index","Math","max","getY","percentage","progress","padding","getLabelPosition","labels","_toConsumableArray","keys","chartHeight","rectangle","React","Spring","reduce","path","_","line","lineIndex","id","slice","val","join","propTypes","PropTypes","_spring","number","string","bool","arrayOf","oneOfType","shape","isRequired","func","_null","defaultProps","springs","lazy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAMA,aAAa,GAAG,EAAtB;AACA,IAAMC,aAAa,GAAG,GAAtB;;AAEA,SAASC,gBAAT,GAA4B;AAC1B,MAAMC,GAAG,GAAGC,YAAM,EAAlB;;AAD0B,kBAEgBC,cAAQ,CAACJ,aAAD,CAFxB;AAAA;AAAA,MAEnBK,aAFmB;AAAA,MAEJC,gBAFI;;AAI1B,MAAMC,QAAQ,GAAGC,iBAAW,CAAC,YAAM;AACjC,QAAIN,GAAG,CAACO,OAAR,EAAiB;AACfH,MAAAA,gBAAgB,CAACJ,GAAG,CAACO,OAAJ,CAAYC,WAAb,CAAhB;AACD;AACF,GAJ2B,EAIzB,EAJyB,CAA5B;AAMA,MAAMC,KAAK,GAAGH,iBAAW,CACvB,UAAAI,OAAO,EAAI;AACTV,IAAAA,GAAG,CAACO,OAAJ,GAAcG,OAAd;AACAL,IAAAA,QAAQ;AACT,GAJsB,EAKvB,CAACA,QAAD,CALuB,CAAzB;AAQAM,EAAAA,eAAS,CAAC,YAAM;AACdC,IAAAA,MAAM,CAACC,gBAAP,CAAwB,QAAxB,EAAkCR,QAAlC;AACA,WAAO;AAAA,aAAMO,MAAM,CAACE,mBAAP,CAA2B,QAA3B,EAAqCT,QAArC,CAAN;AAAA,KAAP;AACD,GAHQ,EAGN,CAACA,QAAD,CAHM,CAAT;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,IAAAA,EAAE,EAAEK,2BAAS,CAACE,MADA;AAEdhC,IAAAA,MAAM,EAAE8B,2BAAS,CAACK,OAAV,CAAkBL,2BAAS,CAACE,MAA5B,EAAoCM,UAF9B;AAE0C;AACxDzD,IAAAA,KAAK,EAAEiD,2BAAS,CAACG,MAHH;;AAAA,GAAhB,CADkB;AAOlBH,EAAAA,2BAAS,CAACK,OAAV,CAAkBL,2BAAS,CAACE,MAA5B,CAPkB,CAApB,CADK,CAVa;AAqBpBhD,EAAAA,KAAK,EAAE8C,2BAAS,CAACM,SAAV,CAAoB,CAACN,2BAAS,CAACS,IAAX,EAAiBT,2BAAS,CAACU,KAA3B,CAApB,CArBa;AAsBpB3D,EAAAA,KAAK,EAAEiD,2BAAS,CAACS;AAtBG,CAAtB;AAyBA7D,SAAS,CAAC+D,YAAV,GAAyB;AACvBpD,EAAAA,YAAY,EAAEqD,eAAO,CAACC,IADC;AAEvBrD,EAAAA,KAAK,EAAE,CAAC,CAFe;AAGvBP,EAAAA,MAAM,EAAE,GAHe;AAIvBD,EAAAA,SAAS,EAAE,IAAI,CAJQ;AAKvBH,EAAAA,SAAS,EAAE,GALY;AAMvBS,EAAAA,KAAK,EAAE,KANgB;AAOvBR,EAAAA,WAAW,EAAE,0BAPU;AAQvBK,EAAAA,UAAU,EAAE,SARW;AASvBE,EAAAA,KAAK,EAAE,EATgB;AAUvBH,EAAAA,KAAK,EAAE,eAAAqB,KAAK;AAAA,WAAIA,KAAK,GAAG,CAAZ;AAAA,GAVW;AAWvBxB,EAAAA,KAAK,EAAE,eAACwB,KAAD;AAAA,QAAUlB,KAAV,SAAUA,KAAV;AAAA,yBACE,CAACkB,KAAK,IAAI,MAAMlB,KAAK,CAACe,MAAhB,CAAL,GAA+B,EAAhC,IAAsC,GADxC;AAAA;AAXgB,CAAzB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Link.js b/packages/govern-console/public/aragon-ui/Link.js new file mode 100644 index 000000000..eff537ab2 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Link.js @@ -0,0 +1,79 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "Link___StyledButtonBase", + componentId: "sc-57j27s-0" +})(["color:", ";text-decoration:", ";font-size:inherit;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +function Link(_ref) { + var onClick = _ref.onClick, + href = _ref.href, + external = _ref.external, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["onClick", "href", "external"]); + + var theme = Theme.useTheme(); // `external` defaults to `true` if `href` is present, `false` otherwise. + + if (external === undefined) { + external = Boolean(href); + } + + return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, _extends._extends_1({ + href: href, + onClick: onClick, + external: external, + focusRingSpacing: [6, 2], + focusRingRadius: constants.RADIUS + }, props, { + _css: theme.link, + _css2: external ? 'underline' : 'none' + })); +} + +Link.propTypes = _objectSpread(_objectSpread({}, ButtonBase.default.propTypes), {}, { + href: index.propTypes.string, + onClick: index.propTypes.func, + external: index.propTypes.bool +}); + +exports.default = Link; +//# sourceMappingURL=Link.js.map diff --git a/packages/govern-console/public/aragon-ui/Link.js.map b/packages/govern-console/public/aragon-ui/Link.js.map new file mode 100644 index 000000000..42cef2722 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Link.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Link.js","sources":["../src/components/Link/Link.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport { useTheme } from '../../theme'\nimport { RADIUS } from '../../style'\n\nfunction Link({ onClick, href, external, ...props }) {\n const theme = useTheme()\n\n // `external` defaults to `true` if `href` is present, `false` otherwise.\n if (external === undefined) {\n external = Boolean(href)\n }\n\n return (\n \n )\n}\n\nLink.propTypes = {\n ...ButtonBase.propTypes,\n href: PropTypes.string,\n onClick: PropTypes.func,\n external: PropTypes.bool,\n}\n\nexport default Link\n"],"names":["Link","onClick","href","external","props","theme","useTheme","undefined","Boolean","React","RADIUS","link","propTypes","ButtonBase","PropTypes","string","func","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,SAASA,IAAT,OAAqD;AAAA,MAArCC,OAAqC,QAArCA,OAAqC;AAAA,MAA5BC,IAA4B,QAA5BA,IAA4B;AAAA,MAAtBC,QAAsB,QAAtBA,QAAsB;AAAA,MAATC,KAAS;;AACnD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB,CADmD;;AAInD,MAAIH,QAAQ,KAAKI,SAAjB,EAA4B;AAC1BJ,IAAAA,QAAQ,GAAGK,OAAO,CAACN,IAAD,CAAlB;AACD;;AAED,sBACEO;AACE,IAAA,IAAI,EAAEP,IADR;AAEE,IAAA,OAAO,EAAED,OAFX;AAGE,IAAA,QAAQ,EAAEE,QAHZ;AAIE,IAAA,gBAAgB,EAAE,CAAC,CAAD,EAAI,CAAJ,CAJpB;AAKE,IAAA,eAAe,EAAEO;AALnB,KAMMN,KANN;AAAA,UAQaC,KAAK,CAACM,IARnB;AAAA,WASuBR,QAAQ,GAAG,WAAH,GAAiB;AAThD,KADF;AAeD;;AAEDH,IAAI,CAACY,SAAL,mCACKC,kBAAU,CAACD,SADhB;AAEEV,EAAAA,IAAI,EAAEY,eAAS,CAACC,MAFlB;AAGEd,EAAAA,OAAO,EAAEa,eAAS,CAACE,IAHrB;AAIEb,EAAAA,QAAQ,EAAEW,eAAS,CAACG;AAJtB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/LinkDeprecated.js b/packages/govern-console/public/aragon-ui/LinkDeprecated.js new file mode 100644 index 000000000..b8d67c9a3 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/LinkDeprecated.js @@ -0,0 +1,49 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +var Link = require('./Link.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function ExternalLink(props) { + environment.warnOnce('ExternalLink', 'ExternalLink is deprecated. Please use Link instead.'); + return /*#__PURE__*/React__default['default'].createElement(Link.default, _extends._extends_1({ + external: true + }, props)); +} + +function SafeLink(props) { + environment.warnOnce('SafeLink', 'SafeLink is deprecated. Please use Link instead.'); + return /*#__PURE__*/React__default['default'].createElement(Link.default, props); +} + +exports.ExternalLink = ExternalLink; +exports.SafeLink = SafeLink; +//# sourceMappingURL=LinkDeprecated.js.map diff --git a/packages/govern-console/public/aragon-ui/LinkDeprecated.js.map b/packages/govern-console/public/aragon-ui/LinkDeprecated.js.map new file mode 100644 index 000000000..2fe453ef2 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/LinkDeprecated.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LinkDeprecated.js","sources":["../src/components/Link/LinkDeprecated.js"],"sourcesContent":["import React from 'react'\nimport { warnOnce } from '../../utils'\nimport Link from './Link'\n\nfunction ExternalLink(props) {\n warnOnce(\n 'ExternalLink',\n 'ExternalLink is deprecated. Please use Link instead.'\n )\n return \n}\n\nfunction SafeLink(props) {\n warnOnce('SafeLink', 'SafeLink is deprecated. Please use Link instead.')\n return \n}\n\nexport { ExternalLink, SafeLink }\n"],"names":["ExternalLink","props","warnOnce","React","Link","SafeLink"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,YAAT,CAAsBC,KAAtB,EAA6B;AAC3BC,EAAAA,oBAAQ,CACN,cADM,EAEN,sDAFM,CAAR;AAIA,sBAAOC,wCAACC,YAAD;AAAM,IAAA,QAAQ;AAAd,KAAmBH,KAAnB,EAAP;AACD;;AAED,SAASI,QAAT,CAAkBJ,KAAlB,EAAyB;AACvBC,EAAAA,oBAAQ,CAAC,UAAD,EAAa,kDAAb,CAAR;AACA,sBAAOC,wCAACC,YAAD,EAAUH,KAAV,CAAP;AACD;;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/ListView.js b/packages/govern-console/public/aragon-ui/ListView.js new file mode 100644 index 000000000..96b31769d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/ListView.js @@ -0,0 +1,298 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +var springs = require('./springs.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconDown.js'); +require('./IconUp.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); +var Checkbox = require('./Checkbox.js'); +require('./Button.js'); +require('./ButtonIcon.js'); +var ToggleButton = require('./ToggleButton.js'); +var OpenedSurfaceBorder = require('./OpenedSurfaceBorder.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "ListView___StyledDiv", + componentId: "sc-1wnrej-0" +})(["position:relative;padding:0;padding-right:", "px;padding-left:", "px;border-bottom:", "px solid ", ";transition:background 150ms ease-in-out;background:", ";"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "ListView___StyledDiv2", + componentId: "sc-1wnrej-1" +})(["position:absolute;top:", "px;left:0;display:flex;justify-content:center;width:", "px;"], function (p) { + return p._css6; +}, function (p) { + return p._css7; +}); + +var _StyledDiv3 = _styled__default['default']("div").withConfig({ + displayName: "ListView___StyledDiv3", + componentId: "sc-1wnrej-2" +})(["position:absolute;top:", "px;right:", "px;"], function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledDiv4 = _styled__default['default']("div").withConfig({ + displayName: "ListView___StyledDiv4", + componentId: "sc-1wnrej-3" +})(["display:flex;flex-direction:column;padding-bottom:", "px;"], function (p) { + return p._css10; +}); + +var _StyledDiv5 = _styled__default['default']("div").withConfig({ + displayName: "ListView___StyledDiv5", + componentId: "sc-1wnrej-4" +})(["display:flex;align-items:center;margin:", "px 0 ", "px;color:", ";", ";"], function (p) { + return p._css11; +}, function (p) { + return p._css12; +}, function (p) { + return p._css13; +}, function (p) { + return p._css14; +}); + +function ListView(_ref) { + var allSelected = _ref.allSelected, + entries = _ref.entries, + fields = _ref.fields, + hasAnyExpansion = _ref.hasAnyExpansion, + onSelect = _ref.onSelect, + onSelectAll = _ref.onSelectAll, + renderSelectionCount = _ref.renderSelectionCount, + selectable = _ref.selectable, + rowHeight = _ref.rowHeight; + var theme = Theme.useTheme(); + + var _useState = React.useState(-1), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + opened = _useState2[0], + setOpened = _useState2[1]; + + var toggleEntry = React.useCallback(function (index) { + setOpened(function (opened) { + return opened === index ? -1 : index; + }); + }, []); + var sideSpace = selectable || hasAnyExpansion; + return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, entries.map(function (entry, index) { + var hasExpansion = entry.expansion.content.length > 0; + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, { + key: index, + _css: 3 * constants.GU, + _css2: (sideSpace ? 6.5 : 3) * constants.GU, + _css3: Number(index !== entries.length - 1), + _css4: theme.border, + _css5: entry.selected ? theme.surfaceSelected : 'none' + }, /*#__PURE__*/React__default['default'].createElement(OpenedSurfaceBorder.OpenedSurfaceBorder, { + opened: entry.index === opened + }), sideSpace && /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css6: 1.5 * constants.GU, + _css7: 6.5 * constants.GU + }, selectable && /*#__PURE__*/React__default['default'].createElement(Select, { + index: entry.index, + selected: entry.selected, + onSelect: onSelect + }), !selectable && hasExpansion && /*#__PURE__*/React__default['default'].createElement(ToggleButton.ToggleButton, { + opened: entry.index === opened, + onClick: function onClick() { + return toggleEntry(entry.index); + } + })), entry.actions && /*#__PURE__*/React__default['default'].createElement(_StyledDiv3, { + _css8: 2 * constants.GU, + _css9: 3 * constants.GU + }, entry.actions), /*#__PURE__*/React__default['default'].createElement("div", null, entry.entryNodes.map(function (content, index) { + return [// field content + content, // field label + fields[index].label, // priority number + fields[index].priority && fields[index].priority || 0]; + }) // sort by priority + .sort(function (a, b) { + return b[2] - a[2]; + }).map(function (_ref2, index, entryNodes) { + var _ref3 = slicedToArray.slicedToArray(_ref2, 2), + content = _ref3[0], + label = _ref3[1]; + + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv4, { + key: index, + _css10: index === entryNodes.length - 1 ? 2 * constants.GU : 0 + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv5, { + _css11: 2 * constants.GU, + _css12: 1 * constants.GU, + _css13: theme.surfaceContentSecondary, + _css14: textStyles.textStyle('label2') + }, label), /*#__PURE__*/React__default['default'].createElement("div", null, content)); + })), hasExpansion && /*#__PURE__*/React__default['default'].createElement(EntryExpansion, { + expansion: entry.expansion, + opened: opened === entry.index, + rowHeight: rowHeight + })); + })); +} + +ListView.propTypes = { + allSelected: index.propTypes.oneOf([-1, 0, 1]).isRequired, + entries: index.propTypes.array.isRequired, + fields: index.propTypes.array.isRequired, + hasAnyExpansion: index.propTypes.bool.isRequired, + onSelect: index.propTypes.func.isRequired, + onSelectAll: index.propTypes.func.isRequired, + renderSelectionCount: index.propTypes.func.isRequired, + rowHeight: index.propTypes.number.isRequired, + selectable: index.propTypes.bool.isRequired +}; // Disable prop types check for internal components + +/* eslint-disable react/prop-types */ + +var _StyledAnimatedDiv = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "ListView___StyledAnimatedDiv", + componentId: "sc-1wnrej-5" +})(["overflow:hidden;background:", ";margin-left:", "px;margin-right:", "px;padding-left:", "px;box-shadow:inset 0 6px 4px -4px rgba(0,0,0,0.16);"], function (p) { + return p._css15; +}, function (p) { + return p._css16; +}, function (p) { + return p._css17; +}, function (p) { + return p._css18; +}); + +var _StyledDiv6 = _styled__default['default']("div").withConfig({ + displayName: "ListView___StyledDiv6", + componentId: "sc-1wnrej-6" +})(["display:flex;align-items:center;height:", ";padding-right:", "px;"], function (p) { + return p._css19; +}, function (p) { + return p._css20; +}); + +function EntryExpansion(_ref4) { + var expansion = _ref4.expansion, + opened = _ref4.opened, + rowHeight = _ref4.rowHeight; + var theme = Theme.useTheme(); // Handles the height of the expansion in free layout mode + + var _useState3 = React.useState(0), + _useState4 = slicedToArray.slicedToArray(_useState3, 2), + freeLayoutContentHeight = _useState4[0], + setFreeLayoutContentHeight = _useState4[1]; + + var handleFreeLayoutContentRef = React.useCallback(function (element) { + if (element) { + setFreeLayoutContentHeight(element.getBoundingClientRect().height); + } + }, []); + var height = expansion.freeLayout ? freeLayoutContentHeight : rowHeight * expansion.content.length; + return /*#__PURE__*/React__default['default'].createElement(web.Transition, { + native: true, + items: opened, + from: { + height: 0 + }, + enter: { + height: height + }, + update: { + height: height + }, + leave: { + height: 0 + }, + config: _objectSpread(_objectSpread({}, springs.springs.smooth), {}, { + precision: 0.1 + }) + }, function (show) { + return show && function (_ref5) { + var height = _ref5.height; + return /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedDiv, { + style: { + height: height.interpolate(function (v) { + return "".concat(v, "px"); + }) + }, + _css15: theme.surfaceUnder, + _css16: -6.5 * constants.GU, + _css17: -3 * constants.GU, + _css18: 6.5 * constants.GU + }, expansion.content.map(function (child, i) { + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv6, { + key: i, + ref: expansion.freeLayout ? handleFreeLayoutContentRef : null, + _css19: expansion.freeLayout ? 'auto' : "".concat(rowHeight, "px"), + _css20: 3 * constants.GU + }, child); + })); + }; + }); +} + +function Select(_ref6) { + var index = _ref6.index, + selected = _ref6.selected, + onSelect = _ref6.onSelect; + var change = React.useCallback(function (check) { + onSelect(index, check); + }, [index, onSelect]); + return /*#__PURE__*/React__default['default'].createElement(Checkbox.default, { + onChange: change, + checked: selected + }); +} + +exports.ListView = ListView; +//# sourceMappingURL=ListView.js.map diff --git a/packages/govern-console/public/aragon-ui/ListView.js.map b/packages/govern-console/public/aragon-ui/ListView.js.map new file mode 100644 index 000000000..938ad2959 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/ListView.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ListView.js","sources":["../src/components/DataView/ListView.js"],"sourcesContent":["import React, { useCallback, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Transition, animated } from 'react-spring'\nimport { GU, springs, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport Checkbox from '../Input/Checkbox'\nimport { ToggleButton } from './ToggleButton'\nimport { OpenedSurfaceBorder } from './OpenedSurfaceBorder'\n\nfunction ListView({\n allSelected,\n entries,\n fields,\n hasAnyExpansion,\n onSelect,\n onSelectAll,\n renderSelectionCount,\n selectable,\n rowHeight,\n}) {\n const theme = useTheme()\n\n const [opened, setOpened] = useState(-1)\n\n const toggleEntry = useCallback(index => {\n setOpened(opened => (opened === index ? -1 : index))\n }, [])\n\n const sideSpace = selectable || hasAnyExpansion\n\n return (\n \n {entries.map((entry, index) => {\n const hasExpansion = entry.expansion.content.length > 0\n return (\n \n \n {sideSpace && (\n \n {selectable && (\n \n )}\n {!selectable && hasExpansion && (\n toggleEntry(entry.index)}\n />\n )}\n \n )}\n {entry.actions && (\n \n {entry.actions}\n \n )}\n
    \n {entry.entryNodes\n .map((content, index) => [\n // field content\n content,\n // field label\n fields[index].label,\n // priority number\n (fields[index].priority && fields[index].priority) || 0,\n ])\n // sort by priority\n .sort((a, b) => b[2] - a[2])\n .map(([content, label], index, entryNodes) => (\n \n \n {label}\n
    \n\n
    {content}
    \n \n ))}\n \n {hasExpansion && (\n \n )}\n \n )\n })}\n
    \n )\n}\n\nListView.propTypes = {\n allSelected: PropTypes.oneOf([-1, 0, 1]).isRequired,\n entries: PropTypes.array.isRequired,\n fields: PropTypes.array.isRequired,\n hasAnyExpansion: PropTypes.bool.isRequired,\n onSelect: PropTypes.func.isRequired,\n onSelectAll: PropTypes.func.isRequired,\n renderSelectionCount: PropTypes.func.isRequired,\n rowHeight: PropTypes.number.isRequired,\n selectable: PropTypes.bool.isRequired,\n}\n\n// Disable prop types check for internal components\n/* eslint-disable react/prop-types */\n\nfunction EntryExpansion({ expansion, opened, rowHeight }) {\n const theme = useTheme()\n\n // Handles the height of the expansion in free layout mode\n const [freeLayoutContentHeight, setFreeLayoutContentHeight] = useState(0)\n\n const handleFreeLayoutContentRef = useCallback(element => {\n if (element) {\n setFreeLayoutContentHeight(element.getBoundingClientRect().height)\n }\n }, [])\n\n const height = expansion.freeLayout\n ? freeLayoutContentHeight\n : rowHeight * expansion.content.length\n\n return (\n \n {show =>\n show &&\n (({ height }) => (\n `${v}px`),\n }}\n >\n {expansion.content.map((child, i) => (\n \n {child}\n \n ))}\n \n ))\n }\n \n )\n}\n\nfunction Select({ index, selected, onSelect }) {\n const change = useCallback(\n check => {\n onSelect(index, check)\n },\n [index, onSelect]\n )\n\n return \n}\n\n/* eslint-enable react/prop-types */\n\nexport { ListView }\n"],"names":["ListView","allSelected","entries","fields","hasAnyExpansion","onSelect","onSelectAll","renderSelectionCount","selectable","rowHeight","theme","useTheme","useState","opened","setOpened","toggleEntry","useCallback","index","sideSpace","React","map","entry","hasExpansion","expansion","content","length","GU","Number","border","selected","surfaceSelected","OpenedSurfaceBorder","ToggleButton","actions","entryNodes","label","priority","sort","a","b","surfaceContentSecondary","textStyle","propTypes","PropTypes","oneOf","isRequired","array","bool","func","number","EntryExpansion","freeLayoutContentHeight","setFreeLayoutContentHeight","handleFreeLayoutContentRef","element","getBoundingClientRect","height","freeLayout","Transition","springs","smooth","precision","show","interpolate","v","surfaceUnder","child","i","Select","change","check","Checkbox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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O,WAAP,CAAmB,UAAAC,CAAC;AAAA,6BAAOA,CAAP;AAAA,WAApB;AADH,SATT;AAAA,gBAGkBtD,KAAK,CAACuD,YAHxB;AAAA,gBAImB,CAAC,GAAD,GAAOvC,YAJ1B;AAAA,gBAKoB,CAAC,CAAD,GAAKA,YALzB;AAAA,gBAMoB,MAAMA;AAN1B,SAaGH,SAAS,CAACC,OAAV,CAAkBJ,GAAlB,CAAsB,UAAC8C,KAAD,EAAQC,CAAR;AAAA,4BACrBhD;AACE,UAAA,GAAG,EAAEgD,CADP;AAEE,UAAA,GAAG,EAAE5C,SAAS,CAACkC,UAAV,GAAuBJ,0BAAvB,GAAoD,IAF3D;AAAA,kBAMc9B,SAAS,CAACkC,UAAV,GAAuB,MAAvB,aAAmChD,SAAnC,OANd;AAAA,kBAOqB,IAAIiB;AAPzB,WAUGwC,KAVH,CADqB;AAAA,OAAtB,CAbH,CADD;AAAA,KAFE;AAAA,GATP,CADF;AA6CD;;AAED,SAASE,MAAT,QAA+C;AAAA,MAA7BnD,KAA6B,SAA7BA,KAA6B;AAAA,MAAtBY,QAAsB,SAAtBA,QAAsB;AAAA,MAAZxB,QAAY,SAAZA,QAAY;AAC7C,MAAMgE,MAAM,GAAGrD,iBAAW,CACxB,UAAAsD,KAAK,EAAI;AACPjE,IAAAA,QAAQ,CAACY,KAAD,EAAQqD,KAAR,CAAR;AACD,GAHuB,EAIxB,CAACrD,KAAD,EAAQZ,QAAR,CAJwB,CAA1B;AAOA,sBAAOc,wCAACoD,gBAAD;AAAU,IAAA,QAAQ,EAAEF,MAApB;AAA4B,IAAA,OAAO,EAAExC;AAArC,IAAP;AACD;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/LoadingRing.js b/packages/govern-console/public/aragon-ui/LoadingRing.js new file mode 100644 index 000000000..919828f8a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/LoadingRing.js @@ -0,0 +1,145 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index$1 = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var index = require('./index-4def0554.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var spin = _styled.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]); +var SIZE_SMALL = 14; +var SIZE_MEDIUM = 24; +var CONTAINER_SIZE_SMALL = 22; +var CONTAINER_SIZE_MEDIUM = 24; +var BORDER_WIDTH_STRONG = 2.5; +var BORDER_WIDTH_MEDIUM = 1; +var lastInstanceId = 1; + +var _StyledSpan = _styled__default['default']("span").withConfig({ + displayName: "LoadingRing___StyledSpan", + componentId: "iauf6f-0" +})(["position:relative;display:flex;align-items:center;justify-content:center;width:", "px;height:", "px;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +var _StyledCircle = _styled__default['default']("circle").withConfig({ + displayName: "LoadingRing___StyledCircle", + componentId: "iauf6f-1" +})(["animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:", ";transform-origin:50% 50%;"], function (p) { + return p._css3; +}); + +var LoadingRing = /*#__PURE__*/React__default['default'].memo(function LoadingRing(_ref) { + var paused = _ref.paused, + modeProp = _ref.mode, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["paused", "mode"]); + + var theme = Theme.useTheme(); + + var _useState = React.useState(function () { + return "sync-indicator-".concat(lastInstanceId++); + }), + _useState2 = slicedToArray.slicedToArray(_useState, 1), + instanceId = _useState2[0]; + + var _useInside = index.o('FloatIndicator'), + _useInside2 = slicedToArray.slicedToArray(_useInside, 1), + insideFloatIndicator = _useInside2[0]; + + var mode = modeProp || (insideFloatIndicator ? 'half-circle' : 'two-parts'); + var containerSize = mode === 'half-circle' ? CONTAINER_SIZE_MEDIUM : CONTAINER_SIZE_SMALL; + var borderWidth = mode === 'half-circle' ? BORDER_WIDTH_STRONG : BORDER_WIDTH_MEDIUM; + var size = (mode === 'half-circle' ? SIZE_MEDIUM : SIZE_SMALL) - borderWidth; + + var _useMemo = React.useMemo(function () { + var length = Math.PI * size; // Both modes display a full circle when paused. + + if (paused) { + return [0, length]; + } + + if (mode === 'two-parts') { + return [length / 4, length / 4]; + } // half-circle + + + return [length / 2, length / 2]; + }, [mode, size, paused]), + _useMemo2 = slicedToArray.slicedToArray(_useMemo, 2), + gapLength = _useMemo2[0], + dashLength = _useMemo2[1]; + + return /*#__PURE__*/React__default['default'].createElement(_StyledSpan, _extends._extends_1({}, props, { + _css: containerSize, + _css2: containerSize + }), /*#__PURE__*/React__default['default'].createElement("svg", { + width: size + borderWidth, + height: size + borderWidth, + viewBox: "0 0 ".concat(size + borderWidth, " ").concat(size + borderWidth) + }, /*#__PURE__*/React__default['default'].createElement("linearGradient", { + id: "".concat(instanceId, "-gradient"), + gradientTransform: "rotate(90)" + }, /*#__PURE__*/React__default['default'].createElement("stop", { + offset: "0%", + stopColor: theme.accentEnd + }), /*#__PURE__*/React__default['default'].createElement("stop", { + offset: "100%", + stopColor: theme.accentStart + })), insideFloatIndicator && /*#__PURE__*/React__default['default'].createElement("circle", { + cx: "50%", + cy: "50%", + r: size / 2, + fill: "transparent", + stroke: theme.floatingContent.alpha(0.3), + strokeWidth: borderWidth + }), /*#__PURE__*/React__default['default'].createElement("mask", { + id: "".concat(instanceId, "-mask") + }, /*#__PURE__*/React__default['default'].createElement(_StyledCircle, { + cx: "50%", + cy: "50%", + r: size / 2, + fill: "transparent", + stroke: "url(#".concat(instanceId, "-gradient)"), + strokeWidth: borderWidth, + strokeDasharray: "".concat(dashLength, " ").concat(gapLength), + _css3: paused ? 'none' : spin + })), /*#__PURE__*/React__default['default'].createElement("circle", { + cx: "50%", + cy: "50%", + r: size / 2 + borderWidth / 2, + fill: "url(#".concat(instanceId, "-gradient)"), + mask: "url(#".concat(instanceId, "-mask)") + }))); +}); +LoadingRing.propTypes = { + mode: index$1.propTypes.oneOf(['two-parts', 'half-circle']), + paused: index$1.propTypes.bool +}; +LoadingRing.defaultProps = { + paused: false +}; + +exports.default = LoadingRing; +//# sourceMappingURL=LoadingRing.js.map diff --git a/packages/govern-console/public/aragon-ui/LoadingRing.js.map b/packages/govern-console/public/aragon-ui/LoadingRing.js.map new file mode 100644 index 000000000..6dc120afd --- /dev/null +++ b/packages/govern-console/public/aragon-ui/LoadingRing.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoadingRing.js","sources":["../src/components/LoadingRing/LoadingRing.js"],"sourcesContent":["import React, { useMemo, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { keyframes } from 'styled-components'\nimport { useInside } from 'use-inside'\nimport { useTheme } from '../../theme'\n\nconst spin = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`\n\nconst SIZE_SMALL = 14\nconst SIZE_MEDIUM = 24\n\nconst CONTAINER_SIZE_SMALL = 22\nconst CONTAINER_SIZE_MEDIUM = 24\n\nconst BORDER_WIDTH_STRONG = 2.5\nconst BORDER_WIDTH_MEDIUM = 1\n\nlet lastInstanceId = 1\n\nconst LoadingRing = React.memo(function LoadingRing({\n paused,\n mode: modeProp,\n ...props\n}) {\n const theme = useTheme()\n const [instanceId] = useState(() => `sync-indicator-${lastInstanceId++}`)\n const [insideFloatIndicator] = useInside('FloatIndicator')\n\n const mode = modeProp || (insideFloatIndicator ? 'half-circle' : 'two-parts')\n\n const containerSize =\n mode === 'half-circle' ? CONTAINER_SIZE_MEDIUM : CONTAINER_SIZE_SMALL\n const borderWidth =\n mode === 'half-circle' ? BORDER_WIDTH_STRONG : BORDER_WIDTH_MEDIUM\n const size = (mode === 'half-circle' ? SIZE_MEDIUM : SIZE_SMALL) - borderWidth\n\n const [gapLength, dashLength] = useMemo(() => {\n const length = Math.PI * size\n\n // Both modes display a full circle when paused.\n if (paused) {\n return [0, length]\n }\n\n if (mode === 'two-parts') {\n return [length / 4, length / 4]\n }\n\n // half-circle\n return [length / 2, length / 2]\n }, [mode, size, paused])\n\n return (\n \n \n \n \n \n \n {insideFloatIndicator && (\n \n )}\n \n \n \n \n \n \n )\n})\n\nLoadingRing.propTypes = {\n mode: PropTypes.oneOf(['two-parts', 'half-circle']),\n paused: PropTypes.bool,\n}\n\nLoadingRing.defaultProps = {\n paused: false,\n}\n\nexport default LoadingRing\n"],"names":["spin","keyframes","SIZE_SMALL","SIZE_MEDIUM","CONTAINER_SIZE_SMALL","CONTAINER_SIZE_MEDIUM","BORDER_WIDTH_STRONG","BORDER_WIDTH_MEDIUM","lastInstanceId","LoadingRing","React","memo","paused","modeProp","mode","props","theme","useTheme","useState","instanceId","useInside","insideFloatIndicator","containerSize","borderWidth","size","useMemo","length","Math","PI","gapLength","dashLength","accentEnd","accentStart","floatingContent","alpha","propTypes","PropTypes","oneOf","bool","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAMA,IAAI,GAAGC,iBAAH,gEAAV;AASA,IAAMC,UAAU,GAAG,EAAnB;AACA,IAAMC,WAAW,GAAG,EAApB;AAEA,IAAMC,oBAAoB,GAAG,EAA7B;AACA,IAAMC,qBAAqB,GAAG,EAA9B;AAEA,IAAMC,mBAAmB,GAAG,GAA5B;AACA,IAAMC,mBAAmB,GAAG,CAA5B;AAEA,IAAIC,cAAc,GAAG,CAArB;;;;;;;;;;;;;;;;;;IAEMC,WAAW,gBAAGC,yBAAK,C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AUJ,UAAV,eAJN;AAKE,IAAA,IAAI,iBAAUA,UAAV;AALN,IAxCF,CAXF,CADF;AA8DD,CA/FmB;AAiGpBV,WAAW,CAAC0B,SAAZ,GAAwB;AACtBrB,EAAAA,IAAI,EAAEsB,iBAAS,CAACC,KAAV,CAAgB,CAAC,WAAD,EAAc,aAAd,CAAhB,CADgB;AAEtBzB,EAAAA,MAAM,EAAEwB,iBAAS,CAACE;AAFI,CAAxB;AAKA7B,WAAW,CAAC8B,YAAZ,GAA2B;AACzB3B,EAAAA,MAAM,EAAE;AADiB,CAA3B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Main.js b/packages/govern-console/public/aragon-ui/Main.js new file mode 100644 index 000000000..e2925d5b8 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Main.js @@ -0,0 +1,107 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./components.js'); +var containsComponent = require('./contains-component.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +var url = require('./url.js'); +require('./constants.js'); +require('./breakpoints.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./_baseGetTag-42b4dd3e.js'); +var Viewport = require('./Viewport-819c53c9.js'); +var Layout = require('./Layout.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +require('./getDisplayName-7f913e84.js'); +var PublicUrl = require('./PublicUrl-7d4b6d6d.js'); +var ToastHub = require('./ToastHub.js'); +var Root = require('./Root-8693e46b.js'); +require('./RootPortal.js'); +var BaseStyles = require('./BaseStyles.js'); +var ScrollView = require('./ScrollView.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _initContainsComponen = containsComponent.initContainsComponent(), + ContainsAppViewProvider = _initContainsComponen.Provider, + useContainsAppView = _initContainsComponen.useContains, + useRegisterAppView = _initContainsComponen.useRegister; + +var _StyledScrollView = _styled__default['default'](ScrollView.default).withConfig({ + displayName: "Main___StyledScrollView", + componentId: "sc-1n64cjc-0" +})(["height:100vh"]); + +function Main(_ref) { + var assetsUrl = _ref.assetsUrl, + children = _ref.children, + layout = _ref.layout, + scrollView = _ref.scrollView, + theme = _ref.theme; + var containsAppView = useContainsAppView(); + + if (layout === undefined) { + layout = !containsAppView; + } + + if (scrollView === undefined) { + scrollView = !containsAppView; + } // Optionally wrap `children` with Layout and/or ScrollView + + + var content = layout ? /*#__PURE__*/React__default['default'].createElement(Layout.default, null, children) : children; + content = scrollView ? + /*#__PURE__*/ + // The main ScrollView is set to 100vh by default (best for Aragon apps) + // Disable `scrollView` and insert your own if needed. + React__default['default'].createElement(_StyledScrollView, null, content) : content; + return /*#__PURE__*/React__default['default'].createElement(Root.Root.Provider, null, /*#__PURE__*/React__default['default'].createElement(Viewport.Viewport.Provider, null, /*#__PURE__*/React__default['default'].createElement(PublicUrl.PublicUrl.Provider, { + url: url.ensureTrailingSlash(assetsUrl) + }, /*#__PURE__*/React__default['default'].createElement(Theme.Theme, { + theme: theme + }, /*#__PURE__*/React__default['default'].createElement(BaseStyles.default, null), /*#__PURE__*/React__default['default'].createElement(ToastHub.default, null, content))))); +} + +Main.propTypes = { + assetsUrl: index.propTypes.string, + children: index.propTypes.node, + layout: index.propTypes.bool, + scrollView: index.propTypes.bool, + theme: Theme.Theme.propTypes.theme +}; +Main.defaultProps = { + assetsUrl: './aragon-ui/' +}; +var Main$1 = (function (props) { + return /*#__PURE__*/React__default['default'].createElement(ContainsAppViewProvider, null, /*#__PURE__*/React__default['default'].createElement(Main, props)); +}); + +exports.default = Main$1; +exports.useContainsAppView = useContainsAppView; +exports.useRegisterAppView = useRegisterAppView; +//# sourceMappingURL=Main.js.map diff --git a/packages/govern-console/public/aragon-ui/Main.js.map b/packages/govern-console/public/aragon-ui/Main.js.map new file mode 100644 index 000000000..88f237a23 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Main.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Main.js","sources":["../src/components/Main/Main.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { ensureTrailingSlash } from '../../utils/url'\nimport { PublicUrl } from '../../providers/PublicUrl'\nimport { Root } from '../../providers/Root'\nimport { Viewport } from '../../providers/Viewport'\nimport BaseStyles from '../BaseStyles/BaseStyles'\nimport ToastHub from '../ToastHub/ToastHub'\nimport Layout from '../Layout/Layout'\nimport { Theme } from '../../theme'\nimport ScrollView from '../ScrollView/ScrollView'\nimport { initContainsComponent } from '../../utils/contains-component'\n\nconst {\n Provider: ContainsAppViewProvider,\n useContains: useContainsAppView,\n useRegister: useRegisterAppView,\n} = initContainsComponent()\n\nfunction Main({ assetsUrl, children, layout, scrollView, theme }) {\n const containsAppView = useContainsAppView()\n\n if (layout === undefined) {\n layout = !containsAppView\n }\n\n if (scrollView === undefined) {\n scrollView = !containsAppView\n }\n\n // Optionally wrap `children` with Layout and/or ScrollView\n let content = layout ? {children} : children\n content = scrollView ? (\n // The main ScrollView is set to 100vh by default (best for Aragon apps)\n // Disable `scrollView` and insert your own if needed.\n {content}\n ) : (\n content\n )\n\n return (\n \n \n \n \n \n {content}\n \n \n \n \n )\n}\n\nMain.propTypes = {\n assetsUrl: PropTypes.string,\n children: PropTypes.node,\n layout: PropTypes.bool,\n scrollView: PropTypes.bool,\n theme: Theme.propTypes.theme,\n}\n\nMain.defaultProps = {\n assetsUrl: './aragon-ui/',\n}\n\nexport { useContainsAppView, useRegisterAppView }\n\nexport default props => (\n \n
    \n \n)\n"],"names":["initContainsComponent","ContainsAppViewProvider","Provider","useContainsAppView","useContains","useRegisterAppView","useRegister","Main","assetsUrl","children","layout","scrollView","theme","containsAppView","undefined","content","React","Layout","Root","Viewport","PublicUrl","ensureTrailingSlash","Theme","BaseStyles","ToastHub","propTypes","PropTypes","string","node","bool","defaultProps","props"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAiBIA,uCAAqB;IAHbC,gDAAVC;IACaC,2CAAbC;IACaC,2CAAbC;;;;;;;AAGF,SAASC,IAAT,OAAkE;AAAA,MAAlDC,SAAkD,QAAlDA,SAAkD;AAAA,MAAvCC,QAAuC,QAAvCA,QAAuC;AAAA,MAA7BC,MAA6B,QAA7BA,MAA6B;AAAA,MAArBC,UAAqB,QAArBA,UAAqB;AAAA,MAATC,KAAS,QAATA,KAAS;AAChE,MAAMC,eAAe,GAAGV,kBAAkB,EAA1C;;AAEA,MAAIO,MAAM,KAAKI,SAAf,EAA0B;AACxBJ,IAAAA,MAAM,GAAG,CAACG,eAAV;AACD;;AAED,MAAIF,UAAU,KAAKG,SAAnB,EAA8B;AAC5BH,IAAAA,UAAU,GAAG,CAACE,eAAd;AACD,GAT+D;;;AAYhE,MAAIE,OAAO,GAAGL,MAAM,gBAAGM,wCAACC,cAAD,QAASR,QAAT,CAAH,GAAiCA,QAArD;AACAM,EAAAA,OAAO,GAAGJ,UAAU;AAAA;AAClB;AACA;AACA,mEAAiCI,OAAjC,CAHkB,GAKlBA,OALF;AAQA,sBACEC,wCAACE,SAAD,CAAM,QAAN,qBACEF,wCAACG,iBAAD,CAAU,QAAV,qBACEH,wCAACI,mBAAD,CAAW,QAAX;AAAoB,IAAA,GAAG,EAAEC,uBAAmB,CAACb,SAAD;AAA5C,kBACEQ,wCAACM,WAAD;AAAO,IAAA,KAAK,EAAEV;AAAd,kBACEI,wCAACO,kBAAD,OADF,eAEEP,wCAACQ,gBAAD,QAAWT,OAAX,CAFF,CADF,CADF,CADF,CADF;AAYD;;AAEDR,IAAI,CAACkB,SAAL,GAAiB;AACfjB,EAAAA,SAAS,EAAEkB,eAAS,CAACC,MADN;AAEflB,EAAAA,QAAQ,EAAEiB,eAAS,CAACE,IAFL;AAGflB,EAAAA,MAAM,EAAEgB,eAAS,CAACG,IAHH;AAIflB,EAAAA,UAAU,EAAEe,eAAS,CAACG,IAJP;AAKfjB,EAAAA,KAAK,EAAEU,WAAK,CAACG,SAAN,CAAgBb;AALR,CAAjB;AAQAL,IAAI,CAACuB,YAAL,GAAoB;AAClBtB,EAAAA,SAAS,EAAE;AADO,CAApB;AAMA,cAAe,UAAAuB,KAAK;AAAA,sBAClBf,wCAAC,uBAAD,qBACEA,wCAAC,IAAD,EAAUe,KAAV,CADF,CADkB;AAAA,CAApB;;;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Markdown.js b/packages/govern-console/public/aragon-ui/Markdown.js new file mode 100644 index 000000000..98c18ee40 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Markdown.js @@ -0,0 +1,115 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./constants.js'); +require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +require('./web-7cbdbd84.js'); +var Checkbox = require('./Checkbox.js'); +var Link = require('./Link.js'); +var NormalizedHtml = require('./NormalizedHtml.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +var reg = /[\'\"]/; + +var unquote = function unquote(str) { + if (!str) { + return '' + } + if (reg.test(str.charAt(0))) { + str = str.substr(1); + } + if (reg.test(str.charAt(str.length - 1))) { + str = str.substr(0, str.length - 1); + } + return str +}; + +var _extends=Object.assign||function(a){for(var b,c=1;c=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}var ATTRIBUTE_TO_JSX_PROP_MAP={accesskey:'accessKey',allowfullscreen:'allowFullScreen',allowtransparency:'allowTransparency',autocomplete:'autoComplete',autofocus:'autoFocus',autoplay:'autoPlay',cellpadding:'cellPadding',cellspacing:'cellSpacing',charset:'charSet',class:'className',classid:'classId',colspan:'colSpan',contenteditable:'contentEditable',contextmenu:'contextMenu',crossorigin:'crossOrigin',enctype:'encType',for:'htmlFor',formaction:'formAction',formenctype:'formEncType',formmethod:'formMethod',formnovalidate:'formNoValidate',formtarget:'formTarget',frameborder:'frameBorder',hreflang:'hrefLang',inputmode:'inputMode',keyparams:'keyParams',keytype:'keyType',marginheight:'marginHeight',marginwidth:'marginWidth',maxlength:'maxLength',mediagroup:'mediaGroup',minlength:'minLength',novalidate:'noValidate',radiogroup:'radioGroup',readonly:'readOnly',rowspan:'rowSpan',spellcheck:'spellCheck',srcdoc:'srcDoc',srclang:'srcLang',srcset:'srcSet',tabindex:'tabIndex',usemap:'useMap'},namedCodesToUnicode={amp:'&',apos:'\'',gt:'>',lt:'<',nbsp:'\xA0',quot:'\u201C'},DO_NOT_PROCESS_HTML_ELEMENTS=['style','script'],ATTR_EXTRACTOR_R=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,AUTOLINK_MAILTO_CHECK_R=/mailto:/i,BLOCK_END_R=/\n{2,}$/,BLOCKQUOTE_R=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,BLOCKQUOTE_TRIM_LEFT_MULTILINE_R=/^ *> ?/gm,BREAK_LINE_R=/^ {2,}\n/,BREAK_THEMATIC_R=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,CODE_BLOCK_FENCED_R=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,CODE_BLOCK_R=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,CODE_INLINE_R=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,CONSECUTIVE_NEWLINE_R=/^(?:\n *)*\n/,CR_NEWLINE_R=/\r\n?/g,FOOTNOTE_R=/^\[\^([^\]]+)](:.*)\n/,FOOTNOTE_REFERENCE_R=/^\[\^([^\]]+)]/,FORMFEED_R=/\f/g,GFM_TASK_R=/^\s*?\[(x|\s)\]/,HEADING_R=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,HEADING_SETEXT_R=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,HTML_BLOCK_ELEMENT_R=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,HTML_CHAR_CODE_R=/&([a-z]+);/g,HTML_COMMENT_R=/^/,HTML_CUSTOM_ATTR_R=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,HTML_SELF_CLOSING_ELEMENT_R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,INTERPOLATION_R=/^\{.*\}$/,LINK_AUTOLINK_BARE_URL_R=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,LINK_AUTOLINK_MAILTO_R=/^<([^ >]+@[^ >]+)>/,LINK_AUTOLINK_R=/^<([^ >]+:\/[^ >]+)>/,LIST_ITEM_END_R=/ *\n+$/,LIST_LOOKBEHIND_R=/(?:^|\n)( *)$/,CAPTURE_LETTER_AFTER_HYPHEN=/-([a-z])?/gi,NP_TABLE_R=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,PARAGRAPH_R=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,REFERENCE_IMAGE_OR_LINK=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,REFERENCE_IMAGE_R=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,REFERENCE_LINK_R=/^\[([^\]]*)\] ?\[([^\]]*)\]/,SQUARE_BRACKETS_R=/(\[|\])/g,SHOULD_RENDER_AS_BLOCK_R=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,TAB_R=/\t/g,TABLE_SEPARATOR_R=/^ *\| */,TABLE_TRIM_PIPES=/(^ *\||\| *$)/g,TABLE_CELL_END_TRIM=/ *$/,TABLE_CENTER_ALIGN=/^ *:-+: *$/,TABLE_LEFT_ALIGN=/^ *:-+ *$/,TABLE_RIGHT_ALIGN=/^ *-+: *$/,TEXT_BOLD_R=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,TEXT_EMPHASIZED_R=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,TEXT_STRIKETHROUGHED_R=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,TEXT_ESCAPED_R=/^\\([^0-9A-Za-z\s])/,TEXT_PLAIN_R=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,TRIM_NEWLINES_AND_TRAILING_WHITESPACE_R=/(^\n+|\n+$|\s+$)/g,HTML_LEFT_TRIM_AMOUNT_R=/^([ \t]*)/,UNESCAPE_URL_R=/\\([^0-9A-Z\s])/gi,LIST_ITEM_PREFIX_R=/^( *)((?:[*+-]|\d+\.)) +/,LIST_ITEM_R=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,LIST_R=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,LINK_R=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,IMAGE_R=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,BLOCK_SYNTAXES=[BLOCKQUOTE_R,CODE_BLOCK_R,CODE_BLOCK_FENCED_R,HEADING_R,HEADING_SETEXT_R,HTML_BLOCK_ELEMENT_R,HTML_COMMENT_R,HTML_SELF_CLOSING_ELEMENT_R,LIST_ITEM_R,LIST_R,NP_TABLE_R,PARAGRAPH_R];function containsBlockSyntax(a){return BLOCK_SYNTAXES.some(function(b){return b.test(a)})}function slugify(a){return a.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,'a').replace(/[çÇ]/g,'c').replace(/[ðÐ]/g,'d').replace(/[ÈÉÊËéèêë]/g,'e').replace(/[ÏïÎîÍíÌì]/g,'i').replace(/[Ññ]/g,'n').replace(/[øØœŒÕõÔôÓóÒò]/g,'o').replace(/[ÜüÛûÚúÙù]/g,'u').replace(/[ŸÿÝý]/g,'y').replace(/[^a-z0-9- ]/gi,'').replace(/ /gi,'-').toLowerCase()}function parseTableAlignCapture(a){if(TABLE_RIGHT_ALIGN.test(a))return 'right';return TABLE_CENTER_ALIGN.test(a)?'center':TABLE_LEFT_ALIGN.test(a)?'left':null}function parseTableRow(a,b,c){var d=c.inTable;c.inTable=!0;var e=b(a.trim(),c);c.inTable=d;var f=[[]];return e.forEach(function(a,b){a.type==='tableSeparator'?b!==0&&b!==e.length-1&&f.push([]):(a.type==='text'&&(e[b+1]==null||e[b+1].type==='tableSeparator')&&(a.content=a.content.replace(TABLE_CELL_END_TRIM,'')),f[f.length-1].push(a));}),f}function parseTableAlign(a){var b=a.replace(TABLE_TRIM_PIPES,'').split('|');return b.map(parseTableAlignCapture)}function parseTableCells(a,b,c){var d=a.trim().split('\n');return d.map(function(a){return parseTableRow(a,b,c)})}function parseTable(a,b,c){c.inline=!0;var d=parseTableRow(a[1],b,c),e=parseTableAlign(a[2]),f=parseTableCells(a[3],b,c);return c.inline=!1,{align:e,cells:f,header:d,type:'table'}}function getTableStyle(a,b){return a.align[b]==null?{}:{textAlign:a.align[b]}}function normalizeAttributeKey(a){var b=a.indexOf('-');return b!==-1&&a.match(HTML_CUSTOM_ATTR_R)===null&&(a=a.replace(CAPTURE_LETTER_AFTER_HYPHEN,function(a,b){return b.toUpperCase()})),a}function attributeValueToJSXPropValue(a,b){return a==='style'?b.split(/;\s?/).reduce(function(a,b){var c=b.slice(0,b.indexOf(':')),d=c.replace(/(-[a-z])/g,function(a){return a[1].toUpperCase()});return a[d]=b.slice(c.length+1).trim(),a},{}):a==='href'?sanitizeUrl(b):(b.match(INTERPOLATION_R)&&(b=b.slice(1,b.length-1)),b==='true'||b!=='false'&&b)}function normalizeWhitespace(a){return a.replace(CR_NEWLINE_R,'\n').replace(FORMFEED_R,'').replace(TAB_R,' ')}function parserFor(a){function b(d,e){for(var f=[],g='';d;)for(var l=0;l2?e-2:0),h=2;h1?f=c?d('span',{key:'outer'},e):d('div',{key:'outer'},e):e.length===1?(f=e[0],typeof f=='string'&&(f=d('span',{key:'outer'},f))):f=d('span',{key:'outer'}),f}function e(a){var b=a.match(ATTR_EXTRACTOR_R);return b?b.reduce(function(a,b,d){var e=b.indexOf('=');if(e!==-1){var f=normalizeAttributeKey(b.slice(0,e)).trim(),g=unquote(b.slice(e+1).trim()),h=ATTRIBUTE_TO_JSX_PROP_MAP[f]||f,i=a[h]=attributeValueToJSXPropValue(f,g);(HTML_BLOCK_ELEMENT_R.test(i)||HTML_SELF_CLOSING_ELEMENT_R.test(i))&&(a[h]=React__default['default'].cloneElement(c(i.trim()),{key:d}));}else b!=='style'&&(a[ATTRIBUTE_TO_JSX_PROP_MAP[b]||b]=!0);return a},{}):void 0}b=b||{},b.overrides=b.overrides||{},b.slugify=b.slugify||slugify,b.namedCodesToUnicode=b.namedCodesToUnicode?_extends({},namedCodesToUnicode,b.namedCodesToUnicode):namedCodesToUnicode;var f=b.createElement||React__default['default'].createElement;if(process.env.NODE_ENV!=='production'){if(typeof a!='string')throw new Error('markdown-to-jsx: the first argument must be\n a string');if(Object.prototype.toString.call(b.overrides)!=='[object Object]')throw new Error('markdown-to-jsx: options.overrides (second argument property) must be\n undefined or an object literal with shape:\n {\n htmltagname: {\n component: string|ReactComponent(optional),\n props: object(optional)\n }\n }')}var g=[],h={},i={blockQuote:{match:blockRegex(BLOCKQUOTE_R),order:PARSE_PRIORITY_HIGH,parse:function d(a,b,c){return {content:b(a[0].replace(BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,''),c)}},react:function e(a,b,c){return d('blockquote',{key:c.key},b(a.content,c))}},breakLine:{match:anyScopeRegex(BREAK_LINE_R),order:PARSE_PRIORITY_HIGH,parse:captureNothing,react:function e(a,b,c){return d('br',{key:c.key})}},breakThematic:{match:blockRegex(BREAK_THEMATIC_R),order:PARSE_PRIORITY_HIGH,parse:captureNothing,react:function e(a,b,c){return d('hr',{key:c.key})}},codeBlock:{match:blockRegex(CODE_BLOCK_R),order:PARSE_PRIORITY_MAX,parse:function c(a){var b=a[0].replace(/^ {4}/gm,'').replace(/\n+$/,'');return {content:b,lang:void 0}},react:function e(a,b,c){return d('pre',{key:c.key},d('code',{className:a.lang?'lang-'+a.lang:''},a.content))}},codeFenced:{match:blockRegex(CODE_BLOCK_FENCED_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return {content:a[3],lang:a[2]||void 0,type:'codeBlock'}}},codeInline:{match:simpleInlineRegex(CODE_INLINE_R),order:PARSE_PRIORITY_LOW,parse:function b(a){return {content:a[2]}},react:function e(a,b,c){return d('code',{key:c.key},a.content)}},footnote:{match:blockRegex(FOOTNOTE_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return g.push({footnote:a[2],identifier:a[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(FOOTNOTE_REFERENCE_R),order:PARSE_PRIORITY_HIGH,parse:function c(a){return {content:a[1],target:'#'+b.slugify(a[1])}},react:function e(a,b,c){return d('a',{key:c.key,href:sanitizeUrl(a.target)},d('sup',{key:c.key},a.content))}},gfmTask:{match:inlineRegex(GFM_TASK_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return {completed:a[1].toLowerCase()==='x'}},react:function e(a,b,c){return d('input',{checked:a.completed,key:c.key,readOnly:!0,type:'checkbox'})}},heading:{match:blockRegex(HEADING_R),order:PARSE_PRIORITY_HIGH,parse:function e(a,c,d){return {content:parseInline(c,a[2],d),id:b.slugify(a[2]),level:a[1].length}},react:function f(a,b,c){var e='h'+a.level;return d(e,{id:a.id,key:c.key},b(a.content,c))}},headingSetext:{match:blockRegex(HEADING_SETEXT_R),order:PARSE_PRIORITY_MAX,parse:function d(a,b,c){return {content:parseInline(b,a[1],c),level:a[2]==='='?1:2,type:'heading'}}},htmlComment:{match:anyScopeRegex(HTML_COMMENT_R),order:PARSE_PRIORITY_HIGH,parse:function a(){return {}},react:renderNothing},image:{match:simpleInlineRegex(IMAGE_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return {alt:a[1],target:unescapeUrl(a[2]),title:a[3]}},react:function e(a,b,c){return d('img',{key:c.key,alt:a.alt||void 0,title:a.title||void 0,src:sanitizeUrl(a.target)})}},link:{match:inlineRegex(LINK_R),order:PARSE_PRIORITY_LOW,parse:function d(a,b,c){return {content:parseSimpleInline(b,a[1],c),target:unescapeUrl(a[2]),title:a[3]}},react:function e(a,b,c){return d('a',{key:c.key,href:sanitizeUrl(a.target),title:a.title},b(a.content,c))}},linkAngleBraceStyleDetector:{match:inlineRegex(LINK_AUTOLINK_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return {content:[{content:a[1],type:'text'}],target:a[1],type:'link'}}},linkBareUrlDetector:{match:inlineRegex(LINK_AUTOLINK_BARE_URL_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return {content:[{content:a[1],type:'text'}],target:a[1],title:void 0,type:'link'}}},linkMailtoDetector:{match:inlineRegex(LINK_AUTOLINK_MAILTO_R),order:PARSE_PRIORITY_MAX,parse:function d(a){var b=a[1],c=a[1];return AUTOLINK_MAILTO_CHECK_R.test(c)||(c='mailto:'+c),{content:[{content:b.replace('mailto:',''),type:'text'}],target:c,type:'link'}}},list:{match:function f(a,b,c){var d=LIST_LOOKBEHIND_R.exec(c),e=b._list||!b.inline;return d&&e?(a=d[1]+a,LIST_R.exec(a)):null},order:PARSE_PRIORITY_HIGH,parse:function j(a,b,c){var d=a[2],e=d.length>1,f=e?+d:void 0,g=a[0].replace(BLOCK_END_R,'\n').match(LIST_ITEM_R),h=!1,i=g.map(function(a,d){var e=LIST_ITEM_PREFIX_R.exec(a)[0].length,f=new RegExp('^ {1,'+e+'}','gm'),i=a.replace(f,'').replace(LIST_ITEM_PREFIX_R,''),j=d===g.length-1,k=i.indexOf('\n\n')!==-1,l=k||j&&h;h=l;var m=c.inline,n=c._list;c._list=!0;var o;l?(c.inline=!1,o=i.replace(LIST_ITEM_END_R,'\n\n')):(c.inline=!0,o=i.replace(LIST_ITEM_END_R,''));var p=b(o,c);return c.inline=m,c._list=n,p});return {items:i,ordered:e,start:f}},react:function f(a,b,c){var e=a.ordered?'ol':'ul';return d(e,{key:c.key,start:a.start},a.items.map(function(a,e){return d('li',{key:e},b(a,c))}))}},newlineCoalescer:{match:blockRegex(CONSECUTIVE_NEWLINE_R),order:PARSE_PRIORITY_LOW,parse:captureNothing,react:function a(){return '\n'}},paragraph:{match:blockRegex(PARAGRAPH_R),order:PARSE_PRIORITY_LOW,parse:parseCaptureInline,react:function e(a,b,c){return d('p',{key:c.key},b(a.content,c))}},ref:{match:inlineRegex(REFERENCE_IMAGE_OR_LINK),order:PARSE_PRIORITY_MAX,parse:function b(a){return h[a[1]]={target:a[2],title:a[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(REFERENCE_IMAGE_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return {alt:a[1]||void 0,ref:a[2]}},react:function e(a,b,c){return d('img',{key:c.key,alt:a.alt,src:sanitizeUrl(h[a.ref].target),title:h[a.ref].title})}},refLink:{match:inlineRegex(REFERENCE_LINK_R),order:PARSE_PRIORITY_MAX,parse:function d(a,b,c){return {content:b(a[1],c),fallbackContent:b(a[0].replace(SQUARE_BRACKETS_R,'\\$1'),c),ref:a[2]}},react:function e(a,b,c){return h[a.ref]?d('a',{key:c.key,href:sanitizeUrl(h[a.ref].target),title:h[a.ref].title},b(a.content,c)):d('span',{key:c.key},b(a.fallbackContent,c))}},table:{match:blockRegex(NP_TABLE_R),order:PARSE_PRIORITY_HIGH,parse:parseTable,react:function f(a,b,e){return d('table',{key:e.key},d('thead',null,d('tr',null,a.header.map(function(c,f){return d('th',{key:f,style:getTableStyle(a,f)},b(c,e))}))),d('tbody',null,a.cells.map(function(c,f){return d('tr',{key:f},c.map(function(f,g){return d('td',{key:g,style:getTableStyle(a,g)},b(f,e))}))})))}},tableSeparator:{match:function c(a,b){return b.inTable?TABLE_SEPARATOR_R.exec(a):null},order:PARSE_PRIORITY_HIGH,parse:function a(){return {type:'tableSeparator'}},react:function a(){return ' | '}},text:{match:anyScopeRegex(TEXT_PLAIN_R),order:PARSE_PRIORITY_MIN,parse:function c(a){return {content:a[0].replace(HTML_CHAR_CODE_R,function(a,c){return b.namedCodesToUnicode[c]?b.namedCodesToUnicode[c]:a})}},react:function b(a){return a.content}},textBolded:{match:simpleInlineRegex(TEXT_BOLD_R),order:PARSE_PRIORITY_MED,parse:function d(a,b,c){return {content:b(a[2],c)}},react:function e(a,b,c){return d('strong',{key:c.key},b(a.content,c))}},textEmphasized:{match:simpleInlineRegex(TEXT_EMPHASIZED_R),order:PARSE_PRIORITY_LOW,parse:function d(a,b,c){return {content:b(a[2],c)}},react:function e(a,b,c){return d('em',{key:c.key},b(a.content,c))}},textEscaped:{match:simpleInlineRegex(TEXT_ESCAPED_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return {content:a[1],type:'text'}}},textStrikethroughed:{match:simpleInlineRegex(TEXT_STRIKETHROUGHED_R),order:PARSE_PRIORITY_LOW,parse:parseCaptureInline,react:function e(a,b,c){return d('del',{key:c.key},b(a.content,c))}}};b.disableParsingRawHTML!==!0&&(i.htmlBlock={match:anyScopeRegex(HTML_BLOCK_ELEMENT_R),order:PARSE_PRIORITY_HIGH,parse:function l(a,b,c){var d=a[3].match(HTML_LEFT_TRIM_AMOUNT_R),f=d[1],g=new RegExp('^'+f,'gm'),h=a[3].replace(g,''),i=containsBlockSyntax(h)?parseBlock:parseInline,j=a[1].toLowerCase(),k=DO_NOT_PROCESS_HTML_ELEMENTS.indexOf(j)!==-1;return {attrs:e(a[2]),content:k?a[3]:i(b,h,c),noInnerParse:k,tag:k?j:a[1]}},react:function e(a,b,c){return d(a.tag,_extends({key:c.key},a.attrs),a.noInnerParse?a.content:b(a.content,c))}},i.htmlSelfClosing={match:anyScopeRegex(HTML_SELF_CLOSING_ELEMENT_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return {attrs:e(a[2]||''),tag:a[1]}},react:function e(a,b,c){return d(a.tag,_extends({},a.attrs,{key:c.key}))}});var j=parserFor(i),k=reactFor(ruleOutput(i)),l=c(function(a){return a.replace(/)/g,'')}(a));return g.length&&l.props.children.push(d('footer',{key:'footer'},g.map(function(a){return d('div',{id:b.slugify(a.identifier),key:a.identifier},a.identifier,k(j(a.footnote,{inline:!0})))}))),l}function Markdown(a){var b=a.children,c=a.options,d=_objectWithoutProperties(a,['children','options']);return React__default['default'].cloneElement(compiler(b,c),d)}if(process.env.NODE_ENV!=='production'){var PropTypes=require('prop-types');Markdown.propTypes={children:PropTypes.string.isRequired,options:PropTypes.object};} + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function CustomInput(props) { + props = _objectSpread({}, props); + + if (props.type === 'checkbox') { + delete props.type; + return /*#__PURE__*/React__default['default'].createElement(Checkbox.default, props); + } + + return /*#__PURE__*/React__default['default'].createElement("input", props); +} + +CustomInput.propTypes = { + type: index.propTypes.string +}; + +function Markdown$1(_ref) { + var allowHtml = _ref.allowHtml, + className = _ref.className, + content = _ref.content, + markdownToJsxOptions = _ref.markdownToJsxOptions, + normalized = _ref.normalized, + style = _ref.style, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["allowHtml", "className", "content", "markdownToJsxOptions", "normalized", "style"]); + + var markdownToJsxOptionsBase = { + disableParsingRawHTML: !allowHtml, + overrides: { + a: Link.default, + input: CustomInput + } + }; + var markdown = /*#__PURE__*/React__default['default'].createElement("div", { + className: className, + style: style + }, /*#__PURE__*/React__default['default'].createElement(Markdown, { + options: markdownToJsxOptions ? markdownToJsxOptions(markdownToJsxOptionsBase) : markdownToJsxOptionsBase + }, content)); + return normalized ? /*#__PURE__*/React__default['default'].createElement(NormalizedHtml.default, null, markdown) : markdown; +} + +Markdown$1.propTypes = { + allowHtml: index.propTypes.bool, + className: index.propTypes.string, + content: index.propTypes.string.isRequired, + markdownToJsxOptions: index.propTypes.func, + normalized: index.propTypes.bool, + style: index.propTypes.object +}; +Markdown$1.defaultProps = { + normalized: false +}; + +exports.default = Markdown$1; +//# sourceMappingURL=Markdown.js.map diff --git a/packages/govern-console/public/aragon-ui/Markdown.js.map b/packages/govern-console/public/aragon-ui/Markdown.js.map new file mode 100644 index 000000000..f7a356c9d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Markdown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Markdown.js","sources":["../node_modules/unquote/index.js","../node_modules/markdown-to-jsx/dist/esm.js","../src/components/Markdown/Markdown.js"],"sourcesContent":["var reg = /[\\'\\\"]/\n\nmodule.exports = function unquote(str) {\n if (!str) {\n return ''\n }\n if (reg.test(str.charAt(0))) {\n str = str.substr(1)\n }\n if (reg.test(str.charAt(str.length - 1))) {\n str = str.substr(0, str.length - 1)\n }\n return str\n}\n","var _extends=Object.assign||function(a){for(var b,c=1;c=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}import React from'react';import unquote from'unquote';var ATTRIBUTE_TO_JSX_PROP_MAP={accesskey:'accessKey',allowfullscreen:'allowFullScreen',allowtransparency:'allowTransparency',autocomplete:'autoComplete',autofocus:'autoFocus',autoplay:'autoPlay',cellpadding:'cellPadding',cellspacing:'cellSpacing',charset:'charSet',class:'className',classid:'classId',colspan:'colSpan',contenteditable:'contentEditable',contextmenu:'contextMenu',crossorigin:'crossOrigin',enctype:'encType',for:'htmlFor',formaction:'formAction',formenctype:'formEncType',formmethod:'formMethod',formnovalidate:'formNoValidate',formtarget:'formTarget',frameborder:'frameBorder',hreflang:'hrefLang',inputmode:'inputMode',keyparams:'keyParams',keytype:'keyType',marginheight:'marginHeight',marginwidth:'marginWidth',maxlength:'maxLength',mediagroup:'mediaGroup',minlength:'minLength',novalidate:'noValidate',radiogroup:'radioGroup',readonly:'readOnly',rowspan:'rowSpan',spellcheck:'spellCheck',srcdoc:'srcDoc',srclang:'srcLang',srcset:'srcSet',tabindex:'tabIndex',usemap:'useMap'},namedCodesToUnicode={amp:'&',apos:'\\'',gt:'>',lt:'<',nbsp:'\\xA0',quot:'\\u201C'},DO_NOT_PROCESS_HTML_ELEMENTS=['style','script'],ATTR_EXTRACTOR_R=/([-A-Z0-9_:]+)(?:\\s*=\\s*(?:(?:\"((?:\\\\.|[^\"])*)\")|(?:'((?:\\\\.|[^'])*)')|(?:\\{((?:\\\\.|{[^}]*?}|[^}])*)\\})))?/gi,AUTOLINK_MAILTO_CHECK_R=/mailto:/i,BLOCK_END_R=/\\n{2,}$/,BLOCKQUOTE_R=/^( *>[^\\n]+(\\n[^\\n]+)*\\n*)+\\n{2,}/,BLOCKQUOTE_TRIM_LEFT_MULTILINE_R=/^ *> ?/gm,BREAK_LINE_R=/^ {2,}\\n/,BREAK_THEMATIC_R=/^(?:( *[-*_]) *){3,}(?:\\n *)+\\n/,CODE_BLOCK_FENCED_R=/^\\s*(`{3,}|~{3,}) *(\\S+)? *\\n([\\s\\S]+?)\\s*\\1 *(?:\\n *)+\\n?/,CODE_BLOCK_R=/^(?: {4}[^\\n]+\\n*)+(?:\\n *)+\\n?/,CODE_INLINE_R=/^(`+)\\s*([\\s\\S]*?[^`])\\s*\\1(?!`)/,CONSECUTIVE_NEWLINE_R=/^(?:\\n *)*\\n/,CR_NEWLINE_R=/\\r\\n?/g,FOOTNOTE_R=/^\\[\\^([^\\]]+)](:.*)\\n/,FOOTNOTE_REFERENCE_R=/^\\[\\^([^\\]]+)]/,FORMFEED_R=/\\f/g,GFM_TASK_R=/^\\s*?\\[(x|\\s)\\]/,HEADING_R=/^ *(#{1,6}) *([^\\n]+)\\n{0,2}/,HEADING_SETEXT_R=/^([^\\n]+)\\n *(=|-){3,} *(?:\\n *)+\\n/,HTML_BLOCK_ELEMENT_R=/^ *(?!<[a-z][^ >/]* ?\\/>)<([a-z][^ >/]*) ?([^>]*)\\/{0}>\\n?(\\s*(?:<\\1[^>]*?>[\\s\\S]*?<\\/\\1>|(?!<\\1)[\\s\\S])*?)<\\/\\1>\\n*/i,HTML_CHAR_CODE_R=/&([a-z]+);/g,HTML_COMMENT_R=/^/,HTML_CUSTOM_ATTR_R=/^(data|aria|x)-[a-z_][a-z\\d_.-]*$/,HTML_SELF_CLOSING_ELEMENT_R=/^ *<([a-z][a-z0-9:]*)(?:\\s+((?:<.*?>|[^>])*))?\\/?>(?!<\\/\\1>)(\\s*\\n)?/i,INTERPOLATION_R=/^\\{.*\\}$/,LINK_AUTOLINK_BARE_URL_R=/^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,LINK_AUTOLINK_MAILTO_R=/^<([^ >]+@[^ >]+)>/,LINK_AUTOLINK_R=/^<([^ >]+:\\/[^ >]+)>/,LIST_ITEM_END_R=/ *\\n+$/,LIST_LOOKBEHIND_R=/(?:^|\\n)( *)$/,CAPTURE_LETTER_AFTER_HYPHEN=/-([a-z])?/gi,NP_TABLE_R=/^(.*\\|?.*)\\n *(\\|? *[-:]+ *\\|[-| :]*)\\n((?:.*\\|.*\\n)*)\\n?/,PARAGRAPH_R=/^((?:[^\\n]|\\n(?! *\\n))+)(?:\\n *)+\\n/,REFERENCE_IMAGE_OR_LINK=/^\\[([^\\]]*)\\]:\\s*(\\S+)\\s*(\"([^\"]*)\")?/,REFERENCE_IMAGE_R=/^!\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,REFERENCE_LINK_R=/^\\[([^\\]]*)\\] ?\\[([^\\]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\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)/,LINK_INSIDE='(?:\\\\[[^\\\\]]*\\\\]|[^\\\\[\\\\]]|\\\\](?=[^\\\\[]*\\\\]))*',LINK_HREF_AND_TITLE='\\\\s*?(?:\\\\s+[\\'\"]([\\\\s\\\\S]*?)[\\'\"])?\\\\s*',LINK_R=/^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)/,IMAGE_R=/^!\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)/,BLOCK_SYNTAXES=[BLOCKQUOTE_R,CODE_BLOCK_R,CODE_BLOCK_FENCED_R,HEADING_R,HEADING_SETEXT_R,HTML_BLOCK_ELEMENT_R,HTML_COMMENT_R,HTML_SELF_CLOSING_ELEMENT_R,LIST_ITEM_R,LIST_R,NP_TABLE_R,PARAGRAPH_R];function containsBlockSyntax(a){return BLOCK_SYNTAXES.some(function(b){return b.test(a)})}function slugify(a){return a.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,'a').replace(/[çÇ]/g,'c').replace(/[ðÐ]/g,'d').replace(/[ÈÉÊËéèêë]/g,'e').replace(/[ÏïÎîÍíÌì]/g,'i').replace(/[Ññ]/g,'n').replace(/[øØœŒÕõÔôÓóÒò]/g,'o').replace(/[ÜüÛûÚúÙù]/g,'u').replace(/[ŸÿÝý]/g,'y').replace(/[^a-z0-9- ]/gi,'').replace(/ /gi,'-').toLowerCase()}function parseTableAlignCapture(a){if(TABLE_RIGHT_ALIGN.test(a))return'right';return TABLE_CENTER_ALIGN.test(a)?'center':TABLE_LEFT_ALIGN.test(a)?'left':null}function parseTableRow(a,b,c){var d=c.inTable;c.inTable=!0;var e=b(a.trim(),c);c.inTable=d;var f=[[]];return e.forEach(function(a,b){a.type==='tableSeparator'?b!==0&&b!==e.length-1&&f.push([]):(a.type==='text'&&(e[b+1]==null||e[b+1].type==='tableSeparator')&&(a.content=a.content.replace(TABLE_CELL_END_TRIM,'')),f[f.length-1].push(a))}),f}function parseTableAlign(a){var b=a.replace(TABLE_TRIM_PIPES,'').split('|');return b.map(parseTableAlignCapture)}function parseTableCells(a,b,c){var d=a.trim().split('\\n');return d.map(function(a){return parseTableRow(a,b,c)})}function parseTable(a,b,c){c.inline=!0;var d=parseTableRow(a[1],b,c),e=parseTableAlign(a[2],b,c),f=parseTableCells(a[3],b,c);return c.inline=!1,{align:e,cells:f,header:d,type:'table'}}function getTableStyle(a,b){return a.align[b]==null?{}:{textAlign:a.align[b]}}function normalizeAttributeKey(a){var b=a.indexOf('-');return b!==-1&&a.match(HTML_CUSTOM_ATTR_R)===null&&(a=a.replace(CAPTURE_LETTER_AFTER_HYPHEN,function(a,b){return b.toUpperCase()})),a}function attributeValueToJSXPropValue(a,b){return a==='style'?b.split(/;\\s?/).reduce(function(a,b){var c=b.slice(0,b.indexOf(':')),d=c.replace(/(-[a-z])/g,function(a){return a[1].toUpperCase()});return a[d]=b.slice(c.length+1).trim(),a},{}):a==='href'?sanitizeUrl(b):(b.match(INTERPOLATION_R)&&(b=b.slice(1,b.length-1)),b==='true'||b!=='false'&&b)}function normalizeWhitespace(a){return a.replace(CR_NEWLINE_R,'\\n').replace(FORMFEED_R,'').replace(TAB_R,' ')}function parserFor(a){function b(d,e){for(var f=[],g='';d;)for(var l=0;l2?e-2:0),h=2;h1?f=c?d('span',{key:'outer'},e):d('div',{key:'outer'},e):e.length===1?(f=e[0],typeof f=='string'&&(f=d('span',{key:'outer'},f))):f=d('span',{key:'outer'}),f}function e(a){var b=a.match(ATTR_EXTRACTOR_R);return b?b.reduce(function(a,b,d){var e=b.indexOf('=');if(e!==-1){var f=normalizeAttributeKey(b.slice(0,e)).trim(),g=unquote(b.slice(e+1).trim()),h=ATTRIBUTE_TO_JSX_PROP_MAP[f]||f,i=a[h]=attributeValueToJSXPropValue(f,g);(HTML_BLOCK_ELEMENT_R.test(i)||HTML_SELF_CLOSING_ELEMENT_R.test(i))&&(a[h]=React.cloneElement(c(i.trim()),{key:d}))}else b!=='style'&&(a[ATTRIBUTE_TO_JSX_PROP_MAP[b]||b]=!0);return a},{}):void 0}b=b||{},b.overrides=b.overrides||{},b.slugify=b.slugify||slugify,b.namedCodesToUnicode=b.namedCodesToUnicode?_extends({},namedCodesToUnicode,b.namedCodesToUnicode):namedCodesToUnicode;var f=b.createElement||React.createElement;if(process.env.NODE_ENV!=='production'){if(typeof a!='string')throw new Error('markdown-to-jsx: the first argument must be\\n a string');if(Object.prototype.toString.call(b.overrides)!=='[object Object]')throw new Error('markdown-to-jsx: options.overrides (second argument property) must be\\n undefined or an object literal with shape:\\n {\\n htmltagname: {\\n component: string|ReactComponent(optional),\\n props: object(optional)\\n }\\n }')}var g=[],h={},i={blockQuote:{match:blockRegex(BLOCKQUOTE_R),order:PARSE_PRIORITY_HIGH,parse:function d(a,b,c){return{content:b(a[0].replace(BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,''),c)}},react:function e(a,b,c){return d('blockquote',{key:c.key},b(a.content,c))}},breakLine:{match:anyScopeRegex(BREAK_LINE_R),order:PARSE_PRIORITY_HIGH,parse:captureNothing,react:function e(a,b,c){return d('br',{key:c.key})}},breakThematic:{match:blockRegex(BREAK_THEMATIC_R),order:PARSE_PRIORITY_HIGH,parse:captureNothing,react:function e(a,b,c){return d('hr',{key:c.key})}},codeBlock:{match:blockRegex(CODE_BLOCK_R),order:PARSE_PRIORITY_MAX,parse:function c(a){var b=a[0].replace(/^ {4}/gm,'').replace(/\\n+$/,'');return{content:b,lang:void 0}},react:function e(a,b,c){return d('pre',{key:c.key},d('code',{className:a.lang?'lang-'+a.lang:''},a.content))}},codeFenced:{match:blockRegex(CODE_BLOCK_FENCED_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:a[3],lang:a[2]||void 0,type:'codeBlock'}}},codeInline:{match:simpleInlineRegex(CODE_INLINE_R),order:PARSE_PRIORITY_LOW,parse:function b(a){return{content:a[2]}},react:function e(a,b,c){return d('code',{key:c.key},a.content)}},footnote:{match:blockRegex(FOOTNOTE_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return g.push({footnote:a[2],identifier:a[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(FOOTNOTE_REFERENCE_R),order:PARSE_PRIORITY_HIGH,parse:function c(a){return{content:a[1],target:'#'+b.slugify(a[1])}},react:function e(a,b,c){return d('a',{key:c.key,href:sanitizeUrl(a.target)},d('sup',{key:c.key},a.content))}},gfmTask:{match:inlineRegex(GFM_TASK_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{completed:a[1].toLowerCase()==='x'}},react:function e(a,b,c){return d('input',{checked:a.completed,key:c.key,readOnly:!0,type:'checkbox'})}},heading:{match:blockRegex(HEADING_R),order:PARSE_PRIORITY_HIGH,parse:function e(a,c,d){return{content:parseInline(c,a[2],d),id:b.slugify(a[2]),level:a[1].length}},react:function f(a,b,c){var e='h'+a.level;return d(e,{id:a.id,key:c.key},b(a.content,c))}},headingSetext:{match:blockRegex(HEADING_SETEXT_R),order:PARSE_PRIORITY_MAX,parse:function d(a,b,c){return{content:parseInline(b,a[1],c),level:a[2]==='='?1:2,type:'heading'}}},htmlComment:{match:anyScopeRegex(HTML_COMMENT_R),order:PARSE_PRIORITY_HIGH,parse:function a(){return{}},react:renderNothing},image:{match:simpleInlineRegex(IMAGE_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{alt:a[1],target:unescapeUrl(a[2]),title:a[3]}},react:function e(a,b,c){return d('img',{key:c.key,alt:a.alt||void 0,title:a.title||void 0,src:sanitizeUrl(a.target)})}},link:{match:inlineRegex(LINK_R,!1),order:PARSE_PRIORITY_LOW,parse:function d(a,b,c){return{content:parseSimpleInline(b,a[1],c),target:unescapeUrl(a[2]),title:a[3]}},react:function e(a,b,c){return d('a',{key:c.key,href:sanitizeUrl(a.target),title:a.title},b(a.content,c))}},linkAngleBraceStyleDetector:{match:inlineRegex(LINK_AUTOLINK_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:[{content:a[1],type:'text'}],target:a[1],type:'link'}}},linkBareUrlDetector:{match:inlineRegex(LINK_AUTOLINK_BARE_URL_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:[{content:a[1],type:'text'}],target:a[1],title:void 0,type:'link'}}},linkMailtoDetector:{match:inlineRegex(LINK_AUTOLINK_MAILTO_R),order:PARSE_PRIORITY_MAX,parse:function d(a){var b=a[1],c=a[1];return AUTOLINK_MAILTO_CHECK_R.test(c)||(c='mailto:'+c),{content:[{content:b.replace('mailto:',''),type:'text'}],target:c,type:'link'}}},list:{match:function f(a,b,c){var d=LIST_LOOKBEHIND_R.exec(c),e=b._list||!b.inline;return d&&e?(a=d[1]+a,LIST_R.exec(a)):null},order:PARSE_PRIORITY_HIGH,parse:function j(a,b,c){var d=a[2],e=d.length>1,f=e?+d:void 0,g=a[0].replace(BLOCK_END_R,'\\n').match(LIST_ITEM_R),h=!1,i=g.map(function(a,d){var e=LIST_ITEM_PREFIX_R.exec(a)[0].length,f=new RegExp('^ {1,'+e+'}','gm'),i=a.replace(f,'').replace(LIST_ITEM_PREFIX_R,''),j=d===g.length-1,k=i.indexOf('\\n\\n')!==-1,l=k||j&&h;h=l;var m=c.inline,n=c._list;c._list=!0;var o;l?(c.inline=!1,o=i.replace(LIST_ITEM_END_R,'\\n\\n')):(c.inline=!0,o=i.replace(LIST_ITEM_END_R,''));var p=b(o,c);return c.inline=m,c._list=n,p});return{items:i,ordered:e,start:f}},react:function f(a,b,c){var e=a.ordered?'ol':'ul';return d(e,{key:c.key,start:a.start},a.items.map(function(a,e){return d('li',{key:e},b(a,c))}))}},newlineCoalescer:{match:blockRegex(CONSECUTIVE_NEWLINE_R),order:PARSE_PRIORITY_LOW,parse:captureNothing,react:function a(){return'\\n'}},paragraph:{match:blockRegex(PARAGRAPH_R),order:PARSE_PRIORITY_LOW,parse:parseCaptureInline,react:function e(a,b,c){return d('p',{key:c.key},b(a.content,c))}},ref:{match:inlineRegex(REFERENCE_IMAGE_OR_LINK),order:PARSE_PRIORITY_MAX,parse:function b(a){return h[a[1]]={target:a[2],title:a[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(REFERENCE_IMAGE_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{alt:a[1]||void 0,ref:a[2]}},react:function e(a,b,c){return d('img',{key:c.key,alt:a.alt,src:sanitizeUrl(h[a.ref].target),title:h[a.ref].title})}},refLink:{match:inlineRegex(REFERENCE_LINK_R),order:PARSE_PRIORITY_MAX,parse:function d(a,b,c){return{content:b(a[1],c),fallbackContent:b(a[0].replace(SQUARE_BRACKETS_R,'\\\\$1'),c),ref:a[2]}},react:function e(a,b,c){return h[a.ref]?d('a',{key:c.key,href:sanitizeUrl(h[a.ref].target),title:h[a.ref].title},b(a.content,c)):d('span',{key:c.key},b(a.fallbackContent,c))}},table:{match:blockRegex(NP_TABLE_R),order:PARSE_PRIORITY_HIGH,parse:parseTable,react:function f(a,b,e){return d('table',{key:e.key},d('thead',null,d('tr',null,a.header.map(function(c,f){return d('th',{key:f,style:getTableStyle(a,f)},b(c,e))}))),d('tbody',null,a.cells.map(function(c,f){return d('tr',{key:f},c.map(function(f,g){return d('td',{key:g,style:getTableStyle(a,g)},b(f,e))}))})))}},tableSeparator:{match:function c(a,b){return b.inTable?TABLE_SEPARATOR_R.exec(a):null},order:PARSE_PRIORITY_HIGH,parse:function a(){return{type:'tableSeparator'}},react:function a(){return' | '}},text:{match:anyScopeRegex(TEXT_PLAIN_R),order:PARSE_PRIORITY_MIN,parse:function c(a){return{content:a[0].replace(HTML_CHAR_CODE_R,function(a,c){return b.namedCodesToUnicode[c]?b.namedCodesToUnicode[c]:a})}},react:function b(a){return a.content}},textBolded:{match:simpleInlineRegex(TEXT_BOLD_R),order:PARSE_PRIORITY_MED,parse:function d(a,b,c){return{content:b(a[2],c)}},react:function e(a,b,c){return d('strong',{key:c.key},b(a.content,c))}},textEmphasized:{match:simpleInlineRegex(TEXT_EMPHASIZED_R),order:PARSE_PRIORITY_LOW,parse:function d(a,b,c){return{content:b(a[2],c)}},react:function e(a,b,c){return d('em',{key:c.key},b(a.content,c))}},textEscaped:{match:simpleInlineRegex(TEXT_ESCAPED_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{content:a[1],type:'text'}}},textStrikethroughed:{match:simpleInlineRegex(TEXT_STRIKETHROUGHED_R),order:PARSE_PRIORITY_LOW,parse:parseCaptureInline,react:function e(a,b,c){return d('del',{key:c.key},b(a.content,c))}}};b.disableParsingRawHTML!==!0&&(i.htmlBlock={match:anyScopeRegex(HTML_BLOCK_ELEMENT_R),order:PARSE_PRIORITY_HIGH,parse:function l(a,b,c){var d=a[3].match(HTML_LEFT_TRIM_AMOUNT_R),f=d[1],g=new RegExp('^'+f,'gm'),h=a[3].replace(g,''),i=containsBlockSyntax(h)?parseBlock:parseInline,j=a[1].toLowerCase(),k=DO_NOT_PROCESS_HTML_ELEMENTS.indexOf(j)!==-1;return{attrs:e(a[2]),content:k?a[3]:i(b,h,c),noInnerParse:k,tag:k?j:a[1]}},react:function e(a,b,c){return d(a.tag,_extends({key:c.key},a.attrs),a.noInnerParse?a.content:b(a.content,c))}},i.htmlSelfClosing={match:anyScopeRegex(HTML_SELF_CLOSING_ELEMENT_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{attrs:e(a[2]||''),tag:a[1]}},react:function e(a,b,c){return d(a.tag,_extends({},a.attrs,{key:c.key}))}});var j=parserFor(i),k=reactFor(ruleOutput(i)),l=c(function(a){return a.replace(/)/g,'')}(a));return g.length&&l.props.children.push(d('footer',{key:'footer'},g.map(function(a){return d('div',{id:b.slugify(a.identifier),key:a.identifier},a.identifier,k(j(a.footnote,{inline:!0})))}))),l}export default function Markdown(a){var b=a.children,c=a.options,d=_objectWithoutProperties(a,['children','options']);return React.cloneElement(compiler(b,c),d)}if(process.env.NODE_ENV!=='production'){var PropTypes=require('prop-types');Markdown.propTypes={children:PropTypes.string.isRequired,options:PropTypes.object}}\n\n//# sourceMappingURL=esm.js.map","import React from 'react'\nimport PropTypes from 'prop-types'\nimport MarkdownToJsx from 'markdown-to-jsx'\nimport Checkbox from '../Input/Checkbox'\nimport Link from '../Link/Link'\nimport NormalizedHtml from './NormalizedHtml'\n\nfunction CustomInput(props) {\n props = { ...props }\n if (props.type === 'checkbox') {\n delete props.type\n return \n }\n return \n}\nCustomInput.propTypes = { type: PropTypes.string }\n\nfunction Markdown({\n allowHtml,\n className,\n content,\n markdownToJsxOptions,\n normalized,\n style,\n ...props\n}) {\n const markdownToJsxOptionsBase = {\n disableParsingRawHTML: !allowHtml,\n overrides: { a: Link, input: CustomInput },\n }\n\n const markdown = (\n
    \n \n {content}\n \n
    \n )\n\n return normalized ? {markdown} : markdown\n}\n\nMarkdown.propTypes = {\n allowHtml: PropTypes.bool,\n className: PropTypes.string,\n content: PropTypes.string.isRequired,\n markdownToJsxOptions: PropTypes.func,\n normalized: PropTypes.bool,\n style: PropTypes.object,\n}\n\nMarkdown.defaultProps = {\n normalized: false,\n}\n\nexport default Markdown\n"],"names":["React","CustomInput","props","type","Checkbox","propTypes","PropTypes","string","Markdown","allowHtml","className","content","markdownToJsxOptions","normalized","style","markdownToJsxOptionsBase","disableParsingRawHTML","overrides","a","Link","input","markdown","MarkdownToJsx","NormalizedHtml","bool","isRequired","func","object","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,GAAG,GAAG,SAAQ;AAClB;AACA,WAAc,GAAG,SAAS,OAAO,CAAC,GAAG,EAAE;AACvC,EAAE,IAAI,CAAC,GAAG,EAAE;AACZ,IAAI,OAAO,EAAE;AACb,GAAG;AACH,EAAE,IAAI,GAAG,CAAC,IAAI,C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,oBAIC;AAAA,MAHDC,UAGC,QAHDA,UAGC;AAAA,MAFDC,KAEC,QAFDA,KAEC;AAAA,MADEZ,KACF;;AACD,MAAMa,wBAAwB,GAAG;AAC/BC,IAAAA,qBAAqB,EAAE,CAACP,SADO;AAE/BQ,IAAAA,SAAS,EAAE;AAAEC,MAAAA,CAAC,EAAEC,YAAL;AAAWC,MAAAA,KAAK,EAAEnB;AAAlB;AAFoB,GAAjC;AAKA,MAAMoB,QAAQ,gBACZrB;AAAK,IAAA,SAAS,EAAEU,SAAhB;AAA2B,IAAA,KAAK,EAAEI;AAAlC,kBACEd,wCAACsB,QAAD;AACE,IAAA,OAAO,EACLV,oBAAoB,GAChBA,oBAAoB,CAACG,wBAAD,CADJ,GAEhBA;AAJR,KAOGJ,OAPH,CADF,CADF;AAcA,SAAOE,UAAU,gBAAGb,wCAACuB,sBAAD,QAAiBF,QAAjB,CAAH,GAAiDA,QAAlE;AACD;;AAEDb,UAAQ,CAACH,SAAT,GAAqB;AACnBI,EAAAA,SAAS,EAAEH,eAAS,CAACkB,IADF;AAEnBd,EAAAA,SAAS,EAAEJ,eAAS,CAACC,MAFF;AAGnBI,EAAAA,OAAO,EAAEL,eAAS,CAACC,MAAV,CAAiBkB,UAHP;AAInBb,EAAAA,oBAAoB,EAAEN,eAAS,CAACoB,IAJb;AAKnBb,EAAAA,UAAU,EAAEP,eAAS,CAACkB,IALH;AAMnBV,EAAAA,KAAK,EAAER,eAAS,CAACqB;AANE,CAArB;AASAnB,UAAQ,CAACoB,YAAT,GAAwB;AACtBf,EAAAA,UAAU,EAAE;AADU,CAAxB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Modal.js b/packages/govern-console/public/aragon-ui/Modal.js new file mode 100644 index 000000000..a375cbbde --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Modal.js @@ -0,0 +1,195 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +var css = require('./css.js'); +var miscellaneous = require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./breakpoints.js'); +var springs = require('./springs.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./_baseGetTag-42b4dd3e.js'); +var Viewport = require('./Viewport-819c53c9.js'); +require('./Layout.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +var IconCross = require('./IconCross.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); +require('./Button.js'); +var ButtonIcon = require('./ButtonIcon.js'); +require('./Root-8693e46b.js'); +var RootPortal = require('./RootPortal.js'); +var EscapeOutside = require('./EscapeOutside.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +var SPACE_AROUND = 4 * constants.GU; + +var _StyledAnimatedDiv = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "Modal___StyledAnimatedDiv", + componentId: "sc-1ofisn3-0" +})(["position:fixed;top:0;left:0;right:0;bottom:0;background:", ";"], function (p) { + return p._css; +}); + +var _StyledAnimatedDiv2 = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "Modal___StyledAnimatedDiv2", + componentId: "sc-1ofisn3-1" +})(["position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;display:grid;align-items:center;justify-content:center;overflow:auto;"]); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "Modal___StyledDiv", + componentId: "sc-1ofisn3-2" +})(["padding:", "px 0;"], SPACE_AROUND); + +var _StyledEscapeOutside = _styled__default['default'](EscapeOutside.default).withConfig({ + displayName: "Modal___StyledEscapeOutside", + componentId: "sc-1ofisn3-3" +})(["position:relative;overflow:hidden;min-width:", "px;background:", ";box-shadow:0 10px 28px rgba(0,0,0,0.15);"], function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +var _StyledButtonIcon = _styled__default['default'](ButtonIcon.default).withConfig({ + displayName: "Modal___StyledButtonIcon", + componentId: "sc-1ofisn3-4" +})(["position:absolute;z-index:2;top:", "px;right:", "px;"], function (p) { + return p._css4; +}, function (p) { + return p._css5; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "Modal___StyledDiv2", + componentId: "sc-1ofisn3-5" +})(["position:relative;z-index:1;"]); + +function Modal(_ref) { + var children = _ref.children, + onClose = _ref.onClose, + onClosed = _ref.onClosed, + padding = _ref.padding, + visible = _ref.visible, + width = _ref.width, + closeButton = _ref.closeButton, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["children", "onClose", "onClosed", "padding", "visible", "width", "closeButton"]); + + var theme = Theme.useTheme(); + var viewport = Viewport.useViewport(); + return /*#__PURE__*/React__default['default'].createElement(RootPortal.default, null, /*#__PURE__*/React__default['default'].createElement(web.Transition, { + native: true, + items: visible, + from: { + opacity: 0, + scale: 0.98 + }, + enter: { + opacity: 1, + scale: 1 + }, + leave: { + opacity: 0, + scale: 0.98 + }, + config: _objectSpread(_objectSpread({}, springs.springs.smooth), {}, { + precision: 0.001 + }), + onDestroyed: function onDestroyed(destroyed) { + destroyed && onClosed(); + } + }, function (show) { + return show && + /* eslint-disable react/prop-types */ + function (_ref2) { + var opacity = _ref2.opacity, + scale = _ref2.scale; + return /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedDiv, _extends._extends_1({ + style: { + opacity: opacity + } + }, props, { + _css: theme.overlay.alpha(0.9) + }), /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedDiv2, { + style: { + pointerEvents: visible ? 'auto' : 'none', + transform: scale.interpolate(function (v) { + return "scale3d(".concat(v, ", ").concat(v, ", 1)"); + }) + } + }, /*#__PURE__*/React__default['default'].createElement(_StyledDiv, null, /*#__PURE__*/React__default['default'].createElement(_StyledEscapeOutside, { + role: "alertdialog", + useCapture: true, + background: theme.surface, + onEscapeOutside: onClose, + style: { + width: css.cssPx(typeof width === 'function' ? width(viewport) : width), + borderRadius: "".concat(constants.RADIUS, "px") + }, + _css2: 360 - SPACE_AROUND * 2, + _css3: theme.surface + }, closeButton && /*#__PURE__*/React__default['default'].createElement(_StyledButtonIcon, { + label: "Close", + onClick: onClose, + _css4: 2 * constants.GU, + _css5: 2 * constants.GU + }, /*#__PURE__*/React__default['default'].createElement(IconCross.default, null)), /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + style: { + padding: css.cssPx(typeof padding === 'function' ? padding(viewport) : padding) + } + }, children))))); + }; + } + /* eslint-enable react/prop-types */ + )); +} + +Modal.propTypes = { + children: index.propTypes.node.isRequired, + closeButton: index.propTypes.bool, + onClose: index.propTypes.func, + onClosed: index.propTypes.func, + padding: index.propTypes.oneOfType([index.propTypes.func, index.propTypes.number, index.propTypes.string]), + visible: index.propTypes.bool.isRequired, + width: index.propTypes.oneOfType([index.propTypes.func, index.propTypes.number, index.propTypes.string]) +}; +Modal.defaultProps = { + closeButton: true, + onClose: miscellaneous.noop, + onClosed: miscellaneous.noop, + padding: 3 * constants.GU, + width: function width(viewport) { + return Math.min(viewport.width - SPACE_AROUND * 2, 600); + } +}; + +exports.default = Modal; +//# sourceMappingURL=Modal.js.map diff --git a/packages/govern-console/public/aragon-ui/Modal.js.map b/packages/govern-console/public/aragon-ui/Modal.js.map new file mode 100644 index 000000000..2844a47fe --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Modal.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Modal.js","sources":["../src/components/Modal/Modal.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Transition, animated } from 'react-spring'\nimport { cssPx, noop } from '../../utils'\nimport { springs, GU, RADIUS } from '../../style'\nimport { useTheme } from '../../theme'\nimport { useViewport } from '../../providers/Viewport'\nimport { IconCross } from '../../icons'\nimport ButtonIcon from '../Button/ButtonIcon'\nimport EscapeOutside from '../EscapeOutside/EscapeOutside'\nimport RootPortal from '../RootPortal/RootPortal'\n\nconst SPACE_AROUND = 4 * GU\n\nfunction Modal({\n children,\n onClose,\n onClosed,\n padding,\n visible,\n width,\n closeButton,\n ...props\n}) {\n const theme = useTheme()\n const viewport = useViewport()\n\n return (\n \n {\n destroyed && onClosed()\n }}\n >\n {show =>\n show &&\n /* eslint-disable react/prop-types */\n (({ opacity, scale }) => (\n \n `scale3d(${v}, ${v}, 1)`),\n }}\n >\n \n \n {closeButton && (\n \n \n \n )}\n \n {children}\n \n \n \n \n \n ))\n /* eslint-enable react/prop-types */\n }\n \n \n )\n}\n\nModal.propTypes = {\n children: PropTypes.node.isRequired,\n closeButton: PropTypes.bool,\n onClose: PropTypes.func,\n onClosed: PropTypes.func,\n padding: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.number,\n PropTypes.string,\n ]),\n visible: PropTypes.bool.isRequired,\n width: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.number,\n PropTypes.string,\n ]),\n}\n\nModal.defaultProps = {\n closeButton: true,\n onClose: noop,\n onClosed: noop,\n padding: 3 * GU,\n width: viewport => Math.min(viewport.width - SPACE_AROUND * 2, 600),\n}\n\nexport default Modal\n"],"names":["SPACE_AROUND","GU","Modal","children","onClose","onClosed","padding","visible","width","closeButton","props","theme","useTheme","viewport","useViewport","React","RootPortal","Transition","opacity","scale","springs","smooth","precision","destroyed","show","overlay","alpha","pointerEvents","transform","interpolate","v","surface","cssPx","borderRadius","RADIUS","IconCross","propTypes","PropTypes","node","isRequired","bool","func","oneOfType","number","string","defaultProps","noop","Math","min"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAMA,YAAY,GAAG,IAAIC,YAAzB;;;;;;;;;;;;;;;;;0BAgE+BD;;;;;;;;;;;;;;;;;;;;;;;;;AA9D/B,SAASE,KAAT,OASG;AAAA,MARDC,QAQC,QARDA,QAQC;AAAA,MAPDC,OAOC,QAPDA,OAOC;AAAA,MANDC,QAMC,QANDA,QAMC;AAAA,MALDC,OAKC,QALDA,OAKC;AAAA,MAJDC,OAIC,QAJDA,OAIC;AAAA,MAHDC,KAGC,QAHDA,KAGC;AAAA,MAFDC,WAEC,QAFDA,WAEC;AAAA,MADEC,KACF;;AACD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AACA,MAAMC,QAAQ,GAAGC,oBAAW,EAA5B;AAEA,sBACEC,wCAACC,kBAAD,qBACED,wCAACE,cAAD;AACE,IAAA,MAAM,MADR;AAEE,IAAA,KAAK,EAAEV,OAFT;AAGE,IAAA,IAAI,EAAE;AAAEW,MAAAA,OAAO,EAAE,CAAX;AAAcC,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AEyC,kBAHS;AAInBxC,EAAAA,OAAO,EAAE,IAAIL,YAJM;AAKnBO,EAAAA,KAAK,EAAE,eAAAK,QAAQ;AAAA,WAAIkC,IAAI,CAACC,GAAL,CAASnC,QAAQ,CAACL,KAAT,GAAiBR,YAAY,GAAG,CAAzC,EAA4C,GAA5C,CAAJ;AAAA;AALI,CAArB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/MonthDay-2e515f76.js b/packages/govern-console/public/aragon-ui/MonthDay-2e515f76.js new file mode 100644 index 000000000..fc748fc7c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/MonthDay-2e515f76.js @@ -0,0 +1,195 @@ +'use strict'; + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +var React = require('react'); +var index = require('./index-46d0e707.js'); +var _styled = require('styled-components'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var ButtonBase = require('./ButtonBase.js'); +var IconLeft = require('./IconLeft.js'); +var IconRight = require('./IconRight.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var HoverIndicator = _styled__default['default'].span.withConfig({ + displayName: "components__HoverIndicator", + componentId: "lxakqh-0" +})(["width:100%;height:100%;position:absolute;border-radius:50%;", ""], function (_ref) { + var theme = _ref.theme, + selected = _ref.selected; + return _styled.css(["background:", ";border:2px solid ", ";"], selected ? theme.selected : theme.surface, theme.accent); +}); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "components___StyledButtonBase", + componentId: "lxakqh-1" +})(["font-size:9px;padding:5px 4px 0 4px;margin-top:-4px;color:", ";&:hover{color:inherit;}"], function (p) { + return p._css; +}); + +var ArrowButton = function ArrowButton(props) { + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, _extends._extends_1({ + focusRingRadius: constants.GU * 2 + }, props, { + _css: theme.hint + })); +}; + +var SelectorWrapper = _styled__default['default'].div.withConfig({ + displayName: "components__SelectorWrapper", + componentId: "lxakqh-2" +})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:", "px;span{", "}"], 1 * constants.GU, function (_ref2) { + var small = _ref2.small, + theme = _ref2.theme; + return _styled.css(["", ";", ""], textStyles.textStyle(small ? 'label2' : 'body2'), small && _styled.css(["color:", ";font-weight:600;"], theme.hint)); +}); // eslint-disable-next-line react/prop-types + +function Selector(_ref3) { + var prev = _ref3.prev, + next = _ref3.next, + children = _ref3.children, + small = _ref3.small; + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(SelectorWrapper, { + small: small, + theme: theme + }, /*#__PURE__*/React__default['default'].createElement(ArrowButton, { + onClick: prev + }, /*#__PURE__*/React__default['default'].createElement(IconLeft.default, { + size: "small" + })), /*#__PURE__*/React__default['default'].createElement("span", null, children), /*#__PURE__*/React__default['default'].createElement(ArrowButton, { + onClick: next + }, /*#__PURE__*/React__default['default'].createElement(IconRight.default, { + size: "small" + }))); +} + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "MonthDay___StyledDiv", + componentId: "ngrxyo-0" +})(["position:relative;display:flex;align-items:center;justify-content:center;width:", "px;height:", "px;border-radius:50%;cursor:pointer;user-select:none;margin-bottom:1px;", ";", " ", " ", " ", " ", " ", " &:after{display:block;content:'';margin-top:100%;}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledSpan = _styled__default['default']("span").withConfig({ + displayName: "MonthDay___StyledSpan", + componentId: "ngrxyo-1" +})(["", ";"], function (p) { + return p._css10; +}); + +var _StyledDiv2 = _styled__default['default']("div").withConfig({ + displayName: "MonthDay___StyledDiv2", + componentId: "ngrxyo-2" +})(["position:absolute;bottom:1px;font-size:9px;color:", ";"], function (p) { + return p._css11; +}); + +function MonthDay(_ref) { + var children = _ref.children, + disabled = _ref.disabled, + inRange = _ref.inRange, + rangeBoundaryBegin = _ref.rangeBoundaryBegin, + rangeBoundaryEnd = _ref.rangeBoundaryEnd, + selected = _ref.selected, + today = _ref.today, + weekDay = _ref.weekDay, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["children", "disabled", "inRange", "rangeBoundaryBegin", "rangeBoundaryEnd", "selected", "today", "weekDay"]); + + var theme = Theme.useTheme(); + var dimmedSelectedColor = theme.selected.alpha(0.09); + + var _useState = React.useState(false), + _useState2 = slicedToArray.slicedToArray(_useState, 2), + isHovered = _useState2[0], + setIsHovered = _useState2[1]; + + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends._extends_1({ + onMouseEnter: function onMouseEnter() { + return setIsHovered(true); + }, + onMouseLeave: function onMouseLeave() { + return setIsHovered(false); + } + }, props, { + _css: 4.5 * constants.GU, + _css2: weekDay ? 3.5 * constants.GU : 4.5 * constants.GU, + _css3: disabled ? "\n pointer-events: none;\n opacity: 0;\n " : '', + _css4: selected && !disabled ? "\n &&& {\n background: ".concat(theme.selected, ";\n color: ").concat(theme.positiveContent, ";\n }\n ") : '', + _css5: inRange && !selected && !disabled ? "\n background: ".concat(dimmedSelectedColor, ";\n border-radius: 0;\n ") : '', + _css6: (rangeBoundaryBegin || rangeBoundaryEnd) && _styled.css(["z-index:1;&:before{content:'';position:absolute;top:0;", ":0;z-index:0;background:", ";width:50%;height:100%;}"], rangeBoundaryBegin ? 'right' : 'left', dimmedSelectedColor), + _css7: isHovered && _styled.css(["> *{z-index:1;}"]), + _css8: today && _styled.css(["color:", ";font-weight:600;"], theme.selected), + _css9: weekDay && _styled.css(["pointer-events:none;color:", ";text-transform:uppercase;"], theme.contentSecondary) + }), isHovered ? /*#__PURE__*/React__default['default'].createElement(HoverIndicator, { + theme: theme, + selected: selected + }) : null, /*#__PURE__*/React__default['default'].createElement(_StyledSpan, { + _css10: textStyles.textStyle(weekDay ? 'body4' : 'body3') + }, children), today ? /*#__PURE__*/React__default['default'].createElement(_StyledDiv2, { + _css11: selected ? theme.surface : theme.selected + }, "\u25CF") : null); +} + +MonthDay.propTypes = { + children: index.propTypes.node, + disabled: index.propTypes.bool, + selected: index.propTypes.bool, + inRange: index.propTypes.bool, + rangeBoundaryBegin: index.propTypes.bool, + rangeBoundaryEnd: index.propTypes.bool, + today: index.propTypes.bool, + weekDay: index.propTypes.bool +}; + +var _StyledButtonBase$1 = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "MonthDay___StyledButtonBase", + componentId: "ngrxyo-3" +})(["display:flex;width:", "px;height:", "px;margin:0;"], function (p) { + return p._css12; +}, function (p) { + return p._css13; +}); + +function WrappedMonthDay(_ref2) { + var onClick = _ref2.onClick, + props = objectWithoutProperties.objectWithoutProperties(_ref2, ["onClick"]); + + if (onClick && !props.disabled) { + return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase$1, { + onClick: onClick, + _css12: 4.5 * constants.GU, + _css13: props.weekDay ? 3.5 * constants.GU : 4.5 * constants.GU + }, /*#__PURE__*/React__default['default'].createElement(MonthDay, props)); + } else { + return /*#__PURE__*/React__default['default'].createElement(MonthDay, props); + } +} + +exports.Selector = Selector; +exports.WrappedMonthDay = WrappedMonthDay; +//# sourceMappingURL=MonthDay-2e515f76.js.map diff --git a/packages/govern-console/public/aragon-ui/MonthDay-2e515f76.js.map b/packages/govern-console/public/aragon-ui/MonthDay-2e515f76.js.map new file mode 100644 index 000000000..0e0d93474 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/MonthDay-2e515f76.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MonthDay-2e515f76.js","sources":["../src/components/DateRangePicker/components.js","../src/components/DateRangePicker/MonthDay.js"],"sourcesContent":["import React from 'react'\nimport styled, { css } from 'styled-components'\n\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport { useTheme } from '../../theme'\nimport { GU, textStyle } from '../../style'\nimport { IconLeft, IconRight } from '../../icons/components'\n\nexport const HoverIndicator = styled.span`\n width: 100%;\n height: 100%;\n position: absolute;\n border-radius: 50%;\n ${({ theme, selected }) => css`\n background: ${selected ? theme.selected : theme.surface};\n border: 2px solid ${theme.accent};\n `}\n`\n\nconst ArrowButton = props => {\n const theme = useTheme()\n return (\n \n )\n}\n\nconst SelectorWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: ${1 * GU}px;\n\n span {\n ${({ small, theme }) => css`\n ${textStyle(small ? 'label2' : 'body2')};\n ${small &&\n css`\n color: ${theme.hint};\n font-weight: 600;\n `}\n `}\n }\n`\n\n// eslint-disable-next-line react/prop-types\nexport function Selector({ prev, next, children, small }) {\n const theme = useTheme()\n return (\n \n \n \n \n {children}\n \n \n \n \n )\n}\n","import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { css } from 'styled-components'\nimport { useTheme } from '../../theme'\nimport { textStyle, GU } from '../../style'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport { HoverIndicator } from './components'\n\nfunction MonthDay({\n children,\n disabled,\n inRange,\n rangeBoundaryBegin,\n rangeBoundaryEnd,\n selected,\n today,\n weekDay,\n ...props\n}) {\n const theme = useTheme()\n const dimmedSelectedColor = theme.selected.alpha(0.09)\n const [isHovered, setIsHovered] = useState(false)\n\n return (\n setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n css={`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: ${4.5 * GU}px;\n height: ${weekDay ? 3.5 * GU : 4.5 * GU}px;\n border-radius: 50%;\n cursor: pointer;\n user-select: none;\n margin-bottom: 1px;\n\n ${\n disabled\n ? `\n pointer-events: none;\n opacity: 0;\n `\n : ''\n };\n\n ${\n selected && !disabled\n ? `\n &&& {\n background: ${theme.selected};\n color: ${theme.positiveContent};\n }\n `\n : ''\n }\n\n ${\n inRange && !selected && !disabled\n ? `\n background: ${dimmedSelectedColor};\n border-radius: 0;\n `\n : ''\n }\n\n ${(rangeBoundaryBegin || rangeBoundaryEnd) &&\n css`\n z-index: 1;\n &:before {\n content: '';\n position: absolute;\n top: 0;\n ${rangeBoundaryBegin ? 'right' : 'left'}: 0;\n z-index: 0;\n background: ${dimmedSelectedColor};\n width: 50%;\n height: 100%;\n }\n `}\n\n ${isHovered &&\n css`\n > * {\n z-index: 1;\n }\n `}\n\n ${today &&\n css`\n color: ${theme.selected};\n font-weight: 600;\n `}\n\n ${weekDay &&\n css`\n pointer-events: none;\n color: ${theme.contentSecondary};\n text-transform: uppercase;\n `}\n\n &:after {\n display: block;\n content: '';\n margin-top: 100%;\n }\n `}\n {...props}\n >\n {isHovered ? : null}\n \n {children}\n \n {today ? (\n \n ●\n \n ) : null}\n \n )\n}\n\nMonthDay.propTypes = {\n children: PropTypes.node,\n disabled: PropTypes.bool,\n selected: PropTypes.bool,\n inRange: PropTypes.bool,\n rangeBoundaryBegin: PropTypes.bool,\n rangeBoundaryEnd: PropTypes.bool,\n today: PropTypes.bool,\n weekDay: PropTypes.bool,\n}\n\nfunction WrappedMonthDay({ onClick, ...props }) {\n if (onClick && !props.disabled) {\n return (\n \n \n \n )\n } else {\n return \n }\n}\n\nexport default WrappedMonthDay\n"],"names":["HoverIndicator","styled","span","theme","selected","css","surface","accent","ArrowButton","props","useTheme","React","GU","hint","SelectorWrapper","div","small","textStyle","Selector","prev","next","children","IconLeft","IconRight","MonthDay","disabled","inRange","rangeBoundaryBegin","rangeBoundaryEnd","today","weekDay","dimmedSelectedColor","alpha","useState","isHovered","setIsHovered","positiveContent","contentSecondary","propTypes","PropTypes","node","bool","WrappedMonthDay","onClick"],"mappings":";;;;;;;;;;;;;;;;;;;;AAQO,IAAMA,cAAc,GAAGC,2BAAM,CAACC,IAAV;AAAA;AAAA;AAAA,wEAKv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AACqB,OAAN,GAAgB,MAAMlB,YAAtB,GAA2B,MAAMA;AAJ/C,oBASED,wCAAC,QAAD,EAAcF,KAAd,CATF,CADF;AAaD,GAdD,MAcO;AACL,wBAAOE,wCAAC,QAAD,EAAcF,KAAd,CAAP;AACD;AACF;;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/MonthDay.js b/packages/govern-console/public/aragon-ui/MonthDay.js new file mode 100644 index 000000000..1c6a18eaa --- /dev/null +++ b/packages/govern-console/public/aragon-ui/MonthDay.js @@ -0,0 +1,38 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconLeft.js'); +require('./IconRight.js'); +var MonthDay = require('./MonthDay-2e515f76.js'); + + + +exports.default = MonthDay.WrappedMonthDay; +//# sourceMappingURL=MonthDay.js.map diff --git a/packages/govern-console/public/aragon-ui/MonthDay.js.map b/packages/govern-console/public/aragon-ui/MonthDay.js.map new file mode 100644 index 000000000..feac7cd5e --- /dev/null +++ b/packages/govern-console/public/aragon-ui/MonthDay.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MonthDay.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/NavigationBar.js b/packages/govern-console/public/aragon-ui/NavigationBar.js new file mode 100644 index 000000000..a8aedaf05 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/NavigationBar.js @@ -0,0 +1,186 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +var _styled = require('styled-components'); +var getPrototypeOf = require('./getPrototypeOf-55c9e80c.js'); +require('./miscellaneous.js'); +require('./environment.js'); +var springs = require('./springs.js'); +var _extends = require('./extends-023d783e.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); +var LeftIcon = require('./LeftIcon.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf.getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf.getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return getPrototypeOf.possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +var NavigationBar = /*#__PURE__*/function (_React$Component) { + getPrototypeOf.inherits(NavigationBar, _React$Component); + + var _super = _createSuper(NavigationBar); + + function NavigationBar() { + var _this; + + getPrototypeOf.classCallCheck(this, NavigationBar); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + defineProperty.defineProperty(getPrototypeOf.assertThisInitialized(_this), "state", { + cachedItems: null, + direction: -1 + }); + + return _this; + } + + getPrototypeOf.createClass(NavigationBar, [{ + key: "render", + value: function render() { + var _this$props = this.props, + onBack = _this$props.onBack, + items = _this$props.items, + compact = _this$props.compact; + var displayedItems = items.map(function (node, index) { + return { + node: node, + index: index + }; + }).slice(-1); + return /*#__PURE__*/React__default['default'].createElement(Container, null, /*#__PURE__*/React__default['default'].createElement(web.Transition, { + items: displayedItems, + keys: displayedItems.map( // Use a different key than 0 when there is only one item, so that + // the “leave” transition of the first item can be executed when a + // second item is added. + function (item) { + return items.length === 1 ? -1 : item.index; + }), + config: springs.springs.smooth, + initial: null, + from: { + opacity: 0, + position: this.state.direction * -1 + }, + enter: { + opacity: 1, + position: 0 + }, + leave: { + opacity: 0, + position: this.state.direction + }, + native: true + }, function (item) { + return function (styles) { + return /*#__PURE__*/React__default['default'].createElement(Item, _extends._extends_1({ + label: item.node, + onBack: onBack, + displayBack: item.index > 0, + compact: compact + }, styles)); + }; + })); + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(props, state) { + var updatedState = { + cachedItems: props.items + }; + + if (!state.cachedItems) { + return updatedState; + } + + return _objectSpread(_objectSpread({}, updatedState), {}, { + direction: state.cachedItems.length > props.items.length ? 1 : -1 + }); + } + }]); + + return NavigationBar; +}(React__default['default'].Component); + +defineProperty.defineProperty(NavigationBar, "propTypes", { + onBack: index.propTypes.func, + items: index.propTypes.arrayOf(index.propTypes.node), + compact: index.propTypes.bool +}); + +defineProperty.defineProperty(NavigationBar, "defaultProps", { + onBack: function onBack() {}, + items: [], + compact: false +}); + +var Item = function Item(_ref) { + var opacity = _ref.opacity, + position = _ref.position, + displayBack = _ref.displayBack, + onBack = _ref.onBack, + label = _ref.label, + compact = _ref.compact; + return /*#__PURE__*/React__default['default'].createElement(web.extendedAnimated.span, { + style: { + display: 'flex', + alignItems: 'center', + opacity: opacity, + transform: position.interpolate(function (p) { + return "translate(".concat(p * 20, "px, 0)"); + }) + } + }, /*#__PURE__*/React__default['default'].createElement(Title, null, displayBack && /*#__PURE__*/React__default['default'].createElement(BackButton, { + onClick: onBack, + compact: compact + }, /*#__PURE__*/React__default['default'].createElement(LeftIcon.default, null)), /*#__PURE__*/React__default['default'].createElement(Label, null, label))); +}; + +Item.propTypes = { + compact: index.propTypes.bool, + displayBack: index.propTypes.bool, + label: index.propTypes.node, + onBack: index.propTypes.func, + opacity: index.propTypes.object, + position: index.propTypes.object +}; +var Container = _styled__default['default'].span.withConfig({ + displayName: "NavigationBar__Container", + componentId: "pd4tzi-0" +})(["display:flex;position:relative;height:100%;"]); +var Title = _styled__default['default'].span.withConfig({ + displayName: "NavigationBar__Title", + componentId: "pd4tzi-1" +})(["display:flex;align-items:center;position:absolute;left:0;top:0;bottom:0;"]); +var Label = _styled__default['default'].span.withConfig({ + displayName: "NavigationBar__Label", + componentId: "pd4tzi-2" +})(["display:flex;height:100%;align-items:center;padding-left:30px;white-space:nowrap;font-size:22px;"]); +var BackButton = _styled__default['default'].span.withConfig({ + displayName: "NavigationBar__BackButton", + componentId: "pd4tzi-3" +})(["display:flex;align-items:center;height:63px;padding:", ";cursor:pointer;svg{color:hsl(179,76%,48%);}:active svg{color:hsl(179,76%,63%);}& + ", "{padding-left:0;}"], function (p) { + return p.compact ? '0 16px' : '0 20px 0 30px'; +}, Label); + +exports.default = NavigationBar; +//# sourceMappingURL=NavigationBar.js.map diff --git a/packages/govern-console/public/aragon-ui/NavigationBar.js.map b/packages/govern-console/public/aragon-ui/NavigationBar.js.map new file mode 100644 index 000000000..3506c411f --- /dev/null +++ b/packages/govern-console/public/aragon-ui/NavigationBar.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NavigationBar.js","sources":["../src/components/NavigationBar/NavigationBar.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\nimport { Transition, animated } from 'react-spring'\nimport { springs } from '../../style'\nimport LeftIcon from './LeftIcon'\n\nclass NavigationBar extends React.Component {\n static propTypes = {\n onBack: PropTypes.func,\n items: PropTypes.arrayOf(PropTypes.node),\n compact: PropTypes.bool,\n }\n static defaultProps = {\n onBack: () => {},\n items: [],\n compact: false,\n }\n state = {\n cachedItems: null,\n direction: -1,\n }\n static getDerivedStateFromProps(props, state) {\n const updatedState = { cachedItems: props.items }\n if (!state.cachedItems) {\n return updatedState\n }\n return {\n ...updatedState,\n direction: state.cachedItems.length > props.items.length ? 1 : -1,\n }\n }\n render() {\n const { onBack, items, compact } = this.props\n const displayedItems = items\n .map((node, index) => ({ node, index }))\n .slice(-1)\n return (\n \n (items.length === 1 ? -1 : item.index)\n )}\n config={springs.smooth}\n initial={null}\n from={{ opacity: 0, position: this.state.direction * -1 }}\n enter={{ opacity: 1, position: 0 }}\n leave={{ opacity: 0, position: this.state.direction }}\n native\n >\n {item => styles => (\n 0}\n compact={compact}\n {...styles}\n />\n )}\n \n \n )\n }\n}\n\nconst Item = ({ opacity, position, displayBack, onBack, label, compact }) => (\n `translate(${p * 20}px, 0)`),\n }}\n >\n \n {displayBack && (\n <BackButton onClick={onBack} compact={compact}>\n <LeftIcon />\n </BackButton>\n )}\n <Label>{label}</Label>\n \n \n)\n\nItem.propTypes = {\n compact: PropTypes.bool,\n displayBack: PropTypes.bool,\n label: PropTypes.node,\n onBack: PropTypes.func,\n opacity: PropTypes.object,\n position: PropTypes.object,\n}\n\nconst Container = styled.span`\n display: flex;\n position: relative;\n height: 100%;\n`\n\nconst Title = styled.span`\n display: flex;\n align-items: center;\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n`\n\nconst Label = styled.span`\n display: flex;\n height: 100%;\n align-items: center;\n padding-left: 30px;\n white-space: nowrap;\n font-size: 22px;\n`\n\nconst BackButton = styled.span`\n display: flex;\n align-items: center;\n height: 63px;\n padding: ${p => (p.compact ? '0 16px' : '0 20px 0 30px')};\n cursor: pointer;\n svg {\n color: hsl(179, 76%, 48%);\n }\n :active svg {\n color: hsl(179, 76%, 63%);\n }\n & + ${Label} {\n padding-left: 0;\n }\n`\n\nexport default NavigationBar\n"],"names":["NavigationBar","cachedItems","direction","props","onBack","items","compact","displayedItems","map","node","index","slice","React","Transition","item","length","springs","smooth","opacity","position","state","styles","updatedState","Component","PropTypes","func","arrayOf","bool","Item","displayBack","label","animated","display","alignItems","transform","interpolate","p","LeftIcon","propTypes","object","Container","styled","span","Title","Label","BackButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOMA;;;;;;;;;;;;;;;;wFAWI;AACNC,MAAAA,WAAW,EAAE,IADP;AAENC,MAAAA,SAAS,EAAE,CAAC;AAFN;;;;;;;6BAcC;AAAA,wBAC4B,KAAKC,KADjC;AAAA,UACCC,MADD,eACCA,MADD;AAAA,UACSC,KADT,eACSA,KADT;AAAA,UACgBC,OADhB,eACgBA,OADhB;AAEP,UAAMC,cAAc,GAAGF,KAAK,CACzBG,GADoB,CAChB,UAACC,IAAD,EAAOC,KAAP;AAAA,eAAkB;AAAED,UAAAA,IAAI,EAAJA,IAAF;AAAQC,UAAAA,KAAK,EAALA;AAAR,SAAlB;A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AD,QAAQkB,KAAR,CANF,CARF,CADW;AAAA,CAAb;;AAoBAF,IAAI,CAACU,SAAL,GAAiB;AACfhC,EAAAA,OAAO,EAAEkB,eAAS,CAACG,IADJ;AAEfE,EAAAA,WAAW,EAAEL,eAAS,CAACG,IAFR;AAGfG,EAAAA,KAAK,EAAEN,eAAS,CAACf,IAHF;AAIfL,EAAAA,MAAM,EAAEoB,eAAS,CAACC,IAJH;AAKfP,EAAAA,OAAO,EAAEM,eAAS,CAACe,MALJ;AAMfpB,EAAAA,QAAQ,EAAEK,eAAS,CAACe;AANL,CAAjB;AASA,IAAMC,SAAS,GAAGC,2BAAM,CAACC,IAAV;AAAA;AAAA;AAAA,mDAAf;AAMA,IAAMC,KAAK,GAAGF,2BAAM,CAACC,IAAV;AAAA;AAAA;AAAA,gFAAX;AASA,IAAME,KAAK,GAAGH,2BAAM,CAACC,IAAV;AAAA;AAAA;AAAA,wGAAX;AASA,IAAMG,UAAU,GAAGJ,2BAAM,CAACC,IAAV;AAAA;AAAA;AAAA,0KAIH,UAAAN,CAAC;AAAA,SAAKA,CAAC,CAAC9B,OAAF,GAAY,QAAZ,GAAuB,eAA5B;AAAA,CAJE,EAYRsC,KAZQ,CAAhB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/NormalizedHtml.js b/packages/govern-console/public/aragon-ui/NormalizedHtml.js new file mode 100644 index 000000000..79387a357 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/NormalizedHtml.js @@ -0,0 +1,134 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +var constants = require('./constants.js'); +var textStyles = require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "NormalizedHtml___StyledDiv", + componentId: "sc-9jrbs0-0" +})(["h1,h2,h3,h4,h5,h6{margin-bottom:", "px;margin-top:", "px;}h1,h2{padding-bottom:", "px;}h1{", ";}h2{", ";}h3{", ";}h4{", ";}h5{", ";}h6{", ";}p,pre,table,blockquote{margin:", "px 0;&:last-child{margin-bottom:0;}}li p{margin:0;}hr{height:", "px;margin:", "px 0;background:", ";border:0;}blockquote{padding:0 ", "px;border-left:", "px solid ", ";color:", ";}a{color:", ";text-decoration:underline;}pre,a > code,p > code{padding:", "px ", "px;background:", ";border-radius:", "px;}pre{overflow:auto;padding:", "px;border-radius:", "px;}table{border-collapse:collapse;}tr{border-top:1px solid ", ";}th,td{border:1px solid ", ";padding:", "px ", "px;}img{max-width:calc(100% - ", "px);}ul,ol{padding-left:", "px;}ol ol,ul ol{list-style-type:lower-roman;}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha;}button[role='checkbox']{position:relative;top:2px;}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}, function (p) { + return p._css12; +}, function (p) { + return p._css13; +}, function (p) { + return p._css14; +}, function (p) { + return p._css15; +}, function (p) { + return p._css16; +}, function (p) { + return p._css17; +}, function (p) { + return p._css18; +}, function (p) { + return p._css19; +}, function (p) { + return p._css20; +}, function (p) { + return p._css21; +}, constants.RADIUS, function (p) { + return p._css22; +}, constants.RADIUS, function (p) { + return p._css23; +}, function (p) { + return p._css24; +}, function (p) { + return p._css25; +}, function (p) { + return p._css26; +}, function (p) { + return p._css27; +}, function (p) { + return p._css28; +}); + +function NormalizedHtml(_ref) { + var children = _ref.children, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["children"]); + + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends._extends_1({}, props, { + _css: 2 * constants.GU, + _css2: 3 * constants.GU, + _css3: 0.5 * constants.GU, + _css4: textStyles.textStyle('title1'), + _css5: textStyles.textStyle('title2'), + _css6: textStyles.textStyle('title3'), + _css7: textStyles.textStyle('title4'), + _css8: textStyles.textStyle('body1'), + _css9: textStyles.textStyle('body1'), + _css10: 2 * constants.GU, + _css11: 0.5 * constants.GU, + _css12: 1 * constants.GU, + _css13: theme.border, + _css14: 2 * constants.GU, + _css15: 0.5 * constants.GU, + _css16: theme.border, + _css17: theme.contentSecondary, + _css18: theme.link, + _css19: 0.5 * constants.GU, + _css20: 0.75 * constants.GU, + _css21: theme.surfaceHighlight, + _css22: 2 * constants.GU, + _css23: theme.border, + _css24: theme.border, + _css25: 1 * constants.GU, + _css26: 2 * constants.GU, + _css27: 2 * constants.GU, + _css28: 4 * constants.GU + }), children); +} + +NormalizedHtml.propTypes = { + children: index.propTypes.node.isRequired +}; + +exports.default = NormalizedHtml; +//# sourceMappingURL=NormalizedHtml.js.map diff --git a/packages/govern-console/public/aragon-ui/NormalizedHtml.js.map b/packages/govern-console/public/aragon-ui/NormalizedHtml.js.map new file mode 100644 index 000000000..d6cdb7d63 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/NormalizedHtml.js.map @@ -0,0 +1 @@ +{"version":3,"file":"NormalizedHtml.js","sources":["../src/components/Markdown/NormalizedHtml.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { useTheme } from '../../theme'\nimport { RADIUS, GU, textStyle } from '../../style'\n\nfunction NormalizedHtml({ children, ...props }) {\n const theme = useTheme()\n return (\n code,\n p > code {\n padding: ${0.5 * GU}px ${0.75 * GU}px;\n background: ${theme.surfaceHighlight};\n border-radius: ${RADIUS}px;\n }\n pre {\n overflow: auto;\n padding: ${2 * GU}px;\n border-radius: ${RADIUS}px;\n }\n table {\n border-collapse: collapse;\n }\n tr {\n border-top: 1px solid ${theme.border};\n }\n th,\n td {\n border: 1px solid ${theme.border};\n padding: ${1 * GU}px ${2 * GU}px;\n }\n img {\n max-width: calc(100% - ${2 * GU}px);\n }\n ul,\n ol {\n padding-left: ${4 * GU}px;\n }\n ol ol,\n ul ol {\n list-style-type: lower-roman;\n }\n ol ol ol,\n ol ul ol,\n ul ol ol,\n ul ul ol {\n list-style-type: lower-alpha;\n }\n button[role='checkbox'] {\n position: relative;\n top: 2px;\n }\n `}\n {...props}\n >\n {children}\n \n )\n}\n\nNormalizedHtml.propTypes = {\n children: PropTypes.node.isRequired,\n}\n\nexport default NormalizedHtml\n"],"names":["RADIUS","NormalizedHtml","children","props","theme","useTheme","React","GU","textStyle","border","contentSecondary","link","surfaceHighlight","propTypes","PropTypes","node","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyE2BA;;GAKAA;;;;;;;;;;;;;;AAzE3B,SAASC,cAAT,OAAgD;AAAA,MAAtBC,QAAsB,QAAtBA,QAAsB;AAAA,MAATC,KAAS;;AAC9C,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AACA,sBACEC,4EAyGMH,KAzGN;AAAA,UAQuB,IAAII,YAR3B;AAAA,WASoB,IAAIA,YATxB;AAAA,WAawB,MAAMA,YAb9B;AAAA,WAgBQC,oBAAS,CAAC,QAAD,CAhBjB;AAAA,WAmBQA,oBAAS,CAAC,QAAD,CAnBjB;AAAA,WAsBQA,oBAAS,CAAC,QAAD,CAtBjB;AAAA,WAyBQA,oBAAS,CAAC,QAAD,CAzBjB;AAAA,WA4BQA,oBAAS,CAAC,OAAD,CA5BjB;AAAA,WA+BQA,oBAAS,CAAC,OAAD,CA/BjB;AAAA,YAqCgB,IAAID,YArCpB;AAAA,YA8CgB,MAAMA,YA9CtB;AAAA,YA+CgB,IAAIA,YA/CpB;AAAA,YAgDoBH,KAAK,CAACK,MAhD1B;AAAA,YAoDmB,IAAIF,YApDvB;AAAA,YAqDqB,MAAMA,YArD3B;AAAA,YAqDyCH,KAAK,CAACK,MArD/C;AAAA,YAsDeL,KAAK,CAACM,gBAtDrB;AAAA,YAyDeN,KAAK,CAACO,IAzDrB;AAAA,YA+DiB,MAAMJ,YA/DvB;AAAA,YA+D+B,OAAOA,YA/DtC;AAAA,YAgEoBH,KAAK,CAACQ,gBAhE1B;AAAA,YAqEiB,IAAIL,YArErB;AAAA,YA4E8BH,KAAK,CAACK,MA5EpC;AAAA,YAgF0BL,KAAK,CAACK,MAhFhC;AAAA,YAiFiB,IAAIF,YAjFrB;AAAA,YAiF6B,IAAIA,YAjFjC;AAAA,YAoF+B,IAAIA,YApFnC;AAAA,YAwFsB,IAAIA;AAxF1B,MA2GGL,QA3GH,CADF;AA+GD;;AAEDD,cAAc,CAACY,SAAf,GAA2B;AACzBX,EAAAA,QAAQ,EAAEY,eAAS,CAACC,IAAV,CAAeC;AADA,CAA3B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/OpenedSurfaceBorder.js b/packages/govern-console/public/aragon-ui/OpenedSurfaceBorder.js new file mode 100644 index 000000000..bbd07d913 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/OpenedSurfaceBorder.js @@ -0,0 +1,76 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +require('./environment.js'); +var springs = require('./springs.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +var _StyledAnimatedDiv = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "OpenedSurfaceBorder___StyledAnimatedDiv", + componentId: "sc-19tx70h-0" +})(["position:absolute;top:0;left:0;height:100%;width:3px;background:", ";transform-origin:0 0;"], function (p) { + return p._css; +}); + +function OpenedSurfaceBorder(_ref) { + var opened = _ref.opened, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["opened"]); + + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(web.Spring, { + native: true, + from: { + width: 0 + }, + to: { + width: Number(opened) + }, + config: _objectSpread({}, springs.springs.smooth) + }, function (_ref2) { + var width = _ref2.width; + return /*#__PURE__*/React__default['default'].createElement(_StyledAnimatedDiv, _extends._extends_1({ + style: { + transform: width.interpolate(function (v) { + return "scale3d(".concat(v, ", 1, 1)"); + }) + } + }, props, { + _css: theme.surfaceOpened + })); + }); +} + +OpenedSurfaceBorder.propTypes = { + opened: index.propTypes.bool +}; + +exports.OpenedSurfaceBorder = OpenedSurfaceBorder; +//# sourceMappingURL=OpenedSurfaceBorder.js.map diff --git a/packages/govern-console/public/aragon-ui/OpenedSurfaceBorder.js.map b/packages/govern-console/public/aragon-ui/OpenedSurfaceBorder.js.map new file mode 100644 index 000000000..992a6c140 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/OpenedSurfaceBorder.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OpenedSurfaceBorder.js","sources":["../src/components/DataView/OpenedSurfaceBorder.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Spring, animated } from 'react-spring'\nimport { springs } from '../../style'\nimport { useTheme } from '../../theme'\n\nfunction OpenedSurfaceBorder({ opened, ...props }) {\n const theme = useTheme()\n return (\n \n {({ width }) => (\n `scale3d(${v}, 1, 1)`),\n }}\n {...props}\n />\n )}\n \n )\n}\n\nOpenedSurfaceBorder.propTypes = {\n opened: PropTypes.bool,\n}\n\nexport { OpenedSurfaceBorder }\n"],"names":["OpenedSurfaceBorder","opened","props","theme","useTheme","React","Spring","width","Number","springs","smooth","transform","interpolate","v","surfaceOpened","propTypes","PropTypes","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,SAASA,mBAAT,OAAmD;AAAA,MAApBC,MAAoB,QAApBA,MAAoB;AAAA,MAATC,KAAS;;AACjD,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AACA,sBACEC,wCAACC,UAAD;AACE,IAAA,MAAM,MADR;AAEE,IAAA,IAAI,EAAE;AAAEC,MAAAA,KAAK,EAAE;AAAT,KAFR;AAGE,IAAA,EAAE,EAAE;AAAEA,MAAAA,KAAK,EAAEC,MAAM,CAACP,MAAD;AAAf,KAHN;AAIE,IAAA,MAAM,oBAAOQ,eAAO,CAACC,MAAf;AAJR,KAMG;AAAA,QAAGH,KAAH,SAAGA,KAAH;AAAA,wBACCF;AAUE,MAAA,KAAK,EAAE;AACLM,QAAAA,SAAS,EAAEJ,KAAK,CAACK,WAAN,CAAkB,UAAAC,CAAC;AAAA,mCAAeA,CAAf;AAAA,SAAnB;AADN;AAVT,OAaMX,KAbN;AAAA,YAOkBC,KAAK,CAACW;AAPxB,OADD;AAAA,GANH,CADF;AA0BD;;AAEDd,mBAAmB,CAACe,SAApB,GAAgC;AAC9Bd,EAAAA,MAAM,EAAEe,eAAS,CAACC;AADY,CAAhC;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Pagination.js b/packages/govern-console/public/aragon-ui/Pagination.js new file mode 100644 index 000000000..84afebfdf --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Pagination.js @@ -0,0 +1,132 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +var toConsumableArray = require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +var miscellaneous = require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +var _extends = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./FocusVisible.js'); +require('./ButtonBase.js'); +var PaginationItem = require('./PaginationItem.js'); +require('./IconPropTypes-12cd7567.js'); +require('./IconEllipsis.js'); +var PaginationSeparator = require('./PaginationSeparator.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +function paginationItems(pages, selected) { + var all = toConsumableArray.toConsumableArray(Array(pages)).map(function (_, i) { + return i; + }); + + if (all.length < 6) { + return all; + } + + var first = 0; + var last = all.length - 1; + var prev = Math.min(all.length, Math.max(0, selected - 1)); + var next = Math.min(all.length, Math.max(0, selected + 1)); + var items = []; // Selected item + previous + next + + items.push.apply(items, toConsumableArray.toConsumableArray(all.slice(prev, next + 1))); // Display three items, even if the first / last one is selected + + if (selected === last) { + items.unshift(last - 2); + } + + if (selected === first) { + items.push(first + 2); + } // Ellipsises + + + if (prev > first + 1) { + items.unshift(-1); + } + + if (next < last - 1) { + items.push(-1); + } // Always display the first & last items + + + if (prev >= first + 1) { + items.unshift(all[0]); + } + + if (next <= last - 1) { + items.push(all[all.length - 1]); + } + + return items; +} + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "Pagination___StyledDiv", + componentId: "sc-10i2kzw-0" +})(["display:flex;align-items:center;justify-content:center;padding:", "px 0;& > div + div{margin-left:", "px;}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +var Pagination = /*#__PURE__*/React__default['default'].memo(function Pagination(_ref) { + var pages = _ref.pages, + selected = _ref.selected, + onChange = _ref.onChange, + touchMode = _ref.touchMode, + props = objectWithoutProperties.objectWithoutProperties(_ref, ["pages", "selected", "onChange", "touchMode"]); + + var items = paginationItems(pages, selected); + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends._extends_1({}, props, { + _css: 2 * constants.GU, + _css2: 1 * constants.GU + }), items.map(function (pageIndex, i) { + return pageIndex === -1 ? /*#__PURE__*/React__default['default'].createElement(PaginationSeparator.PaginationSeparator, { + key: "separator-".concat(i) + }) : /*#__PURE__*/React__default['default'].createElement(PaginationItem.PaginationItem, { + key: pageIndex, + index: pageIndex, + selected: selected === pageIndex, + onChange: onChange, + touchMode: touchMode + }); + })); +}); +Pagination.propTypes = { + onChange: index.propTypes.func, + pages: index.propTypes.number, + selected: index.propTypes.number, + touchMode: index.propTypes.bool +}; +Pagination.defaultProps = { + onChange: miscellaneous.noop, + pages: 0, + selected: 0, + touchMode: false +}; + +exports.default = Pagination; +//# sourceMappingURL=Pagination.js.map diff --git a/packages/govern-console/public/aragon-ui/Pagination.js.map b/packages/govern-console/public/aragon-ui/Pagination.js.map new file mode 100644 index 000000000..6a47655b5 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Pagination.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Pagination.js","sources":["../src/components/Pagination/Pagination.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { GU } from '../../style'\nimport { noop } from '../../utils'\nimport { PaginationItem } from './PaginationItem'\nimport { PaginationSeparator } from './PaginationSeparator'\n\nfunction paginationItems(pages, selected) {\n const all = [...Array(pages)].map((_, i) => i)\n\n if (all.length < 6) {\n return all\n }\n\n const first = 0\n const last = all.length - 1\n const prev = Math.min(all.length, Math.max(0, selected - 1))\n const next = Math.min(all.length, Math.max(0, selected + 1))\n\n const items = []\n\n // Selected item + previous + next\n items.push(...all.slice(prev, next + 1))\n\n // Display three items, even if the first / last one is selected\n if (selected === last) {\n items.unshift(last - 2)\n }\n if (selected === first) {\n items.push(first + 2)\n }\n\n // Ellipsises\n if (prev > first + 1) {\n items.unshift(-1)\n }\n if (next < last - 1) {\n items.push(-1)\n }\n\n // Always display the first & last items\n if (prev >= first + 1) {\n items.unshift(all[0])\n }\n if (next <= last - 1) {\n items.push(all[all.length - 1])\n }\n\n return items\n}\n\nconst Pagination = React.memo(function Pagination({\n pages,\n selected,\n onChange,\n touchMode,\n ...props\n}) {\n const items = paginationItems(pages, selected)\n return (\n div + div {\n margin-left: ${1 * GU}px;\n }\n `}\n {...props}\n >\n {items.map((pageIndex, i) =>\n pageIndex === -1 ? (\n \n ) : (\n \n )\n )}\n \n )\n})\n\nPagination.propTypes = {\n onChange: PropTypes.func,\n pages: PropTypes.number,\n selected: PropTypes.number,\n touchMode: PropTypes.bool,\n}\n\nPagination.defaultProps = {\n onChange: noop,\n pages: 0,\n selected: 0,\n touchMode: false,\n}\n\nexport default Pagination\n"],"names":["paginationItems","pages","selected","all","_toConsumableArray","Array","map","_","i","length","first","last","prev","Math","min","max","next","items","push","slice","unshift","Pagination","React","memo","onChange","touchMode","props","GU","pageIndex","PaginationSeparator","PaginationItem","propTypes","PropTypes","func","number","bool","defaultProps","noop"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAASA,eAAT,CAAyBC,KAAzB,EAAgCC,QAAhC,EAA0C;AACxC,MAAMC,GAAG,GAAGC,oCAAIC,KAAK,CAACJ,KAAD,CAAT,EAAkBK,GAAlB,CAAsB,UAACC,CAAD,EAAIC,CAAJ;AAAA,WAAUA,CAAV;AAAA,GAAtB,CAAZ;;AAEA,MAAIL,GAAG,CAACM,MAAJ,GAAa,CAAjB,EAAoB;AAClB,WAAON,GAAP;AACD;;AAED,MAAMO,KAAK,GAAG,CAAd;AACA,MAAMC,IAAI,GAAGR,GAAG,CAACM,MAAJ,GAAa,CAA1B;AACA,MAAMG,IAAI,GAAGC,IAAI,CAACC,GAAL,CAASX,GAAG,CAACM,MAAb,EAAqBI,IAAI,CAACE,GAAL,CAAS,CAAT,EAAYb,QAAQ,GAAG,CAAvB,CAArB,CAAb;AACA,MAAMc,IAAI,GAAGH,IAAI,CAACC,GAAL,CAASX,GAAG,CAACM,MAAb,EAAqBI,IAAI,CAACE,GAAL,CA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Ae,CAACC,KAAD,EAAQC,QAAR,CAA7B;AACA,sBACEoB,4EAUMI,KAVN;AAAA,UAKe,IAAIC,YALnB;AAAA,WAOqB,IAAIA;AAPzB,MAYGV,KAAK,CAACX,GAAN,CAAU,UAACsB,SAAD,EAAYpB,CAAZ;AAAA,WACToB,SAAS,KAAK,CAAC,CAAf,gBACEN,wCAACO,uCAAD;AAAqB,MAAA,GAAG,sBAAerB,CAAf;AAAxB,MADF,gBAGEc,wCAACQ,6BAAD;AACE,MAAA,GAAG,EAAEF,SADP;AAEE,MAAA,KAAK,EAAEA,SAFT;AAGE,MAAA,QAAQ,EAAE1B,QAAQ,KAAK0B,SAHzB;AAIE,MAAA,QAAQ,EAAEJ,QAJZ;AAKE,MAAA,SAAS,EAAEC;AALb,MAJO;AAAA,GAAV,CAZH,CADF;AA4BD,CApCkB;AAsCnBJ,UAAU,CAACU,SAAX,GAAuB;AACrBP,EAAAA,QAAQ,EAAEQ,eAAS,CAACC,IADC;AAErBhC,EAAAA,KAAK,EAAE+B,eAAS,CAACE,MAFI;AAGrBhC,EAAAA,QAAQ,EAAE8B,eAAS,CAACE,MAHC;AAIrBT,EAAAA,SAAS,EAAEO,eAAS,CAACG;AAJA,CAAvB;AAOAd,UAAU,CAACe,YAAX,GAA0B;AACxBZ,EAAAA,QAAQ,EAAEa,kBADc;AAExBpC,EAAAA,KAAK,EAAE,CAFiB;AAGxBC,EAAAA,QAAQ,EAAE,CAHc;AAIxBuB,EAAAA,SAAS,EAAE;AAJa,CAA1B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/PaginationItem.js b/packages/govern-console/public/aragon-ui/PaginationItem.js new file mode 100644 index 000000000..b8f658d7f --- /dev/null +++ b/packages/govern-console/public/aragon-ui/PaginationItem.js @@ -0,0 +1,84 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./css.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./font.js'); +require('./keycodes.js'); +var constants = require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./FocusVisible.js'); +var ButtonBase = require('./ButtonBase.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledButtonBase = _styled__default['default'](ButtonBase.default).withConfig({ + displayName: "PaginationItem___StyledButtonBase", + componentId: "kftpwz-0" +})(["width:", "px;height:", "px;color:", ";border-radius:", "px;&:active{background:", ";}", ";"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, constants.RADIUS, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}); + +var _StyledSpan = _styled__default['default']("span").withConfig({ + displayName: "PaginationItem___StyledSpan", + componentId: "kftpwz-1" +})(["position:relative;top:1px;"]); + +function PaginationItem(_ref) { + var touchMode = _ref.touchMode, + selected = _ref.selected, + index = _ref.index, + onChange = _ref.onChange; + var theme = Theme.useTheme(); + var handleClick = React.useCallback(function () { + onChange(index); + }, [index, onChange]); + return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, { + onClick: handleClick, + focusRingRadius: constants.RADIUS, + disabled: selected, + _css: (touchMode ? 4 : 3) * constants.GU, + _css2: (touchMode ? 4 : 3) * constants.GU, + _css3: theme.surfaceContent, + _css4: theme.surfacePressed, + _css5: selected && _styled.css(["&&{background:", ";color:", ";}"], theme.accent, theme.accentContent) + }, /*#__PURE__*/React__default['default'].createElement(_StyledSpan, null, index + 1))); +} + +PaginationItem.propTypes = { + index: index.propTypes.number.isRequired, + onChange: index.propTypes.func.isRequired, + selected: index.propTypes.bool.isRequired, + touchMode: index.propTypes.bool.isRequired +}; + +exports.PaginationItem = PaginationItem; +//# sourceMappingURL=PaginationItem.js.map diff --git a/packages/govern-console/public/aragon-ui/PaginationItem.js.map b/packages/govern-console/public/aragon-ui/PaginationItem.js.map new file mode 100644 index 000000000..6ae5d984d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/PaginationItem.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PaginationItem.js","sources":["../src/components/Pagination/PaginationItem.js"],"sourcesContent":["import React, { useCallback } from 'react'\nimport PropTypes from 'prop-types'\nimport { css } from 'styled-components'\nimport { useTheme } from '../../theme'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport { GU, RADIUS } from '../../style'\n\nfunction PaginationItem({ touchMode, selected, index, onChange }) {\n const theme = useTheme()\n\n const handleClick = useCallback(() => {\n onChange(index)\n }, [index, onChange])\n\n return (\n
    \n \n \n {index + 1}\n \n \n
    \n )\n}\n\nPaginationItem.propTypes = {\n index: PropTypes.number.isRequired,\n onChange: PropTypes.func.isRequired,\n selected: PropTypes.bool.isRequired,\n touchMode: PropTypes.bool.isRequired,\n}\n\nexport { PaginationItem }\n"],"names":["RADIUS","PaginationItem","touchMode","selected","index","onChange","theme","useTheme","handleClick","useCallback","React","GU","surfaceContent","surfacePressed","css","accent","accentContent","propTypes","PropTypes","number","isRequired","func","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwB2BA;;;;;;;;;;;AAjB3B,SAASC,cAAT,OAAkE;AAAA,MAAxCC,SAAwC,QAAxCA,SAAwC;AAAA,MAA7BC,QAA6B,QAA7BA,QAA6B;AAAA,MAAnBC,KAAmB,QAAnBA,KAAmB;AAAA,MAAZC,QAAY,QAAZA,QAAY;AAChE,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AAEA,MAAMC,WAAW,GAAGC,iBAAW,CAAC,YAAM;AACpCJ,IAAAA,QAAQ,CAACD,KAAD,CAAR;AACD,GAF8B,EAE5B,CAACA,KAAD,EAAQC,QAAR,CAF4B,CAA/B;AAIA,sBACEK,kEACEA;AACE,IAAA,OAAO,EAAEF,WADX;AAEE,IAAA,eAAe,EAAER,gBAFnB;AAGE,IAAA,QAAQ,EAAEG,QAHZ;AAAA,UAKa,CAACD,SAAS,GAAG,CAAH,GAAO,CAAjB,IAAsBS,YALnC;AAAA,WAMc,CAACT,SAAS,GAAG,CAAH,GAAO,CAAjB,IAAsBS,YANpC;AAAA,WAOaL,KAAK,CAACM,cAPnB;AAAA,WAUoBN,KAAK,CAACO,cAV1B;AAAA,WAaMV,QAAQ,IACRW,WADQ,sCAGUR,KAAK,CAACS,MAHhB,EAIKT,KAAK,CAACU,aAJX;AAbd,kBAsBEN,2DAMGN,KAAK,GAAG,CANX,CAtBF,CADF,CADF;AAmCD;;AAEDH,cAAc,CAACgB,SAAf,GAA2B;AACzBb,EAAAA,KAAK,EAAEc,eAAS,CAACC,MAAV,CAAiBC,UADC;AAEzBf,EAAAA,QAAQ,EAAEa,eAAS,CAACG,IAAV,CAAeD,UAFA;AAGzBjB,EAAAA,QAAQ,EAAEe,eAAS,CAACI,IAAV,CAAeF,UAHA;AAIzBlB,EAAAA,SAAS,EAAEgB,eAAS,CAACI,IAAV,CAAeF;AAJD,CAA3B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/PaginationSeparator.js b/packages/govern-console/public/aragon-ui/PaginationSeparator.js new file mode 100644 index 000000000..b3e0514fa --- /dev/null +++ b/packages/govern-console/public/aragon-ui/PaginationSeparator.js @@ -0,0 +1,52 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +require('./environment.js'); +require('./constants.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +require('./extends-023d783e.js'); +require('./objectWithoutProperties-c6d3675c.js'); +require('./index-4def0554.js'); +require('./IconPropTypes-12cd7567.js'); +var IconEllipsis = require('./IconEllipsis.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +var _StyledDiv = _styled__default['default']("div").withConfig({ + displayName: "PaginationSeparator___StyledDiv", + componentId: "f1pytl-0" +})(["display:flex;align-items:center;justify-content:center;"]); + +var _StyledIconEllipsis = _styled__default['default'](IconEllipsis.default).withConfig({ + displayName: "PaginationSeparator___StyledIconEllipsis", + componentId: "f1pytl-1" +})(["color:", ";"], function (p) { + return p._css; +}); + +var PaginationSeparator = /*#__PURE__*/React__default['default'].memo(function PaginationSeparator() { + var theme = Theme.useTheme(); + return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, null, /*#__PURE__*/React__default['default'].createElement(_StyledIconEllipsis, { + _css: theme.surfaceContentSecondary.alpha(0.4) + })); +}); + +exports.PaginationSeparator = PaginationSeparator; +//# sourceMappingURL=PaginationSeparator.js.map diff --git a/packages/govern-console/public/aragon-ui/PaginationSeparator.js.map b/packages/govern-console/public/aragon-ui/PaginationSeparator.js.map new file mode 100644 index 000000000..2057f1587 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/PaginationSeparator.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PaginationSeparator.js","sources":["../src/components/Pagination/PaginationSeparator.js"],"sourcesContent":["import React from 'react'\nimport { useTheme } from '../../theme'\nimport { IconEllipsis } from '../../icons'\n\nconst PaginationSeparator = React.memo(function PaginationSeparator() {\n const theme = useTheme()\n return (\n \n \n \n )\n})\n\nexport { PaginationSeparator }\n"],"names":["PaginationSeparator","React","memo","theme","useTheme","surfaceContentSecondary","alpha"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,mBAAmB,gBAAGC,yBAAK,CAACC,IAAN,CAAW,SAASF,mBAAT,GAA+B;AACpE,MAAMG,KAAK,GAAGC,cAAQ,EAAtB;AACA,sBACEH,uEAOEA;AAAA,UAEaE,KAAK,CAACE,uBAAN,CAA8BC,KAA9B,CAAoC,GAApC;AAFb,IAPF,CADF;AAeD,CAjB2B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/PartitionBar.js b/packages/govern-console/public/aragon-ui/PartitionBar.js new file mode 100644 index 000000000..2b131679a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/PartitionBar.js @@ -0,0 +1,74 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +var index = require('./index-46d0e707.js'); +var defineProperty = require('./defineProperty-3cad0327.js'); +require('./toConsumableArray-cc0d28a9.js'); +require('styled-components'); +require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +require('./miscellaneous.js'); +var environment = require('./environment.js'); +require('./font.js'); +require('./constants.js'); +require('./text-styles.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +require('./Theme.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +var Distribution = require('./Distribution.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function PartitionBar(_ref) { + var data = _ref.data, + caption = _ref.caption, + colors = _ref.colors; + environment.warnOnce('PartitionBar', 'PartitionBar is deprecated. Please use the Distribution component instead.'); // name => item (renderFullLegendItem) + + var renderFullLegendItem = caption ? function (_ref2) { + var item = _ref2.item, + props = objectWithoutProperties.objectWithoutProperties(_ref2, ["item"]); + + return caption(_objectSpread({ + name: item + }, props)); + } : undefined; // name => item (items) + + var items = data.map(function (_ref3) { + var name = _ref3.name, + percentage = _ref3.percentage; + return { + item: name, + percentage: percentage + }; + }); + return /*#__PURE__*/React__default['default'].createElement(Distribution.default, { + items: items, + renderFullLegendItem: renderFullLegendItem, + colors: colors + }); +} + +PartitionBar.propTypes = { + data: index.propTypes.arrayOf(index.propTypes.shape({ + name: index.propTypes.string.isRequired, + percentage: index.propTypes.number.isRequired + })).isRequired, + colors: index.propTypes.arrayOf(index.propTypes.string), + caption: index.propTypes.func +}; + +exports.default = PartitionBar; +//# sourceMappingURL=PartitionBar.js.map diff --git a/packages/govern-console/public/aragon-ui/PartitionBar.js.map b/packages/govern-console/public/aragon-ui/PartitionBar.js.map new file mode 100644 index 000000000..5d2981646 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/PartitionBar.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PartitionBar.js","sources":["../src/components/PartitionBar/PartitionBar.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { warnOnce } from '../../utils'\nimport Distribution from '../Distribution/Distribution'\n\nfunction PartitionBar({ data, caption, colors }) {\n warnOnce(\n 'PartitionBar',\n 'PartitionBar is deprecated. Please use the Distribution component instead.'\n )\n\n // name => item (renderFullLegendItem)\n const renderFullLegendItem = caption\n ? ({ item, ...props }) => caption({ name: item, ...props })\n : undefined\n\n // name => item (items)\n const items = data.map(({ name, percentage }) => ({ item: name, percentage }))\n\n return (\n \n )\n}\n\nPartitionBar.propTypes = {\n data: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n percentage: PropTypes.number.isRequired,\n })\n ).isRequired,\n colors: PropTypes.arrayOf(PropTypes.string),\n caption: PropTypes.func,\n}\n\nexport default PartitionBar\n"],"names":["PartitionBar","data","caption","colors","warnOnce","renderFullLegendItem","item","props","name","undefined","items","map","percentage","React","Distribution","propTypes","PropTypes","arrayOf","shape","string","isRequired","number","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAASA,YAAT,OAAiD;AAAA,MAAzBC,IAAyB,QAAzBA,IAAyB;AAAA,MAAnBC,OAAmB,QAAnBA,OAAmB;AAAA,MAAVC,MAAU,QAAVA,MAAU;AAC/CC,EAAAA,oBAAQ,CACN,cADM,EAEN,4EAFM,CAAR,CAD+C;;AAO/C,MAAMC,oBAAoB,GAAGH,OAAO,GAChC;AAAA,QAAGI,IAAH,SAAGA,IAAH;AAAA,QAAYC,KAAZ;;AAAA,WAAwBL,OAAO;AAAGM,MAAAA,IAAI,EAAEF;AAAT,OAAkBC,KAAlB,EAA/B;AAAA,GADgC,GAEhCE,SAFJ,CAP+C;;AAY/C,MAAMC,KAAK,GAAGT,IAAI,CAACU,GAAL,CAAS;AAAA,QAAGH,IAAH,SAAGA,IAAH;AAAA,QAASI,UAAT,SAASA,UAAT;AAAA,WAA2B;AAAEN,MAAAA,IAAI,EAAEE,IAAR;AAAcI,MAAAA,UAAU,EAAVA;AAAd,KAA3B;AAAA,GAAT,CAAd;AAEA,sBACEC,wCAACC,oBAAD;AACE,IAAA,KAAK,EAAEJ,KADT;AAEE,IAAA,oBAAoB,EAAEL,oBAFxB;AAGE,IAAA,MAAM,EAAEF;AAHV,IADF;AAOD;;AAEDH,YAAY,CAACe,SAAb,GAAyB;AACvBd,EAAAA,IAAI,EAAEe,eAAS,CAACC,OAAV,CACJD,eAAS,CAACE,KAAV,CAAgB;AACdV,IAAAA,IAAI,EAAEQ,eAAS,CAACG,MAAV,CAAiBC,UADT;AAEdR,IAAAA,UAAU,EAAEI,eAAS,CAACK,MAAV,CAAiBD;AAFf,GAAhB,CADI,EAKJA,UANqB;AAOvBjB,EAAAA,MAAM,EAAEa,eAAS,CAACC,OAAV,CAAkBD,eAAS,CAACG,MAA5B,CAPe;AAQvBjB,EAAAA,OAAO,EAAEc,eAAS,CAACM;AARI,CAAzB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/Popover.js b/packages/govern-console/public/aragon-ui/Popover.js new file mode 100644 index 000000000..3ea149beb --- /dev/null +++ b/packages/govern-console/public/aragon-ui/Popover.js @@ -0,0 +1,2963 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var slicedToArray = require('./slicedToArray-a8a77f0e.js'); +require('./unsupportedIterableToArray-f175acfa.js'); +var React = require('react'); +require('./_commonjsHelpers-1b94f6bc.js'); +require('./index-46d0e707.js'); +var defineProperty$1 = require('./defineProperty-3cad0327.js'); +var toConsumableArray = require('./toConsumableArray-cc0d28a9.js'); +var _styled = require('styled-components'); +var getPrototypeOf = require('./getPrototypeOf-55c9e80c.js'); +require('./color.js'); +var components = require('./components.js'); +var miscellaneous = require('./miscellaneous.js'); +var environment = require('./environment.js'); +var keycodes = require('./keycodes.js'); +var constants = require('./constants.js'); +var springs = require('./springs.js'); +require('./theme-dark.js'); +require('./theme-light.js'); +var Theme = require('./Theme.js'); +var _extends$1 = require('./extends-023d783e.js'); +var objectWithoutProperties = require('./objectWithoutProperties-c6d3675c.js'); +require('./objectWithoutPropertiesLoose-1af20ad0.js'); +require('react-dom'); +var web = require('./web-7cbdbd84.js'); +var Root = require('./Root-8693e46b.js'); +var RootPortal = require('./RootPortal.js'); +var proptypes = require('./proptypes-9c58a90f.js'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +var React__default = /*#__PURE__*/_interopDefaultLegacy(React); +var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); + +/**! + * @fileOverview Kickass library to create and place poppers near their reference elements. + * @version 1.16.1 + * @license + * Copyright (c) 2016 Federico Zivolo and contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined'; + +var timeoutDuration = function () { + var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; + for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { + if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) { + return 1; + } + } + return 0; +}(); + +function microtaskDebounce(fn) { + var called = false; + return function () { + if (called) { + return; + } + called = true; + window.Promise.resolve().then(function () { + called = false; + fn(); + }); + }; +} + +function taskDebounce(fn) { + var scheduled = false; + return function () { + if (!scheduled) { + scheduled = true; + setTimeout(function () { + scheduled = false; + fn(); + }, timeoutDuration); + } + }; +} + +var supportsMicroTasks = isBrowser && window.Promise; + +/** +* Create a debounced version of a method, that's asynchronously deferred +* but called in the minimum time possible. +* +* @method +* @memberof Popper.Utils +* @argument {Function} fn +* @returns {Function} +*/ +var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce; + +/** + * Check if the given variable is a function + * @method + * @memberof Popper.Utils + * @argument {Any} functionToCheck - variable to check + * @returns {Boolean} answer to: is a function? + */ +function isFunction(functionToCheck) { + var getType = {}; + return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; +} + +/** + * Get CSS computed property of the given element + * @method + * @memberof Popper.Utils + * @argument {Eement} element + * @argument {String} property + */ +function getStyleComputedProperty(element, property) { + if (element.nodeType !== 1) { + return []; + } + // NOTE: 1 DOM access here + var window = element.ownerDocument.defaultView; + var css = window.getComputedStyle(element, null); + return property ? css[property] : css; +} + +/** + * Returns the parentNode or the host of the element + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Element} parent + */ +function getParentNode(element) { + if (element.nodeName === 'HTML') { + return element; + } + return element.parentNode || element.host; +} + +/** + * Returns the scrolling parent of the given element + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Element} scroll parent + */ +function getScrollParent(element) { + // Return body, `getScroll` will take care to get the correct `scrollTop` from it + if (!element) { + return document.body; + } + + switch (element.nodeName) { + case 'HTML': + case 'BODY': + return element.ownerDocument.body; + case '#document': + return element.body; + } + + // Firefox want us to check `-x` and `-y` variations as well + + var _getStyleComputedProp = getStyleComputedProperty(element), + overflow = _getStyleComputedProp.overflow, + overflowX = _getStyleComputedProp.overflowX, + overflowY = _getStyleComputedProp.overflowY; + + if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { + return element; + } + + return getScrollParent(getParentNode(element)); +} + +/** + * Returns the reference node of the reference object, or the reference object itself. + * @method + * @memberof Popper.Utils + * @param {Element|Object} reference - the reference element (the popper will be relative to this) + * @returns {Element} parent + */ +function getReferenceNode(reference) { + return reference && reference.referenceNode ? reference.referenceNode : reference; +} + +var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode); +var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent); + +/** + * Determines if the browser is Internet Explorer + * @method + * @memberof Popper.Utils + * @param {Number} version to check + * @returns {Boolean} isIE + */ +function isIE(version) { + if (version === 11) { + return isIE11; + } + if (version === 10) { + return isIE10; + } + return isIE11 || isIE10; +} + +/** + * Returns the offset parent of the given element + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Element} offset parent + */ +function getOffsetParent(element) { + if (!element) { + return document.documentElement; + } + + var noOffsetParent = isIE(10) ? document.body : null; + + // NOTE: 1 DOM access here + var offsetParent = element.offsetParent || null; + // Skip hidden elements which don't have an offsetParent + while (offsetParent === noOffsetParent && element.nextElementSibling) { + offsetParent = (element = element.nextElementSibling).offsetParent; + } + + var nodeName = offsetParent && offsetParent.nodeName; + + if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { + return element ? element.ownerDocument.documentElement : document.documentElement; + } + + // .offsetParent will return the closest TH, TD or TABLE in case + // no offsetParent is present, I hate this job... + if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { + return getOffsetParent(offsetParent); + } + + return offsetParent; +} + +function isOffsetContainer(element) { + var nodeName = element.nodeName; + + if (nodeName === 'BODY') { + return false; + } + return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; +} + +/** + * Finds the root node (document, shadowDOM root) of the given element + * @method + * @memberof Popper.Utils + * @argument {Element} node + * @returns {Element} root node + */ +function getRoot(node) { + if (node.parentNode !== null) { + return getRoot(node.parentNode); + } + + return node; +} + +/** + * Finds the offset parent common to the two provided nodes + * @method + * @memberof Popper.Utils + * @argument {Element} element1 + * @argument {Element} element2 + * @returns {Element} common offset parent + */ +function findCommonOffsetParent(element1, element2) { + // This check is needed to avoid errors in case one of the elements isn't defined for any reason + if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { + return document.documentElement; + } + + // Here we make sure to give as "start" the element that comes first in the DOM + var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; + var start = order ? element1 : element2; + var end = order ? element2 : element1; + + // Get common ancestor container + var range = document.createRange(); + range.setStart(start, 0); + range.setEnd(end, 0); + var commonAncestorContainer = range.commonAncestorContainer; + + // Both nodes are inside #document + + if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { + if (isOffsetContainer(commonAncestorContainer)) { + return commonAncestorContainer; + } + + return getOffsetParent(commonAncestorContainer); + } + + // one of the nodes is inside shadowDOM, find which one + var element1root = getRoot(element1); + if (element1root.host) { + return findCommonOffsetParent(element1root.host, element2); + } else { + return findCommonOffsetParent(element1, getRoot(element2).host); + } +} + +/** + * Gets the scroll value of the given element in the given side (top and left) + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @argument {String} side `top` or `left` + * @returns {number} amount of scrolled pixels + */ +function getScroll(element) { + var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; + + var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; + var nodeName = element.nodeName; + + if (nodeName === 'BODY' || nodeName === 'HTML') { + var html = element.ownerDocument.documentElement; + var scrollingElement = element.ownerDocument.scrollingElement || html; + return scrollingElement[upperSide]; + } + + return element[upperSide]; +} + +/* + * Sum or subtract the element scroll values (left and top) from a given rect object + * @method + * @memberof Popper.Utils + * @param {Object} rect - Rect object you want to change + * @param {HTMLElement} element - The element from the function reads the scroll values + * @param {Boolean} subtract - set to true if you want to subtract the scroll values + * @return {Object} rect - The modifier rect object + */ +function includeScroll(rect, element) { + var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + + var scrollTop = getScroll(element, 'top'); + var scrollLeft = getScroll(element, 'left'); + var modifier = subtract ? -1 : 1; + rect.top += scrollTop * modifier; + rect.bottom += scrollTop * modifier; + rect.left += scrollLeft * modifier; + rect.right += scrollLeft * modifier; + return rect; +} + +/* + * Helper to detect borders of a given element + * @method + * @memberof Popper.Utils + * @param {CSSStyleDeclaration} styles + * Result of `getStyleComputedProperty` on the given element + * @param {String} axis - `x` or `y` + * @return {number} borders - The borders size of the given axis + */ + +function getBordersSize(styles, axis) { + var sideA = axis === 'x' ? 'Left' : 'Top'; + var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; + + return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']); +} + +function getSize(axis, body, html, computedStyle) { + return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0); +} + +function getWindowSizes(document) { + var body = document.body; + var html = document.documentElement; + var computedStyle = isIE(10) && getComputedStyle(html); + + return { + height: getSize('Height', body, html, computedStyle), + width: getSize('Width', body, html, computedStyle) + }; +} + +var classCallCheck = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +}; + +var createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; +}(); + + + + + +var defineProperty = function (obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +}; + +var _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; +}; + +/** + * Given element offsets, generate an output similar to getBoundingClientRect + * @method + * @memberof Popper.Utils + * @argument {Object} offsets + * @returns {Object} ClientRect like output + */ +function getClientRect(offsets) { + return _extends({}, offsets, { + right: offsets.left + offsets.width, + bottom: offsets.top + offsets.height + }); +} + +/** + * Get bounding client rect of given element + * @method + * @memberof Popper.Utils + * @param {HTMLElement} element + * @return {Object} client rect + */ +function getBoundingClientRect(element) { + var rect = {}; + + // IE10 10 FIX: Please, don't ask, the element isn't + // considered in DOM in some circumstances... + // This isn't reproducible in IE10 compatibility mode of IE11 + try { + if (isIE(10)) { + rect = element.getBoundingClientRect(); + var scrollTop = getScroll(element, 'top'); + var scrollLeft = getScroll(element, 'left'); + rect.top += scrollTop; + rect.left += scrollLeft; + rect.bottom += scrollTop; + rect.right += scrollLeft; + } else { + rect = element.getBoundingClientRect(); + } + } catch (e) {} + + var result = { + left: rect.left, + top: rect.top, + width: rect.right - rect.left, + height: rect.bottom - rect.top + }; + + // subtract scrollbar size from sizes + var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {}; + var width = sizes.width || element.clientWidth || result.width; + var height = sizes.height || element.clientHeight || result.height; + + var horizScrollbar = element.offsetWidth - width; + var vertScrollbar = element.offsetHeight - height; + + // if an hypothetical scrollbar is detected, we must be sure it's not a `border` + // we make this check conditional for performance reasons + if (horizScrollbar || vertScrollbar) { + var styles = getStyleComputedProperty(element); + horizScrollbar -= getBordersSize(styles, 'x'); + vertScrollbar -= getBordersSize(styles, 'y'); + + result.width -= horizScrollbar; + result.height -= vertScrollbar; + } + + return getClientRect(result); +} + +function getOffsetRectRelativeToArbitraryNode(children, parent) { + var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + + var isIE10 = isIE(10); + var isHTML = parent.nodeName === 'HTML'; + var childrenRect = getBoundingClientRect(children); + var parentRect = getBoundingClientRect(parent); + var scrollParent = getScrollParent(children); + + var styles = getStyleComputedProperty(parent); + var borderTopWidth = parseFloat(styles.borderTopWidth); + var borderLeftWidth = parseFloat(styles.borderLeftWidth); + + // In cases where the parent is fixed, we must ignore negative scroll in offset calc + if (fixedPosition && isHTML) { + parentRect.top = Math.max(parentRect.top, 0); + parentRect.left = Math.max(parentRect.left, 0); + } + var offsets = getClientRect({ + top: childrenRect.top - parentRect.top - borderTopWidth, + left: childrenRect.left - parentRect.left - borderLeftWidth, + width: childrenRect.width, + height: childrenRect.height + }); + offsets.marginTop = 0; + offsets.marginLeft = 0; + + // Subtract margins of documentElement in case it's being used as parent + // we do this only on HTML because it's the only element that behaves + // differently when margins are applied to it. The margins are included in + // the box of the documentElement, in the other cases not. + if (!isIE10 && isHTML) { + var marginTop = parseFloat(styles.marginTop); + var marginLeft = parseFloat(styles.marginLeft); + + offsets.top -= borderTopWidth - marginTop; + offsets.bottom -= borderTopWidth - marginTop; + offsets.left -= borderLeftWidth - marginLeft; + offsets.right -= borderLeftWidth - marginLeft; + + // Attach marginTop and marginLeft because in some circumstances we may need them + offsets.marginTop = marginTop; + offsets.marginLeft = marginLeft; + } + + if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { + offsets = includeScroll(offsets, parent); + } + + return offsets; +} + +function getViewportOffsetRectRelativeToArtbitraryNode(element) { + var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + var html = element.ownerDocument.documentElement; + var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); + var width = Math.max(html.clientWidth, window.innerWidth || 0); + var height = Math.max(html.clientHeight, window.innerHeight || 0); + + var scrollTop = !excludeScroll ? getScroll(html) : 0; + var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0; + + var offset = { + top: scrollTop - relativeOffset.top + relativeOffset.marginTop, + left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, + width: width, + height: height + }; + + return getClientRect(offset); +} + +/** + * Check if the given element is fixed or is inside a fixed parent + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @argument {Element} customContainer + * @returns {Boolean} answer to "isFixed?" + */ +function isFixed(element) { + var nodeName = element.nodeName; + if (nodeName === 'BODY' || nodeName === 'HTML') { + return false; + } + if (getStyleComputedProperty(element, 'position') === 'fixed') { + return true; + } + var parentNode = getParentNode(element); + if (!parentNode) { + return false; + } + return isFixed(parentNode); +} + +/** + * Finds the first parent of an element that has a transformed property defined + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Element} first transformed parent or documentElement + */ + +function getFixedPositionOffsetParent(element) { + // This check is needed to avoid errors in case one of the elements isn't defined for any reason + if (!element || !element.parentElement || isIE()) { + return document.documentElement; + } + var el = element.parentElement; + while (el && getStyleComputedProperty(el, 'transform') === 'none') { + el = el.parentElement; + } + return el || document.documentElement; +} + +/** + * Computed the boundaries limits and return them + * @method + * @memberof Popper.Utils + * @param {HTMLElement} popper + * @param {HTMLElement} reference + * @param {number} padding + * @param {HTMLElement} boundariesElement - Element used to define the boundaries + * @param {Boolean} fixedPosition - Is in fixed position mode + * @returns {Object} Coordinates of the boundaries + */ +function getBoundaries(popper, reference, padding, boundariesElement) { + var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; + + // NOTE: 1 DOM access here + + var boundaries = { top: 0, left: 0 }; + var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); + + // Handle viewport case + if (boundariesElement === 'viewport') { + boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition); + } else { + // Handle other cases based on DOM element used as boundaries + var boundariesNode = void 0; + if (boundariesElement === 'scrollParent') { + boundariesNode = getScrollParent(getParentNode(reference)); + if (boundariesNode.nodeName === 'BODY') { + boundariesNode = popper.ownerDocument.documentElement; + } + } else if (boundariesElement === 'window') { + boundariesNode = popper.ownerDocument.documentElement; + } else { + boundariesNode = boundariesElement; + } + + var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); + + // In case of HTML, we need a different computation + if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { + var _getWindowSizes = getWindowSizes(popper.ownerDocument), + height = _getWindowSizes.height, + width = _getWindowSizes.width; + + boundaries.top += offsets.top - offsets.marginTop; + boundaries.bottom = height + offsets.top; + boundaries.left += offsets.left - offsets.marginLeft; + boundaries.right = width + offsets.left; + } else { + // for all the other DOM elements, this one is good + boundaries = offsets; + } + } + + // Add paddings + padding = padding || 0; + var isPaddingNumber = typeof padding === 'number'; + boundaries.left += isPaddingNumber ? padding : padding.left || 0; + boundaries.top += isPaddingNumber ? padding : padding.top || 0; + boundaries.right -= isPaddingNumber ? padding : padding.right || 0; + boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; + + return boundaries; +} + +function getArea(_ref) { + var width = _ref.width, + height = _ref.height; + + return width * height; +} + +/** + * Utility used to transform the `auto` placement to the placement with more + * available space. + * @method + * @memberof Popper.Utils + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { + var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; + + if (placement.indexOf('auto') === -1) { + return placement; + } + + var boundaries = getBoundaries(popper, reference, padding, boundariesElement); + + var rects = { + top: { + width: boundaries.width, + height: refRect.top - boundaries.top + }, + right: { + width: boundaries.right - refRect.right, + height: boundaries.height + }, + bottom: { + width: boundaries.width, + height: boundaries.bottom - refRect.bottom + }, + left: { + width: refRect.left - boundaries.left, + height: boundaries.height + } + }; + + var sortedAreas = Object.keys(rects).map(function (key) { + return _extends({ + key: key + }, rects[key], { + area: getArea(rects[key]) + }); + }).sort(function (a, b) { + return b.area - a.area; + }); + + var filteredAreas = sortedAreas.filter(function (_ref2) { + var width = _ref2.width, + height = _ref2.height; + return width >= popper.clientWidth && height >= popper.clientHeight; + }); + + var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; + + var variation = placement.split('-')[1]; + + return computedPlacement + (variation ? '-' + variation : ''); +} + +/** + * Get offsets to the reference element + * @method + * @memberof Popper.Utils + * @param {Object} state + * @param {Element} popper - the popper element + * @param {Element} reference - the reference element (the popper will be relative to this) + * @param {Element} fixedPosition - is in fixed position mode + * @returns {Object} An object containing the offsets which will be applied to the popper + */ +function getReferenceOffsets(state, popper, reference) { + var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + + var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); + return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); +} + +/** + * Get the outer sizes of the given element (offset size + margins) + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Object} object containing width and height properties + */ +function getOuterSizes(element) { + var window = element.ownerDocument.defaultView; + var styles = window.getComputedStyle(element); + var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); + var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); + var result = { + width: element.offsetWidth + y, + height: element.offsetHeight + x + }; + return result; +} + +/** + * Get the opposite placement of the given one + * @method + * @memberof Popper.Utils + * @argument {String} placement + * @returns {String} flipped placement + */ +function getOppositePlacement(placement) { + var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; + return placement.replace(/left|right|bottom|top/g, function (matched) { + return hash[matched]; + }); +} + +/** + * Get offsets to the popper + * @method + * @memberof Popper.Utils + * @param {Object} position - CSS position the Popper will get applied + * @param {HTMLElement} popper - the popper element + * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) + * @param {String} placement - one of the valid placement options + * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper + */ +function getPopperOffsets(popper, referenceOffsets, placement) { + placement = placement.split('-')[0]; + + // Get popper node sizes + var popperRect = getOuterSizes(popper); + + // Add position, width and height to our offsets object + var popperOffsets = { + width: popperRect.width, + height: popperRect.height + }; + + // depending by the popper placement we have to compute its offsets slightly differently + var isHoriz = ['right', 'left'].indexOf(placement) !== -1; + var mainSide = isHoriz ? 'top' : 'left'; + var secondarySide = isHoriz ? 'left' : 'top'; + var measurement = isHoriz ? 'height' : 'width'; + var secondaryMeasurement = !isHoriz ? 'height' : 'width'; + + popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; + if (placement === secondarySide) { + popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; + } else { + popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; + } + + return popperOffsets; +} + +/** + * Mimics the `find` method of Array + * @method + * @memberof Popper.Utils + * @argument {Array} arr + * @argument prop + * @argument value + * @returns index or -1 + */ +function find(arr, check) { + // use native find if supported + if (Array.prototype.find) { + return arr.find(check); + } + + // use `filter` to obtain the same behavior of `find` + return arr.filter(check)[0]; +} + +/** + * Return the index of the matching object + * @method + * @memberof Popper.Utils + * @argument {Array} arr + * @argument prop + * @argument value + * @returns index or -1 + */ +function findIndex(arr, prop, value) { + // use native findIndex if supported + if (Array.prototype.findIndex) { + return arr.findIndex(function (cur) { + return cur[prop] === value; + }); + } + + // use `find` + `indexOf` if `findIndex` isn't supported + var match = find(arr, function (obj) { + return obj[prop] === value; + }); + return arr.indexOf(match); +} + +/** + * Loop trough the list of modifiers and run them in order, + * each of them will then edit the data object. + * @method + * @memberof Popper.Utils + * @param {dataObject} data + * @param {Array} modifiers + * @param {String} ends - Optional modifier name used as stopper + * @returns {dataObject} + */ +function runModifiers(modifiers, data, ends) { + var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); + + modifiersToRun.forEach(function (modifier) { + if (modifier['function']) { + // eslint-disable-line dot-notation + console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); + } + var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation + if (modifier.enabled && isFunction(fn)) { + // Add properties to offsets to make them a complete clientRect object + // we do this before each modifier to make sure the previous one doesn't + // mess with these values + data.offsets.popper = getClientRect(data.offsets.popper); + data.offsets.reference = getClientRect(data.offsets.reference); + + data = fn(data, modifier); + } + }); + + return data; +} + +/** + * Updates the position of the popper, computing the new offsets and applying + * the new style.
    + * Prefer `scheduleUpdate` over `update` because of performance reasons. + * @method + * @memberof Popper + */ +function update() { + // if popper is destroyed, don't perform any further update + if (this.state.isDestroyed) { + return; + } + + var data = { + instance: this, + styles: {}, + arrowStyles: {}, + attributes: {}, + flipped: false, + offsets: {} + }; + + // compute reference element offsets + data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); + + // compute auto placement, store placement inside the data object, + // modifiers will be able to edit `placement` if needed + // and refer to originalPlacement to know the original value + data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); + + // store the computed placement inside `originalPlacement` + data.originalPlacement = data.placement; + + data.positionFixed = this.options.positionFixed; + + // compute the popper offsets + data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); + + data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; + + // run the modifiers + data = runModifiers(this.modifiers, data); + + // the first `update` will call `onCreate` callback + // the other ones will call `onUpdate` callback + if (!this.state.isCreated) { + this.state.isCreated = true; + this.options.onCreate(data); + } else { + this.options.onUpdate(data); + } +} + +/** + * Helper used to know if the given modifier is enabled. + * @method + * @memberof Popper.Utils + * @returns {Boolean} + */ +function isModifierEnabled(modifiers, modifierName) { + return modifiers.some(function (_ref) { + var name = _ref.name, + enabled = _ref.enabled; + return enabled && name === modifierName; + }); +} + +/** + * Get the prefixed supported property name + * @method + * @memberof Popper.Utils + * @argument {String} property (camelCase) + * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) + */ +function getSupportedPropertyName(property) { + var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; + var upperProp = property.charAt(0).toUpperCase() + property.slice(1); + + for (var i = 0; i < prefixes.length; i++) { + var prefix = prefixes[i]; + var toCheck = prefix ? '' + prefix + upperProp : property; + if (typeof document.body.style[toCheck] !== 'undefined') { + return toCheck; + } + } + return null; +} + +/** + * Destroys the popper. + * @method + * @memberof Popper + */ +function destroy() { + this.state.isDestroyed = true; + + // touch DOM only if `applyStyle` modifier is enabled + if (isModifierEnabled(this.modifiers, 'applyStyle')) { + this.popper.removeAttribute('x-placement'); + this.popper.style.position = ''; + this.popper.style.top = ''; + this.popper.style.left = ''; + this.popper.style.right = ''; + this.popper.style.bottom = ''; + this.popper.style.willChange = ''; + this.popper.style[getSupportedPropertyName('transform')] = ''; + } + + this.disableEventListeners(); + + // remove the popper if user explicitly asked for the deletion on destroy + // do not use `remove` because IE11 doesn't support it + if (this.options.removeOnDestroy) { + this.popper.parentNode.removeChild(this.popper); + } + return this; +} + +/** + * Get the window associated with the element + * @argument {Element} element + * @returns {Window} + */ +function getWindow(element) { + var ownerDocument = element.ownerDocument; + return ownerDocument ? ownerDocument.defaultView : window; +} + +function attachToScrollParents(scrollParent, event, callback, scrollParents) { + var isBody = scrollParent.nodeName === 'BODY'; + var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent; + target.addEventListener(event, callback, { passive: true }); + + if (!isBody) { + attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); + } + scrollParents.push(target); +} + +/** + * Setup needed event listeners used to update the popper position + * @method + * @memberof Popper.Utils + * @private + */ +function setupEventListeners(reference, options, state, updateBound) { + // Resize event listener on window + state.updateBound = updateBound; + getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); + + // Scroll event listener on scroll parents + var scrollElement = getScrollParent(reference); + attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); + state.scrollElement = scrollElement; + state.eventsEnabled = true; + + return state; +} + +/** + * It will add resize/scroll events and start recalculating + * position of the popper element when they are triggered. + * @method + * @memberof Popper + */ +function enableEventListeners() { + if (!this.state.eventsEnabled) { + this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); + } +} + +/** + * Remove event listeners used to update the popper position + * @method + * @memberof Popper.Utils + * @private + */ +function removeEventListeners(reference, state) { + // Remove resize event listener on window + getWindow(reference).removeEventListener('resize', state.updateBound); + + // Remove scroll event listener on scroll parents + state.scrollParents.forEach(function (target) { + target.removeEventListener('scroll', state.updateBound); + }); + + // Reset state + state.updateBound = null; + state.scrollParents = []; + state.scrollElement = null; + state.eventsEnabled = false; + return state; +} + +/** + * It will remove resize/scroll events and won't recalculate popper position + * when they are triggered. It also won't trigger `onUpdate` callback anymore, + * unless you call `update` method manually. + * @method + * @memberof Popper + */ +function disableEventListeners() { + if (this.state.eventsEnabled) { + cancelAnimationFrame(this.scheduleUpdate); + this.state = removeEventListeners(this.reference, this.state); + } +} + +/** + * Tells if a given input is a number + * @method + * @memberof Popper.Utils + * @param {*} input to check + * @return {Boolean} + */ +function isNumeric(n) { + return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); +} + +/** + * Set the style to the given popper + * @method + * @memberof Popper.Utils + * @argument {Element} element - Element to apply the style to + * @argument {Object} styles + * Object with a list of properties and values which will be applied to the element + */ +function setStyles(element, styles) { + Object.keys(styles).forEach(function (prop) { + var unit = ''; + // add unit if the value is numeric and is one of the following + if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { + unit = 'px'; + } + element.style[prop] = styles[prop] + unit; + }); +} + +/** + * Set the attributes to the given popper + * @method + * @memberof Popper.Utils + * @argument {Element} element - Element to apply the attributes to + * @argument {Object} styles + * Object with a list of properties and values which will be applied to the element + */ +function setAttributes(element, attributes) { + Object.keys(attributes).forEach(function (prop) { + var value = attributes[prop]; + if (value !== false) { + element.setAttribute(prop, attributes[prop]); + } else { + element.removeAttribute(prop); + } + }); +} + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} data.styles - List of style properties - values to apply to popper element + * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The same data object + */ +function applyStyle(data) { + // any property present in `data.styles` will be applied to the popper, + // in this way we can make the 3rd party modifiers add custom styles to it + // Be aware, modifiers could override the properties defined in the previous + // lines of this modifier! + setStyles(data.instance.popper, data.styles); + + // any property present in `data.attributes` will be applied to the popper, + // they will be set as HTML attributes of the element + setAttributes(data.instance.popper, data.attributes); + + // if arrowElement is defined and arrowStyles has some properties + if (data.arrowElement && Object.keys(data.arrowStyles).length) { + setStyles(data.arrowElement, data.arrowStyles); + } + + return data; +} + +/** + * Set the x-placement attribute before everything else because it could be used + * to add margins to the popper margins needs to be calculated to get the + * correct popper offsets. + * @method + * @memberof Popper.modifiers + * @param {HTMLElement} reference - The reference element used to position the popper + * @param {HTMLElement} popper - The HTML element used as popper + * @param {Object} options - Popper.js options + */ +function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { + // compute reference element offsets + var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); + + // compute auto placement, store placement inside the data object, + // modifiers will be able to edit `placement` if needed + // and refer to originalPlacement to know the original value + var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); + + popper.setAttribute('x-placement', placement); + + // Apply `position` to popper before anything else because + // without the position applied we can't guarantee correct computations + setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' }); + + return options; +} + +/** + * @function + * @memberof Popper.Utils + * @argument {Object} data - The data object generated by `update` method + * @argument {Boolean} shouldRound - If the offsets should be rounded at all + * @returns {Object} The popper's position offsets rounded + * + * The tale of pixel-perfect positioning. It's still not 100% perfect, but as + * good as it can be within reason. + * Discussion here: https://github.com/FezVrasta/popper.js/pull/715 + * + * Low DPI screens cause a popper to be blurry if not using full pixels (Safari + * as well on High DPI screens). + * + * Firefox prefers no rounding for positioning and does not have blurriness on + * high DPI screens. + * + * Only horizontal placement and left/right values need to be considered. + */ +function getRoundedOffsets(data, shouldRound) { + var _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + var round = Math.round, + floor = Math.floor; + + var noRound = function noRound(v) { + return v; + }; + + var referenceWidth = round(reference.width); + var popperWidth = round(popper.width); + + var isVertical = ['left', 'right'].indexOf(data.placement) !== -1; + var isVariation = data.placement.indexOf('-') !== -1; + var sameWidthParity = referenceWidth % 2 === popperWidth % 2; + var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1; + + var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor; + var verticalToInteger = !shouldRound ? noRound : round; + + return { + left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left), + top: verticalToInteger(popper.top), + bottom: verticalToInteger(popper.bottom), + right: horizontalToInteger(popper.right) + }; +} + +var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function computeStyle(data, options) { + var x = options.x, + y = options.y; + var popper = data.offsets.popper; + + // Remove this legacy support in Popper.js v2 + + var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { + return modifier.name === 'applyStyle'; + }).gpuAcceleration; + if (legacyGpuAccelerationOption !== undefined) { + console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); + } + var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; + + var offsetParent = getOffsetParent(data.instance.popper); + var offsetParentRect = getBoundingClientRect(offsetParent); + + // Styles + var styles = { + position: popper.position + }; + + var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox); + + var sideA = x === 'bottom' ? 'top' : 'bottom'; + var sideB = y === 'right' ? 'left' : 'right'; + + // if gpuAcceleration is set to `true` and transform is supported, + // we use `translate3d` to apply the position to the popper we + // automatically use the supported prefixed version if needed + var prefixedProperty = getSupportedPropertyName('transform'); + + // now, let's make a step back and look at this code closely (wtf?) + // If the content of the popper grows once it's been positioned, it + // may happen that the popper gets misplaced because of the new content + // overflowing its reference element + // To avoid this problem, we provide two options (x and y), which allow + // the consumer to define the offset origin. + // If we position a popper on top of a reference element, we can set + // `x` to `top` to make the popper grow towards its top instead of + // its bottom. + var left = void 0, + top = void 0; + if (sideA === 'bottom') { + // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar) + // and not the bottom of the html element + if (offsetParent.nodeName === 'HTML') { + top = -offsetParent.clientHeight + offsets.bottom; + } else { + top = -offsetParentRect.height + offsets.bottom; + } + } else { + top = offsets.top; + } + if (sideB === 'right') { + if (offsetParent.nodeName === 'HTML') { + left = -offsetParent.clientWidth + offsets.right; + } else { + left = -offsetParentRect.width + offsets.right; + } + } else { + left = offsets.left; + } + if (gpuAcceleration && prefixedProperty) { + styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; + styles[sideA] = 0; + styles[sideB] = 0; + styles.willChange = 'transform'; + } else { + // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties + var invertTop = sideA === 'bottom' ? -1 : 1; + var invertLeft = sideB === 'right' ? -1 : 1; + styles[sideA] = top * invertTop; + styles[sideB] = left * invertLeft; + styles.willChange = sideA + ', ' + sideB; + } + + // Attributes + var attributes = { + 'x-placement': data.placement + }; + + // Update `data` attributes, styles and arrowStyles + data.attributes = _extends({}, attributes, data.attributes); + data.styles = _extends({}, styles, data.styles); + data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); + + return data; +} + +/** + * Helper used to know if the given modifier depends from another one.
    + * It checks if the needed modifier is listed and enabled. + * @method + * @memberof Popper.Utils + * @param {Array} modifiers - list of modifiers + * @param {String} requestingName - name of requesting modifier + * @param {String} requestedName - name of requested modifier + * @returns {Boolean} + */ +function isModifierRequired(modifiers, requestingName, requestedName) { + var requesting = find(modifiers, function (_ref) { + var name = _ref.name; + return name === requestingName; + }); + + var isRequired = !!requesting && modifiers.some(function (modifier) { + return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; + }); + + if (!isRequired) { + var _requesting = '`' + requestingName + '`'; + var requested = '`' + requestedName + '`'; + console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); + } + return isRequired; +} + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function arrow(data, options) { + var _data$offsets$arrow; + + // arrow depends on keepTogether in order to work + if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { + return data; + } + + var arrowElement = options.element; + + // if arrowElement is a string, suppose it's a CSS selector + if (typeof arrowElement === 'string') { + arrowElement = data.instance.popper.querySelector(arrowElement); + + // if arrowElement is not found, don't run the modifier + if (!arrowElement) { + return data; + } + } else { + // if the arrowElement isn't a query selector we must check that the + // provided DOM node is child of its popper node + if (!data.instance.popper.contains(arrowElement)) { + console.warn('WARNING: `arrow.element` must be child of its popper element!'); + return data; + } + } + + var placement = data.placement.split('-')[0]; + var _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + + var isVertical = ['left', 'right'].indexOf(placement) !== -1; + + var len = isVertical ? 'height' : 'width'; + var sideCapitalized = isVertical ? 'Top' : 'Left'; + var side = sideCapitalized.toLowerCase(); + var altSide = isVertical ? 'left' : 'top'; + var opSide = isVertical ? 'bottom' : 'right'; + var arrowElementSize = getOuterSizes(arrowElement)[len]; + + // + // extends keepTogether behavior making sure the popper and its + // reference have enough pixels in conjunction + // + + // top/left side + if (reference[opSide] - arrowElementSize < popper[side]) { + data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); + } + // bottom/right side + if (reference[side] + arrowElementSize > popper[opSide]) { + data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; + } + data.offsets.popper = getClientRect(data.offsets.popper); + + // compute center of the popper + var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; + + // Compute the sideValue using the updated popper offsets + // take popper margin in account because we don't have this info available + var css = getStyleComputedProperty(data.instance.popper); + var popperMarginSide = parseFloat(css['margin' + sideCapitalized]); + var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']); + var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; + + // prevent arrowElement from being placed not contiguously to its popper + sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); + + data.arrowElement = arrowElement; + data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow); + + return data; +} + +/** + * Get the opposite placement variation of the given one + * @method + * @memberof Popper.Utils + * @argument {String} placement variation + * @returns {String} flipped placement variation + */ +function getOppositeVariation(variation) { + if (variation === 'end') { + return 'start'; + } else if (variation === 'start') { + return 'end'; + } + return variation; +} + +/** + * List of accepted placements to use as values of the `placement` option.
    + * Valid placements are: + * - `auto` + * - `top` + * - `right` + * - `bottom` + * - `left` + * + * Each placement can have a variation from this list: + * - `-start` + * - `-end` + * + * Variations are interpreted easily if you think of them as the left to right + * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` + * is right.
    + * Vertically (`left` and `right`), `start` is top and `end` is bottom. + * + * Some valid examples are: + * - `top-end` (on top of reference, right aligned) + * - `right-start` (on right of reference, top aligned) + * - `bottom` (on bottom, centered) + * - `auto-end` (on the side with more space available, alignment depends by placement) + * + * @static + * @type {Array} + * @enum {String} + * @readonly + * @method placements + * @memberof Popper + */ +var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; + +// Get rid of `auto` `auto-start` and `auto-end` +var validPlacements = placements.slice(3); + +/** + * Given an initial placement, returns all the subsequent placements + * clockwise (or counter-clockwise). + * + * @method + * @memberof Popper.Utils + * @argument {String} placement - A valid placement (it accepts variations) + * @argument {Boolean} counter - Set to true to walk the placements counterclockwise + * @returns {Array} placements including their variations + */ +function clockwise(placement) { + var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + var index = validPlacements.indexOf(placement); + var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); + return counter ? arr.reverse() : arr; +} + +var BEHAVIORS = { + FLIP: 'flip', + CLOCKWISE: 'clockwise', + COUNTERCLOCKWISE: 'counterclockwise' +}; + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function flip(data, options) { + // if `inner` modifier is enabled, we can't use the `flip` modifier + if (isModifierEnabled(data.instance.modifiers, 'inner')) { + return data; + } + + if (data.flipped && data.placement === data.originalPlacement) { + // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides + return data; + } + + var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed); + + var placement = data.placement.split('-')[0]; + var placementOpposite = getOppositePlacement(placement); + var variation = data.placement.split('-')[1] || ''; + + var flipOrder = []; + + switch (options.behavior) { + case BEHAVIORS.FLIP: + flipOrder = [placement, placementOpposite]; + break; + case BEHAVIORS.CLOCKWISE: + flipOrder = clockwise(placement); + break; + case BEHAVIORS.COUNTERCLOCKWISE: + flipOrder = clockwise(placement, true); + break; + default: + flipOrder = options.behavior; + } + + flipOrder.forEach(function (step, index) { + if (placement !== step || flipOrder.length === index + 1) { + return data; + } + + placement = data.placement.split('-')[0]; + placementOpposite = getOppositePlacement(placement); + + var popperOffsets = data.offsets.popper; + var refOffsets = data.offsets.reference; + + // using floor because the reference offsets may contain decimals we are not going to consider here + var floor = Math.floor; + var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); + + var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); + var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); + var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); + var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); + + var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; + + // flip the variation if required + var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; + + // flips variation if reference element overflows boundaries + var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); + + // flips variation if popper content overflows boundaries + var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop); + + var flippedVariation = flippedVariationByRef || flippedVariationByContent; + + if (overlapsRef || overflowsBoundaries || flippedVariation) { + // this boolean to detect any flip loop + data.flipped = true; + + if (overlapsRef || overflowsBoundaries) { + placement = flipOrder[index + 1]; + } + + if (flippedVariation) { + variation = getOppositeVariation(variation); + } + + data.placement = placement + (variation ? '-' + variation : ''); + + // this object contains `position`, we want to preserve it along with + // any additional property we may add in the future + data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); + + data = runModifiers(data.instance.modifiers, data, 'flip'); + } + }); + return data; +} + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function keepTogether(data) { + var _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + + var placement = data.placement.split('-')[0]; + var floor = Math.floor; + var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; + var side = isVertical ? 'right' : 'bottom'; + var opSide = isVertical ? 'left' : 'top'; + var measurement = isVertical ? 'width' : 'height'; + + if (popper[side] < floor(reference[opSide])) { + data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; + } + if (popper[opSide] > floor(reference[side])) { + data.offsets.popper[opSide] = floor(reference[side]); + } + + return data; +} + +/** + * Converts a string containing value + unit into a px value number + * @function + * @memberof {modifiers~offset} + * @private + * @argument {String} str - Value + unit string + * @argument {String} measurement - `height` or `width` + * @argument {Object} popperOffsets + * @argument {Object} referenceOffsets + * @returns {Number|String} + * Value in pixels, or original string if no values were extracted + */ +function toValue(str, measurement, popperOffsets, referenceOffsets) { + // separate value from unit + var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); + var value = +split[1]; + var unit = split[2]; + + // If it's not a number it's an operator, I guess + if (!value) { + return str; + } + + if (unit.indexOf('%') === 0) { + var element = void 0; + switch (unit) { + case '%p': + element = popperOffsets; + break; + case '%': + case '%r': + default: + element = referenceOffsets; + } + + var rect = getClientRect(element); + return rect[measurement] / 100 * value; + } else if (unit === 'vh' || unit === 'vw') { + // if is a vh or vw, we calculate the size based on the viewport + var size = void 0; + if (unit === 'vh') { + size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); + } else { + size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); + } + return size / 100 * value; + } else { + // if is an explicit pixel unit, we get rid of the unit and keep the value + // if is an implicit unit, it's px, and we return just the value + return value; + } +} + +/** + * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. + * @function + * @memberof {modifiers~offset} + * @private + * @argument {String} offset + * @argument {Object} popperOffsets + * @argument {Object} referenceOffsets + * @argument {String} basePlacement + * @returns {Array} a two cells array with x and y offsets in numbers + */ +function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { + var offsets = [0, 0]; + + // Use height if placement is left or right and index is 0 otherwise use width + // in this way the first offset will use an axis and the second one + // will use the other one + var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; + + // Split the offset string to obtain a list of values and operands + // The regex addresses values with the plus or minus sign in front (+10, -20, etc) + var fragments = offset.split(/(\+|\-)/).map(function (frag) { + return frag.trim(); + }); + + // Detect if the offset string contains a pair of values or a single one + // they could be separated by comma or space + var divider = fragments.indexOf(find(fragments, function (frag) { + return frag.search(/,|\s/) !== -1; + })); + + if (fragments[divider] && fragments[divider].indexOf(',') === -1) { + console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); + } + + // If divider is found, we divide the list of values and operands to divide + // them by ofset X and Y. + var splitRegex = /\s*,\s*|\s+/; + var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; + + // Convert the values with units to absolute pixels to allow our computations + ops = ops.map(function (op, index) { + // Most of the units rely on the orientation of the popper + var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; + var mergeWithPrevious = false; + return op + // This aggregates any `+` or `-` sign that aren't considered operators + // e.g.: 10 + +5 => [10, +, +5] + .reduce(function (a, b) { + if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { + a[a.length - 1] = b; + mergeWithPrevious = true; + return a; + } else if (mergeWithPrevious) { + a[a.length - 1] += b; + mergeWithPrevious = false; + return a; + } else { + return a.concat(b); + } + }, []) + // Here we convert the string values into number values (in px) + .map(function (str) { + return toValue(str, measurement, popperOffsets, referenceOffsets); + }); + }); + + // Loop trough the offsets arrays and execute the operations + ops.forEach(function (op, index) { + op.forEach(function (frag, index2) { + if (isNumeric(frag)) { + offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); + } + }); + }); + return offsets; +} + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @argument {Number|String} options.offset=0 + * The offset value as described in the modifier description + * @returns {Object} The data object, properly modified + */ +function offset(data, _ref) { + var offset = _ref.offset; + var placement = data.placement, + _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + + var basePlacement = placement.split('-')[0]; + + var offsets = void 0; + if (isNumeric(+offset)) { + offsets = [+offset, 0]; + } else { + offsets = parseOffset(offset, popper, reference, basePlacement); + } + + if (basePlacement === 'left') { + popper.top += offsets[0]; + popper.left -= offsets[1]; + } else if (basePlacement === 'right') { + popper.top += offsets[0]; + popper.left += offsets[1]; + } else if (basePlacement === 'top') { + popper.left += offsets[0]; + popper.top -= offsets[1]; + } else if (basePlacement === 'bottom') { + popper.left += offsets[0]; + popper.top += offsets[1]; + } + + data.popper = popper; + return data; +} + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function preventOverflow(data, options) { + var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); + + // If offsetParent is the reference element, we really want to + // go one step up and use the next offsetParent as reference to + // avoid to make this modifier completely useless and look like broken + if (data.instance.reference === boundariesElement) { + boundariesElement = getOffsetParent(boundariesElement); + } + + // NOTE: DOM access here + // resets the popper's position so that the document size can be calculated excluding + // the size of the popper element itself + var transformProp = getSupportedPropertyName('transform'); + var popperStyles = data.instance.popper.style; // assignment to help minification + var top = popperStyles.top, + left = popperStyles.left, + transform = popperStyles[transformProp]; + + popperStyles.top = ''; + popperStyles.left = ''; + popperStyles[transformProp] = ''; + + var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); + + // NOTE: DOM access here + // restores the original style properties after the offsets have been computed + popperStyles.top = top; + popperStyles.left = left; + popperStyles[transformProp] = transform; + + options.boundaries = boundaries; + + var order = options.priority; + var popper = data.offsets.popper; + + var check = { + primary: function primary(placement) { + var value = popper[placement]; + if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { + value = Math.max(popper[placement], boundaries[placement]); + } + return defineProperty({}, placement, value); + }, + secondary: function secondary(placement) { + var mainSide = placement === 'right' ? 'left' : 'top'; + var value = popper[mainSide]; + if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { + value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); + } + return defineProperty({}, mainSide, value); + } + }; + + order.forEach(function (placement) { + var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; + popper = _extends({}, popper, check[side](placement)); + }); + + data.offsets.popper = popper; + + return data; +} + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function shift(data) { + var placement = data.placement; + var basePlacement = placement.split('-')[0]; + var shiftvariation = placement.split('-')[1]; + + // if shift shiftvariation is specified, run the modifier + if (shiftvariation) { + var _data$offsets = data.offsets, + reference = _data$offsets.reference, + popper = _data$offsets.popper; + + var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; + var side = isVertical ? 'left' : 'top'; + var measurement = isVertical ? 'width' : 'height'; + + var shiftOffsets = { + start: defineProperty({}, side, reference[side]), + end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) + }; + + data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); + } + + return data; +} + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function hide(data) { + if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { + return data; + } + + var refRect = data.offsets.reference; + var bound = find(data.instance.modifiers, function (modifier) { + return modifier.name === 'preventOverflow'; + }).boundaries; + + if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { + // Avoid unnecessary DOM access if visibility hasn't changed + if (data.hide === true) { + return data; + } + + data.hide = true; + data.attributes['x-out-of-boundaries'] = ''; + } else { + // Avoid unnecessary DOM access if visibility hasn't changed + if (data.hide === false) { + return data; + } + + data.hide = false; + data.attributes['x-out-of-boundaries'] = false; + } + + return data; +} + +/** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ +function inner(data) { + var placement = data.placement; + var basePlacement = placement.split('-')[0]; + var _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + + var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; + + var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; + + popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); + + data.placement = getOppositePlacement(placement); + data.offsets.popper = getClientRect(popper); + + return data; +} + +/** + * Modifier function, each modifier can have a function of this type assigned + * to its `fn` property.
    + * These functions will be called on each update, this means that you must + * make sure they are performant enough to avoid performance bottlenecks. + * + * @function ModifierFn + * @argument {dataObject} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {dataObject} The data object, properly modified + */ + +/** + * Modifiers are plugins used to alter the behavior of your poppers.
    + * Popper.js uses a set of 9 modifiers to provide all the basic functionalities + * needed by the library. + * + * Usually you don't want to override the `order`, `fn` and `onLoad` props. + * All the other properties are configurations that could be tweaked. + * @namespace modifiers + */ +var modifiers = { + /** + * Modifier used to shift the popper on the start or end of its reference + * element.
    + * It will read the variation of the `placement` property.
    + * It can be one either `-end` or `-start`. + * @memberof modifiers + * @inner + */ + shift: { + /** @prop {number} order=100 - Index used to define the order of execution */ + order: 100, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: shift + }, + + /** + * The `offset` modifier can shift your popper on both its axis. + * + * It accepts the following units: + * - `px` or unit-less, interpreted as pixels + * - `%` or `%r`, percentage relative to the length of the reference element + * - `%p`, percentage relative to the length of the popper element + * - `vw`, CSS viewport width unit + * - `vh`, CSS viewport height unit + * + * For length is intended the main axis relative to the placement of the popper.
    + * This means that if the placement is `top` or `bottom`, the length will be the + * `width`. In case of `left` or `right`, it will be the `height`. + * + * You can provide a single value (as `Number` or `String`), or a pair of values + * as `String` divided by a comma or one (or more) white spaces.
    + * The latter is a deprecated method because it leads to confusion and will be + * removed in v2.
    + * Additionally, it accepts additions and subtractions between different units. + * Note that multiplications and divisions aren't supported. + * + * Valid examples are: + * ``` + * 10 + * '10%' + * '10, 10' + * '10%, 10' + * '10 + 10%' + * '10 - 5vh + 3%' + * '-10px + 5vh, 5px - 6%' + * ``` + * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap + * > with their reference element, unfortunately, you will have to disable the `flip` modifier. + * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373). + * + * @memberof modifiers + * @inner + */ + offset: { + /** @prop {number} order=200 - Index used to define the order of execution */ + order: 200, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: offset, + /** @prop {Number|String} offset=0 + * The offset value as described in the modifier description + */ + offset: 0 + }, + + /** + * Modifier used to prevent the popper from being positioned outside the boundary. + * + * A scenario exists where the reference itself is not within the boundaries.
    + * We can say it has "escaped the boundaries" — or just "escaped".
    + * In this case we need to decide whether the popper should either: + * + * - detach from the reference and remain "trapped" in the boundaries, or + * - if it should ignore the boundary and "escape with its reference" + * + * When `escapeWithReference` is set to`true` and reference is completely + * outside its boundaries, the popper will overflow (or completely leave) + * the boundaries in order to remain attached to the edge of the reference. + * + * @memberof modifiers + * @inner + */ + preventOverflow: { + /** @prop {number} order=300 - Index used to define the order of execution */ + order: 300, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: preventOverflow, + /** + * @prop {Array} [priority=['left','right','top','bottom']] + * Popper will try to prevent overflow following these priorities by default, + * then, it could overflow on the left and on top of the `boundariesElement` + */ + priority: ['left', 'right', 'top', 'bottom'], + /** + * @prop {number} padding=5 + * Amount of pixel used to define a minimum distance between the boundaries + * and the popper. This makes sure the popper always has a little padding + * between the edges of its container + */ + padding: 5, + /** + * @prop {String|HTMLElement} boundariesElement='scrollParent' + * Boundaries used by the modifier. Can be `scrollParent`, `window`, + * `viewport` or any DOM element. + */ + boundariesElement: 'scrollParent' + }, + + /** + * Modifier used to make sure the reference and its popper stay near each other + * without leaving any gap between the two. Especially useful when the arrow is + * enabled and you want to ensure that it points to its reference element. + * It cares only about the first axis. You can still have poppers with margin + * between the popper and its reference element. + * @memberof modifiers + * @inner + */ + keepTogether: { + /** @prop {number} order=400 - Index used to define the order of execution */ + order: 400, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: keepTogether + }, + + /** + * This modifier is used to move the `arrowElement` of the popper to make + * sure it is positioned between the reference element and its popper element. + * It will read the outer size of the `arrowElement` node to detect how many + * pixels of conjunction are needed. + * + * It has no effect if no `arrowElement` is provided. + * @memberof modifiers + * @inner + */ + arrow: { + /** @prop {number} order=500 - Index used to define the order of execution */ + order: 500, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: arrow, + /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ + element: '[x-arrow]' + }, + + /** + * Modifier used to flip the popper's placement when it starts to overlap its + * reference element. + * + * Requires the `preventOverflow` modifier before it in order to work. + * + * **NOTE:** this modifier will interrupt the current update cycle and will + * restart it if it detects the need to flip the placement. + * @memberof modifiers + * @inner + */ + flip: { + /** @prop {number} order=600 - Index used to define the order of execution */ + order: 600, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: flip, + /** + * @prop {String|Array} behavior='flip' + * The behavior used to change the popper's placement. It can be one of + * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid + * placements (with optional variations) + */ + behavior: 'flip', + /** + * @prop {number} padding=5 + * The popper will flip if it hits the edges of the `boundariesElement` + */ + padding: 5, + /** + * @prop {String|HTMLElement} boundariesElement='viewport' + * The element which will define the boundaries of the popper position. + * The popper will never be placed outside of the defined boundaries + * (except if `keepTogether` is enabled) + */ + boundariesElement: 'viewport', + /** + * @prop {Boolean} flipVariations=false + * The popper will switch placement variation between `-start` and `-end` when + * the reference element overlaps its boundaries. + * + * The original placement should have a set variation. + */ + flipVariations: false, + /** + * @prop {Boolean} flipVariationsByContent=false + * The popper will switch placement variation between `-start` and `-end` when + * the popper element overlaps its reference boundaries. + * + * The original placement should have a set variation. + */ + flipVariationsByContent: false + }, + + /** + * Modifier used to make the popper flow toward the inner of the reference element. + * By default, when this modifier is disabled, the popper will be placed outside + * the reference element. + * @memberof modifiers + * @inner + */ + inner: { + /** @prop {number} order=700 - Index used to define the order of execution */ + order: 700, + /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ + enabled: false, + /** @prop {ModifierFn} */ + fn: inner + }, + + /** + * Modifier used to hide the popper when its reference element is outside of the + * popper boundaries. It will set a `x-out-of-boundaries` attribute which can + * be used to hide with a CSS selector the popper when its reference is + * out of boundaries. + * + * Requires the `preventOverflow` modifier before it in order to work. + * @memberof modifiers + * @inner + */ + hide: { + /** @prop {number} order=800 - Index used to define the order of execution */ + order: 800, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: hide + }, + + /** + * Computes the style that will be applied to the popper element to gets + * properly positioned. + * + * Note that this modifier will not touch the DOM, it just prepares the styles + * so that `applyStyle` modifier can apply it. This separation is useful + * in case you need to replace `applyStyle` with a custom implementation. + * + * This modifier has `850` as `order` value to maintain backward compatibility + * with previous versions of Popper.js. Expect the modifiers ordering method + * to change in future major versions of the library. + * + * @memberof modifiers + * @inner + */ + computeStyle: { + /** @prop {number} order=850 - Index used to define the order of execution */ + order: 850, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: computeStyle, + /** + * @prop {Boolean} gpuAcceleration=true + * If true, it uses the CSS 3D transformation to position the popper. + * Otherwise, it will use the `top` and `left` properties + */ + gpuAcceleration: true, + /** + * @prop {string} [x='bottom'] + * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. + * Change this if your popper should grow in a direction different from `bottom` + */ + x: 'bottom', + /** + * @prop {string} [x='left'] + * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. + * Change this if your popper should grow in a direction different from `right` + */ + y: 'right' + }, + + /** + * Applies the computed styles to the popper element. + * + * All the DOM manipulations are limited to this modifier. This is useful in case + * you want to integrate Popper.js inside a framework or view library and you + * want to delegate all the DOM manipulations to it. + * + * Note that if you disable this modifier, you must make sure the popper element + * has its position set to `absolute` before Popper.js can do its work! + * + * Just disable this modifier and define your own to achieve the desired effect. + * + * @memberof modifiers + * @inner + */ + applyStyle: { + /** @prop {number} order=900 - Index used to define the order of execution */ + order: 900, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: applyStyle, + /** @prop {Function} */ + onLoad: applyStyleOnLoad, + /** + * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier + * @prop {Boolean} gpuAcceleration=true + * If true, it uses the CSS 3D transformation to position the popper. + * Otherwise, it will use the `top` and `left` properties + */ + gpuAcceleration: undefined + } +}; + +/** + * The `dataObject` is an object containing all the information used by Popper.js. + * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks. + * @name dataObject + * @property {Object} data.instance The Popper.js instance + * @property {String} data.placement Placement applied to popper + * @property {String} data.originalPlacement Placement originally defined on init + * @property {Boolean} data.flipped True if popper has been flipped by flip modifier + * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper + * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier + * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`) + * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`) + * @property {Object} data.boundaries Offsets of the popper boundaries + * @property {Object} data.offsets The measurements of popper, reference and arrow elements + * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values + * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values + * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 + */ + +/** + * Default options provided to Popper.js constructor.
    + * These can be overridden using the `options` argument of Popper.js.
    + * To override an option, simply pass an object with the same + * structure of the `options` object, as the 3rd argument. For example: + * ``` + * new Popper(ref, pop, { + * modifiers: { + * preventOverflow: { enabled: false } + * } + * }) + * ``` + * @type {Object} + * @static + * @memberof Popper + */ +var Defaults = { + /** + * Popper's placement. + * @prop {Popper.placements} placement='bottom' + */ + placement: 'bottom', + + /** + * Set this to true if you want popper to position it self in 'fixed' mode + * @prop {Boolean} positionFixed=false + */ + positionFixed: false, + + /** + * Whether events (resize, scroll) are initially enabled. + * @prop {Boolean} eventsEnabled=true + */ + eventsEnabled: true, + + /** + * Set to true if you want to automatically remove the popper when + * you call the `destroy` method. + * @prop {Boolean} removeOnDestroy=false + */ + removeOnDestroy: false, + + /** + * Callback called when the popper is created.
    + * By default, it is set to no-op.
    + * Access Popper.js instance with `data.instance`. + * @prop {onCreate} + */ + onCreate: function onCreate() {}, + + /** + * Callback called when the popper is updated. This callback is not called + * on the initialization/creation of the popper, but only on subsequent + * updates.
    + * By default, it is set to no-op.
    + * Access Popper.js instance with `data.instance`. + * @prop {onUpdate} + */ + onUpdate: function onUpdate() {}, + + /** + * List of modifiers used to modify the offsets before they are applied to the popper. + * They provide most of the functionalities of Popper.js. + * @prop {modifiers} + */ + modifiers: modifiers +}; + +/** + * @callback onCreate + * @param {dataObject} data + */ + +/** + * @callback onUpdate + * @param {dataObject} data + */ + +// Utils +// Methods +var Popper = function () { + /** + * Creates a new Popper.js instance. + * @class Popper + * @param {Element|referenceObject} reference - The reference element used to position the popper + * @param {Element} popper - The HTML / XML element used as the popper + * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) + * @return {Object} instance - The generated Popper.js instance + */ + function Popper(reference, popper) { + var _this = this; + + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + classCallCheck(this, Popper); + + this.scheduleUpdate = function () { + return requestAnimationFrame(_this.update); + }; + + // make update() debounced, so that it only runs at most once-per-tick + this.update = debounce(this.update.bind(this)); + + // with {} we create a new object with the options inside it + this.options = _extends({}, Popper.Defaults, options); + + // init state + this.state = { + isDestroyed: false, + isCreated: false, + scrollParents: [] + }; + + // get reference and popper elements (allow jQuery wrappers) + this.reference = reference && reference.jquery ? reference[0] : reference; + this.popper = popper && popper.jquery ? popper[0] : popper; + + // Deep merge modifiers options + this.options.modifiers = {}; + Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { + _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); + }); + + // Refactoring modifiers' list (Object => Array) + this.modifiers = Object.keys(this.options.modifiers).map(function (name) { + return _extends({ + name: name + }, _this.options.modifiers[name]); + }) + // sort the modifiers by order + .sort(function (a, b) { + return a.order - b.order; + }); + + // modifiers have the ability to execute arbitrary code when Popper.js get inited + // such code is executed in the same order of its modifier + // they could add new properties to their options configuration + // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! + this.modifiers.forEach(function (modifierOptions) { + if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { + modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); + } + }); + + // fire the first update to position the popper in the right place + this.update(); + + var eventsEnabled = this.options.eventsEnabled; + if (eventsEnabled) { + // setup event listeners, they will take care of update the position in specific situations + this.enableEventListeners(); + } + + this.state.eventsEnabled = eventsEnabled; + } + + // We can't use class properties because they don't get listed in the + // class prototype and break stuff like Sinon stubs + + + createClass(Popper, [{ + key: 'update', + value: function update$$1() { + return update.call(this); + } + }, { + key: 'destroy', + value: function destroy$$1() { + return destroy.call(this); + } + }, { + key: 'enableEventListeners', + value: function enableEventListeners$$1() { + return enableEventListeners.call(this); + } + }, { + key: 'disableEventListeners', + value: function disableEventListeners$$1() { + return disableEventListeners.call(this); + } + + /** + * Schedules an update. It will run on the next UI update available. + * @method scheduleUpdate + * @memberof Popper + */ + + + /** + * Collection of utilities useful when writing custom modifiers. + * Starting from version 1.7, this method is available only if you + * include `popper-utils.js` before `popper.js`. + * + * **DEPRECATION**: This way to access PopperUtils is deprecated + * and will be removed in v2! Use the PopperUtils module directly instead. + * Due to the high instability of the methods contained in Utils, we can't + * guarantee them to follow semver. Use them at your own risk! + * @static + * @private + * @type {Object} + * @deprecated since version 1.8 + * @member Utils + * @memberof Popper + */ + + }]); + return Popper; +}(); + +/** + * The `referenceObject` is an object that provides an interface compatible with Popper.js + * and lets you use it as replacement of a real DOM node.
    + * You can use this method to position a popper relatively to a set of coordinates + * in case you don't have a DOM node to use as reference. + * + * ``` + * new Popper(referenceObject, popperNode); + * ``` + * + * NB: This feature isn't supported in Internet Explorer 10. + * @name referenceObject + * @property {Function} data.getBoundingClientRect + * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. + * @property {number} data.clientWidth + * An ES6 getter that will return the width of the virtual reference element. + * @property {number} data.clientHeight + * An ES6 getter that will return the height of the virtual reference element. + */ + + +Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; +Popper.placements = placements; +Popper.Defaults = Defaults; + +var _ref3; + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty$1.defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf.getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf.getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return getPrototypeOf.possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +var _StyledAnimatedDiv = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "Popover___StyledAnimatedDiv", + componentId: "sc-1hohxqp-0" +})(["position:absolute;top:0;left:0;"]); + +var _StyledAnimatedDiv2 = _styled__default['default'](web.extendedAnimated.div).withConfig({ + displayName: "Popover___StyledAnimatedDiv2", + componentId: "sc-1hohxqp-1" +})(["background:", ";border:1px solid ", ";border-radius:", "px;filter:drop-shadow(0 4px 4px rgba(0,0,0,0.15));&:focus{outline:0;}overflow-y:auto;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, constants.RADIUS); + +var PopoverBase = /*#__PURE__*/function (_React$Component) { + getPrototypeOf.inherits(PopoverBase, _React$Component); + + var _super = _createSuper(PopoverBase); + + function PopoverBase() { + var _this; + + getPrototypeOf.classCallCheck(this, PopoverBase); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + defineProperty$1.defineProperty(getPrototypeOf.assertThisInitialized(_this), "_cardElement", /*#__PURE__*/React__default['default'].createRef()); + + defineProperty$1.defineProperty(getPrototypeOf.assertThisInitialized(_this), "_popperElement", /*#__PURE__*/React__default['default'].createRef()); + + defineProperty$1.defineProperty(getPrototypeOf.assertThisInitialized(_this), "_document", null); + + defineProperty$1.defineProperty(getPrototypeOf.assertThisInitialized(_this), "_popper", null); + + defineProperty$1.defineProperty(getPrototypeOf.assertThisInitialized(_this), "handleEscape", function (_ref) { + var keyCode = _ref.keyCode; + + if (keyCode === keycodes.KEY_ESC) { + // On escape, we always move the focus back to the opener. + _this.props.opener.focus(); + + _this.attemptClose(); + } + }); + + defineProperty$1.defineProperty(getPrototypeOf.assertThisInitialized(_this), "handleBlur", function (event) { + var _this$props = _this.props, + closeOnOpenerFocus = _this$props.closeOnOpenerFocus, + opener = _this$props.opener; + var focusedElement = event.relatedTarget; // Do not close if: + // - The blur event is emitted from an element inside of the popover. + // - The focused target is the opener and closeOnOpenerFocus is true. + + if (_this._cardElement.current && _this._cardElement.current.contains(focusedElement) || closeOnOpenerFocus && opener && opener.contains(focusedElement)) { + if (closeOnOpenerFocus && (opener.tagName === 'BUTTON' || opener.tagName === 'INPUT')) { + environment.warn('Popover: using "closeOnOpenerFocus" with a
    \n )}\n \n \n \n \n )\n})\nBadgePopoverBase.propTypes = {\n addressField: PropTypes.node.isRequired,\n link: PropTypes.node,\n onClose: PropTypes.func,\n opener: PropTypes._element,\n popoverAction: BadgePopoverActionType,\n title: PropTypes.node.isRequired,\n titleTag: PropTypes.node,\n visible: PropTypes.bool,\n}\nBadgePopoverBase.defaultProps = {\n onClose: noop,\n}\n\nexport default BadgePopoverBase\n"],"names":["BadgePopoverBase","React","memo","addressField","link","onClose","opener","popoverAction","title","titleTag","visible","theme","useTheme","handlePopoverActionClick","useCallback","onClick","surfaceIcon","IconClose","GU","border","textStyle","surfaceContentSecondary","label","propTypes","PropTypes","node","isRequired","func","_element","BadgePopoverActionType","bool","defaultProps","noop"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWMA,gBAAgB,gBAAGC,KAAK,CAACC,IAAN,CAAW,SAASF,gBAAT,OASjC;AAAA,MARDG,YAQC,QARDA,YAQC;AAAA,MAPDC,IAOC,QAPDA,IAOC;AAAA,MANDC,OAMC,QANDA,OAMC;AAAA,MALDC,MAKC,QALDA,MAKC;AAAA,MAJDC,aAIC,QAJDA,aAIC;AAAA,MAHDC,KAGC,QAHDA,KAGC;AAAA,MAFDC,QAEC,QAFDA,QAEC;AAAA,MADDC,OACC,QADDA,OACC;AACD,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;AACA,MAAMC,wBAAwB,GAAGC,WAAW,CAAC,YAAM;AACjDT,IAAAA,OAAO;;AACP,QAAIE,aAAa,IAAIA,aAAa,CAACQ,OAAnC,EAA4C;AAC1CR,MAAAA,aAAa,CAACQ,OAAd;AACD;AACF,GAL2C,EAKzC,CAACV,OAAD,EAAUE,aAAV,CALyC,CAA5C;AAOA,sBACE,oBAAC,OAAD;AAAS,IAAA,OAAO,EAAEG,OAAlB;AAA2B,IAAA,MAAM,EAAEJ,MAAnC;AAA2C,IAAA,OAAO,EAAED;AAApD,kBACE,uDAOE;AACE,IAAA,KAAK,EAAC,OADR;AAEE,IAAA,OAAO,EAAEA,OAFX;AAAA,UAQaM,KAAK,CAACK;AARnB,kBAWE,oBAACC,SAAD;AAAW,IAAA,IAAI,EAAC;AAAhB,IAXF,CAPF,eAoBE;AAAA,WAIc,IAAIC,EAJlB;AAAA,WAKoB,IAAIA,EALxB;AAAA,WAM+BP,KAAK,CAACQ;AANrC,kBASE;AAAA,WAEMC,SAAS,CAAC,QAAD,CAFf;AAAA,WAIaT,KAAK,CAACU;AAJnB,KAOGb,KAPH,CATF,EAkBGC,QAlBH,CApBF,eAwCE;AAAA,WAEe,IAAIS;AAFnB,KAKGf,YALH,eAME;AAAA,WAGkB,IAAIe,EAHtB;AAAA,WAIMd,IAAI,6HAKF;AATR,KAYGA,IAAI,iBACH;AAAA,YAEMgB,SAAS,CAAC,OAAD;AAFf,KAKGhB,IALH,CAbJ,EAqBGG,aAAa,iBACZ;AACE,IAAA,IAAI,EAAC,QADP;AAEE,IAAA,OAAO,EAAEM,wBAFX;AAAA,YAIiB,IAAIK,EAJrB;AAAA,YAKaP,KAAK,CAACU;AALnB,KAQGd,aAAa,CAACe,KARjB,CAtBJ,CANF,CAxCF,CADF,CADF;AAsFD,CAxGwB;AAyGzBtB,gBAAgB,CAACuB,SAAjB,GAA6B;AAC3BpB,EAAAA,YAAY,EAAEqB,iBAAS,CAACC,IAAV,CAAeC,UADF;AAE3BtB,EAAAA,IAAI,EAAEoB,iBAAS,CAACC,IAFW;AAG3BpB,EAAAA,OAAO,EAAEmB,iBAAS,CAACG,IAHQ;AAI3BrB,EAAAA,MAAM,EAAEkB,iBAAS,CAACI,QAJS;AAK3BrB,EAAAA,aAAa,EAAEsB,sBALY;AAM3BrB,EAAAA,KAAK,EAAEgB,iBAAS,CAACC,IAAV,CAAeC,UANK;AAO3BjB,EAAAA,QAAQ,EAAEe,iBAAS,CAACC,IAPO;AAQ3Bf,EAAAA,OAAO,EAAEc,iBAAS,CAACM;AARQ,CAA7B;AAUA9B,gBAAgB,CAAC+B,YAAjB,GAAgC;AAC9B1B,EAAAA,OAAO,EAAE2B;AADqB,CAAhC;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Bar/Bar.js b/packages/govern-console/public/aragon-ui/esm/src/components/Bar/Bar.js new file mode 100644 index 000000000..1a1b5f2a7 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Bar/Bar.js @@ -0,0 +1,83 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import '../../utils/environment.js'; +import { RADIUS, GU } from '../../style/constants.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import { Inside as i } from '../../../node_modules/use-inside/dist/index.js'; +import { useLayout } from '../Layout/Layout.js'; + +var BAR_PADDING = 2 * GU; + +var _StyledDiv = _styled("div").withConfig({ + displayName: "Bar___StyledDiv", + componentId: "sc-1tcfrs9-0" +})(["display:flex;justify-content:space-between;width:100%;height:100%;"]); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "Bar___StyledDiv2", + componentId: "sc-1tcfrs9-1" +})(["display:flex;align-items:center;height:100%;padding-left:", "px;"], BAR_PADDING); + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "Bar___StyledDiv3", + componentId: "sc-1tcfrs9-2" +})(["display:flex;align-items:center;height:100%;padding-right:", "px;"], BAR_PADDING); + +var _StyledDiv4 = _styled("div").withConfig({ + displayName: "Bar___StyledDiv4", + componentId: "sc-1tcfrs9-3" +})(["border-radius:", "px;background:", ";border-style:solid;border-color:", ";border-width:", ";height:", "px;margin-bottom:", "px;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +function Bar(_ref) { + var children = _ref.children, + primary = _ref.primary, + secondary = _ref.secondary, + props = objectWithoutProperties(_ref, ["children", "primary", "secondary"]); + + var theme = useTheme(); + + var _useLayout = useLayout(), + layoutName = _useLayout.layoutName; + + var fullScreen = layoutName === 'small'; + var content = children || /*#__PURE__*/React.createElement(_StyledDiv, null, /*#__PURE__*/React.createElement(_StyledDiv2, null, /*#__PURE__*/React.createElement(i, { + name: "Bar:primary" + }, primary)), /*#__PURE__*/React.createElement(_StyledDiv3, null, /*#__PURE__*/React.createElement(i, { + name: "Bar:secondary" + }, secondary))); + return /*#__PURE__*/React.createElement(i, { + name: "Bar" + }, /*#__PURE__*/React.createElement(_StyledDiv4, _extends_1({}, props, { + _css: fullScreen ? 0 : RADIUS, + _css2: theme.surface, + _css3: theme.border, + _css4: fullScreen ? '1px 0' : '1px', + _css5: 8 * GU, + _css6: 2 * GU + }), content)); +} + +Bar.propTypes = { + children: propTypes.node, + primary: propTypes.node, + secondary: propTypes.node +}; +Bar.PADDING = BAR_PADDING; + +export default Bar; +//# sourceMappingURL=Bar.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Bar/Bar.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/Bar/Bar.js.map new file mode 100644 index 000000000..ae31aebb6 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Bar/Bar.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Bar.js","sources":["../../../../../src/components/Bar/Bar.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside } from 'use-inside'\nimport { GU, RADIUS } from '../../style'\nimport { useTheme } from '../../theme/Theme'\nimport { useLayout } from '../Layout/Layout'\n\nconst BAR_PADDING = 2 * GU\n\nfunction Bar({ children, primary, secondary, ...props }) {\n const theme = useTheme()\n const { layoutName } = useLayout()\n\n const fullScreen = layoutName === 'small'\n\n const content = children || (\n \n \n {primary}\n \n \n {secondary}\n \n \n )\n\n return (\n \n \n {content}\n \n \n )\n}\n\nBar.propTypes = {\n children: PropTypes.node,\n primary: PropTypes.node,\n secondary: PropTypes.node,\n}\n\nBar.PADDING = BAR_PADDING\n\nexport default Bar\n"],"names":["BAR_PADDING","GU","Bar","children","primary","secondary","props","theme","useTheme","useLayout","layoutName","fullScreen","content","Inside","RADIUS","surface","border","propTypes","PropTypes","node","PADDING"],"mappings":";;;;;;;;;;;AAOA,IAAMA,WAAW,GAAG,IAAIC,EAAxB;;;;;;;;;;yEAsB0BD;;;;;0EAUCA;;;;;;;;;;;;;;;;;;;AA9B3B,SAASE,GAAT,OAAyD;AAAA,MAA1CC,QAA0C,QAA1CA,QAA0C;AAAA,MAAhCC,OAAgC,QAAhCA,OAAgC;AAAA,MAAvBC,SAAuB,QAAvBA,SAAuB;AAAA,MAATC,KAAS;;AACvD,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;;AADuD,mBAEhCC,SAAS,EAFuB;AAAA,MAE/CC,UAF+C,cAE/CA,UAF+C;;AAIvD,MAAMC,UAAU,GAAGD,UAAU,KAAK,OAAlC;AAEA,MAAME,OAAO,GAAGT,QAAQ,iBACtB,mDAQE,oDAQE,oBAACU,CAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,KAA4BT,OAA5B,CARF,CARF,eAkBE,oDAQE,oBAACS,CAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,KAA8BR,SAA9B,CARF,CAlBF,CADF;AAgCA,sBACE,oBAACQ,CAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,kBACE,gDAUMP,KAVN;AAAA,UAEqBK,UAAU,GAAG,CAAH,GAAOG,MAFtC;AAAA,WAGkBP,KAAK,CAACQ,OAHxB;AAAA,WAKoBR,KAAK,CAACS,MAL1B;AAAA,WAMoBL,UAAU,GAAG,OAAH,GAAa,KAN3C;AAAA,WAOc,IAAIV,EAPlB;AAAA,WAQqB,IAAIA;AARzB,MAYGW,OAZH,CADF,CADF;AAkBD;;AAEDV,GAAG,CAACe,SAAJ,GAAgB;AACdd,EAAAA,QAAQ,EAAEe,SAAS,CAACC,IADN;AAEdf,EAAAA,OAAO,EAAEc,SAAS,CAACC,IAFL;AAGdd,EAAAA,SAAS,EAAEa,SAAS,CAACC;AAHP,CAAhB;AAMAjB,GAAG,CAACkB,OAAJ,GAAcpB,WAAd;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/BaseStyles.js b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/BaseStyles.js new file mode 100644 index 000000000..ce12aa5e7 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/BaseStyles.js @@ -0,0 +1,97 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import { createGlobalStyle } from 'styled-components'; +import { DEFAULT_FONT_FAMILY, MONOSPACE_FONT_FAMILY } from '../../utils/font.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import { PublicUrl } from '../../providers/PublicUrl/PublicUrl.js'; +import taggedTemplateLiteral from '../../../node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js'; +import overpassLightWoff2 from './assets/overpass/overpass-light.woff2.js'; +import overpassRegularWoff2 from './assets/overpass/overpass-regular.woff2.js'; +import overpassSemiBoldWoff2 from './assets/overpass/overpass-semibold.woff2.js'; +import overpassMonoLightWoff2 from './assets/overpass-mono/overpass-mono-light.woff2.js'; + +function _templateObject() { + var data = taggedTemplateLiteral(["\n\n // @font-face declarations\n ", "\n\n *, *:before, *:after {\n box-sizing: border-box;\n }\n html {\n -webkit-overflow-scrolling: touch;\n }\n body {\n height: 0;\n min-height: 100vh;\n color: ", ";\n background: ", ";\n font-family: ", ";\n ", ";\n }\n html, body {\n overflow: hidden;\n }\n body, ul, p, h1, h2, h3, h4, h5, h6 {\n margin: 0;\n padding: 0;\n }\n button, select, input, textarea, h1, h2, h3, h4, h5, h6 {\n font-size: inherit;\n font-family: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n a, button, select, input, textarea {\n color: inherit;\n }\n strong, b {\n font-weight: 600;\n }\n ::selection {\n background: ", ";\n color: ", ";\n }\n"]); + + _templateObject = function _templateObject() { + return data; + }; + + return data; +} +var DEFAULT_FONTS = { + '400': { + url: overpassLightWoff2, + format: 'woff2' + }, + '600': { + url: overpassRegularWoff2, + format: 'woff2' + }, + '800': { + url: overpassSemiBoldWoff2, + format: 'woff2' + } +}; +var MONOSPACE_FONTS = { + '400': { + url: overpassMonoLightWoff2, + format: 'woff2' + } +}; + +function fontSrc(publicUrl, _ref) { + var url = _ref.url, + format = _ref.format; + return "url(".concat(publicUrl + url, ") format('").concat(format, "')"); +} + +function fontFaceDeclarations(_ref2) { + var fontFamily = _ref2.fontFamily, + publicUrl = _ref2.publicUrl; + + // No need to declare the font faces if the font family has changed. + if (fontFamily !== BaseStyles.defaultProps.fontFamily) { + return ''; + } + + return "\n @font-face {\n font-family: ".concat(DEFAULT_FONT_FAMILY, ";\n src: ").concat(fontSrc(publicUrl, DEFAULT_FONTS['400']), ";\n font-weight: 400;\n font-style: normal;\n }\n @font-face {\n font-family: ").concat(DEFAULT_FONT_FAMILY, ";\n src: ").concat(fontSrc(publicUrl, DEFAULT_FONTS['600']), ";\n font-weight: 600;\n font-style: normal;\n }\n @font-face {\n font-family: ").concat(DEFAULT_FONT_FAMILY, ";\n src: ").concat(fontSrc(publicUrl, DEFAULT_FONTS['800']), ";\n font-weight: 800;\n font-style: normal;\n }\n @font-face {\n font-family: ").concat(MONOSPACE_FONT_FAMILY, ";\n src: ").concat(fontSrc(publicUrl, MONOSPACE_FONTS['400']), ";\n font-weight: 400;\n font-style: normal;\n }\n "); +} + +var BaseStyles = /*#__PURE__*/React.memo(function BaseStyles(props) { + var theme = useTheme(); + return /*#__PURE__*/React.createElement(GlobalStyle, _extends_1({}, props, { + theme: theme, + fontFaces: fontFaceDeclarations(props), + textStyleCss: textStyle('body2') + })); +}); +BaseStyles.propTypes = { + publicUrl: propTypes.string, + fontFamily: propTypes.string +}; +BaseStyles.defaultProps = { + publicUrl: '/', + fontFamily: "".concat(DEFAULT_FONT_FAMILY, ", sans-serif") +}; +var GlobalStyle = createGlobalStyle(_templateObject(), function (p) { + return p.fontFaces ? p.fontFaces : ''; +}, function (p) { + return p.theme.content; +}, function (p) { + return p.theme.background; +}, function (p) { + return p.fontFamily; +}, function (p) { + return p.textStyleCss; +}, function (p) { + return p.theme.selected; +}, function (p) { + return p.theme.selectedContent; +}); +var BaseStyles$1 = PublicUrl.hocWrap(BaseStyles); + +export default BaseStyles$1; +//# sourceMappingURL=BaseStyles.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/BaseStyles.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/BaseStyles.js.map new file mode 100644 index 000000000..6d5cdc2fe --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/BaseStyles.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BaseStyles.js","sources":["../../../../../src/components/BaseStyles/BaseStyles.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { createGlobalStyle } from 'styled-components'\nimport { PublicUrl } from '../../providers/PublicUrl'\nimport { DEFAULT_FONT_FAMILY, MONOSPACE_FONT_FAMILY } from '../../utils'\nimport { textStyle } from '../../style'\nimport { useTheme } from '../../theme'\n\nimport overpassLightWoff2 from './assets/overpass/overpass-light.woff2'\nimport overpassRegularWoff2 from './assets/overpass/overpass-regular.woff2'\nimport overpassSemiBoldWoff2 from './assets/overpass/overpass-semibold.woff2'\nimport overpassMonoLightWoff2 from './assets/overpass-mono/overpass-mono-light.woff2'\n\nconst DEFAULT_FONTS = {\n '400': { url: overpassLightWoff2, format: 'woff2' },\n '600': { url: overpassRegularWoff2, format: 'woff2' },\n '800': { url: overpassSemiBoldWoff2, format: 'woff2' },\n}\n\nconst MONOSPACE_FONTS = {\n '400': { url: overpassMonoLightWoff2, format: 'woff2' },\n}\n\nfunction fontSrc(publicUrl, { url, format }) {\n return `url(${publicUrl + url}) format('${format}')`\n}\n\nfunction fontFaceDeclarations({ fontFamily, publicUrl }) {\n // No need to declare the font faces if the font family has changed.\n if (fontFamily !== BaseStyles.defaultProps.fontFamily) {\n return ''\n }\n return `\n @font-face {\n font-family: ${DEFAULT_FONT_FAMILY};\n src: ${fontSrc(publicUrl, DEFAULT_FONTS['400'])};\n font-weight: 400;\n font-style: normal;\n }\n @font-face {\n font-family: ${DEFAULT_FONT_FAMILY};\n src: ${fontSrc(publicUrl, DEFAULT_FONTS['600'])};\n font-weight: 600;\n font-style: normal;\n }\n @font-face {\n font-family: ${DEFAULT_FONT_FAMILY};\n src: ${fontSrc(publicUrl, DEFAULT_FONTS['800'])};\n font-weight: 800;\n font-style: normal;\n }\n @font-face {\n font-family: ${MONOSPACE_FONT_FAMILY};\n src: ${fontSrc(publicUrl, MONOSPACE_FONTS['400'])};\n font-weight: 400;\n font-style: normal;\n }\n `\n}\n\nconst BaseStyles = React.memo(function BaseStyles(props) {\n const theme = useTheme()\n return (\n \n )\n})\n\nBaseStyles.propTypes = {\n publicUrl: PropTypes.string,\n fontFamily: PropTypes.string,\n}\n\nBaseStyles.defaultProps = {\n publicUrl: '/',\n fontFamily: `${DEFAULT_FONT_FAMILY}, sans-serif`,\n}\n\nconst GlobalStyle = createGlobalStyle`\n\n // @font-face declarations\n ${p => (p.fontFaces ? p.fontFaces : '')}\n\n *, *:before, *:after {\n box-sizing: border-box;\n }\n html {\n -webkit-overflow-scrolling: touch;\n }\n body {\n height: 0;\n min-height: 100vh;\n color: ${p => p.theme.content};\n background: ${p => p.theme.background};\n font-family: ${p => p.fontFamily};\n ${p => p.textStyleCss};\n }\n html, body {\n overflow: hidden;\n }\n body, ul, p, h1, h2, h3, h4, h5, h6 {\n margin: 0;\n padding: 0;\n }\n button, select, input, textarea, h1, h2, h3, h4, h5, h6 {\n font-size: inherit;\n font-family: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n a, button, select, input, textarea {\n color: inherit;\n }\n strong, b {\n font-weight: 600;\n }\n ::selection {\n background: ${p => p.theme.selected};\n color: ${p => p.theme.selectedContent};\n }\n`\n\nexport default PublicUrl.hocWrap(BaseStyles)\n"],"names":["DEFAULT_FONTS","url","overpassLightWoff2","format","overpassRegularWoff2","overpassSemiBoldWoff2","MONOSPACE_FONTS","overpassMonoLightWoff2","fontSrc","publicUrl","fontFaceDeclarations","fontFamily","BaseStyles","defaultProps","DEFAULT_FONT_FAMILY","MONOSPACE_FONT_FAMILY","React","memo","props","theme","useTheme","textStyle","propTypes","PropTypes","string","GlobalStyle","createGlobalStyle","p","fontFaces","content","background","textStyleCss","selected","selectedContent","PublicUrl","hocWrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAMA,aAAa,GAAG;AACpB,SAAO;AAAEC,IAAAA,GAAG,EAAEC,kBAAP;AAA2BC,IAAAA,MAAM,EAAE;AAAnC,GADa;AAEpB,SAAO;AAAEF,IAAAA,GAAG,EAAEG,oBAAP;AAA6BD,IAAAA,MAAM,EAAE;AAArC,GAFa;AAGpB,SAAO;AAAEF,IAAAA,GAAG,EAAEI,qBAAP;AAA8BF,IAAAA,MAAM,EAAE;AAAtC;AAHa,CAAtB;AAMA,IAAMG,eAAe,GAAG;AACtB,SAAO;AAAEL,IAAAA,GAAG,EAAEM,sBAAP;AAA+BJ,IAAAA,MAAM,EAAE;AAAvC;AADe,CAAxB;;AAIA,SAASK,OAAT,CAAiBC,SAAjB,QAA6C;AAAA,MAAfR,GAAe,QAAfA,GAAe;AAAA,MAAVE,MAAU,QAAVA,MAAU;AAC3C,uBAAcM,SAAS,GAAGR,GAA1B,uBAA0CE,MAA1C;AACD;;AAED,SAASO,oBAAT,QAAyD;AAAA,MAAzBC,UAAyB,SAAzBA,UAAyB;AAAA,MAAbF,SAAa,SAAbA,SAAa;;AACvD;AACA,MAAIE,UAAU,KAAKC,UAAU,CAACC,YAAX,CAAwBF,UAA3C,EAAuD;AACrD,WAAO,EAAP;AACD;;AACD,0DAEmBG,mBAFnB,2BAGWN,OAAO,CAACC,SAAD,EAAYT,aAAa,CAAC,KAAD,CAAzB,CAHlB,gHAQmBc,mBARnB,2BASWN,OAAO,CAACC,SAAD,EAAYT,aAAa,CAAC,KAAD,CAAzB,CATlB,gHAcmBc,mBAdnB,2BAeWN,OAAO,CAACC,SAAD,EAAYT,aAAa,CAAC,KAAD,C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CAAQc,eAAZ;AAAA,CAxCG,CAAjB;AA4CA,mBAAeC,SAAS,CAACC,OAAV,CAAkBvB,UAAlB,CAAf;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2.js b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2.js new file mode 100644 index 000000000..c53474d1d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2.js @@ -0,0 +1,4 @@ +var overpassMonoLightWoff2 = "3dd21d4f0d28fecb.woff2"; + +export default overpassMonoLightWoff2; +//# sourceMappingURL=overpass-mono-light.woff2.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2.js.map new file mode 100644 index 000000000..dd9890931 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"overpass-mono-light.woff2.js","sources":["../../../../../../../src/components/BaseStyles/assets/overpass-mono/overpass-mono-light.woff2"],"sourcesContent":["export default \"3dd21d4f0d28fecb.woff2\""],"names":[],"mappings":"AAAA,6BAAe;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-light.woff2.js b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-light.woff2.js new file mode 100644 index 000000000..9c21818ff --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-light.woff2.js @@ -0,0 +1,4 @@ +var overpassLightWoff2 = "cf790334a5a6d45c.woff2"; + +export default overpassLightWoff2; +//# sourceMappingURL=overpass-light.woff2.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-light.woff2.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-light.woff2.js.map new file mode 100644 index 000000000..cd9939521 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-light.woff2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"overpass-light.woff2.js","sources":["../../../../../../../src/components/BaseStyles/assets/overpass/overpass-light.woff2"],"sourcesContent":["export default \"cf790334a5a6d45c.woff2\""],"names":[],"mappings":"AAAA,yBAAe;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-regular.woff2.js b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-regular.woff2.js new file mode 100644 index 000000000..02161a02c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-regular.woff2.js @@ -0,0 +1,4 @@ +var overpassRegularWoff2 = "32a3f11e7740ce58.woff2"; + +export default overpassRegularWoff2; +//# sourceMappingURL=overpass-regular.woff2.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-regular.woff2.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-regular.woff2.js.map new file mode 100644 index 000000000..ec5e1db01 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-regular.woff2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"overpass-regular.woff2.js","sources":["../../../../../../../src/components/BaseStyles/assets/overpass/overpass-regular.woff2"],"sourcesContent":["export default \"32a3f11e7740ce58.woff2\""],"names":[],"mappings":"AAAA,2BAAe;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-semibold.woff2.js b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-semibold.woff2.js new file mode 100644 index 000000000..c8b1c505b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-semibold.woff2.js @@ -0,0 +1,4 @@ +var overpassSemiBoldWoff2 = "5cfe62515c2f9b42.woff2"; + +export default overpassSemiBoldWoff2; +//# sourceMappingURL=overpass-semibold.woff2.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-semibold.woff2.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-semibold.woff2.js.map new file mode 100644 index 000000000..9ff669286 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/BaseStyles/assets/overpass/overpass-semibold.woff2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"overpass-semibold.woff2.js","sources":["../../../../../../../src/components/BaseStyles/assets/overpass/overpass-semibold.woff2"],"sourcesContent":["export default \"5cfe62515c2f9b42.woff2\""],"names":[],"mappings":"AAAA,4BAAe;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Box/Box.js b/packages/govern-console/public/aragon-ui/esm/src/components/Box/Box.js new file mode 100644 index 000000000..13b924b63 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Box/Box.js @@ -0,0 +1,116 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import { warnOnce } from '../../utils/environment.js'; +import { RADIUS, GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import { useInside as o, Inside as i } from '../../../node_modules/use-inside/dist/index.js'; +import { useLayout } from '../Layout/Layout.js'; + +var _StyledDiv = _styled("div").withConfig({ + displayName: "Box___StyledDiv", + componentId: "sc-54p6u6-0" +})(["position:relative;border-radius:", "px;border-style:solid;border-color:", ";border-width:", ";background:", ";color:", ";& + &{margin-top:", "px;}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +var _StyledH = _styled("h1").withConfig({ + displayName: "Box___StyledH", + componentId: "sc-54p6u6-1" +})(["display:flex;align-items:center;height:", "px;padding:0 ", "px;border-bottom:1px solid ", ";color:", ";", ";"], function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "Box___StyledDiv2", + componentId: "sc-54p6u6-2" +})(["padding:", "px;"], function (p) { + return p._css12; +}); + +function Box(_ref) { + var heading = _ref.heading, + children = _ref.children, + padding = _ref.padding, + props = objectWithoutProperties(_ref, ["heading", "children", "padding"]); + + var theme = useTheme(); + + var _useInside = o('Split:primary'), + _useInside2 = slicedToArray(_useInside, 1), + insideSplitPrimary = _useInside2[0]; + + var _useLayout = useLayout(), + layoutName = _useLayout.layoutName; + + var fullWidth = layoutName === 'small'; + var defaultPadding = (fullWidth ? 2 : insideSplitPrimary ? 5 : 3) * GU; + + if (padding === true) { + warnOnce('Box:padding:true', 'Box: setting true on the padding prop is deprecated. Omit it, or set it to undefined instead.'); + padding = defaultPadding; + } + + if (padding === false) { + warnOnce('Box:padding:false', 'Box: setting false on the padding prop is deprecated. Use 0.'); + padding = 0; + } + + var contentPadding = padding === undefined ? defaultPadding : padding; + return /*#__PURE__*/React.createElement(i, { + name: "Box" + }, /*#__PURE__*/React.createElement(_StyledDiv, _extends_1({ + as: heading ? 'section' : 'div' + }, props, { + _css: fullWidth ? 0 : RADIUS, + _css2: theme.border, + _css3: fullWidth ? '1px 0' : '1px', + _css4: theme.surface, + _css5: theme.surfaceContent, + _css6: 2 * GU + }), heading && /*#__PURE__*/React.createElement(_StyledH, { + _css7: 4 * GU, + _css8: defaultPadding, + _css9: theme.border, + _css10: theme.surfaceContentSecondary, + _css11: textStyle('label2') + }, /*#__PURE__*/React.createElement(i, { + name: "Box:heading" + }, heading)), /*#__PURE__*/React.createElement(_StyledDiv2, { + _css12: contentPadding + }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(i, { + name: "Box:content" + }, children))))); +} + +Box.propTypes = { + heading: propTypes.node, + children: propTypes.node, + padding: propTypes.oneOfType([propTypes.number, // deprecated + propTypes.bool]) +}; + +export default Box; +//# sourceMappingURL=Box.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Box/Box.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/Box/Box.js.map new file mode 100644 index 000000000..ec142645b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Box/Box.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Box.js","sources":["../../../../../src/components/Box/Box.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside, useInside } from 'use-inside'\nimport { GU, RADIUS, textStyle } from '../../style'\nimport { useTheme } from '../../theme/Theme'\nimport { useLayout } from '../Layout/Layout'\nimport { warnOnce } from '../../utils'\n\nfunction Box({ heading, children, padding, ...props }) {\n const theme = useTheme()\n const [insideSplitPrimary] = useInside('Split:primary')\n const { layoutName } = useLayout()\n const fullWidth = layoutName === 'small'\n\n const defaultPadding = (fullWidth ? 2 : insideSplitPrimary ? 5 : 3) * GU\n\n if (padding === true) {\n warnOnce(\n 'Box:padding:true',\n 'Box: setting true on the padding prop is deprecated. Omit it, or set it to undefined instead.'\n )\n padding = defaultPadding\n }\n if (padding === false) {\n warnOnce(\n 'Box:padding:false',\n 'Box: setting false on the padding prop is deprecated. Use 0.'\n )\n padding = 0\n }\n\n const contentPadding = padding === undefined ? defaultPadding : padding\n\n return (\n \n \n {heading && (\n \n {heading}\n \n )}\n \n
    \n {children}\n
    \n \n \n
    \n )\n}\n\nBox.propTypes = {\n heading: PropTypes.node,\n children: PropTypes.node,\n padding: PropTypes.oneOfType([\n PropTypes.number,\n\n // deprecated\n PropTypes.bool,\n ]),\n}\n\nexport default Box\n"],"names":["Box","heading","children","padding","props","theme","useTheme","useInside","insideSplitPrimary","useLayout","layoutName","fullWidth","defaultPadding","GU","warnOnce","contentPadding","undefined","Inside","RADIUS","border","surface","surfaceContent","surfaceContentSecondary","textStyle","propTypes","PropTypes","node","oneOfType","number","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAASA,GAAT,OAAuD;AAAA,MAAxCC,OAAwC,QAAxCA,OAAwC;AAAA,MAA/BC,QAA+B,QAA/BA,QAA+B;AAAA,MAArBC,OAAqB,QAArBA,OAAqB;AAAA,MAATC,KAAS;;AACrD,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;;AADqD,mBAExBC,CAAS,CAAC,eAAD,CAFe;AAAA;AAAA,MAE9CC,kBAF8C;;AAAA,mBAG9BC,SAAS,EAHqB;AAAA,MAG7CC,UAH6C,cAG7CA,UAH6C;;AAIrD,MAAMC,SAAS,GAAGD,UAAU,KAAK,OAAjC;AAEA,MAAME,cAAc,GAAG,CAACD,SAAS,GAAG,CAAH,GAAOH,kBAAkB,GAAG,CAAH,GAAO,CAA1C,IAA+CK,EAAtE;;AAEA,MAAIV,OAAO,KAAK,IAAhB,EAAsB;AACpBW,IAAAA,QAAQ,CACN,kBADM,EAEN,+FAFM,CAAR;AAIAX,IAAAA,OAAO,GAAGS,cAAV;AACD;;AACD,MAAIT,OAAO,KAAK,KAAhB,EAAuB;AACrBW,IAAAA,QAAQ,CACN,mBADM,EAEN,8DAFM,CAAR;AAIAX,IAAAA,OAAO,GAAG,CAAV;AACD;;AAED,MAAMY,cAAc,GAAGZ,OAAO,KAAKa,SAAZ,GAAwBJ,cAAxB,GAAyCT,OAAhE;AAEA,sBACE,oBAACc,CAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,kBACE;AACE,IAAA,EAAE,EAAEhB,OAAO,GAAG,SAAH,GAAe;AAD5B,KAcMG,KAdN;AAAA,UAIqBO,SAAS,GAAG,CAAH,GAAOO,MAJrC;AAAA,WAMoBb,KAAK,CAACc,MAN1B;AAAA,WAOoBR,SAAS,GAAG,OAAH,GAAa,KAP1C;AAAA,WAQkBN,KAAK,CAACe,OARxB;AAAA,WASaf,KAAK,CAACgB,cATnB;AAAA,WAWoB,IAAIR;AAXxB,MAgBGZ,OAAO,iBACN;AAAA,WAIc,IAAIY,EAJlB;AAAA,WAKiBD,cALjB;AAAA,WAM+BP,KAAK,CAACc,MANrC;AAAA,YAWad,KAAK,CAACiB,uBAXnB;AAAA,YAYMC,SAAS,CAAC,QAAD;AAZf,kBAeE,oBAACN,CAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,KAA4BhB,OAA5B,CAfF,CAjBJ,eAmCE;AAAA,YAEec;AAFf,kBAKE,8CACE,oBAACE,CAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,KAA4Bf,QAA5B,CADF,CALF,CAnCF,CADF,CADF;AAiDD;;AAEDF,GAAG,CAACwB,SAAJ,GAAgB;AACdvB,EAAAA,OAAO,EAAEwB,SAAS,CAACC,IADL;AAEdxB,EAAAA,QAAQ,EAAEuB,SAAS,CAACC,IAFN;AAGdvB,EAAAA,OAAO,EAAEsB,SAAS,CAACE,SAAV,CAAoB,CAC3BF,SAAS,CAACG,MADiB;AAI3BH,EAAAA,SAAS,CAACI,IAJiB,CAApB;AAHK,CAAhB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Button/Button.js b/packages/govern-console/public/aragon-ui/esm/src/components/Button/Button.js new file mode 100644 index 000000000..f7bb66460 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Button/Button.js @@ -0,0 +1,345 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useMemo } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import { unselectable } from '../../utils/css.js'; +import { warnOnce, warn } from '../../utils/environment.js'; +import { RADIUS, GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import { useInside as o, Inside as i } from '../../../node_modules/use-inside/dist/index.js'; +import { useLayout } from '../Layout/Layout.js'; +import ButtonBaseWithFocus from '../ButtonBase/ButtonBase.js'; + +// See src/icons/icon-size.js for the corresponding icon sizes. + +var SIZE_STYLES = { + medium: { + textStyleName: 'body2', + height: 5 * GU, + padding: 3 * GU, + iconPadding: 2 * GU, + minWidth: 14.5 * GU, + middleSpace: 1 * GU + }, + small: { + textStyleName: 'body2', + height: 4 * GU, + padding: 2 * GU, + iconPadding: 1.5 * GU, + minWidth: 13 * GU, + middleSpace: 1 * GU + }, + mini: { + textStyleName: 'body4', + height: 3 * GU, + padding: 1.5 * GU, + iconPadding: 1 * GU, + minWidth: 9.25 * GU, + middleSpace: 0.5 * GU + } +}; + +function getPadding(size, displayIcon, displayLabel) { + var _SIZE_STYLES$size = SIZE_STYLES[size], + padding = _SIZE_STYLES$size.padding, + iconPadding = _SIZE_STYLES$size.iconPadding; + + if (displayIcon && !displayLabel) { + return '0'; + } + + if (displayIcon && displayLabel) { + return "0 ".concat(padding, "px 0 ").concat(iconPadding, "px"); + } + + return "0 ".concat(padding, "px"); +} + +function getWidth(size, displayIconOnly, wide) { + var height = SIZE_STYLES[size].height; + + if (wide) { + return '100%'; + } + + if (displayIconOnly) { + return "".concat(height, "px"); + } + + return 'auto'; +} + +function getMinWidth(size, displayLabelOnly) { + var minWidth = SIZE_STYLES[size].minWidth; + return displayLabelOnly ? "".concat(minWidth, "px") : '0'; +} // CSS styles related to the current size + + +function sizeStyles(size, wide, displayIcon, displayLabel) { + var _SIZE_STYLES$size2 = SIZE_STYLES[size], + height = _SIZE_STYLES$size2.height, + textStyleName = _SIZE_STYLES$size2.textStyleName, + middleSpace = _SIZE_STYLES$size2.middleSpace; + return { + height: "".concat(height, "px"), + middleSpace: displayIcon && displayLabel ? "".concat(middleSpace, "px") : '0', + minWidth: getMinWidth(size, !displayIcon && displayLabel), + padding: getPadding(size, displayIcon, displayLabel), + textStyleCss: textStyle(textStyleName), + width: getWidth(size, displayIcon && !displayLabel, wide) + }; +} // CSS styles related to the current mode + + +function modeStyles(theme, mode, disabled) { + if (disabled) { + return { + background: theme.disabled, + color: theme.disabledContent, + iconColor: theme.disabledContent, + border: '0' + }; + } + + if (mode === 'strong') { + return { + background: "\n linear-gradient(\n 190deg,\n ".concat(theme.accentStart, " -100%,\n ").concat(theme.accentEnd, " 80%\n )\n "), + color: theme.accentContent, + iconColor: theme.accentContent, + border: '0' + }; + } + + if (mode === 'positive') { + return { + background: theme.positive, + color: theme.positiveContent, + iconColor: theme.positiveContent, + border: '0' + }; + } + + if (mode === 'negative') { + return { + background: theme.negative, + color: theme.negativeContent, + iconColor: theme.negativeContent, + border: '0' + }; + } + + return { + background: theme.surfaceInteractive, + color: theme.surfaceContent, + iconColor: theme.surfaceIcon, + border: "1px solid ".concat(theme.border) + }; +} + +var _StyledButtonBase = _styled(ButtonBaseWithFocus).withConfig({ + displayName: "Button___StyledButtonBase", + componentId: "sc-8npd5h-0" +})(["display:", ";align-items:center;justify-content:center;width:", ";height:", ";min-width:", ";padding:", ";", ";", ";background:", ";color:", ";white-space:nowrap;border:", ";box-shadow:", ";transition-property:transform,box-shadow;transition-duration:50ms;transition-timing-function:ease-in-out;&:active{transform:", ";box-shadow:", ";}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, unselectable, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}, function (p) { + return p._css12; +}); + +var _StyledSpan = _styled("span").withConfig({ + displayName: "Button___StyledSpan", + componentId: "sc-8npd5h-1" +})(["position:relative;top:-1px;display:flex;color:", ";margin-right:", ";"], function (p) { + return p._css13; +}, function (p) { + return p._css14; +}); + +function Button(_ref) { + var children = _ref.children, + disabled = _ref.disabled, + display = _ref.display, + icon = _ref.icon, + iconOnly = _ref.iconOnly, + innerRef = _ref.innerRef, + label = _ref.label, + mode = _ref.mode, + size = _ref.size, + wide = _ref.wide, + props = objectWithoutProperties(_ref, ["children", "disabled", "display", "icon", "iconOnly", "innerRef", "label", "mode", "size", "wide"]); + + // backward compatibility and deprecated props + if (iconOnly) { + warnOnce('Button:iconOnly', 'Button: "iconOnly" is deprecated, please use "display".'); + display = 'icon'; + } + + if (mode === 'outline' || mode === 'secondary') { + warnOnce('Button:mode', "Button: the mode \"".concat(mode, "\" is deprecated, please use \"normal\".")); + mode = 'normal'; + } + + if (size === 'normal' || size === 'large') { + warnOnce('Button:size', "Button: the size \"".concat(size, "\" is deprecated, please use \"medium\".")); + size = 'medium'; + } // prop warnings + + + if (display === 'icon' && !icon) { + warn('Button: the display "icon" was used without providing an icon.'); + } + + if (!children && !label) { + warn('Button: please provide a label.'); + } + + var theme = useTheme(); + + var _useLayout = useLayout(), + layoutName = _useLayout.layoutName; + + var _useInside = o('EmptyStateCard'), + _useInside2 = slicedToArray(_useInside, 1), + insideEmptyStateCard = _useInside2[0]; + + var _useInside3 = o('Header:secondary'), + _useInside4 = slicedToArray(_useInside3, 1), + insideHeaderSecondary = _useInside4[0]; // Always wide + strong when used as an empty state card action + + + if (insideEmptyStateCard) { + mode = 'strong'; + wide = true; + } // Alternate between icon and label automatically when used in Header + + + if (insideHeaderSecondary && display === 'auto' && icon && label) { + display = layoutName === 'small' ? 'icon' : 'label'; + } // Otherwise, display both + + + if (display === 'auto') { + display = 'all'; + } + + var displayIcon = icon && (display === 'all' || display === 'icon'); + var displayLabel = label && (display === 'all' || display === 'label'); // Mode styles + + var _useMemo = useMemo(function () { + return modeStyles(theme, mode, disabled); + }, [mode, theme, disabled]), + background = _useMemo.background, + color = _useMemo.color, + iconColor = _useMemo.iconColor, + border = _useMemo.border; // Size styles + + + var _useMemo2 = useMemo(function () { + return sizeStyles(size, wide, displayIcon, displayLabel); + }, [size, wide, displayIcon, displayLabel]), + height = _useMemo2.height, + middleSpace = _useMemo2.middleSpace, + minWidth = _useMemo2.minWidth, + padding = _useMemo2.padding, + textStyleCss = _useMemo2.textStyleCss, + width = _useMemo2.width; // Use the label as a title when only the icon is displayed + + + if (displayIcon && !displayLabel && label && typeof label === 'string') { + props.title = label; + } + + var insideData = { + size: size + }; + return /*#__PURE__*/React.createElement(_StyledButtonBase, _extends_1({ + ref: innerRef, + focusRingSpacing: border === '0' ? 0 : 1, + focusRingRadius: RADIUS, + disabled: disabled + }, props, { + _css: wide ? 'flex' : 'inline-flex', + _css2: width, + _css3: height, + _css4: minWidth, + _css5: padding, + _css6: textStyleCss, + _css7: background, + _css8: color, + _css9: border, + _css10: disabled ? 'none' : '0 1px 3px rgba(0, 0, 0, 0.1)', + _css11: disabled ? 'none' : 'translateY(1px)', + _css12: disabled ? 'none' : '0px 1px 2px rgba(0, 0, 0, 0.08)' + }), /*#__PURE__*/React.createElement(i, { + name: "Button", + data: insideData + }, children || /*#__PURE__*/React.createElement(React.Fragment, null, displayIcon && /*#__PURE__*/React.createElement(i, { + name: "Button:icon", + data: insideData + }, /*#__PURE__*/React.createElement(_StyledSpan, { + _css13: iconColor, + _css14: middleSpace + }, icon)), displayLabel && /*#__PURE__*/React.createElement(i, { + name: "Button:label", + data: insideData + }, label)))); +} + +Button.propTypes = { + children: propTypes.node, + disabled: propTypes.bool, + display: propTypes.oneOf(['auto', 'all', 'icon', 'label']), + icon: propTypes.node, + innerRef: propTypes.any, + label: propTypes.string, + mode: propTypes.oneOf(['normal', 'strong', 'positive', 'negative', // deprecated + 'outline', 'secondary', 'text']), + size: propTypes.oneOf(['medium', 'small', 'mini', // deprecated + 'large', 'normal']), + wide: propTypes.bool, + // deprecated + iconOnly: propTypes.bool +}; +Button.defaultProps = { + disabled: false, + display: 'auto', + mode: 'normal', + size: 'medium', + wide: false +}; +var ButtonWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) { + return /*#__PURE__*/React.createElement(Button, _extends_1({ + innerRef: ref + }, props)); +}); +ButtonWithRef.Anchor = /*#__PURE__*/React.forwardRef(function (props, ref) { + warnOnce('Button.Anchor', 'Button.Anchor is deprecated: please use Button with a href prop instead.'); + return /*#__PURE__*/React.createElement(ButtonWithRef, _extends_1({ + ref: ref + }, props)); +}); + +export default ButtonWithRef; +//# sourceMappingURL=Button.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Button/Button.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/Button/Button.js.map new file mode 100644 index 000000000..22cf70f7c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Button/Button.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Button.js","sources":["../../../../../src/components/Button/Button.js"],"sourcesContent":["import React, { useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside, useInside } from 'use-inside'\nimport { textStyle, GU, RADIUS } from '../../style'\nimport { useTheme } from '../../theme'\nimport { warn, warnOnce, unselectable } from '../../utils'\nimport { useLayout } from '../Layout/Layout'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\n// Base styles related to every size.\n// See src/icons/icon-size.js for the corresponding icon sizes.\nconst SIZE_STYLES = {\n medium: {\n textStyleName: 'body2',\n height: 5 * GU,\n padding: 3 * GU,\n iconPadding: 2 * GU,\n minWidth: 14.5 * GU,\n middleSpace: 1 * GU,\n },\n small: {\n textStyleName: 'body2',\n height: 4 * GU,\n padding: 2 * GU,\n iconPadding: 1.5 * GU,\n minWidth: 13 * GU,\n middleSpace: 1 * GU,\n },\n mini: {\n textStyleName: 'body4',\n height: 3 * GU,\n padding: 1.5 * GU,\n iconPadding: 1 * GU,\n minWidth: 9.25 * GU,\n middleSpace: 0.5 * GU,\n },\n}\n\nfunction getPadding(size, displayIcon, displayLabel) {\n const { padding, iconPadding } = SIZE_STYLES[size]\n\n if (displayIcon && !displayLabel) {\n return '0'\n }\n\n if (displayIcon && displayLabel) {\n return `0 ${padding}px 0 ${iconPadding}px`\n }\n\n return `0 ${padding}px`\n}\n\nfunction getWidth(size, displayIconOnly, wide) {\n const { height } = SIZE_STYLES[size]\n\n if (wide) {\n return '100%'\n }\n\n if (displayIconOnly) {\n return `${height}px`\n }\n\n return 'auto'\n}\n\nfunction getMinWidth(size, displayLabelOnly) {\n const { minWidth } = SIZE_STYLES[size]\n return displayLabelOnly ? `${minWidth}px` : '0'\n}\n\n// CSS styles related to the current size\nfunction sizeStyles(size, wide, displayIcon, displayLabel) {\n const { height, textStyleName, middleSpace } = SIZE_STYLES[size]\n\n return {\n height: `${height}px`,\n middleSpace: displayIcon && displayLabel ? `${middleSpace}px` : '0',\n minWidth: getMinWidth(size, !displayIcon && displayLabel),\n padding: getPadding(size, displayIcon, displayLabel),\n textStyleCss: textStyle(textStyleName),\n width: getWidth(size, displayIcon && !displayLabel, wide),\n }\n}\n\n// CSS styles related to the current mode\nfunction modeStyles(theme, mode, disabled) {\n if (disabled) {\n return {\n background: theme.disabled,\n color: theme.disabledContent,\n iconColor: theme.disabledContent,\n border: '0',\n }\n }\n if (mode === 'strong') {\n return {\n background: `\n linear-gradient(\n 190deg,\n ${theme.accentStart} -100%,\n ${theme.accentEnd} 80%\n )\n `,\n color: theme.accentContent,\n iconColor: theme.accentContent,\n border: '0',\n }\n }\n\n if (mode === 'positive') {\n return {\n background: theme.positive,\n color: theme.positiveContent,\n iconColor: theme.positiveContent,\n border: '0',\n }\n }\n\n if (mode === 'negative') {\n return {\n background: theme.negative,\n color: theme.negativeContent,\n iconColor: theme.negativeContent,\n border: '0',\n }\n }\n\n return {\n background: theme.surfaceInteractive,\n color: theme.surfaceContent,\n iconColor: theme.surfaceIcon,\n border: `1px solid ${theme.border}`,\n }\n}\n\nfunction Button({\n children,\n disabled,\n display,\n icon,\n iconOnly,\n innerRef,\n label,\n mode,\n size,\n wide,\n ...props\n}) {\n // backward compatibility and deprecated props\n if (iconOnly) {\n warnOnce(\n 'Button:iconOnly',\n 'Button: \"iconOnly\" is deprecated, please use \"display\".'\n )\n display = 'icon'\n }\n if (mode === 'outline' || mode === 'secondary') {\n warnOnce(\n 'Button:mode',\n `Button: the mode \"${mode}\" is deprecated, please use \"normal\".`\n )\n mode = 'normal'\n }\n if (size === 'normal' || size === 'large') {\n warnOnce(\n 'Button:size',\n `Button: the size \"${size}\" is deprecated, please use \"medium\".`\n )\n size = 'medium'\n }\n\n // prop warnings\n if (display === 'icon' && !icon) {\n warn('Button: the display \"icon\" was used without providing an icon.')\n }\n if (!children && !label) {\n warn('Button: please provide a label.')\n }\n\n const theme = useTheme()\n const { layoutName } = useLayout()\n\n const [insideEmptyStateCard] = useInside('EmptyStateCard')\n const [insideHeaderSecondary] = useInside('Header:secondary')\n\n // Always wide + strong when used as an empty state card action\n if (insideEmptyStateCard) {\n mode = 'strong'\n wide = true\n }\n\n // Alternate between icon and label automatically when used in Header\n if (insideHeaderSecondary && display === 'auto' && icon && label) {\n display = layoutName === 'small' ? 'icon' : 'label'\n }\n\n // Otherwise, display both\n if (display === 'auto') {\n display = 'all'\n }\n\n const displayIcon = icon && (display === 'all' || display === 'icon')\n const displayLabel = label && (display === 'all' || display === 'label')\n\n // Mode styles\n const { background, color, iconColor, border } = useMemo(\n () => modeStyles(theme, mode, disabled),\n [mode, theme, disabled]\n )\n\n // Size styles\n const {\n height,\n middleSpace,\n minWidth,\n padding,\n textStyleCss,\n width,\n } = useMemo(() => sizeStyles(size, wide, displayIcon, displayLabel), [\n size,\n wide,\n displayIcon,\n displayLabel,\n ])\n\n // Use the label as a title when only the icon is displayed\n if (displayIcon && !displayLabel && label && typeof label === 'string') {\n props.title = label\n }\n\n const insideData = { size }\n\n return (\n \n \n {children || (\n \n {displayIcon && (\n \n \n {icon}\n \n \n )}\n {displayLabel && (\n \n {label}\n \n )}\n \n )}\n \n \n )\n}\n\nButton.propTypes = {\n children: PropTypes.node,\n disabled: PropTypes.bool,\n display: PropTypes.oneOf(['auto', 'all', 'icon', 'label']),\n icon: PropTypes.node,\n innerRef: PropTypes.any,\n label: PropTypes.string,\n mode: PropTypes.oneOf([\n 'normal',\n 'strong',\n 'positive',\n 'negative',\n\n // deprecated\n 'outline',\n 'secondary',\n 'text',\n ]),\n size: PropTypes.oneOf([\n 'medium',\n 'small',\n 'mini',\n\n // deprecated\n 'large',\n 'normal',\n ]),\n wide: PropTypes.bool,\n\n // deprecated\n iconOnly: PropTypes.bool,\n}\n\nButton.defaultProps = {\n disabled: false,\n display: 'auto',\n mode: 'normal',\n size: 'medium',\n wide: false,\n}\n\nconst ButtonWithRef = React.forwardRef((props, ref) => (\n
    \n {opened && (\n \n `0 4px 4px rgba(0, 0, 0, ${t * 0.03})`\n ),\n }}\n css={`\n z-index: ${appliedZIndex + 1};\n overflow: hidden;\n position: absolute;\n top: ${BASE_HEIGHT - 1}px;\n right: 0;\n background: ${theme.surface};\n border: 1px solid ${theme.border};\n border-radius: 3px 0 3px 3px;\n `}\n >\n {children}\n \n \n \n )}\n
    \n )}\n \n \n )\n}\n\nContextMenu.propTypes = {\n children: PropTypes.node,\n zIndex: PropTypes.number,\n disabled: PropTypes.bool,\n}\nContextMenu.defaultProps = {\n zIndex: 0,\n disabled: false,\n}\n\nconst Main = styled(animated.div)`\n position: relative;\n width: ${BASE_WIDTH}px;\n height: ${BASE_HEIGHT}px;\n`\n\nconst Button = styled(ButtonBase)`\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: ${BASE_HEIGHT}px;\n border-radius: ${({ opened }) =>\n opened ? `${RADIUS}px ${RADIUS}px 0 0` : `${RADIUS}px`};\n\n box-shadow: ${({ disabled }) =>\n disabled ? 'none' : `0px 1px 3px rgba(0, 0, 0, 0.1)`};\n`\n\nexport default ContextMenu\n"],"names":["BASE_WIDTH","BASE_HEIGHT","ContextMenu","children","zIndex","disabled","theme","useTheme","useState","opened","setOpened","handleClose","useCallback","handleBaseButtonClick","appliedZIndex","ClickOutHandler","springs","smooth","openProgress","Number","boxShadow","interpolate","t","RADIUS","disabledContent","accent","surfaceContent","surface","border","surfacePressed","animated","display","alignItems","transformOrigin","transform","v","disabledIcon","surfaceIcon","opacity","propTypes","PropTypes","node","number","bool","defaultProps","Main","styled","div","Button","ButtonBase"],"mappings":";;;;;;;;;;;;;;AAUA,IAAMA,UAAU,GAAG,EAAnB;AACA,IAAMC,WAAW,GAAG,EAApB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAASC,WAAT,OAAqD;AAAA,MAA9BC,QAA8B,QAA9BA,QAA8B;AAAA,MAApBC,MAAoB,QAApBA,MAAoB;AAAA,MAAZC,QAAY,QAAZA,QAAY;AACnD,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;;AADmD,kBAEvBC,QAAQ,CAAC,KAAD,CAFe;AAAA;AAAA,MAE5CC,MAF4C;AAAA,MAEpCC,SAFoC;;AAInD,MAAMC,WAAW,GAAGC,WAAW,CAAC,YAAM;AACpCF,IAAAA,SAAS,CAAC,KAAD,CAAT;AACD,GAF8B,EAE5B,EAF4B,CAA/B;AAIA,MAAMG,qBAAqB,GAAGD,WAAW,CAAC,YAAM;AAC9CF,IAAAA,SAAS,CAAC,UAAAD,MAAM;AAAA,aAAI,CAACA,MAAL;AAAA,KAAP,CAAT;AACD,GAFwC,EAEtC,EAFsC,CAAzC,CARmD;AAanD;;AACA,MAAMK,aAAa,GAAGL,MAAM,GAAGL,MAAM,GAAG,CAAZ,GAAgBA,MAA5C;AAEA,sBACE,oBAACW,eAAD;AAAiB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MAAM,GAAGF,OAAM,CAACG,mBAAD,CAAT;AAAA;AAAA;AAAA,4HAKAhD,WALA,EAMO;AAAA,MAAGQ,MAAH,SAAGA,MAAH;AAAA,SACfA,MAAM,aAAMc,MAAN,gBAAkBA,MAAlB,wBAAsCA,MAAtC,OADS;AAAA,CANP,EASI;AAAA,MAAGlB,QAAH,SAAGA,QAAH;AAAA,SACZA,QAAQ,GAAG,MAAH,mCADI;AAAA,CATJ,CAAZ;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenuItem.js b/packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenuItem.js new file mode 100644 index 000000000..99f621d06 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenuItem.js @@ -0,0 +1,30 @@ +import React from 'react'; +import _styled from 'styled-components'; +import { unselectable } from '../../utils/css.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import ButtonBaseWithFocus from '../ButtonBase/ButtonBase.js'; + +var _StyledButtonBase = _styled(ButtonBaseWithFocus).withConfig({ + displayName: "ContextMenuItem___StyledButtonBase", + componentId: "sc-6mg7lj-0" +})(["display:flex;align-items:center;padding:5px 16px 5px 10px;cursor:pointer;white-space:nowrap;width:100%;", " ", ";&:active{background:", ";}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +var ContextMenuItem = /*#__PURE__*/React.memo(function ContextMenuItem(props) { + var theme = useTheme(); + return /*#__PURE__*/React.createElement(_StyledButtonBase, _extends_1({}, props, { + _css: textStyle('body2'), + _css2: unselectable(), + _css3: theme.surfacePressed + })); +}); + +export default ContextMenuItem; +//# sourceMappingURL=ContextMenuItem.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenuItem.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenuItem.js.map new file mode 100644 index 000000000..5fca3f0ab --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/ContextMenu/ContextMenuItem.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ContextMenuItem.js","sources":["../../../../../src/components/ContextMenu/ContextMenuItem.js"],"sourcesContent":["import React from 'react'\nimport { textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { unselectable } from '../../utils'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst ContextMenuItem = React.memo(function ContextMenuItem(props) {\n const theme = useTheme()\n return (\n \n )\n})\n\nexport default ContextMenuItem\n"],"names":["ContextMenuItem","React","memo","props","theme","useTheme","textStyle","unselectable","surfacePressed"],"mappings":";;;;;;;;;;;;;;;;;;;IAMMA,eAAe,gBAAGC,KAAK,CAACC,IAAN,CAAW,SAASF,eAAT,CAAyBG,KAAzB,EAAgC;AACjE,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;AACA,sBACE,sDAcMF,KAdN;AAAA,UAQMG,SAAS,CAAC,OAAD,CARf;AAAA,WASMC,YAAY,EATlB;AAAA,WAWoBH,KAAK,CAACI;AAX1B,KADF;AAkBD,CApBuB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Countdown/Countdown.js b/packages/govern-console/public/aragon-ui/esm/src/components/Countdown/Countdown.js new file mode 100644 index 000000000..77196701a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Countdown/Countdown.js @@ -0,0 +1,58 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import classCallCheck from '../../../node_modules/@babel/runtime/helpers/classCallCheck.js'; +import createClass from '../../../node_modules/@babel/runtime/helpers/createClass.js'; +import inherits from '../../../node_modules/@babel/runtime/helpers/inherits.js'; +import possibleConstructorReturn from '../../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js'; +import getPrototypeOf from '../../../node_modules/@babel/runtime/helpers/getPrototypeOf.js'; +import { warnOnce } from '../../utils/environment.js'; +import Timer from '../Timer/Timer.js'; + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +var Countdown = /*#__PURE__*/function (_React$Component) { + inherits(Countdown, _React$Component); + + var _super = _createSuper(Countdown); + + function Countdown() { + classCallCheck(this, Countdown); + + return _super.apply(this, arguments); + } + + createClass(Countdown, [{ + key: "deprecationWarning", + value: function deprecationWarning() { + warnOnce('Countdown', '"Countdown" has been deprecated. Please use "Timer" instead.'); + } + }, { + key: "render", + value: function render() { + this.deprecationWarning(); + var _this$props = this.props, + end = _this$props.end, + removeDaysAndHours = _this$props.removeDaysAndHours; + var format = removeDaysAndHours ? 'ms' : 'dhms'; + return /*#__PURE__*/React.createElement(Timer, { + end: end, + format: format + }); + } + }]); + + return Countdown; +}(React.Component); + +Countdown.propTypes = { + end: propTypes.instanceOf(Date).isRequired, + removeDaysAndHours: propTypes.bool +}; +Countdown.defaultProps = { + removeDaysAndHours: false +}; + +export default Countdown; +//# sourceMappingURL=Countdown.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Countdown/Countdown.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/Countdown/Countdown.js.map new file mode 100644 index 000000000..0dcf36e83 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Countdown/Countdown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Countdown.js","sources":["../../../../../src/components/Countdown/Countdown.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport Timer from '../Timer/Timer'\nimport { warnOnce } from '../../utils'\n\nclass Countdown extends React.Component {\n deprecationWarning() {\n warnOnce(\n 'Countdown',\n '\"Countdown\" has been deprecated. Please use \"Timer\" instead.'\n )\n }\n\n render() {\n this.deprecationWarning()\n const { end, removeDaysAndHours } = this.props\n const format = removeDaysAndHours ? 'ms' : 'dhms'\n return \n }\n}\n\nCountdown.propTypes = {\n end: PropTypes.instanceOf(Date).isRequired,\n removeDaysAndHours: PropTypes.bool,\n}\n\nCountdown.defaultProps = {\n removeDaysAndHours: false,\n}\n\nexport default Countdown\n"],"names":["Countdown","warnOnce","deprecationWarning","props","end","removeDaysAndHours","format","React","Component","propTypes","PropTypes","instanceOf","Date","isRequired","bool","defaultProps"],"mappings":";;;;;;;;;;;;;;IAKMA;;;;;;;;;;;;;yCACiB;AACnBC,MAAAA,QAAQ,CACN,WADM,EAEN,8DAFM,CAAR;AAID;;;6BAEQ;AACP,WAAKC,kBAAL;AADO,wBAE6B,KAAKC,KAFlC;AAAA,UAECC,GAFD,eAECA,GAFD;AAAA,UAEMC,kBAFN,eAEMA,kBAFN;AAGP,UAAMC,MAAM,GAAGD,kBAAkB,GAAG,IAAH,GAAU,MAA3C;AACA,0BAAO,oBAAC,KAAD;AAAO,QAAA,GAAG,EAAED,GAAZ;AAAiB,QAAA,MAAM,EAAEE;AAAzB,QAAP;AACD;;;;EAbqBC,KAAK,CAACC;;AAgB9BR,SAAS,CAACS,SAAV,GAAsB;AACpBL,EAAAA,GAAG,EAAEM,SAAS,CAACC,UAAV,CAAqBC,IAArB,EAA2BC,UADZ;AAEpBR,EAAAA,kBAAkB,EAAEK,SAAS,CAACI;AAFV,CAAtB;AAKAd,SAAS,CAACe,YAAV,GAAyB;AACvBV,EAAAA,kBAAkB,EAAE;AADG,CAAzB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/DataView.js b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/DataView.js new file mode 100644 index 000000000..6f71191ca --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/DataView.js @@ -0,0 +1,404 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useState, useCallback, useEffect, useMemo } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; +import toConsumableArray from '../../../node_modules/@babel/runtime/helpers/toConsumableArray.js'; +import _styled from 'styled-components'; +import { noop } from '../../utils/miscellaneous.js'; +import { warnOnce } from '../../utils/environment.js'; +import { GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import { useLayout } from '../Layout/Layout.js'; +import Box from '../Box/Box.js'; +import Pagination from '../Pagination/Pagination.js'; +import { TableView } from './TableView.js'; +import { ListView } from './ListView.js'; +import EmptyState from './EmptyState.js'; + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function prepareEntries(entries, from, to, selectedIndexes) { + return entries.slice(from, to).map(function (entry, index) { + var entryIndex = from + index; + var selected = selectedIndexes.includes(entryIndex); + return { + value: entry || null, + index: entryIndex, + selected: selected + }; + }); +} + +function prepareFields(fields) { + return fields.map(function (fieldFromProps, index, fields) { + // Convert non-object fields (e.g. a simple string) into objects + var field = fieldFromProps && fieldFromProps.label ? fieldFromProps : { + label: fieldFromProps + }; // Auto align the last column to the end (right) + + if (!field.align) { + field.align = index === fields.length - 1 && fields.length > 1 ? 'end' : 'start'; + } + + return field; + }); +} + +function entryExpansion(content) { + // Rows + if (Array.isArray(content) && content.length > 0) { + return { + content: content, + freeLayout: false + }; + } // Free layout + + + if (content && !Array.isArray(content)) { + return { + content: [content], + freeLayout: true + }; + } // No expansion + + + return { + content: [], + freeLayout: false + }; +} + +function renderEntries(entries, _ref) { + var fields = _ref.fields, + renderEntry = _ref.renderEntry, + renderEntryActions = _ref.renderEntryActions, + renderEntryExpansion = _ref.renderEntryExpansion, + mode = _ref.mode; + return entries.map(function (entry) { + var value = entry.value, + index = entry.index, + selected = entry.selected; + var entryNodes = renderEntry(value, index, { + selected: selected, + mode: mode + }); + + if (!Array.isArray(entryNodes)) { + entryNodes = []; + } // Create undefined cells too + + + while (entryNodes.length < fields.length) { + entryNodes.push(null); + } + + var expansion = entryExpansion(renderEntryExpansion ? renderEntryExpansion(value, index, { + selected: selected, + mode: mode + }) : null); + var actions = renderEntryActions ? renderEntryActions(value, index, { + selected: selected, + mode: mode + }) : null; + return { + actions: actions, + entryNodes: entryNodes, + expansion: expansion, + index: index, + selected: selected + }; + }); +} + +function useSelection(entries, selection, onSelectEntries) { + // Only used if `selection` is not passed via props. The selection supports + // both a managed and a controlled mode, to provide a better developer + // experience out of the box. + var _useState = useState([]), + _useState2 = slicedToArray(_useState, 2), + selectionManaged = _useState2[0], + setSelectionManaged = _useState2[1]; + + var currentSelection = selection === undefined ? selectionManaged : selection; + var updateSelection = useCallback(function (newSelection) { + // Managed state + if (selection === undefined) { + setSelectionManaged(newSelection); + } // Useful to notify, even in managed mode + + + onSelectEntries(toConsumableArray(newSelection).sort().map(function (index) { + return entries[index]; + }), newSelection); + }, [selection, onSelectEntries, entries]); + var allSelected = useMemo(function () { + // none selected + if (currentSelection.length === 0) { + return -1; + } // all selected + + + if (currentSelection.length === entries.length) { + return 1; + } // some selected + + + return 0; + }, [entries, currentSelection]); + var toggleEntrySelect = useCallback(function (entryIndex) { + updateSelection(currentSelection.includes(entryIndex) ? currentSelection.filter(function (index) { + return index !== entryIndex; + }) : [].concat(toConsumableArray(currentSelection), [entryIndex])); + }, [updateSelection, currentSelection]); + var selectAll = useCallback(function () { + updateSelection(currentSelection.length === 0 ? entries.map(function (_, index) { + return index; + }) : []); + }, [entries, currentSelection, updateSelection]); + return { + allSelected: allSelected, + selectAll: selectAll, + toggleEntrySelect: toggleEntrySelect, + selectedIndexes: currentSelection + }; +} + +function deprecatedEmptyStatePropsCompat(_ref2) { + var emptyState = _ref2.emptyState, + statusEmpty = _ref2.statusEmpty, + statusLoading = _ref2.statusLoading, + statusEmptyFilters = _ref2.statusEmptyFilters, + statusEmptySearch = _ref2.statusEmptySearch; + + for (var _i = 0, _arr = [['statusEmpty', statusEmpty, 'default', 'title'], ['statusEmptyFilters', statusEmptyFilters, 'empty-filters', 'subtitle'], ['statusEmptySearch', statusEmptySearch, 'empty-search', 'subtitle'], ['statusLoading', statusLoading, 'loading', 'title']]; _i < _arr.length; _i++) { + var _arr$_i = slicedToArray(_arr[_i], 4), + propName = _arr$_i[0], + propValue = _arr$_i[1], + emptyStateName = _arr$_i[2], + partName = _arr$_i[3]; + + if (!propValue) { + continue; + } + + warnOnce("DataView:".concat(propName), "DataView: the ".concat(propName, " prop is now deprecated, please use emptyState instead.")); // Only set the default state title if not set already + + if (!emptyState[emptyStateName] || !emptyState[emptyStateName][partName]) { + emptyState[emptyStateName] = _objectSpread(_objectSpread({}, emptyState[emptyStateName]), {}, defineProperty({}, partName, propValue)); + } + } + + return emptyState; +} + +var _StyledDiv = _styled("div").withConfig({ + displayName: "DataView___StyledDiv", + componentId: "sc-49otbs-0" +})(["padding:", "px ", "px;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +var _StyledH = _styled("h1").withConfig({ + displayName: "DataView___StyledH", + componentId: "sc-49otbs-1" +})(["margin-bottom:", "px;", ";"], function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "DataView___StyledDiv2", + componentId: "sc-49otbs-2" +})(["border-top:1px solid ", ";"], function (p) { + return p._css5; +}); + +var DataView = /*#__PURE__*/React.memo(function DataView(_ref3) { + var emptyState = _ref3.emptyState, + entries = _ref3.entries, + entriesPerPage = _ref3.entriesPerPage, + fields = _ref3.fields, + heading = _ref3.heading, + mode = _ref3.mode, + onPageChange = _ref3.onPageChange, + onSelectEntries = _ref3.onSelectEntries, + onStatusEmptyClear = _ref3.onStatusEmptyClear, + page = _ref3.page, + renderEntry = _ref3.renderEntry, + renderEntryActions = _ref3.renderEntryActions, + renderEntryExpansion = _ref3.renderEntryExpansion, + renderSelectionCount = _ref3.renderSelectionCount, + selection = _ref3.selection, + status = _ref3.status, + tableRowHeight = _ref3.tableRowHeight, + renderEntryChild = _ref3.renderEntryChild, + statusEmpty = _ref3.statusEmpty, + statusEmptyFilters = _ref3.statusEmptyFilters, + statusEmptySearch = _ref3.statusEmptySearch, + statusLoading = _ref3.statusLoading; + + if (renderEntryChild && !renderEntryExpansion) { + warnOnce('DataView:renderEntryChild', 'DataView: the renderEntryChild prop has been renamed ' + 'renderEntryExpansion and will be removed in a future version. ' + 'Please use the new name.'); + renderEntryExpansion = renderEntryChild; + } + + if (renderEntryExpansion && onSelectEntries) { + warnOnce('DataView: renderEntryExpansion + onSelectEntries', 'A DataView cannot be made selectable with some of its entries ' + 'expandable. Please use only one of renderEntryExpansion or ' + 'onSelectEntries at a time. Ignoring renderEntryExpansion.'); + renderEntryExpansion = undefined; + } + + emptyState = deprecatedEmptyStatePropsCompat({ + emptyState: emptyState, + statusEmpty: statusEmpty, + statusEmptyFilters: statusEmptyFilters, + statusEmptySearch: statusEmptySearch, + statusLoading: statusLoading + }); // Only used if `page` is not passed. The pagination supports both a + // managed and a controlled mode, to provide a better developer experience + // out of the box. + + var _useState3 = useState(0), + _useState4 = slicedToArray(_useState3, 2), + pageManaged = _useState4[0], + setPageManaged = _useState4[1]; + + var handlePageChange = useCallback(function (newPage) { + // Managed state + if (page === undefined) { + setPageManaged(newPage); + } // Useful to notify, even in managed mode + + + onPageChange(newPage); + }, [onPageChange, page]); // Reset managed pagination if the entries or the pagination changes. + + useEffect(function () { + setPageManaged(0); + }, [entries]); + var selectedPage = page === undefined ? pageManaged : page; + var theme = useTheme(); + + var _useLayout = useLayout(), + layoutName = _useLayout.layoutName; + + var listMode = mode === 'list' || mode !== 'table' && layoutName === 'small'; + + var _useSelection = useSelection(entries, selection, onSelectEntries), + allSelected = _useSelection.allSelected, + selectAll = _useSelection.selectAll, + toggleEntrySelect = _useSelection.toggleEntrySelect, + selectedIndexes = _useSelection.selectedIndexes; + + var hasAnyActions = Boolean(renderEntryActions); + var hasAnyExpansion = Boolean(renderEntryExpansion); + var canSelect = Boolean(onSelectEntries); // If entriesPerPage is -1 (or 0): no pagination + + if (entriesPerPage < 1) { + entriesPerPage = entries.length; + } + + var pages = Math.ceil(entries.length / entriesPerPage); + var displayFrom = entriesPerPage * selectedPage; + var displayTo = displayFrom + entriesPerPage; + var displayedEntries = prepareEntries(entries, displayFrom, displayTo, selectedIndexes); + var preparedFields = prepareFields(fields); + var renderedEntries = renderEntries(displayedEntries, { + fields: fields, + renderEntry: renderEntry, + renderEntryActions: renderEntryActions, + renderEntryExpansion: renderEntryExpansion, + mode: listMode ? 'list' : 'table' + }); + var alignChildOnField = fields.findIndex(function (field) { + return field && field.childStart; + }); + var emptyEntries = renderedEntries.length === 0; + return /*#__PURE__*/React.createElement(Box, { + padding: 0 + }, heading && /*#__PURE__*/React.createElement(_StyledDiv, { + _css: 2 * GU, + _css2: layoutName === 'small' ? 2 * GU : 3 * GU + }, typeof heading === 'string' ? /*#__PURE__*/React.createElement(_StyledH, { + _css3: 2 * GU, + _css4: textStyle('body2') + }, heading) : heading), !emptyEntries && (listMode ? /*#__PURE__*/React.createElement(ListView, { + allSelected: allSelected, + entries: renderedEntries, + fields: preparedFields, + hasAnyExpansion: hasAnyExpansion, + onSelect: toggleEntrySelect, + onSelectAll: selectAll, + renderSelectionCount: renderSelectionCount, + rowHeight: tableRowHeight, + selectable: canSelect + }) : /*#__PURE__*/React.createElement(TableView, { + alignChildOnField: Math.min(Math.max(-1, alignChildOnField), fields.length - 1), + allSelected: allSelected, + entries: renderedEntries, + fields: preparedFields, + hasAnyActions: hasAnyActions, + hasAnyExpansion: hasAnyExpansion, + onSelect: toggleEntrySelect, + onSelectAll: selectAll, + renderSelectionCount: renderSelectionCount, + rowHeight: tableRowHeight, + selectable: canSelect, + selectedCount: selectedIndexes.length + })), emptyEntries && /*#__PURE__*/React.createElement(EmptyState, { + status: status, + configurator: emptyState, + onStatusEmptyClear: onStatusEmptyClear + }), pages > 1 && /*#__PURE__*/React.createElement(_StyledDiv2, { + _css5: theme.border + }, /*#__PURE__*/React.createElement(Pagination, { + pages: pages, + selected: selectedPage, + onChange: handlePageChange, + touchMode: layoutName === 'small' + }))); +}); +DataView.propTypes = { + page: propTypes.number, + entries: propTypes.array.isRequired, + entriesPerPage: propTypes.number, + fields: propTypes.array.isRequired, + heading: propTypes.node, + mode: propTypes.oneOf(['adaptive', 'table', 'list']), + onPageChange: propTypes.func, + onSelectEntries: propTypes.func, + renderEntry: propTypes.func.isRequired, + renderEntryActions: propTypes.func, + renderEntryExpansion: propTypes.func, + renderSelectionCount: propTypes.func, + selection: propTypes.array, + tableRowHeight: propTypes.number, + status: propTypes.oneOf(['default', 'empty-filters', 'empty-search', 'loading']), + onStatusEmptyClear: propTypes.func, + emptyState: propTypes.oneOfType([propTypes.func, propTypes.object]), + // deprecated + renderEntryChild: propTypes.func, + statusEmpty: propTypes.node, + statusLoading: propTypes.node, + statusEmptyFilters: propTypes.node, + statusEmptySearch: propTypes.node +}; +DataView.defaultProps = { + emptyState: {}, + entriesPerPage: 10, + mode: 'adaptive', + onPageChange: noop, + renderSelectionCount: function renderSelectionCount(count) { + return "".concat(count, " items selected"); + }, + status: 'default', + tableRowHeight: 8 * GU +}; + +export default DataView; +//# sourceMappingURL=DataView.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/DataView.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/DataView.js.map new file mode 100644 index 000000000..2ab087f5a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/DataView.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DataView.js","sources":["../../../../../src/components/DataView/DataView.js"],"sourcesContent":["import React, { useEffect, useCallback, useMemo, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { noop, warnOnce } from '../../utils'\nimport { textStyle, GU } from '../../style'\nimport { useTheme } from '../../theme'\nimport Box from '../../components/Box/Box'\nimport Pagination from '../../components/Pagination/Pagination'\nimport { useLayout } from '../../components/Layout/Layout'\nimport { TableView } from './TableView'\nimport { ListView } from './ListView'\nimport EmptyState from './EmptyState'\n\nfunction prepareEntries(entries, from, to, selectedIndexes) {\n return entries.slice(from, to).map((entry, index) => {\n const entryIndex = from + index\n const selected = selectedIndexes.includes(entryIndex)\n return { value: entry || null, index: entryIndex, selected }\n })\n}\n\nfunction prepareFields(fields) {\n return fields.map((fieldFromProps, index, fields) => {\n // Convert non-object fields (e.g. a simple string) into objects\n const field =\n fieldFromProps && fieldFromProps.label\n ? fieldFromProps\n : { label: fieldFromProps }\n\n // Auto align the last column to the end (right)\n if (!field.align) {\n field.align =\n index === fields.length - 1 && fields.length > 1 ? 'end' : 'start'\n }\n\n return field\n })\n}\n\nfunction entryExpansion(content) {\n // Rows\n if (Array.isArray(content) && content.length > 0) {\n return {\n content,\n freeLayout: false,\n }\n }\n // Free layout\n if (content && !Array.isArray(content)) {\n return {\n content: [content],\n freeLayout: true,\n }\n }\n // No expansion\n return {\n content: [],\n freeLayout: false,\n }\n}\n\nfunction renderEntries(\n entries,\n { fields, renderEntry, renderEntryActions, renderEntryExpansion, mode }\n) {\n return entries.map(entry => {\n const { value, index, selected } = entry\n\n let entryNodes = renderEntry(value, index, { selected, mode })\n\n if (!Array.isArray(entryNodes)) {\n entryNodes = []\n }\n\n // Create undefined cells too\n while (entryNodes.length < fields.length) {\n entryNodes.push(null)\n }\n\n const expansion = entryExpansion(\n renderEntryExpansion\n ? renderEntryExpansion(value, index, { selected, mode })\n : null\n )\n\n const actions = renderEntryActions\n ? renderEntryActions(value, index, { selected, mode })\n : null\n\n return {\n actions,\n entryNodes,\n expansion,\n index,\n selected,\n }\n })\n}\n\nfunction useSelection(entries, selection, onSelectEntries) {\n // Only used if `selection` is not passed via props. The selection supports\n // both a managed and a controlled mode, to provide a better developer\n // experience out of the box.\n const [selectionManaged, setSelectionManaged] = useState([])\n\n const currentSelection =\n selection === undefined ? selectionManaged : selection\n\n const updateSelection = useCallback(\n newSelection => {\n // Managed state\n if (selection === undefined) {\n setSelectionManaged(newSelection)\n }\n\n // Useful to notify, even in managed mode\n onSelectEntries(\n [...newSelection].sort().map(index => entries[index]),\n newSelection\n )\n },\n [selection, onSelectEntries, entries]\n )\n\n const allSelected = useMemo(() => {\n // none selected\n if (currentSelection.length === 0) {\n return -1\n }\n // all selected\n if (currentSelection.length === entries.length) {\n return 1\n }\n // some selected\n return 0\n }, [entries, currentSelection])\n\n const toggleEntrySelect = useCallback(\n entryIndex => {\n updateSelection(\n currentSelection.includes(entryIndex)\n ? currentSelection.filter(index => index !== entryIndex)\n : [...currentSelection, entryIndex]\n )\n },\n [updateSelection, currentSelection]\n )\n\n const selectAll = useCallback(() => {\n updateSelection(\n currentSelection.length === 0 ? entries.map((_, index) => index) : []\n )\n }, [entries, currentSelection, updateSelection])\n\n return {\n allSelected,\n selectAll,\n toggleEntrySelect,\n selectedIndexes: currentSelection,\n }\n}\n\nfunction deprecatedEmptyStatePropsCompat({\n emptyState,\n statusEmpty,\n statusLoading,\n statusEmptyFilters,\n statusEmptySearch,\n}) {\n for (const [propName, propValue, emptyStateName, partName] of [\n ['statusEmpty', statusEmpty, 'default', 'title'],\n ['statusEmptyFilters', statusEmptyFilters, 'empty-filters', 'subtitle'],\n ['statusEmptySearch', statusEmptySearch, 'empty-search', 'subtitle'],\n ['statusLoading', statusLoading, 'loading', 'title'],\n ]) {\n if (!propValue) {\n continue\n }\n\n warnOnce(\n `DataView:${propName}`,\n `DataView: the ${propName} prop is now deprecated, please use emptyState instead.`\n )\n\n // Only set the default state title if not set already\n if (!emptyState[emptyStateName] || !emptyState[emptyStateName][partName]) {\n emptyState[emptyStateName] = {\n ...emptyState[emptyStateName],\n [partName]: propValue,\n }\n }\n }\n\n return emptyState\n}\n\nconst DataView = React.memo(function DataView({\n emptyState,\n entries,\n entriesPerPage,\n fields,\n heading,\n mode,\n onPageChange,\n onSelectEntries,\n onStatusEmptyClear,\n page,\n renderEntry,\n renderEntryActions,\n renderEntryExpansion,\n renderSelectionCount,\n selection,\n status,\n tableRowHeight,\n\n // deprecated\n renderEntryChild,\n statusEmpty,\n statusEmptyFilters,\n statusEmptySearch,\n statusLoading,\n}) {\n if (renderEntryChild && !renderEntryExpansion) {\n warnOnce(\n 'DataView:renderEntryChild',\n 'DataView: the renderEntryChild prop has been renamed ' +\n 'renderEntryExpansion and will be removed in a future version. ' +\n 'Please use the new name.'\n )\n renderEntryExpansion = renderEntryChild\n }\n\n if (renderEntryExpansion && onSelectEntries) {\n warnOnce(\n 'DataView: renderEntryExpansion + onSelectEntries',\n 'A DataView cannot be made selectable with some of its entries ' +\n 'expandable. Please use only one of renderEntryExpansion or ' +\n 'onSelectEntries at a time. Ignoring renderEntryExpansion.'\n )\n renderEntryExpansion = undefined\n }\n\n emptyState = deprecatedEmptyStatePropsCompat({\n emptyState,\n statusEmpty,\n statusEmptyFilters,\n statusEmptySearch,\n statusLoading,\n })\n\n // Only used if `page` is not passed. The pagination supports both a\n // managed and a controlled mode, to provide a better developer experience\n // out of the box.\n const [pageManaged, setPageManaged] = useState(0)\n\n const handlePageChange = useCallback(\n newPage => {\n // Managed state\n if (page === undefined) {\n setPageManaged(newPage)\n }\n\n // Useful to notify, even in managed mode\n onPageChange(newPage)\n },\n [onPageChange, page]\n )\n\n // Reset managed pagination if the entries or the pagination changes.\n useEffect(() => {\n setPageManaged(0)\n }, [entries])\n\n const selectedPage = page === undefined ? pageManaged : page\n\n const theme = useTheme()\n const { layoutName } = useLayout()\n\n const listMode =\n mode === 'list' || (mode !== 'table' && layoutName === 'small')\n\n const {\n allSelected,\n selectAll,\n toggleEntrySelect,\n selectedIndexes,\n } = useSelection(entries, selection, onSelectEntries)\n\n const hasAnyActions = Boolean(renderEntryActions)\n const hasAnyExpansion = Boolean(renderEntryExpansion)\n const canSelect = Boolean(onSelectEntries)\n\n // If entriesPerPage is -1 (or 0): no pagination\n if (entriesPerPage < 1) {\n entriesPerPage = entries.length\n }\n\n const pages = Math.ceil(entries.length / entriesPerPage)\n\n const displayFrom = entriesPerPage * selectedPage\n const displayTo = displayFrom + entriesPerPage\n const displayedEntries = prepareEntries(\n entries,\n displayFrom,\n displayTo,\n selectedIndexes\n )\n\n const preparedFields = prepareFields(fields)\n const renderedEntries = renderEntries(displayedEntries, {\n fields,\n renderEntry,\n renderEntryActions,\n renderEntryExpansion,\n mode: listMode ? 'list' : 'table',\n })\n\n const alignChildOnField = fields.findIndex(field => field && field.childStart)\n\n const emptyEntries = renderedEntries.length === 0\n\n return (\n \n {heading && (\n \n {typeof heading === 'string' ? (\n \n {heading}\n \n ) : (\n heading\n )}\n \n )}\n\n {!emptyEntries &&\n (listMode ? (\n \n ) : (\n \n ))}\n\n {emptyEntries && (\n \n )}\n\n {pages > 1 && (\n \n \n \n )}\n \n )\n})\n\nDataView.propTypes = {\n page: PropTypes.number,\n entries: PropTypes.array.isRequired,\n entriesPerPage: PropTypes.number,\n fields: PropTypes.array.isRequired,\n heading: PropTypes.node,\n mode: PropTypes.oneOf(['adaptive', 'table', 'list']),\n onPageChange: PropTypes.func,\n onSelectEntries: PropTypes.func,\n renderEntry: PropTypes.func.isRequired,\n renderEntryActions: PropTypes.func,\n renderEntryExpansion: PropTypes.func,\n renderSelectionCount: PropTypes.func,\n selection: PropTypes.array,\n tableRowHeight: PropTypes.number,\n status: PropTypes.oneOf([\n 'default',\n 'empty-filters',\n 'empty-search',\n 'loading',\n ]),\n onStatusEmptyClear: PropTypes.func,\n emptyState: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n\n // deprecated\n renderEntryChild: PropTypes.func,\n statusEmpty: PropTypes.node,\n statusLoading: PropTypes.node,\n statusEmptyFilters: PropTypes.node,\n statusEmptySearch: PropTypes.node,\n}\n\nDataView.defaultProps = {\n emptyState: {},\n entriesPerPage: 10,\n mode: 'adaptive',\n onPageChange: noop,\n renderSelectionCount: count => `${count} items selected`,\n status: 'default',\n tableRowHeight: 8 * GU,\n}\n\nexport default DataView\n"],"names":["prepareEntries","entries","from","to","selectedIndexes","slice","map","entry","index","entryIndex","selected","includes","value","prepareFields","fields","fieldFromProps","field","label","align","length","entryExpansion","content","Array","isArray","freeLayout","renderEntries","renderEntry","renderEntryActions","renderEntryExpansion","mode","entryNodes","push","expansion","actions","useSelection","selection","onSelectEntries","useState","selectionManaged","setSelectionManaged","currentSelection","undefined","updateSelection","useCallback","newSelection","_toConsumableArray","sort","allSelected","useMemo","toggleEntrySelect","filter","selectAll","_","deprecatedEmptyStatePropsCompat","emptyState","statusEmpty","statusLoading","statusEmptyFilters","statusEmptySearch","propName","propValue","emptyStateName","partName","warnOnce","DataView","React","memo","entriesPerPage","heading","onPageChange","onStatusEmptyClear","page","renderSelectionCount","status","tableRowHeight","renderEntryChild","pageManaged","setPageManaged","handlePageChange","newPage","useEffect","selectedPage","theme","useTheme","useLayout","layoutName","listMode","hasAnyActions","Boolean","hasAnyExpansion","canSelect","pages","Math","ceil","displayFrom","displayTo","displayedEntries","preparedFields","renderedEntries","alignChildOnField","findIndex","childStart","emptyEntries","GU","textStyle","min","max","border","propTypes","PropTypes","number","array","isRequired","node","oneOf","func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ADU;AAEtBa,EAAAA,cAAc,EAAE,EAFM;AAGtBtC,EAAAA,IAAI,EAAE,UAHgB;AAItBwC,EAAAA,YAAY,EAAEkD,IAJQ;AAKtB/C,EAAAA,oBAAoB,EAAE,8BAAAgD,KAAK;AAAA,qBAAOA,KAAP;AAAA,GALL;AAMtB/C,EAAAA,MAAM,EAAE,SANc;AAOtBC,EAAAA,cAAc,EAAE,IAAI6B;AAPE,CAAxB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/EmptyState.js b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/EmptyState.js new file mode 100644 index 000000000..42f969c6b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/EmptyState.js @@ -0,0 +1,153 @@ +import React, { useMemo } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; +import _styled from 'styled-components'; +import { GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import { usePublicUrl } from '../../providers/PublicUrl/PublicUrl.js'; +import LoadingRing from '../LoadingRing/LoadingRing.js'; +import Link from '../Link/Link.js'; +import illustrationRedImage from './assets/empty-state-illustration-red.png.js'; +import illustrationBlueImage from './assets/empty-state-illustration-blue.png.js'; + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function useEmptyStateParts(status, configurator, functionMode) { + var publicUrl = usePublicUrl(); + var defaultConfigurator = useMemo(function () { + // eslint-disable-next-line react/prop-types + var Illustration = function Illustration(_ref) { + var path = _ref.path; + return /*#__PURE__*/React.createElement("img", { + src: publicUrl + path, + alt: "", + height: 20 * GU + }); + }; + + return { + default: { + displayLoader: false, + title: 'No data available.', + subtitle: null, + illustration: /*#__PURE__*/React.createElement(Illustration, { + path: illustrationBlueImage + }), + clearLabel: null + }, + loading: { + displayLoader: true, + title: 'Loading data…', + subtitle: null, + illustration: /*#__PURE__*/React.createElement(Illustration, { + path: illustrationBlueImage + }), + clearLabel: null + }, + 'empty-filters': { + displayLoader: false, + title: 'No results found.', + subtitle: 'We can’t find any item matching your filter selection.', + illustration: /*#__PURE__*/React.createElement(Illustration, { + path: illustrationRedImage + }), + clearLabel: 'Clear filters' + }, + 'empty-search': { + displayLoader: false, + title: 'No results found.', + subtitle: 'We can’t find any item matching your search query.', + illustration: /*#__PURE__*/React.createElement(Illustration, { + path: illustrationRedImage + }), + clearLabel: 'Clear filters' + } + }; + }, [publicUrl]); + var parts = functionMode ? {} : configurator[status]; + return _objectSpread(_objectSpread({}, defaultConfigurator[status]), parts); +} + +var _StyledSection = _styled("section").withConfig({ + displayName: "EmptyState___StyledSection", + componentId: "sc-18fsc1i-0" +})(["display:flex;justify-content:center;align-items:center;"]); + +var _StyledDiv = _styled("div").withConfig({ + displayName: "EmptyState___StyledDiv", + componentId: "sc-18fsc1i-1" +})(["width:", "px;padding:", "px 0;text-align:center;"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "EmptyState___StyledDiv2", + componentId: "sc-18fsc1i-2" +})(["padding-bottom:", "px;"], function (p) { + return p._css3; +}); + +var _StyledH = _styled("h1").withConfig({ + displayName: "EmptyState___StyledH", + componentId: "sc-18fsc1i-3" +})(["", ";display:flex;align-items:center;justify-content:center;"], function (p) { + return p._css4; +}); + +var _StyledLoadingRing = _styled(LoadingRing).withConfig({ + displayName: "EmptyState___StyledLoadingRing", + componentId: "sc-18fsc1i-4" +})(["margin-right:", "px;"], function (p) { + return p._css5; +}); + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "EmptyState___StyledDiv3", + componentId: "sc-18fsc1i-5" +})(["color:", ";"], function (p) { + return p._css6; +}); + +function EmptyState(_ref2) { + var status = _ref2.status, + configurator = _ref2.configurator, + onStatusEmptyClear = _ref2.onStatusEmptyClear; + var theme = useTheme(); + var functionMode = typeof configurator === 'function'; + var emptyState = useEmptyStateParts(status, configurator, functionMode); + var emptyStateOverride = functionMode ? configurator(status) : null; // Returning an element from the function mode overrides everything. + // If `null` or a non-element is returned, the default state is used instead. + + if ( /*#__PURE__*/React.isValidElement(emptyStateOverride)) { + return emptyStateOverride; + } + + return /*#__PURE__*/React.createElement(_StyledSection, null, /*#__PURE__*/React.createElement(_StyledDiv, { + _css: 31 * GU, + _css2: 8 * GU + }, emptyState.illustration && /*#__PURE__*/React.createElement(_StyledDiv2, { + _css3: 2 * GU + }, emptyState.illustration), emptyState.title && /*#__PURE__*/React.createElement(_StyledH, { + _css4: textStyle('title2') + }, emptyState.displayLoader && /*#__PURE__*/React.createElement(_StyledLoadingRing, { + _css5: 1 * GU + }), emptyState.title), emptyState.subtitle && /*#__PURE__*/React.createElement(_StyledDiv3, { + _css6: theme.surfaceContentSecondary + }, emptyState.subtitle, ' ', emptyState.clearLabel && /*#__PURE__*/React.createElement(Link, { + onClick: onStatusEmptyClear + }, emptyState.clearLabel)))); +} + +EmptyState.propTypes = { + status: propTypes.oneOf(['default', 'empty-filters', 'empty-search', 'loading']), + configurator: propTypes.object, + onStatusEmptyClear: propTypes.func +}; + +export default EmptyState; +//# sourceMappingURL=EmptyState.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/EmptyState.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/EmptyState.js.map new file mode 100644 index 000000000..21afd80a9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/EmptyState.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EmptyState.js","sources":["../../../../../src/components/DataView/EmptyState.js"],"sourcesContent":["import React, { useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { useTheme } from '../../theme'\nimport { GU, textStyle } from '../../style'\nimport { usePublicUrl } from '../../providers/PublicUrl'\nimport LoadingRing from '../LoadingRing/LoadingRing'\nimport Link from '../Link/Link'\n\nimport illustrationRedImage from './assets/empty-state-illustration-red.png'\nimport illustrationBlueImage from './assets/empty-state-illustration-blue.png'\n\nfunction useEmptyStateParts(status, configurator, functionMode) {\n const publicUrl = usePublicUrl()\n\n const defaultConfigurator = useMemo(() => {\n // eslint-disable-next-line react/prop-types\n const Illustration = ({ path }) => (\n \"\"\n )\n return {\n default: {\n displayLoader: false,\n title: 'No data available.',\n subtitle: null,\n illustration: ,\n clearLabel: null,\n },\n loading: {\n displayLoader: true,\n title: 'Loading data…',\n subtitle: null,\n illustration: ,\n clearLabel: null,\n },\n 'empty-filters': {\n displayLoader: false,\n title: 'No results found.',\n subtitle: 'We can’t find any item matching your filter selection.',\n illustration: ,\n clearLabel: 'Clear filters',\n },\n 'empty-search': {\n displayLoader: false,\n title: 'No results found.',\n subtitle: 'We can’t find any item matching your search query.',\n illustration: ,\n clearLabel: 'Clear filters',\n },\n }\n }, [publicUrl])\n\n const parts = functionMode ? {} : configurator[status]\n\n return {\n ...defaultConfigurator[status],\n ...parts,\n }\n}\n\nfunction EmptyState({ status, configurator, onStatusEmptyClear }) {\n const theme = useTheme()\n\n const functionMode = typeof configurator === 'function'\n const emptyState = useEmptyStateParts(status, configurator, functionMode)\n const emptyStateOverride = functionMode ? configurator(status) : null\n\n // Returning an element from the function mode overrides everything.\n // If `null` or a non-element is returned, the default state is used instead.\n if (React.isValidElement(emptyStateOverride)) {\n return emptyStateOverride\n }\n\n return (\n \n \n {emptyState.illustration && (\n \n {emptyState.illustration}\n \n )}\n\n {emptyState.title && (\n \n {emptyState.displayLoader && (\n \n )}\n {emptyState.title}\n \n )}\n\n {emptyState.subtitle && (\n \n {emptyState.subtitle}{' '}\n {emptyState.clearLabel && (\n {emptyState.clearLabel}\n )}\n \n )}\n \n \n )\n}\n\nEmptyState.propTypes = {\n status: PropTypes.oneOf([\n 'default',\n 'empty-filters',\n 'empty-search',\n 'loading',\n ]),\n configurator: PropTypes.object,\n onStatusEmptyClear: PropTypes.func,\n}\n\nexport default EmptyState\n"],"names":["useEmptyStateParts","status","configurator","functionMode","publicUrl","usePublicUrl","defaultConfigurator","useMemo","Illustration","path","GU","default","displayLoader","title","subtitle","illustration","illustrationBlueImage","clearLabel","loading","illustrationRedImage","parts","EmptyState","onStatusEmptyClear","theme","useTheme","emptyState","emptyStateOverride","React","isValidElement","textStyle","surfaceContentSecondary","propTypes","PropTypes","oneOf","object","func"],"mappings":";;;;;;;;;;;;;;;;;AAWA,SAASA,kBAAT,CAA4BC,MAA5B,EAAoCC,YAApC,EAAkDC,YAAlD,EAAgE;AAC9D,MAAMC,SAAS,GAAGC,YAAY,EAA9B;AAEA,MAAMC,mBAAmB,GAAGC,OAAO,CAAC,YAAM;AACxC;AACA,QAAMC,YAAY,GAAG,SAAfA,YAAe;AAAA,UAAGC,IAAH,QAAGA,IAAH;AAAA,0BACnB;AAAK,QAAA,GAAG,EAAEL,SAAS,GAAGK,IAAtB;AAA4B,QAAA,GAAG,EAAC,EAAhC;AAAmC,QAAA,MAAM,EAAE,KAAKC;AAAhD,QADmB;AAAA,KAArB;;AAGA,WAAO;AACLC,MAAAA,OAAO,EAAE;AACPC,QAAAA,aAAa,EAAE,KADR;AAEPC,QAAAA,KAAK,EAAE,oBAFA;AAGPC,QAAAA,QAAQ,EAAE,IAHH;AAIPC,QAAAA,YAAY,eAAE,oBAAC,YAAD;AAAc,UAAA,IAAI,EAAEC;AAApB,UAJP;AAK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AAGzB,kBAAkB,CAACC,MAAD,EAASC,YAAT,EAAuBC,YAAvB,CAArC;AACA,MAAMuB,kBAAkB,GAAGvB,YAAY,GAAGD,YAAY,CAACD,MAAD,CAAf,GAA0B,IAAjE,CALgE;AAQhE;;AACA,oBAAI0B,KAAK,CAACC,cAAN,CAAqBF,kBAArB,CAAJ,EAA8C;AAC5C,WAAOA,kBAAP;AACD;;AAED,sBACE,uDAOE;AAAA,UAEa,KAAKhB,EAFlB;AAAA,WAGe,IAAIA;AAHnB,KAOGe,UAAU,CAACV,YAAX,iBACC;AAAA,WAEsB,IAAIL;AAF1B,KAKGe,UAAU,CAACV,YALd,CARJ,EAiBGU,UAAU,CAACZ,KAAX,iBACC;AAAA,WAEMgB,SAAS,CAAC,QAAD;AAFf,KAQGJ,UAAU,CAACb,aAAX,iBACC;AAAA,WAEoB,IAAIF;AAFxB,IATJ,EAeGe,UAAU,CAACZ,KAfd,CAlBJ,EAqCGY,UAAU,CAACX,QAAX,iBACC;AAAA,WAEaS,KAAK,CAACO;AAFnB,KAKGL,UAAU,CAACX,QALd,EAKwB,GALxB,EAMGW,UAAU,CAACR,UAAX,iBACC,oBAAC,IAAD;AAAM,IAAA,OAAO,EAAEK;AAAf,KAAoCG,UAAU,CAACR,UAA/C,CAPJ,CAtCJ,CAPF,CADF;AA4DD;;AAEDI,UAAU,CAACU,SAAX,GAAuB;AACrB9B,EAAAA,MAAM,EAAE+B,SAAS,CAACC,KAAV,CAAgB,CACtB,SADsB,EAEtB,eAFsB,EAGtB,cAHsB,EAItB,SAJsB,CAAhB,CADa;AAOrB/B,EAAAA,YAAY,EAAE8B,SAAS,CAACE,MAPH;AAQrBZ,EAAAA,kBAAkB,EAAEU,SAAS,CAACG;AART,CAAvB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ListView.js b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ListView.js new file mode 100644 index 000000000..a0d575dd8 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ListView.js @@ -0,0 +1,261 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useState, useCallback } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; +import _styled from 'styled-components'; +import { GU } from '../../style/constants.js'; +import { springs } from '../../style/springs.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import { animated as extendedAnimated, Transition } from '../../../node_modules/react-spring/web.js'; +import CheckBoxWithTheme from '../Input/Checkbox.js'; +import { ToggleButton } from './ToggleButton.js'; +import { OpenedSurfaceBorder } from './OpenedSurfaceBorder.js'; + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +var _StyledDiv = _styled("div").withConfig({ + displayName: "ListView___StyledDiv", + componentId: "sc-1wnrej-0" +})(["position:relative;padding:0;padding-right:", "px;padding-left:", "px;border-bottom:", "px solid ", ";transition:background 150ms ease-in-out;background:", ";"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "ListView___StyledDiv2", + componentId: "sc-1wnrej-1" +})(["position:absolute;top:", "px;left:0;display:flex;justify-content:center;width:", "px;"], function (p) { + return p._css6; +}, function (p) { + return p._css7; +}); + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "ListView___StyledDiv3", + componentId: "sc-1wnrej-2" +})(["position:absolute;top:", "px;right:", "px;"], function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledDiv4 = _styled("div").withConfig({ + displayName: "ListView___StyledDiv4", + componentId: "sc-1wnrej-3" +})(["display:flex;flex-direction:column;padding-bottom:", "px;"], function (p) { + return p._css10; +}); + +var _StyledDiv5 = _styled("div").withConfig({ + displayName: "ListView___StyledDiv5", + componentId: "sc-1wnrej-4" +})(["display:flex;align-items:center;margin:", "px 0 ", "px;color:", ";", ";"], function (p) { + return p._css11; +}, function (p) { + return p._css12; +}, function (p) { + return p._css13; +}, function (p) { + return p._css14; +}); + +function ListView(_ref) { + var allSelected = _ref.allSelected, + entries = _ref.entries, + fields = _ref.fields, + hasAnyExpansion = _ref.hasAnyExpansion, + onSelect = _ref.onSelect, + onSelectAll = _ref.onSelectAll, + renderSelectionCount = _ref.renderSelectionCount, + selectable = _ref.selectable, + rowHeight = _ref.rowHeight; + var theme = useTheme(); + + var _useState = useState(-1), + _useState2 = slicedToArray(_useState, 2), + opened = _useState2[0], + setOpened = _useState2[1]; + + var toggleEntry = useCallback(function (index) { + setOpened(function (opened) { + return opened === index ? -1 : index; + }); + }, []); + var sideSpace = selectable || hasAnyExpansion; + return /*#__PURE__*/React.createElement(React.Fragment, null, entries.map(function (entry, index) { + var hasExpansion = entry.expansion.content.length > 0; + return /*#__PURE__*/React.createElement(_StyledDiv, { + key: index, + _css: 3 * GU, + _css2: (sideSpace ? 6.5 : 3) * GU, + _css3: Number(index !== entries.length - 1), + _css4: theme.border, + _css5: entry.selected ? theme.surfaceSelected : 'none' + }, /*#__PURE__*/React.createElement(OpenedSurfaceBorder, { + opened: entry.index === opened + }), sideSpace && /*#__PURE__*/React.createElement(_StyledDiv2, { + _css6: 1.5 * GU, + _css7: 6.5 * GU + }, selectable && /*#__PURE__*/React.createElement(Select, { + index: entry.index, + selected: entry.selected, + onSelect: onSelect + }), !selectable && hasExpansion && /*#__PURE__*/React.createElement(ToggleButton, { + opened: entry.index === opened, + onClick: function onClick() { + return toggleEntry(entry.index); + } + })), entry.actions && /*#__PURE__*/React.createElement(_StyledDiv3, { + _css8: 2 * GU, + _css9: 3 * GU + }, entry.actions), /*#__PURE__*/React.createElement("div", null, entry.entryNodes.map(function (content, index) { + return [// field content + content, // field label + fields[index].label, // priority number + fields[index].priority && fields[index].priority || 0]; + }) // sort by priority + .sort(function (a, b) { + return b[2] - a[2]; + }).map(function (_ref2, index, entryNodes) { + var _ref3 = slicedToArray(_ref2, 2), + content = _ref3[0], + label = _ref3[1]; + + return /*#__PURE__*/React.createElement(_StyledDiv4, { + key: index, + _css10: index === entryNodes.length - 1 ? 2 * GU : 0 + }, /*#__PURE__*/React.createElement(_StyledDiv5, { + _css11: 2 * GU, + _css12: 1 * GU, + _css13: theme.surfaceContentSecondary, + _css14: textStyle('label2') + }, label), /*#__PURE__*/React.createElement("div", null, content)); + })), hasExpansion && /*#__PURE__*/React.createElement(EntryExpansion, { + expansion: entry.expansion, + opened: opened === entry.index, + rowHeight: rowHeight + })); + })); +} + +ListView.propTypes = { + allSelected: propTypes.oneOf([-1, 0, 1]).isRequired, + entries: propTypes.array.isRequired, + fields: propTypes.array.isRequired, + hasAnyExpansion: propTypes.bool.isRequired, + onSelect: propTypes.func.isRequired, + onSelectAll: propTypes.func.isRequired, + renderSelectionCount: propTypes.func.isRequired, + rowHeight: propTypes.number.isRequired, + selectable: propTypes.bool.isRequired +}; // Disable prop types check for internal components + +/* eslint-disable react/prop-types */ + +var _StyledAnimatedDiv = _styled(extendedAnimated.div).withConfig({ + displayName: "ListView___StyledAnimatedDiv", + componentId: "sc-1wnrej-5" +})(["overflow:hidden;background:", ";margin-left:", "px;margin-right:", "px;padding-left:", "px;box-shadow:inset 0 6px 4px -4px rgba(0,0,0,0.16);"], function (p) { + return p._css15; +}, function (p) { + return p._css16; +}, function (p) { + return p._css17; +}, function (p) { + return p._css18; +}); + +var _StyledDiv6 = _styled("div").withConfig({ + displayName: "ListView___StyledDiv6", + componentId: "sc-1wnrej-6" +})(["display:flex;align-items:center;height:", ";padding-right:", "px;"], function (p) { + return p._css19; +}, function (p) { + return p._css20; +}); + +function EntryExpansion(_ref4) { + var expansion = _ref4.expansion, + opened = _ref4.opened, + rowHeight = _ref4.rowHeight; + var theme = useTheme(); // Handles the height of the expansion in free layout mode + + var _useState3 = useState(0), + _useState4 = slicedToArray(_useState3, 2), + freeLayoutContentHeight = _useState4[0], + setFreeLayoutContentHeight = _useState4[1]; + + var handleFreeLayoutContentRef = useCallback(function (element) { + if (element) { + setFreeLayoutContentHeight(element.getBoundingClientRect().height); + } + }, []); + var height = expansion.freeLayout ? freeLayoutContentHeight : rowHeight * expansion.content.length; + return /*#__PURE__*/React.createElement(Transition, { + native: true, + items: opened, + from: { + height: 0 + }, + enter: { + height: height + }, + update: { + height: height + }, + leave: { + height: 0 + }, + config: _objectSpread(_objectSpread({}, springs.smooth), {}, { + precision: 0.1 + }) + }, function (show) { + return show && function (_ref5) { + var height = _ref5.height; + return /*#__PURE__*/React.createElement(_StyledAnimatedDiv, { + style: { + height: height.interpolate(function (v) { + return "".concat(v, "px"); + }) + }, + _css15: theme.surfaceUnder, + _css16: -6.5 * GU, + _css17: -3 * GU, + _css18: 6.5 * GU + }, expansion.content.map(function (child, i) { + return /*#__PURE__*/React.createElement(_StyledDiv6, { + key: i, + ref: expansion.freeLayout ? handleFreeLayoutContentRef : null, + _css19: expansion.freeLayout ? 'auto' : "".concat(rowHeight, "px"), + _css20: 3 * GU + }, child); + })); + }; + }); +} + +function Select(_ref6) { + var index = _ref6.index, + selected = _ref6.selected, + onSelect = _ref6.onSelect; + var change = useCallback(function (check) { + onSelect(index, check); + }, [index, onSelect]); + return /*#__PURE__*/React.createElement(CheckBoxWithTheme, { + onChange: change, + checked: selected + }); +} + +export { ListView }; +//# sourceMappingURL=ListView.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ListView.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ListView.js.map new file mode 100644 index 000000000..8be2c44e4 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ListView.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ListView.js","sources":["../../../../../src/components/DataView/ListView.js"],"sourcesContent":["import React, { useCallback, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Transition, animated } from 'react-spring'\nimport { GU, springs, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport Checkbox from '../Input/Checkbox'\nimport { ToggleButton } from './ToggleButton'\nimport { OpenedSurfaceBorder } from './OpenedSurfaceBorder'\n\nfunction ListView({\n allSelected,\n entries,\n fields,\n hasAnyExpansion,\n onSelect,\n onSelectAll,\n renderSelectionCount,\n selectable,\n rowHeight,\n}) {\n const theme = useTheme()\n\n const [opened, setOpened] = useState(-1)\n\n const toggleEntry = useCallback(index => {\n setOpened(opened => (opened === index ? -1 : index))\n }, [])\n\n const sideSpace = selectable || hasAnyExpansion\n\n return (\n \n {entries.map((entry, index) => {\n const hasExpansion = entry.expansion.content.length > 0\n return (\n \n \n {sideSpace && (\n \n {selectable && (\n \n )}\n {!selectable && hasExpansion && (\n toggleEntry(entry.index)}\n />\n )}\n \n )}\n {entry.actions && (\n \n {entry.actions}\n \n )}\n
    \n {entry.entryNodes\n .map((content, index) => [\n // field content\n content,\n // field label\n fields[index].label,\n // priority number\n (fields[index].priority && fields[index].priority) || 0,\n ])\n // sort by priority\n .sort((a, b) => b[2] - a[2])\n .map(([content, label], index, entryNodes) => (\n \n \n {label}\n
    \n\n
    {content}
    \n \n ))}\n \n {hasExpansion && (\n \n )}\n \n )\n })}\n
    \n )\n}\n\nListView.propTypes = {\n allSelected: PropTypes.oneOf([-1, 0, 1]).isRequired,\n entries: PropTypes.array.isRequired,\n fields: PropTypes.array.isRequired,\n hasAnyExpansion: PropTypes.bool.isRequired,\n onSelect: PropTypes.func.isRequired,\n onSelectAll: PropTypes.func.isRequired,\n renderSelectionCount: PropTypes.func.isRequired,\n rowHeight: PropTypes.number.isRequired,\n selectable: PropTypes.bool.isRequired,\n}\n\n// Disable prop types check for internal components\n/* eslint-disable react/prop-types */\n\nfunction EntryExpansion({ expansion, opened, rowHeight }) {\n const theme = useTheme()\n\n // Handles the height of the expansion in free layout mode\n const [freeLayoutContentHeight, setFreeLayoutContentHeight] = useState(0)\n\n const handleFreeLayoutContentRef = useCallback(element => {\n if (element) {\n setFreeLayoutContentHeight(element.getBoundingClientRect().height)\n }\n }, [])\n\n const height = expansion.freeLayout\n ? freeLayoutContentHeight\n : rowHeight * expansion.content.length\n\n return (\n \n {show =>\n show &&\n (({ height }) => (\n `${v}px`),\n }}\n >\n {expansion.content.map((child, i) => (\n \n {child}\n \n ))}\n \n ))\n }\n \n )\n}\n\nfunction Select({ index, selected, onSelect }) {\n const change = useCallback(\n check => {\n onSelect(index, check)\n },\n [index, onSelect]\n )\n\n return \n}\n\n/* eslint-enable react/prop-types */\n\nexport { ListView }\n"],"names":["ListView","allSelected","entries","fields","hasAnyExpansion","onSelect","onSelectAll","renderSelectionCount","selectable","rowHeight","theme","useTheme","useState","opened","setOpened","toggleEntry","useCallback","index","sideSpace","map","entry","hasExpansion","expansion","content","length","GU","Number","border","selected","surfaceSelected","actions","entryNodes","label","priority","sort","a","b","surfaceContentSecondary","textStyle","propTypes","PropTypes","oneOf","isRequired","array","bool","func","number","EntryExpansion","freeLayoutContentHeight","setFreeLayoutContentHeight","handleFreeLayoutContentRef","element","getBoundingClientRect","height","freeLayout","springs","smooth","precision","show","interpolate","v","surfaceUnder","child","i","Select","change","check","Checkbox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAASA,QAAT,OAUG;A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oB,CAAC,CAAD,GAAKA,EALzB;AAAA,gBAMoB,MAAMA;AAN1B,SAaGH,SAAS,CAACC,OAAV,CAAkBJ,GAAlB,CAAsB,UAAC2C,KAAD,EAAQC,CAAR;AAAA,4BACrB;AACE,UAAA,GAAG,EAAEA,CADP;AAEE,UAAA,GAAG,EAAEzC,SAAS,CAACgC,UAAV,GAAuBJ,0BAAvB,GAAoD,IAF3D;AAAA,kBAMc5B,SAAS,CAACgC,UAAV,GAAuB,MAAvB,aAAmC7C,SAAnC,OANd;AAAA,kBAOqB,IAAIgB;AAPzB,WAUGqC,KAVH,CADqB;AAAA,OAAtB,CAbH,CADD;AAAA,KAFE;AAAA,GATP,CADF;AA6CD;;AAED,SAASE,MAAT,QAA+C;AAAA,MAA7B/C,KAA6B,SAA7BA,KAA6B;AAAA,MAAtBW,QAAsB,SAAtBA,QAAsB;AAAA,MAAZvB,QAAY,SAAZA,QAAY;AAC7C,MAAM4D,MAAM,GAAGjD,WAAW,CACxB,UAAAkD,KAAK,EAAI;AACP7D,IAAAA,QAAQ,CAACY,KAAD,EAAQiD,KAAR,CAAR;AACD,GAHuB,EAIxB,CAACjD,KAAD,EAAQZ,QAAR,CAJwB,CAA1B;AAOA,sBAAO,oBAAC8D,iBAAD;AAAU,IAAA,QAAQ,EAAEF,MAApB;AAA4B,IAAA,OAAO,EAAErC;AAArC,IAAP;AACD;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/OpenedSurfaceBorder.js b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/OpenedSurfaceBorder.js new file mode 100644 index 000000000..3cb889053 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/OpenedSurfaceBorder.js @@ -0,0 +1,56 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; +import _styled from 'styled-components'; +import '../../utils/environment.js'; +import { springs } from '../../style/springs.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import { animated as extendedAnimated, Spring } from '../../../node_modules/react-spring/web.js'; + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +var _StyledAnimatedDiv = _styled(extendedAnimated.div).withConfig({ + displayName: "OpenedSurfaceBorder___StyledAnimatedDiv", + componentId: "sc-19tx70h-0" +})(["position:absolute;top:0;left:0;height:100%;width:3px;background:", ";transform-origin:0 0;"], function (p) { + return p._css; +}); + +function OpenedSurfaceBorder(_ref) { + var opened = _ref.opened, + props = objectWithoutProperties(_ref, ["opened"]); + + var theme = useTheme(); + return /*#__PURE__*/React.createElement(Spring, { + native: true, + from: { + width: 0 + }, + to: { + width: Number(opened) + }, + config: _objectSpread({}, springs.smooth) + }, function (_ref2) { + var width = _ref2.width; + return /*#__PURE__*/React.createElement(_StyledAnimatedDiv, _extends_1({ + style: { + transform: width.interpolate(function (v) { + return "scale3d(".concat(v, ", 1, 1)"); + }) + } + }, props, { + _css: theme.surfaceOpened + })); + }); +} + +OpenedSurfaceBorder.propTypes = { + opened: propTypes.bool +}; + +export { OpenedSurfaceBorder }; +//# sourceMappingURL=OpenedSurfaceBorder.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/OpenedSurfaceBorder.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/OpenedSurfaceBorder.js.map new file mode 100644 index 000000000..018778465 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/OpenedSurfaceBorder.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OpenedSurfaceBorder.js","sources":["../../../../../src/components/DataView/OpenedSurfaceBorder.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Spring, animated } from 'react-spring'\nimport { springs } from '../../style'\nimport { useTheme } from '../../theme'\n\nfunction OpenedSurfaceBorder({ opened, ...props }) {\n const theme = useTheme()\n return (\n \n {({ width }) => (\n `scale3d(${v}, 1, 1)`),\n }}\n {...props}\n />\n )}\n \n )\n}\n\nOpenedSurfaceBorder.propTypes = {\n opened: PropTypes.bool,\n}\n\nexport { OpenedSurfaceBorder }\n"],"names":["OpenedSurfaceBorder","opened","props","theme","useTheme","width","Number","springs","smooth","transform","interpolate","v","surfaceOpened","propTypes","PropTypes","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAMA,SAASA,mBAAT,OAAmD;AAAA,MAApBC,MAAoB,QAApBA,MAAoB;AAAA,MAATC,KAAS;;AACjD,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;AACA,sBACE,oBAAC,MAAD;AACE,IAAA,MAAM,MADR;AAEE,IAAA,IAAI,EAAE;AAAEC,MAAAA,KAAK,EAAE;AAAT,KAFR;AAGE,IAAA,EAAE,EAAE;AAAEA,MAAAA,KAAK,EAAEC,MAAM,CAACL,MAAD;AAAf,KAHN;AAIE,IAAA,MAAM,oBAAOM,OAAO,CAACC,MAAf;AAJR,KAMG;AAAA,QAAGH,KAAH,SAAGA,KAAH;AAAA,wBACC;AAUE,MAAA,KAAK,EAAE;AACLI,QAAAA,SAAS,EAAEJ,KAAK,CAACK,WAAN,CAAkB,UAAAC,CAAC;AAAA,mCAAeA,CAAf;AAAA,SAAnB;AADN;AAVT,OAaMT,KAbN;AAAA,YAOkBC,KAAK,CAACS;AAPxB,OADD;AAAA,GANH,CADF;AA0BD;;AAEDZ,mBAAmB,CAACa,SAApB,GAAgC;AAC9BZ,EAAAA,MAAM,EAAEa,SAAS,CAACC;AADY,CAAhC;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/TableView.js b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/TableView.js new file mode 100644 index 000000000..06b182494 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/TableView.js @@ -0,0 +1,453 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useState, useCallback, useMemo, useEffect } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; +import _styled from 'styled-components'; +import { GU } from '../../style/constants.js'; +import { springs } from '../../style/springs.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import { useLayout } from '../Layout/Layout.js'; +import { animated as extendedAnimated, Transition } from '../../../node_modules/react-spring/web.js'; +import CheckBoxWithTheme from '../Input/Checkbox.js'; +import { ToggleButton } from './ToggleButton.js'; +import { OpenedSurfaceBorder } from './OpenedSurfaceBorder.js'; + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function headingsFromFields(fields, _ref) { + var hasAnyActions = _ref.hasAnyActions, + hasAnyExpansion = _ref.hasAnyExpansion, + selectContent = _ref.selectContent, + selectable = _ref.selectable; + var cells = fields.map(function (field, index) { + return [field.label, field.align === 'end' ? 'right' : 'left']; + }); + + if (hasAnyExpansion || selectable) { + cells.unshift([selectable ? selectContent : null, 'left']); + } + + if (hasAnyActions) { + cells.push([null, 'left']); + } // Return null if all the fields are empty + + + if (cells.every(function (cell) { + return !cell[0]; + })) { + return null; + } + + return cells; +} + +function cellsFromEntry(entry, _ref2) { + var fields = _ref2.fields, + hasAnyActions = _ref2.hasAnyActions, + hasAnyExpansion = _ref2.hasAnyExpansion, + hasExpansion = _ref2.hasExpansion, + selectContent = _ref2.selectContent, + selectable = _ref2.selectable, + toggleChildContent = _ref2.toggleChildContent; + var cells = entry.entryNodes.map(function (content, index) { + return [content, fields[index].align, false]; + }); // Checkbox + + if (selectable) { + cells.unshift([selectContent, 'start', true]); + } // Toggle child + + + if (!selectable && hasAnyExpansion) { + cells.unshift([hasExpansion && toggleChildContent, 'start', true]); + } // Actions + + + if (hasAnyActions) { + cells.push([entry.actions, 'end', true]); + } + + return cells; +} + +var _StyledTable = _styled("table").withConfig({ + displayName: "TableView___StyledTable", + componentId: "aczwu3-0" +})(["width:100%;border-spacing:0;border-collapse:separate;"]); + +function TableView(_ref3) { + var alignChildOnField = _ref3.alignChildOnField, + allSelected = _ref3.allSelected, + entries = _ref3.entries, + fields = _ref3.fields, + hasAnyActions = _ref3.hasAnyActions, + hasAnyExpansion = _ref3.hasAnyExpansion, + onSelect = _ref3.onSelect, + onSelectAll = _ref3.onSelectAll, + renderSelectionCount = _ref3.renderSelectionCount, + rowHeight = _ref3.rowHeight, + selectable = _ref3.selectable, + selectedCount = _ref3.selectedCount; + + var _useState = useState(-1), + _useState2 = slicedToArray(_useState, 2), + opened = _useState2[0], + setOpened = _useState2[1]; + + var toggleEntry = useCallback(function (index) { + setOpened(function (opened) { + return opened === index ? -1 : index; + }); + }, []); + var headCells = useMemo(function () { + return headingsFromFields(fields, { + hasAnyActions: hasAnyActions, + hasAnyExpansion: hasAnyExpansion, + selectContent: /*#__PURE__*/React.createElement(CheckBoxWithTheme, { + indeterminate: allSelected === 0, + checked: allSelected > -1, + onChange: onSelectAll + }), + selectable: selectable + }); + }, [fields, hasAnyActions, hasAnyExpansion, allSelected, onSelectAll, selectable]); + useEffect(function () { + setOpened(-1); + }, [entries, fields]); + return /*#__PURE__*/React.createElement(_StyledTable, null, headCells && /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(HeadRow, { + cells: headCells, + selectedCount: selectedCount, + renderSelectionCount: renderSelectionCount + })), /*#__PURE__*/React.createElement("tbody", null, entries.map(function (entry, index) { + return /*#__PURE__*/React.createElement(Entry, { + key: entry.index, + alignChildOnField: alignChildOnField, + entry: entry, + fields: fields, + firstRow: index === 0, + hasAnyActions: hasAnyActions, + hasAnyExpansion: hasAnyExpansion, + onSelect: onSelect, + onToggle: toggleEntry, + opened: opened === entry.index, + rowHeight: rowHeight, + selectable: selectable + }); + }))); +} + +TableView.propTypes = { + alignChildOnField: propTypes.number.isRequired, + allSelected: propTypes.oneOf([-1, 0, 1]).isRequired, + entries: propTypes.array.isRequired, + fields: propTypes.array.isRequired, + hasAnyActions: propTypes.bool.isRequired, + hasAnyExpansion: propTypes.bool.isRequired, + onSelect: propTypes.func.isRequired, + onSelectAll: propTypes.func.isRequired, + renderSelectionCount: propTypes.func.isRequired, + rowHeight: propTypes.number.isRequired, + selectable: propTypes.bool.isRequired, + selectedCount: propTypes.number.isRequired +}; // Disable prop types check for internal components + +/* eslint-disable react/prop-types */ + +function useSidePadding() { + var _useLayout = useLayout(), + layoutName = _useLayout.layoutName; + + return layoutName === 'small' ? 2 * GU : 3 * GU; +} + +var _StyledTh = _styled("th").withConfig({ + displayName: "TableView___StyledTh", + componentId: "aczwu3-1" +})(["height:", "px;padding:0;padding-left:", "px;padding-right:", "px;text-align:", ";", ";color:", ";border-bottom:1px solid ", ";"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}); + +function HeadRow(_ref4) { + var cells = _ref4.cells, + selectedCount = _ref4.selectedCount, + renderSelectionCount = _ref4.renderSelectionCount; + var theme = useTheme(); + var sidePadding = useSidePadding(); + return /*#__PURE__*/React.createElement("tr", null, cells.map(function (cell, index) { + var hidden = selectedCount > 0 && index > 1; + var content = selectedCount > 0 && index === 1 ? renderSelectionCount(selectedCount) : cell[0]; + return !hidden && /*#__PURE__*/React.createElement(_StyledTh, { + key: index, + colSpan: selectedCount > 0 && index === 1 ? cells.length - 1 : 1, + _css: 4 * GU, + _css2: index === 0 ? sidePadding : 0, + _css3: index === cells.length - 1 ? sidePadding : 0, + _css4: cell[1], + _css5: textStyle('label2'), + _css6: theme.surfaceContentSecondary, + _css7: theme.border + }, content); + })); +} + +var Entry = /*#__PURE__*/React.memo(function Entry(_ref5) { + var alignChildOnField = _ref5.alignChildOnField, + entry = _ref5.entry, + fields = _ref5.fields, + firstRow = _ref5.firstRow, + hasAnyActions = _ref5.hasAnyActions, + hasAnyExpansion = _ref5.hasAnyExpansion, + onSelect = _ref5.onSelect, + onToggle = _ref5.onToggle, + opened = _ref5.opened, + rowHeight = _ref5.rowHeight, + selectable = _ref5.selectable; + var hasExpansion = entry.expansion.content.length > 0; + var entryIndex = entry.index; + var handleToggle = useCallback(function () { + onToggle(entryIndex); + }, [entryIndex, onToggle]); + var handleSelectChange = useCallback(function (check) { + onSelect(entryIndex, check); + }, [entryIndex, onSelect]); + var cells = cellsFromEntry(entry, { + fields: fields, + hasAnyActions: hasAnyActions, + hasAnyExpansion: hasAnyExpansion, + hasExpansion: hasExpansion, + selectable: selectable, + toggleChildContent: hasAnyExpansion ? /*#__PURE__*/React.createElement(Toggle, { + opened: opened, + onToggle: handleToggle + }) : null, + selectContent: selectable ? /*#__PURE__*/React.createElement(CheckBoxWithTheme, { + onChange: handleSelectChange, + checked: entry.selected + }) : null + }); + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(EntryRow, { + cells: cells, + firstRow: firstRow, + rowHeight: rowHeight, + selected: entry.selected + }), hasExpansion && /*#__PURE__*/React.createElement(EntryExpansion, { + alignChildOnCell: alignChildOnField + 1, + cellsCount: cells.length, + expansion: entry.expansion, + opened: opened, + rowHeight: rowHeight + })); +}); + +var _StyledTr = _styled("tr").withConfig({ + displayName: "TableView___StyledTr", + componentId: "aczwu3-2" +})(["transition:background 150ms ease-in-out;background:", ";"], function (p) { + return p._css8; +}); + +var _StyledTd = _styled("td").withConfig({ + displayName: "TableView___StyledTd", + componentId: "aczwu3-3" +})(["position:relative;width:", ";height:", "px;padding-top:0;padding-bottom:0;padding-left:", "px;padding-right:", "px;border-top:", ";"], function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}, function (p) { + return p._css12; +}, function (p) { + return p._css13; +}); + +var _StyledDiv = _styled("div").withConfig({ + displayName: "TableView___StyledDiv", + componentId: "aczwu3-4" +})(["display:flex;width:100%;justify-content:", ";"], function (p) { + return p._css14; +}); + +function EntryRow(_ref6) { + var firstRow = _ref6.firstRow, + cells = _ref6.cells, + selected = _ref6.selected, + rowHeight = _ref6.rowHeight, + mode = _ref6.mode; + var theme = useTheme(); + var sidePadding = useSidePadding(); + return /*#__PURE__*/React.createElement(_StyledTr, { + _css8: selected ? theme.surfaceSelected : 'none' + }, cells.map(function (_ref7, index, cells) { + var _ref8 = slicedToArray(_ref7, 3), + content = _ref8[0], + align = _ref8[1], + compact = _ref8[2]; + + var first = index === 0; + var last = index === cells.length - 1; + return /*#__PURE__*/React.createElement(_StyledTd, { + key: index, + _css9: compact ? '1px' // For some reason Blink tends to make 0 grow but not 1px + : 'auto', + _css10: rowHeight, + _css11: first || compact ? sidePadding : 0, + _css12: !first && (align !== 'end' || last) || compact ? sidePadding : 0, + _css13: firstRow ? '0' : "1px solid ".concat(theme.border) + }, /*#__PURE__*/React.createElement(_StyledDiv, { + _css14: "flex-".concat(align) + }, content)); + })); +} + +var _StyledTr2 = _styled("tr").withConfig({ + displayName: "TableView___StyledTr2", + componentId: "aczwu3-5" +})(["td{position:relative;padding:0;box-shadow:inset 0 6px 4px -4px rgba(0,0,0,0.16);background:", ";}"], function (p) { + return p._css15; +}); + +var _StyledAnimatedDiv = _styled(extendedAnimated.div).withConfig({ + displayName: "TableView___StyledAnimatedDiv", + componentId: "aczwu3-6" +})(["overflow:hidden"]); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "TableView___StyledDiv2", + componentId: "aczwu3-7" +})(["height:", ";border-top:1px solid ", ";"], function (p) { + return p._css16; +}, function (p) { + return p._css17; +}); + +var _StyledAnimatedDiv2 = _styled(extendedAnimated.div).withConfig({ + displayName: "TableView___StyledAnimatedDiv2", + componentId: "aczwu3-8" +})(["overflow:hidden"]); + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "TableView___StyledDiv3", + componentId: "aczwu3-9" +})(["display:flex;align-items:center;height:", ";padding-left:", "px;padding-right:", "px;border-top:1px solid ", ";"], function (p) { + return p._css18; +}, function (p) { + return p._css19; +}, function (p) { + return p._css20; +}, function (p) { + return p._css21; +}); + +function EntryExpansion(_ref9) { + var alignChildOnCell = _ref9.alignChildOnCell, + cellsCount = _ref9.cellsCount, + expansion = _ref9.expansion, + opened = _ref9.opened, + rowHeight = _ref9.rowHeight; + var theme = useTheme(); // Handles the height of the expansion in free layout mode + + var _useState3 = useState(0), + _useState4 = slicedToArray(_useState3, 2), + freeLayoutContentHeight = _useState4[0], + setFreeLayoutContentHeight = _useState4[1]; + + var handleFreeLayoutContentRef = useCallback(function (element) { + if (element) { + setFreeLayoutContentHeight(element.getBoundingClientRect().height); + } + }, []); + var height = expansion.freeLayout ? freeLayoutContentHeight : rowHeight * expansion.content.length; + return /*#__PURE__*/React.createElement(Transition, { + native: true, + unique: true, + items: opened, + from: { + height: 0 + }, + enter: { + height: height + }, + update: { + height: height + }, + leave: { + height: 0 + }, + config: _objectSpread(_objectSpread({}, springs.smooth), {}, { + precision: 0.1 + }) + }, function (show) { + return show && function (_ref10) { + var height = _ref10.height; + return /*#__PURE__*/React.createElement(_StyledTr2, { + _css15: theme.surfaceUnder + }, alignChildOnCell > 0 && /*#__PURE__*/React.createElement("td", { + colSpan: alignChildOnCell + }, /*#__PURE__*/React.createElement(OpenedSurfaceBorder, { + opened: opened + }), /*#__PURE__*/React.createElement(_StyledAnimatedDiv, { + style: { + height: height + } + }, expansion.content.map(function (child, i) { + return /*#__PURE__*/React.createElement(_StyledDiv2, { + key: i, + _css16: expansion.freeLayout ? 'auto' : "".concat(rowHeight, "px"), + _css17: theme.border + }); + }))), /*#__PURE__*/React.createElement("td", { + colSpan: alignChildOnCell === -1 ? cellsCount : cellsCount - alignChildOnCell + }, alignChildOnCell === 0 && /*#__PURE__*/React.createElement(OpenedSurfaceBorder, { + opened: opened + }), /*#__PURE__*/React.createElement(_StyledAnimatedDiv2, { + style: { + height: height + } + }, expansion.content.map(function (child, i) { + return /*#__PURE__*/React.createElement(_StyledDiv3, { + key: i, + ref: expansion.freeLayout ? handleFreeLayoutContentRef : null, + _css18: expansion.freeLayout ? 'auto' : "".concat(rowHeight, "px"), + _css19: alignChildOnCell < 1 ? 3 * GU : 0, + _css20: 3 * GU, + _css21: theme.border + }, child); + })))); + }; + }); +} + +var _StyledDiv4 = _styled("div").withConfig({ + displayName: "TableView___StyledDiv4", + componentId: "aczwu3-10" +})(["width:100%;height:100%;"]); + +var Toggle = /*#__PURE__*/React.memo(function Toggle(_ref11) { + var opened = _ref11.opened, + onToggle = _ref11.onToggle; + return /*#__PURE__*/React.createElement(_StyledDiv4, null, /*#__PURE__*/React.createElement(OpenedSurfaceBorder, { + opened: opened + }), /*#__PURE__*/React.createElement(ToggleButton, { + opened: opened, + onClick: onToggle + })); +}); + +export { TableView }; +//# sourceMappingURL=TableView.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/TableView.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/TableView.js.map new file mode 100644 index 000000000..e90388aa9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/TableView.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TableView.js","sources":["../../../../../src/components/DataView/TableView.js"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Transition, animated } from 'react-spring'\nimport { GU, springs, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { useLayout } from '../Layout/Layout'\nimport Checkbox from '../Input/Checkbox'\nimport { ToggleButton } from './ToggleButton'\nimport { OpenedSurfaceBorder } from './OpenedSurfaceBorder'\n\n// Table heading cells\nfunction headingsFromFields(\n fields,\n { hasAnyActions, hasAnyExpansion, selectContent, selectable }\n) {\n const cells = fields.map((field, index) => [\n field.label,\n field.align === 'end' ? 'right' : 'left',\n ])\n\n if (hasAnyExpansion || selectable) {\n cells.unshift([selectable ? selectContent : null, 'left'])\n }\n\n if (hasAnyActions) {\n cells.push([null, 'left'])\n }\n\n // Return null if all the fields are empty\n if (cells.every(cell => !cell[0])) {\n return null\n }\n\n return cells\n}\n\nfunction cellsFromEntry(\n entry,\n {\n fields,\n hasAnyActions,\n hasAnyExpansion,\n hasExpansion,\n selectContent,\n selectable,\n toggleChildContent,\n }\n) {\n const cells = entry.entryNodes.map((content, index) => [\n content,\n fields[index].align,\n false,\n ])\n\n // Checkbox\n if (selectable) {\n cells.unshift([selectContent, 'start', true])\n }\n\n // Toggle child\n if (!selectable && hasAnyExpansion) {\n cells.unshift([hasExpansion && toggleChildContent, 'start', true])\n }\n\n // Actions\n if (hasAnyActions) {\n cells.push([entry.actions, 'end', true])\n }\n\n return cells\n}\n\nfunction TableView({\n alignChildOnField,\n allSelected,\n entries,\n fields,\n hasAnyActions,\n hasAnyExpansion,\n onSelect,\n onSelectAll,\n renderSelectionCount,\n rowHeight,\n selectable,\n selectedCount,\n}) {\n const [opened, setOpened] = useState(-1)\n\n const toggleEntry = useCallback(index => {\n setOpened(opened => (opened === index ? -1 : index))\n }, [])\n\n const headCells = useMemo(\n () =>\n headingsFromFields(fields, {\n hasAnyActions,\n hasAnyExpansion,\n selectContent: (\n -1}\n onChange={onSelectAll}\n />\n ),\n selectable,\n }),\n [\n fields,\n hasAnyActions,\n hasAnyExpansion,\n allSelected,\n onSelectAll,\n selectable,\n ]\n )\n\n useEffect(() => {\n setOpened(-1)\n }, [entries, fields])\n\n return (\n \n {headCells && (\n \n \n \n )}\n \n {entries.map((entry, index) => (\n \n ))}\n \n \n )\n}\n\nTableView.propTypes = {\n alignChildOnField: PropTypes.number.isRequired,\n allSelected: PropTypes.oneOf([-1, 0, 1]).isRequired,\n entries: PropTypes.array.isRequired,\n fields: PropTypes.array.isRequired,\n hasAnyActions: PropTypes.bool.isRequired,\n hasAnyExpansion: PropTypes.bool.isRequired,\n onSelect: PropTypes.func.isRequired,\n onSelectAll: PropTypes.func.isRequired,\n renderSelectionCount: PropTypes.func.isRequired,\n rowHeight: PropTypes.number.isRequired,\n selectable: PropTypes.bool.isRequired,\n selectedCount: PropTypes.number.isRequired,\n}\n\n// Disable prop types check for internal components\n/* eslint-disable react/prop-types */\n\nfunction useSidePadding() {\n const { layoutName } = useLayout()\n return layoutName === 'small' ? 2 * GU : 3 * GU\n}\n\nfunction HeadRow({ cells, selectedCount, renderSelectionCount }) {\n const theme = useTheme()\n const sidePadding = useSidePadding()\n return (\n \n {cells.map((cell, index) => {\n const hidden = selectedCount > 0 && index > 1\n const content =\n selectedCount > 0 && index === 1\n ? renderSelectionCount(selectedCount)\n : cell[0]\n return (\n !hidden && (\n 0 && index === 1 ? cells.length - 1 : 1}\n >\n {content}\n \n )\n )\n })}\n \n )\n}\n\nconst Entry = React.memo(function Entry({\n alignChildOnField,\n entry,\n fields,\n firstRow,\n hasAnyActions,\n hasAnyExpansion,\n onSelect,\n onToggle,\n opened,\n rowHeight,\n selectable,\n}) {\n const hasExpansion = entry.expansion.content.length > 0\n const entryIndex = entry.index\n\n const handleToggle = useCallback(() => {\n onToggle(entryIndex)\n }, [entryIndex, onToggle])\n\n const handleSelectChange = useCallback(\n check => {\n onSelect(entryIndex, check)\n },\n [entryIndex, onSelect]\n )\n\n const cells = cellsFromEntry(entry, {\n fields,\n hasAnyActions,\n hasAnyExpansion,\n hasExpansion,\n selectable,\n toggleChildContent: hasAnyExpansion ? (\n \n ) : null,\n selectContent: selectable ? (\n \n ) : null,\n })\n\n return (\n \n \n {hasExpansion && (\n \n )}\n \n )\n})\n\nfunction EntryRow({ firstRow, cells, selected, rowHeight, mode }) {\n const theme = useTheme()\n const sidePadding = useSidePadding()\n\n return (\n \n {cells.map(([content, align, compact], index, cells) => {\n const first = index === 0\n const last = index === cells.length - 1\n return (\n \n \n {content}\n \n \n )\n })}\n \n )\n}\n\nfunction EntryExpansion({\n alignChildOnCell,\n cellsCount,\n expansion,\n opened,\n rowHeight,\n}) {\n const theme = useTheme()\n\n // Handles the height of the expansion in free layout mode\n const [freeLayoutContentHeight, setFreeLayoutContentHeight] = useState(0)\n\n const handleFreeLayoutContentRef = useCallback(element => {\n if (element) {\n setFreeLayoutContentHeight(element.getBoundingClientRect().height)\n }\n }, [])\n\n const height = expansion.freeLayout\n ? freeLayoutContentHeight\n : rowHeight * expansion.content.length\n\n return (\n \n {show =>\n show &&\n (({ height }) => (\n \n {alignChildOnCell > 0 && (\n \n \n \n {expansion.content.map((child, i) => (\n \n ))}\n \n \n )}\n \n {alignChildOnCell === 0 && (\n \n )}\n \n {expansion.content.map((child, i) => (\n \n {child}\n \n ))}\n \n \n \n ))\n }\n \n )\n}\n\nconst Toggle = React.memo(function Toggle({ opened, onToggle }) {\n return (\n \n \n \n \n )\n})\n\n/* eslint-enable react/prop-types */\n\nexport { TableView }\n"],"names":["headingsFromFields","fields","hasAnyActions","hasAnyExpansion","selectContent","selectable","cells","map","field","index","label","align","unshift","push","every","cell","cellsFromEntry","entry","hasExpansion","toggleChildContent","entryNodes","content","actions","TableView","alignChildOnField","allSelected","entries","onSelect","onSelectAll","renderSelectionCount","rowHeight","selectedCount","useState","opened","setOpened","toggleEntry","useCallback","headCells","useMemo","Checkbox","useEffect","propTypes","PropTypes","number","isRequired","oneOf","array","bool","func","useSidePadding","useLayout","layoutName","GU","HeadRow","theme","useTheme","sidePadding","hidden","length","textStyle","surfaceContentSecondary","border","Entry","React","memo","firstRow","onToggle","expansion","entryIndex","handleToggle","handleSelectChange","check","selected","EntryRow","mode","surfaceSelected","compact","first","last","EntryExpansion","alignChildOnCell","cellsCount","freeLayoutContentHeight","setFreeLayoutContentHeight","handleFreeLayoutContentRef","element","getBoundingClientRect","height","freeLayout","springs","smooth","precision","show","surfaceUnder","child","i","Toggle"],"mappings":";;;;;;;;;;;;;;;;;;;AAWA,SAASA,kBAAT,CACEC,MADF,QAGE;AAAA,MADEC,aACF,QADEA,aACF;AAAA,MADiBC,eACjB,QADiBA,eACjB;AAAA,MADkCC,aAClC,QADkCA,aAClC;AAAA,MADiDC,UACjD,QADiDA,UACjD;AACA,MAAMC,KAAK,GAAGL,MAAM,CAACM,GAAP,CAAW,UAACC,KAAD,EAAQC,KAAR;AAAA,WAAkB,CACzCD,KAAK,CAACE,KADmC,EAEzCF,KAAK,CAACG,KAAN,KAAgB,KAAhB,GAAwB,OAAxB,GAAkC,MAFO,CAAlB;AAAA,GAAX,CAAd;;AAKA,MAAIR,eAAe,IAAIE,UAAvB,EAAmC;AACjCC,IAAAA,KAAK,CAACM,OAAN,CAAc,CAACP,UAAU,GAAGD,aAAH,GAAmB,IAA9B,EAAoC,MAApC,CAAd;AACD;;AAED,MAAIF,aAAJ,EAAmB;AACjBI,IAAAA,KAAK,CAACO,IAAN,CAAW,CAAC,IAAD,EAAO,MAAP,CAAX;AACD,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EiC;AAAvC,IAPF,CADF;AAWD,CAZc,CAAf;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ToggleButton.js b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ToggleButton.js new file mode 100644 index 000000000..b3bef1fcc --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ToggleButton.js @@ -0,0 +1,64 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import '../../utils/environment.js'; +import { RADIUS } from '../../style/constants.js'; +import { useTheme } from '../../theme/Theme2.js'; +import IconDown from '../../icons/components/IconDown.js'; +import IconUp from '../../icons/components/IconUp.js'; +import ButtonIcon from '../Button/ButtonIcon.js'; + +var _StyledButtonIcon = _styled(ButtonIcon).withConfig({ + displayName: "ToggleButton___StyledButtonIcon", + componentId: "sc-1fkpeh6-0" +})(["display:flex;flex-direction:column;color:", ";& > div{display:flex;transform-origin:50% 50%;transition:transform 250ms ease-in-out;}"], function (p) { + return p._css; +}); + +var _StyledDiv = _styled("div").withConfig({ + displayName: "ToggleButton___StyledDiv", + componentId: "sc-1fkpeh6-1" +})(["transform:rotate3d(", ",0,0,180deg);transform:rotate3d(0,0,", ",180deg);"], function (p) { + return p._css2; +}, function (p) { + return p._css3; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "ToggleButton___StyledDiv2", + componentId: "sc-1fkpeh6-2" +})(["transform:rotate3d(", ",0,0,180deg);transform:rotate3d(0,0,", ",180deg);"], function (p) { + return p._css4; +}, function (p) { + return p._css5; +}); + +function ToggleButton(_ref) { + var onClick = _ref.onClick, + opened = _ref.opened; + var theme = useTheme(); + return /*#__PURE__*/React.createElement(_StyledButtonIcon, { + label: opened ? 'Close' : 'Open', + focusRingRadius: RADIUS, + onClick: onClick, + _css: theme.surfaceContentSecondary + }, /*#__PURE__*/React.createElement(_StyledDiv, { + _css2: opened ? 1 : 0, + _css3: opened ? 1 : 0 + }, /*#__PURE__*/React.createElement(IconUp, { + size: "small" + })), /*#__PURE__*/React.createElement(_StyledDiv2, { + _css4: opened ? -1 : 0, + _css5: opened ? -1 : 0 + }, /*#__PURE__*/React.createElement(IconDown, { + size: "small" + }))); +} + +ToggleButton.propTypes = { + onClick: propTypes.func.isRequired, + opened: propTypes.bool.isRequired +}; + +export { ToggleButton }; +//# sourceMappingURL=ToggleButton.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ToggleButton.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ToggleButton.js.map new file mode 100644 index 000000000..2e4bbd40f --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/ToggleButton.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ToggleButton.js","sources":["../../../../../src/components/DataView/ToggleButton.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport ButtonIcon from '../Button/ButtonIcon'\nimport { IconDown, IconUp } from '../../icons'\nimport { useTheme } from '../../theme'\nimport { RADIUS } from '../../style'\n\nfunction ToggleButton({ onClick, opened }) {\n const theme = useTheme()\n return (\n div {\n display: flex;\n transform-origin: 50% 50%;\n transition: transform 250ms ease-in-out;\n }\n `}\n >\n \n \n \n \n \n \n \n )\n}\n\nToggleButton.propTypes = {\n onClick: PropTypes.func.isRequired,\n opened: PropTypes.bool.isRequired,\n}\n\nexport { ToggleButton }\n"],"names":["ToggleButton","onClick","opened","theme","useTheme","RADIUS","surfaceContentSecondary","propTypes","PropTypes","func","isRequired","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAASA,YAAT,OAA2C;AAAA,MAAnBC,OAAmB,QAAnBA,OAAmB;AAAA,MAAVC,MAAU,QAAVA,MAAU;AACzC,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;AACA,sBACE;AACE,IAAA,KAAK,EAAEF,MAAM,GAAG,OAAH,GAAa,MAD5B;AAEE,IAAA,eAAe,EAAEG,MAFnB;AAGE,IAAA,OAAO,EAAEJ,OAHX;AAAA,UAOaE,KAAK,CAACG;AAPnB,kBAeE;AAAA,WAE0BJ,MAAM,GAAG,CAAH,GAAO,CAFvC;AAAA,WAGgCA,MAAM,GAAG,CAAH,GAAO;AAH7C,kBAME,oBAAC,MAAD;AAAQ,IAAA,IAAI,EAAC;AAAb,IANF,CAfF,eAuBE;AAAA,WAE0BA,MAAM,GAAG,CAAC,CAAJ,GAAQ,CAFxC;AAAA,WAGgCA,MAAM,GAAG,CAAC,CAAJ,GAAQ;AAH9C,kBAME,oBAAC,QAAD;AAAU,IAAA,IAAI,EAAC;AAAf,IANF,CAvBF,CADF;AAkCD;;AAEDF,YAAY,CAACO,SAAb,GAAyB;AACvBN,EAAAA,OAAO,EAAEO,SAAS,CAACC,IAAV,CAAeC,UADD;AAEvBR,EAAAA,MAAM,EAAEM,SAAS,CAACG,IAAV,CAAeD;AAFA,CAAzB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-blue.png.js b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-blue.png.js new file mode 100644 index 000000000..49e9d6fcd --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-blue.png.js @@ -0,0 +1,4 @@ +var illustrationBlueImage = "665de3412d16a795.png"; + +export default illustrationBlueImage; +//# sourceMappingURL=empty-state-illustration-blue.png.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-blue.png.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-blue.png.js.map new file mode 100644 index 000000000..9b025c697 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-blue.png.js.map @@ -0,0 +1 @@ +{"version":3,"file":"empty-state-illustration-blue.png.js","sources":["../../../../../../src/components/DataView/assets/empty-state-illustration-blue.png"],"sourcesContent":["export default \"665de3412d16a795.png\""],"names":[],"mappings":"AAAA,4BAAe;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-red.png.js b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-red.png.js new file mode 100644 index 000000000..5a3638368 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-red.png.js @@ -0,0 +1,4 @@ +var illustrationRedImage = "5140b2d928ee3408.png"; + +export default illustrationRedImage; +//# sourceMappingURL=empty-state-illustration-red.png.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-red.png.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-red.png.js.map new file mode 100644 index 000000000..983332da0 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DataView/assets/empty-state-illustration-red.png.js.map @@ -0,0 +1 @@ +{"version":3,"file":"empty-state-illustration-red.png.js","sources":["../../../../../../src/components/DataView/assets/empty-state-illustration-red.png"],"sourcesContent":["export default \"5140b2d928ee3408.png\""],"names":[],"mappings":"AAAA,2BAAe;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DatePicker.js b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DatePicker.js new file mode 100644 index 000000000..e3c086c44 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DatePicker.js @@ -0,0 +1,157 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useState } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import dayjs_min from '../../../node_modules/dayjs/dayjs.min.js'; +import { eachDayOfInterval } from '../../utils/date.js'; +import '../../utils/environment.js'; +import { GU } from '../../style/constants.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import { Selector } from './components.js'; +import WrappedMonthDay from './MonthDay.js'; + +var _StyledDiv = _styled("div").withConfig({ + displayName: "DatePicker___StyledDiv", + componentId: "sc-6xp23y-0" +})(["display:grid;"]); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "DatePicker___StyledDiv2", + componentId: "sc-6xp23y-1" +})(["display:grid;grid-template:auto / repeat(7,1fr);width:", "px;"], function (p) { + return p._css; +}); + +function DatePicker(_ref) { + var initialDate = _ref.initialDate, + onSelect = _ref.onSelect, + datesRangeStart = _ref.datesRangeStart, + datesRangeEnd = _ref.datesRangeEnd, + hideYearSelector = _ref.hideYearSelector, + yearFormat = _ref.yearFormat, + hideMonthSelector = _ref.hideMonthSelector, + monthFormat = _ref.monthFormat, + monthYearFormat = _ref.monthYearFormat, + hideWeekDays = _ref.hideWeekDays, + weekDayFormat = _ref.weekDayFormat, + props = objectWithoutProperties(_ref, ["initialDate", "onSelect", "datesRangeStart", "datesRangeEnd", "hideYearSelector", "yearFormat", "hideMonthSelector", "monthFormat", "monthYearFormat", "hideWeekDays", "weekDayFormat"]); + + var _useState = useState(initialDate), + _useState2 = slicedToArray(_useState, 2), + selectedDate = _useState2[0], + setSelectedDate = _useState2[1]; + + var setDate = function setDate(_ref2) { + var year = _ref2.year, + add = _ref2.add; + return function (event) { + setSelectedDate(dayjs_min(selectedDate).startOf('month')[add ? 'add' : 'subtract'](1, year ? 'year' : 'month').toDate()); + }; + }; + + var today = dayjs_min().startOf('day').toDate(); + var selectedDayjs = dayjs_min(selectedDate || today); + + var isSelected = function isSelected(day) { + if (datesRangeStart || datesRangeEnd) { + return day.isSame(datesRangeStart, 'day') || day.isSame(datesRangeEnd, 'day'); + } + + return false; + }; + + var isInRange = function isInRange(day) { + if (datesRangeStart && datesRangeEnd) { + return day.isAfter(datesRangeStart) && day.isBefore(datesRangeEnd); + } + }; + + return /*#__PURE__*/React.createElement(_StyledDiv, props, !hideYearSelector && /*#__PURE__*/React.createElement(Selector, { + prev: setDate({ + year: true, + add: false + }), + next: setDate({ + year: true, + add: true + }), + small: true + }, selectedDayjs.format(yearFormat)), !hideMonthSelector && /*#__PURE__*/React.createElement(Selector, { + prev: setDate({ + year: false, + add: false + }), + next: setDate({ + year: false, + add: true + }) + }, selectedDayjs.format(!hideYearSelector ? monthFormat : monthYearFormat)), /*#__PURE__*/React.createElement(_StyledDiv2, { + _css: 31.5 * GU + }, !hideWeekDays && eachDayOfInterval({ + start: selectedDayjs.startOf('week'), + end: selectedDayjs.endOf('week') + }).map(function (day) { + var dayJs = dayjs_min(day); + return /*#__PURE__*/React.createElement(WrappedMonthDay, { + key: dayJs.format('dd'), + weekDay: true + }, dayJs.format(weekDayFormat)); + }), eachDayOfInterval({ + start: selectedDayjs.startOf('month').startOf('week'), + end: selectedDayjs.endOf('month').endOf('week') + }).map(function (day) { + var dayJs = dayjs_min(day); + return /*#__PURE__*/React.createElement(WrappedMonthDay, { + key: dayJs.valueOf(), + disabled: !selectedDayjs.isSame(dayJs, 'month'), + selected: isSelected(dayJs), + inRange: isInRange(dayJs), + rangeBoundaryBegin: datesRangeStart && datesRangeEnd && dayJs.isSame(datesRangeStart, 'day'), + rangeBoundaryEnd: datesRangeStart && datesRangeEnd && dayJs.isSame(datesRangeEnd, 'day'), + today: dayJs.isSame(today, 'day'), + onClick: function onClick() { + return onSelect(dayJs.toDate()); + } + }, dayJs.format(props.dayFormat)); + }))); +} + +DatePicker.propTypes = { + /** + * For displaying a selected dates range - start + */ + datesRangeStart: propTypes.instanceOf(Date), + + /** + * For displaying a selected dates range - end + */ + datesRangeEnd: propTypes.instanceOf(Date), + + /** + * Initial date - calendar will start from here. + */ + initialDate: propTypes.instanceOf(Date), + // Events + onSelect: propTypes.func, + // Visibility + hideMonthSelector: propTypes.bool, + hideWeekDays: propTypes.bool, + hideYearSelector: propTypes.bool, + // Formatting + dayFormat: propTypes.string, + monthFormat: propTypes.string, + monthYearFormat: propTypes.string, + weekDayFormat: propTypes.string, + yearFormat: propTypes.string +}; +DatePicker.defaultProps = { + onSelect: function onSelect() {}, + dayFormat: 'D', + monthFormat: 'MMMM', + monthYearFormat: 'MMMM YYYY', + weekDayFormat: 'ddd', + yearFormat: 'YYYY' +}; + +export default DatePicker; +//# sourceMappingURL=DatePicker.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DatePicker.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DatePicker.js.map new file mode 100644 index 000000000..90eed8920 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DatePicker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DatePicker.js","sources":["../../../../../src/components/DateRangePicker/DatePicker.js"],"sourcesContent":["import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport dayjs from 'dayjs'\nimport { GU } from '../../style'\nimport { eachDayOfInterval } from '../../utils'\nimport { Selector } from './components'\nimport MonthDay from './MonthDay'\n\nfunction DatePicker({\n initialDate,\n onSelect,\n datesRangeStart,\n datesRangeEnd,\n hideYearSelector,\n yearFormat,\n hideMonthSelector,\n monthFormat,\n monthYearFormat,\n hideWeekDays,\n weekDayFormat,\n ...props\n}) {\n const [selectedDate, setSelectedDate] = useState(initialDate)\n\n const setDate = ({ year, add }) => event => {\n setSelectedDate(\n dayjs(selectedDate)\n .startOf('month')\n [add ? 'add' : 'subtract'](1, year ? 'year' : 'month')\n .toDate()\n )\n }\n\n const today = dayjs()\n .startOf('day')\n .toDate()\n\n const selectedDayjs = dayjs(selectedDate || today)\n\n const isSelected = day => {\n if (datesRangeStart || datesRangeEnd) {\n return (\n day.isSame(datesRangeStart, 'day') || day.isSame(datesRangeEnd, 'day')\n )\n }\n return false\n }\n\n const isInRange = day => {\n if (datesRangeStart && datesRangeEnd) {\n return day.isAfter(datesRangeStart) && day.isBefore(datesRangeEnd)\n }\n }\n\n return (\n \n {!hideYearSelector && (\n \n {selectedDayjs.format(yearFormat)}\n \n )}\n\n {!hideMonthSelector && (\n \n {selectedDayjs.format(\n !hideYearSelector ? monthFormat : monthYearFormat\n )}\n \n )}\n\n \n {!hideWeekDays &&\n eachDayOfInterval({\n start: selectedDayjs.startOf('week'),\n end: selectedDayjs.endOf('week'),\n }).map(day => {\n const dayJs = dayjs(day)\n return (\n \n {dayJs.format(weekDayFormat)}\n \n )\n })}\n\n {eachDayOfInterval({\n start: selectedDayjs.startOf('month').startOf('week'),\n end: selectedDayjs.endOf('month').endOf('week'),\n }).map(day => {\n const dayJs = dayjs(day)\n return (\n onSelect(dayJs.toDate())}\n >\n {dayJs.format(props.dayFormat)}\n \n )\n })}\n \n \n )\n}\n\nDatePicker.propTypes = {\n /**\n * For displaying a selected dates range - start\n */\n datesRangeStart: PropTypes.instanceOf(Date),\n /**\n * For displaying a selected dates range - end\n */\n datesRangeEnd: PropTypes.instanceOf(Date),\n /**\n * Initial date - calendar will start from here.\n */\n initialDate: PropTypes.instanceOf(Date),\n\n // Events\n onSelect: PropTypes.func,\n\n // Visibility\n hideMonthSelector: PropTypes.bool,\n hideWeekDays: PropTypes.bool,\n hideYearSelector: PropTypes.bool,\n\n // Formatting\n dayFormat: PropTypes.string,\n monthFormat: PropTypes.string,\n monthYearFormat: PropTypes.string,\n weekDayFormat: PropTypes.string,\n yearFormat: PropTypes.string,\n}\n\nDatePicker.defaultProps = {\n onSelect: () => {},\n dayFormat: 'D',\n monthFormat: 'MMMM',\n monthYearFormat: 'MMMM YYYY',\n weekDayFormat: 'ddd',\n yearFormat: 'YYYY',\n}\n\nexport default DatePicker\n"],"names":["DatePicker","initialDate","onSelect","datesRangeStart","datesRangeEnd","hideYearSelector","yearFormat","hideMonthSelector","monthFormat","monthYearFormat","hideWeekDays","weekDayFormat","props","useState","selectedDate","setSelectedDate","setDate","year","add","event","dayjs","startOf","toDate","today","selectedDayjs","isSelected","day","isSame","isInRange","isAfter","isBefore","format","GU","eachDayOfInterval","start","end","endOf","map","dayJs","MonthDay","valueOf","dayFormat","propTyp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AkBGgB,KAAK,CAACP,MAAN,CAAanB,KAAK,CAAC6B,SAAnB,CAlBH,CADF;AAsBD,GA3BA,CApBH,CA3BF,CADF;AA+ED;;AAEDzC,UAAU,CAAC0C,SAAX,GAAuB;AACrB;;;AAGAvC,EAAAA,eAAe,EAAEwC,SAAS,CAACC,UAAV,CAAqBC,IAArB,CAJI;;AAKrB;;;AAGAzC,EAAAA,aAAa,EAAEuC,SAAS,CAACC,UAAV,CAAqBC,IAArB,CARM;;AASrB;;;AAGA5C,EAAAA,WAAW,EAAE0C,SAAS,CAACC,UAAV,CAAqBC,IAArB,CAZQ;AAcrB;AACA3C,EAAAA,QAAQ,EAAEyC,SAAS,CAACG,IAfC;AAiBrB;AACAvC,EAAAA,iBAAiB,EAAEoC,SAAS,CAACI,IAlBR;AAmBrBrC,EAAAA,YAAY,EAAEiC,SAAS,CAACI,IAnBH;AAoBrB1C,EAAAA,gBAAgB,EAAEsC,SAAS,CAACI,IApBP;AAsBrB;AACAN,EAAAA,SAAS,EAAEE,SAAS,CAACK,MAvBA;AAwBrBxC,EAAAA,WAAW,EAAEmC,SAAS,CAACK,MAxBF;AAyBrBvC,EAAAA,eAAe,EAAEkC,SAAS,CAACK,MAzBN;AA0BrBrC,EAAAA,aAAa,EAAEgC,SAAS,CAACK,MA1BJ;AA2BrB1C,EAAAA,UAAU,EAAEqC,SAAS,CAACK;AA3BD,CAAvB;AA8BAhD,UAAU,CAACiD,YAAX,GAA0B;AACxB/C,EAAAA,QAAQ,EAAE,oBAAM,EADQ;AAExBuC,EAAAA,SAAS,EAAE,GAFa;AAGxBjC,EAAAA,WAAW,EAAE,MAHW;AAIxBC,EAAAA,eAAe,EAAE,WAJO;AAKxBE,EAAAA,aAAa,EAAE,KALS;AAMxBL,EAAAA,UAAU,EAAE;AANY,CAA1B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DateRangePicker.js b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DateRangePicker.js new file mode 100644 index 000000000..8cc401e3a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DateRangePicker.js @@ -0,0 +1,209 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useRef, useState, useEffect, useCallback, useMemo } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import dayjs_min from '../../../node_modules/dayjs/dayjs.min.js'; +import '../../utils/environment.js'; +import { RADIUS, GU } from '../../style/constants.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import { useViewport } from '../../providers/Viewport/Viewport.js'; +import ButtonWithRef from '../Button/Button.js'; +import Popover from '../Popover/Popover.js'; +import DatePicker from './DatePicker.js'; +import { START_DATE, END_DATE } from './consts.js'; +import Labels from './Labels.js'; +import { handleDateSelect } from './utils.js'; + +var _StyledPopover = _styled(Popover).withConfig({ + displayName: "DateRangePicker___StyledPopover", + componentId: "s3s5m9-0" +})(["min-width:", "px;border:0;filter:none;background:none;margin:2px 0 0 0;"], function (p) { + return p._css; +}); + +var _StyledDiv = _styled("div").withConfig({ + displayName: "DateRangePicker___StyledDiv", + componentId: "s3s5m9-1" +})(["padding:", "px ", "px ", "px;border:1px solid ", ";border-radius:", "px;background:", ";"], function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, RADIUS, function (p) { + return p._css6; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "DateRangePicker___StyledDiv2", + componentId: "s3s5m9-2" +})(["display:flex;flex-direction:row;align-items:baseline;"]); + +var _StyledDatePicker = _styled(DatePicker).withConfig({ + displayName: "DateRangePicker___StyledDatePicker", + componentId: "s3s5m9-3" +})(["margin-left:", "px;"], function (p) { + return p._css7; +}); + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "DateRangePicker___StyledDiv3", + componentId: "s3s5m9-4" +})(["display:flex;align-items:center;justify-content:space-between;margin-top:", "px;", ";"], function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledButton = _styled(ButtonWithRef).withConfig({ + displayName: "DateRangePicker___StyledButton", + componentId: "s3s5m9-5" +})(["margin-left:", "px;"], function (p) { + return p._css10; +}); + +function DateRangePicker(_ref) { + var format = _ref.format, + endDateProp = _ref.endDate, + onChange = _ref.onChange, + startDateProp = _ref.startDate; + var theme = useTheme(); + var labelsRef = useRef(); + + var _useState = useState(false), + _useState2 = slicedToArray(_useState, 2), + showPicker = _useState2[0], + setShowPicker = _useState2[1]; + + var _useState3 = useState(startDateProp), + _useState4 = slicedToArray(_useState3, 2), + startDate = _useState4[0], + setStartDate = _useState4[1]; + + var _useState5 = useState(endDateProp), + _useState6 = slicedToArray(_useState5, 2), + endDate = _useState6[0], + setEndDate = _useState6[1]; // on closing the picked, reset state + + + useEffect(function () { + if (!showPicker) { + setStartDate(startDateProp); + setEndDate(endDateProp); + } + }, [endDateProp, startDateProp, showPicker]); + var handlePopoverClose = useCallback(function () { + return setShowPicker(false); + }, []); + var handleLabelsClick = useCallback(function () { + setShowPicker(function (show) { + return !show; + }); + }, []); + var handleDateClick = useCallback(function (date) { + var result = handleDateSelect({ + date: date, + startDate: startDate, + endDate: endDate + }); + result.startDate !== undefined && setStartDate(result.startDate); + result.endDate !== undefined && setEndDate(result.endDate); + }, [startDate, endDate]); + var handleApply = useCallback(function () { + setShowPicker(false); + + if (startDate && endDate) { + onChange({ + start: dayjs_min(startDate).startOf('day').toDate(), + end: dayjs_min(endDate).endOf('day').toDate() + }); + } + }, [endDate, onChange, startDate]); + var handleClear = useCallback(function () { + setStartDate(null); + setEndDate(null); + setShowPicker(false); + onChange({ + start: null, + end: null + }); + }, [onChange]); + var labelProps = useMemo(function () { + var _startDate = showPicker ? startDate : startDateProp; + + var _endDate = showPicker ? endDate : endDateProp; + + return { + startText: _startDate ? dayjs_min(_startDate).format(format) : START_DATE, + endText: _endDate ? dayjs_min(_endDate).format(format) : END_DATE + }; + }, [endDate, endDateProp, format, showPicker, startDate, startDateProp]); + var compactMode = useViewport().below('medium'); + var displayMonthBeforeOnLeft = useMemo(function () { + // If both dates are in the same month, use the right calendar + // for it, and display month before on the left calendar. + var propsDatesInSameMonth = startDateProp && endDateProp && dayjs_min(startDateProp).isSame(dayjs_min(endDateProp), 'month'); + return !compactMode && (propsDatesInSameMonth || !startDateProp); + }, [compactMode, endDateProp, startDateProp]); + return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Labels, _extends_1({ + ref: labelsRef, + enabled: showPicker, + hasSetDates: Boolean(startDateProp && endDateProp), + onClick: handleLabelsClick + }, labelProps)), /*#__PURE__*/React.createElement(_StyledPopover, { + closeOnOpenerFocus: true, + onClose: handlePopoverClose, + opener: labelsRef.current, + placement: "bottom-start", + visible: showPicker, + _css: 37.5 * GU + 2 + }, /*#__PURE__*/React.createElement(_StyledDiv, { + _css2: 2.5 * GU, + _css3: 3 * GU, + _css4: 3 * GU, + _css5: theme.border, + _css6: theme.surface + }, /*#__PURE__*/React.createElement(_StyledDiv2, null, /*#__PURE__*/React.createElement(DatePicker, { + datesRangeEnd: endDate, + datesRangeStart: startDate, + initialDate: dayjs_min(startDateProp || undefined).subtract(displayMonthBeforeOnLeft ? 1 : 0, 'month').toDate(), + onSelect: handleDateClick + }), !compactMode && /*#__PURE__*/React.createElement(_StyledDatePicker, { + datesRangeEnd: endDate, + datesRangeStart: startDate, + initialDate: dayjs_min(endDateProp || undefined).toDate(), + onSelect: handleDateClick, + _css7: 1 * GU + })), /*#__PURE__*/React.createElement(_StyledDiv3, { + _css8: GU * 2.25, + _css9: compactMode ? '' : "\n max-width: 247px;\n margin-left: auto;\n " + }, /*#__PURE__*/React.createElement(ButtonWithRef, { + onClick: handleClear, + size: "small", + wide: true + }, "Reset"), /*#__PURE__*/React.createElement(_StyledButton, { + disabled: !startDate || !endDate, + mode: "strong", + onClick: handleApply, + size: "small", + wide: true, + _css10: 1.5 * GU + }, "Apply"))))); +} + +DateRangePicker.propTypes = { + endDate: propTypes.instanceOf(Date), + format: propTypes.string, + onChange: propTypes.func, + startDate: propTypes.instanceOf(Date) +}; +DateRangePicker.defaultProps = { + format: 'MM/DD/YYYY', + onChange: function onChange() {} +}; + +export default DateRangePicker; +//# sourceMappingURL=DateRangePicker.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DateRangePicker.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DateRangePicker.js.map new file mode 100644 index 000000000..4df91a9d9 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/DateRangePicker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DateRangePicker.js","sources":["../../../../../src/components/DateRangePicker/DateRangePicker.js"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport dayjs from 'dayjs'\nimport Button from '../Button/Button'\nimport { useViewport } from '../../providers/Viewport/Viewport'\nimport { GU, RADIUS } from '../../style'\nimport { useTheme } from '../../theme'\nimport DatePicker from './DatePicker'\nimport Labels from './Labels'\nimport { START_DATE, END_DATE } from './consts'\nimport { handleDateSelect } from './utils'\nimport Popover from '../Popover/Popover'\n\nfunction DateRangePicker({\n format,\n endDate: endDateProp,\n onChange,\n startDate: startDateProp,\n}) {\n const theme = useTheme()\n const labelsRef = useRef()\n const [showPicker, setShowPicker] = useState(false)\n const [startDate, setStartDate] = useState(startDateProp)\n const [endDate, setEndDate] = useState(endDateProp)\n\n // on closing the picked, reset state\n useEffect(() => {\n if (!showPicker) {\n setStartDate(startDateProp)\n setEndDate(endDateProp)\n }\n }, [endDateProp, startDateProp, showPicker])\n\n const handlePopoverClose = useCallback(() => setShowPicker(false), [])\n\n const handleLabelsClick = useCallback(() => {\n setShowPicker(show => !show)\n }, [])\n\n const handleDateClick = useCallback(\n date => {\n const result = handleDateSelect({ date, startDate, endDate })\n result.startDate !== undefined && setStartDate(result.startDate)\n result.endDate !== undefined && setEndDate(result.endDate)\n },\n [startDate, endDate]\n )\n\n const handleApply = useCallback(() => {\n setShowPicker(false)\n\n if (startDate && endDate) {\n onChange({\n start: dayjs(startDate)\n .startOf('day')\n .toDate(),\n end: dayjs(endDate)\n .endOf('day')\n .toDate(),\n })\n }\n }, [endDate, onChange, startDate])\n\n const handleClear = useCallback(() => {\n setStartDate(null)\n setEndDate(null)\n setShowPicker(false)\n onChange({ start: null, end: null })\n }, [onChange])\n\n const labelProps = useMemo(() => {\n const _startDate = showPicker ? startDate : startDateProp\n const _endDate = showPicker ? endDate : endDateProp\n return {\n startText: _startDate ? dayjs(_startDate).format(format) : START_DATE,\n endText: _endDate ? dayjs(_endDate).format(format) : END_DATE,\n }\n }, [endDate, endDateProp, format, showPicker, startDate, startDateProp])\n\n const compactMode = useViewport().below('medium')\n\n const displayMonthBeforeOnLeft = useMemo(() => {\n // If both dates are in the same month, use the right calendar\n // for it, and display month before on the left calendar.\n const propsDatesInSameMonth =\n startDateProp &&\n endDateProp &&\n dayjs(startDateProp).isSame(dayjs(endDateProp), 'month')\n\n return !compactMode && (propsDatesInSameMonth || !startDateProp)\n }, [compactMode, endDateProp, startDateProp])\n\n return (\n
    \n \n \n \n \n \n {!compactMode && (\n \n )}\n
    \n\n \n \n \n Apply\n \n \n \n \n \n )\n}\n\nDateRangePicker.propTypes = {\n endDate: PropTypes.instanceOf(Date),\n format: PropTypes.string,\n onChange: PropTypes.func,\n startDate: PropTypes.instanceOf(Date),\n}\n\nDateRangePicker.defaultProps = {\n format: 'MM/DD/YYYY',\n onChange: () => {},\n}\n\nexport default DateRangePicker\n"],"names":["RADIUS","DateRangePicker","format","endDateProp","endDate","onChange","startDateProp","startDate","theme","useTheme","labelsRef","useRef","useState","showPicker","setShowPicker","setStartDate","setEndDate","useEffect","handlePopoverClose","useCallback","handleLabelsClick","show","handleDateClick","date","result","handleDateSelect","undefined","handleApply","start","dayjs","startOf","toDate","end","endOf","handleClear","labelProps","useMemo","_startDate","_endDate","startText","START_DATE","endText","END_DATE","compactMode","useViewport","below","displayMonthBeforeOnLeft","propsDatesInSameMonth","isSame","Boolean","current","GU","border","surface","subtract","Button","propTypes","PropTypes","instanceOf","Date","string","func","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuH6BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1G7B,SAASC,eAAT,OAKG;AAAA,MAJDC,MAIC,QAJDA,MAIC;AAAA,MAHQC,WAGR,QAHDC,OAGC;AAAA,MAFDC,QAEC,QAFDA,QAEC;AAAA,MADUC,aACV,QADDC,SACC;AACD,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;AACA,MAAMC,SAAS,GAAGC,MAAM,EAAxB;;AAFC,kBAGmCC,QAAQ,CAAC,KAAD,CAH3C;AAAA;AAAA,MAGMC,UAHN;AAAA,MAGkBC,aAHlB;;AAAA,mBAIiCF,QAAQ,CAACN,aAAD,CAJzC;AAAA;AAAA,MAIMC,SAJN;AAAA,MAIiBQ,YAJjB;;AAAA,mBAK6BH,QAAQ,CAACT,WAAD,CALrC;AAAA;AAAA,MAKMC,OALN;AAAA,MAKeY,UALf;;;AAQDC,EAAAA,SAAS,CAAC,YAAM;AACd,QAAI,CAACJ,UAAL,EAAiB;AACfE,MAAAA,YAAY,CAACT,aAAD,CAAZ;AACAU,MAAAA,UAAU,CAACb,WAAD,CAAV;AACD;AACF,GALQ,EAKN,CAACA,WAAD,EAAcG,aAAd,EAA6BO,UAA7B,CALM,CAAT;AAOA,MAAMK,kBAAkB,GAAGC,WAAW,CAAC;AAAA,WAAML,aAAa,CAAC,KAAD,CAAnB;AAAA,GAAD,EAA6B,EAA7B,CAAtC;AAEA,MAAMM,iBAAiB,GAAGD,WAAW,CAAC,YAAM;AAC1CL,IAAAA,aAAa,CAAC,UAAAO,IAAI;AAAA,aAAI,CAACA,IAAL;AAAA,KAAL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KE,IAAA,IAAI,MALN;AAAA,YAOmB,MAAMwB;AAPzB,aAlBF,CApCF,CAdF,CARF,CADF;AA8FD;;AAEDlD,eAAe,CAACuD,SAAhB,GAA4B;AAC1BpD,EAAAA,OAAO,EAAEqD,SAAS,CAACC,UAAV,CAAqBC,IAArB,CADiB;AAE1BzD,EAAAA,MAAM,EAAEuD,SAAS,CAACG,MAFQ;AAG1BvD,EAAAA,QAAQ,EAAEoD,SAAS,CAACI,IAHM;AAI1BtD,EAAAA,SAAS,EAAEkD,SAAS,CAACC,UAAV,CAAqBC,IAArB;AAJe,CAA5B;AAOA1D,eAAe,CAAC6D,YAAhB,GAA+B;AAC7B5D,EAAAA,MAAM,EAAE,YADqB;AAE7BG,EAAAA,QAAQ,EAAE,oBAAM;AAFa,CAA/B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/Labels.js b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/Labels.js new file mode 100644 index 000000000..80921042c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/Labels.js @@ -0,0 +1,109 @@ +import React, { forwardRef } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import { RADIUS, GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import ButtonBaseWithFocus from '../ButtonBase/ButtonBase.js'; +import IconCalendar from '../../icons/components/IconCalendar.js'; +import { INPUT_BORDER, START_DATE, END_DATE } from './consts.js'; + +var _StyledDiv = _styled("div").withConfig({ + displayName: "Labels___StyledDiv", + componentId: "sc-1is9uv6-0" +})(["position:relative;width:", "px;display:flex;justify-content:space-between;align-items:center;padding:7px 6px;border:", "px solid ", ";border-radius:", "px;background:", ";overflow:hidden;cursor:pointer;&:active{border-color:", ";}&:focus{outline:none;}"], function (p) { + return p._css; +}, INPUT_BORDER, function (p) { + return p._css2; +}, RADIUS, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "Labels___StyledDiv2", + componentId: "sc-1is9uv6-1" +})(["display:flex;flex:1;justify-content:space-around;align-items:center;"]); + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "Labels___StyledDiv3", + componentId: "sc-1is9uv6-2" +})(["color:", ";text-align:center;", ""], function (p) { + return p._css5; +}, function (p) { + return p._css6; +}); + +var _StyledDiv4 = _styled("div").withConfig({ + displayName: "Labels___StyledDiv4", + componentId: "sc-1is9uv6-3" +})(["color:", ";font-size:13px;"], function (p) { + return p._css7; +}); + +var _StyledDiv5 = _styled("div").withConfig({ + displayName: "Labels___StyledDiv5", + componentId: "sc-1is9uv6-4" +})(["color:", ";text-align:center;", ""], function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledDiv6 = _styled("div").withConfig({ + displayName: "Labels___StyledDiv6", + componentId: "sc-1is9uv6-5" +})(["display:flex;padding:0 4px 0 10px;"]); + +var _StyledIconCalendar = _styled(IconCalendar).withConfig({ + displayName: "Labels___StyledIconCalendar", + componentId: "sc-1is9uv6-6" +})(["color:", ";"], function (p) { + return p._css10; +}); + +var Labels = /*#__PURE__*/forwardRef(function Labels(_ref, ref) { + var enabled = _ref.enabled, + startText = _ref.startText, + endText = _ref.endText, + hasSetDates = _ref.hasSetDates, + onClick = _ref.onClick, + props = objectWithoutProperties(_ref, ["enabled", "startText", "endText", "hasSetDates", "onClick"]); + + var theme = useTheme(); + var hasNoStart = startText === START_DATE; + var hasNoEnd = endText === END_DATE; + return /*#__PURE__*/React.createElement(ButtonBaseWithFocus, { + focusRingRadius: RADIUS, + ref: ref, + onClick: onClick + }, /*#__PURE__*/React.createElement(_StyledDiv, _extends_1({}, props, { + _css: 27.5 * GU, + _css2: hasSetDates ? theme.accent : theme.border, + _css3: theme.surface, + _css4: theme.controlBorderPressed + }), /*#__PURE__*/React.createElement(_StyledDiv2, null, /*#__PURE__*/React.createElement(_StyledDiv3, { + _css5: hasNoStart ? theme.hint : 'inherit', + _css6: textStyle(hasNoStart ? 'body2' : 'body3') + }, startText), /*#__PURE__*/React.createElement(_StyledDiv4, { + _css7: theme.hint.alpha(0.3) + }, "|"), /*#__PURE__*/React.createElement(_StyledDiv5, { + _css8: hasNoEnd ? theme.hint : 'inherit', + _css9: textStyle(hasNoEnd ? 'body2' : 'body3') + }, endText)), /*#__PURE__*/React.createElement(_StyledDiv6, null, /*#__PURE__*/React.createElement(_StyledIconCalendar, { + _css10: enabled ? theme.accent : theme.surfaceIcon + })))); +}); +Labels.propTypes = { + enabled: propTypes.bool, + hasSetDates: propTypes.bool, + onClick: propTypes.func, + startText: propTypes.string.isRequired, + endText: propTypes.string.isRequired +}; + +export default Labels; +//# sourceMappingURL=Labels.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/Labels.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/Labels.js.map new file mode 100644 index 000000000..879f9e3aa --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/Labels.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Labels.js","sources":["../../../../../src/components/DateRangePicker/Labels.js"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport PropTypes from 'prop-types'\nimport { IconCalendar } from '../../icons/components'\nimport { GU, RADIUS, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { START_DATE, END_DATE, INPUT_BORDER } from './consts'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst Labels = forwardRef(function Labels(\n { enabled, startText, endText, hasSetDates, onClick, ...props },\n ref\n) {\n const theme = useTheme()\n\n const hasNoStart = startText === START_DATE\n const hasNoEnd = endText === END_DATE\n\n return (\n \n \n \n \n {startText}\n \n \n |\n \n \n {endText}\n \n \n \n \n \n \n \n )\n})\n\nLabels.propTypes = {\n enabled: PropTypes.bool,\n hasSetDates: PropTypes.bool,\n onClick: PropTypes.func,\n startText: PropTypes.string.isRequired,\n endText: PropTypes.string.isRequired,\n}\n\nexport default Labels\n"],"names":["INPUT_BORDER","RADIUS","Labels","forwardRef","ref","enabled","startText","endText","hasSetDates","onClick","props","theme","useTheme","hasNoStart","START_DATE","hasNoEnd","END_DATE","ButtonBase","GU","accent","border","surface","controlBorderPressed","hint","textStyle","alpha","surfaceIcon","propTypes","PropTypes","bool","func","string","isRequired"],"mappings":";;;;;;;;;;;;;;;;;GA2BoBA;;GAEOC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IArBrBC,MAAM,gBAAGC,UAAU,CAAC,SAASD,MAAT,OAExBE,GAFwB,EAGxB;AAAA,MAFEC,OAEF,QAFEA,OAEF;AAAA,MAFWC,SAEX,QAFWA,SAEX;AAAA,MAFsBC,OAEtB,QAFsBA,OAEtB;AAAA,MAF+BC,WAE/B,QAF+BA,WAE/B;AAAA,MAF4CC,OAE5C,QAF4CA,OAE5C;AAAA,MAFwDC,KAExD;;AACA,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;AAEA,MAAMC,UAAU,GAAGP,SAAS,KAAKQ,UAAjC;AACA,MAAMC,QAAQ,GAAGR,OAAO,KAAKS,QAA7B;AAEA,sBACE,oBAACC,mBAAD;AAAY,IAAA,eAAe,EAAEhB,MAA7B;AAAqC,IAAA,GAAG,EAAEG,GAA1C;AAA+C,IAAA,OAAO,EAAEK;AAAxD,kBACE,+CAqBMC,KArBN;AAAA,UAGa,OAAOQ,EAHpB;AAAA,WASQV,WAAW,GAAGG,KAAK,CAACQ,MAAT,GAAkBR,KAAK,CAACS,MAT3C;AAAA,WAWkBT,KAAK,CAACU,OAXxB;AAAA,WAesBV,KAAK,CAACW;AAf5B,mBAuBE,oDAQE;AAAA,WAEaT,UAAU,GAAGF,KAAK,CAACY,IAAT,GAAgB,SAFvC;AAAA,WAIMC,SAAS,CAACX,UAAU,GAAG,OAAH,GAAa,OAAxB;AAJf,KAOGP,SAPH,CARF,eAiBE;AAAA,WAEaK,KAAK,CAACY,IAAN,CAAWE,KAAX,CAAiB,GAAjB;AAFb,SAjBF,eAyBE;AAAA,WAEaV,QAAQ,GAAGJ,KAAK,CAACY,IAAT,GAAgB,SAFrC;AAAA,WAIMC,SAAS,CAACT,QAAQ,GAAG,OAAH,GAAa,OAAtB;AAJf,KAOGR,OAPH,CAzBF,CAvBF,eA0DE,oDAME;AAAA,YAEaF,OAAO,GAAGM,KAAK,CAACQ,MAAT,GAAkBR,KAAK,CAACe;AAF5C,IANF,CA1DF,CADF,CADF;AA2ED,CApFwB;AAsFzBxB,MAAM,CAACyB,SAAP,GAAmB;AACjBtB,EAAAA,OAAO,EAAEuB,SAAS,CAACC,IADF;AAEjBrB,EAAAA,WAAW,EAAEoB,SAAS,CAACC,IAFN;AAGjBpB,EAAAA,OAAO,EAAEmB,SAAS,CAACE,IAHF;AAIjBxB,EAAAA,SAAS,EAAEsB,SAAS,CAACG,MAAV,CAAiBC,UAJX;AAKjBzB,EAAAA,OAAO,EAAEqB,SAAS,CAACG,MAAV,CAAiBC;AALT,CAAnB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/MonthDay.js b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/MonthDay.js new file mode 100644 index 000000000..fb54a165c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/MonthDay.js @@ -0,0 +1,132 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useState } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled, { css } from 'styled-components'; +import { GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import ButtonBaseWithFocus from '../ButtonBase/ButtonBase.js'; +import { HoverIndicator } from './components.js'; + +var _StyledDiv = _styled("div").withConfig({ + displayName: "MonthDay___StyledDiv", + componentId: "ngrxyo-0" +})(["position:relative;display:flex;align-items:center;justify-content:center;width:", "px;height:", "px;border-radius:50%;cursor:pointer;user-select:none;margin-bottom:1px;", ";", " ", " ", " ", " ", " ", " &:after{display:block;content:'';margin-top:100%;}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}); + +var _StyledSpan = _styled("span").withConfig({ + displayName: "MonthDay___StyledSpan", + componentId: "ngrxyo-1" +})(["", ";"], function (p) { + return p._css10; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "MonthDay___StyledDiv2", + componentId: "ngrxyo-2" +})(["position:absolute;bottom:1px;font-size:9px;color:", ";"], function (p) { + return p._css11; +}); + +function MonthDay(_ref) { + var children = _ref.children, + disabled = _ref.disabled, + inRange = _ref.inRange, + rangeBoundaryBegin = _ref.rangeBoundaryBegin, + rangeBoundaryEnd = _ref.rangeBoundaryEnd, + selected = _ref.selected, + today = _ref.today, + weekDay = _ref.weekDay, + props = objectWithoutProperties(_ref, ["children", "disabled", "inRange", "rangeBoundaryBegin", "rangeBoundaryEnd", "selected", "today", "weekDay"]); + + var theme = useTheme(); + var dimmedSelectedColor = theme.selected.alpha(0.09); + + var _useState = useState(false), + _useState2 = slicedToArray(_useState, 2), + isHovered = _useState2[0], + setIsHovered = _useState2[1]; + + return /*#__PURE__*/React.createElement(_StyledDiv, _extends_1({ + onMouseEnter: function onMouseEnter() { + return setIsHovered(true); + }, + onMouseLeave: function onMouseLeave() { + return setIsHovered(false); + } + }, props, { + _css: 4.5 * GU, + _css2: weekDay ? 3.5 * GU : 4.5 * GU, + _css3: disabled ? "\n pointer-events: none;\n opacity: 0;\n " : '', + _css4: selected && !disabled ? "\n &&& {\n background: ".concat(theme.selected, ";\n color: ").concat(theme.positiveContent, ";\n }\n ") : '', + _css5: inRange && !selected && !disabled ? "\n background: ".concat(dimmedSelectedColor, ";\n border-radius: 0;\n ") : '', + _css6: (rangeBoundaryBegin || rangeBoundaryEnd) && css(["z-index:1;&:before{content:'';position:absolute;top:0;", ":0;z-index:0;background:", ";width:50%;height:100%;}"], rangeBoundaryBegin ? 'right' : 'left', dimmedSelectedColor), + _css7: isHovered && css(["> *{z-index:1;}"]), + _css8: today && css(["color:", ";font-weight:600;"], theme.selected), + _css9: weekDay && css(["pointer-events:none;color:", ";text-transform:uppercase;"], theme.contentSecondary) + }), isHovered ? /*#__PURE__*/React.createElement(HoverIndicator, { + theme: theme, + selected: selected + }) : null, /*#__PURE__*/React.createElement(_StyledSpan, { + _css10: textStyle(weekDay ? 'body4' : 'body3') + }, children), today ? /*#__PURE__*/React.createElement(_StyledDiv2, { + _css11: selected ? theme.surface : theme.selected + }, "\u25CF") : null); +} + +MonthDay.propTypes = { + children: propTypes.node, + disabled: propTypes.bool, + selected: propTypes.bool, + inRange: propTypes.bool, + rangeBoundaryBegin: propTypes.bool, + rangeBoundaryEnd: propTypes.bool, + today: propTypes.bool, + weekDay: propTypes.bool +}; + +var _StyledButtonBase = _styled(ButtonBaseWithFocus).withConfig({ + displayName: "MonthDay___StyledButtonBase", + componentId: "ngrxyo-3" +})(["display:flex;width:", "px;height:", "px;margin:0;"], function (p) { + return p._css12; +}, function (p) { + return p._css13; +}); + +function WrappedMonthDay(_ref2) { + var onClick = _ref2.onClick, + props = objectWithoutProperties(_ref2, ["onClick"]); + + if (onClick && !props.disabled) { + return /*#__PURE__*/React.createElement(_StyledButtonBase, { + onClick: onClick, + _css12: 4.5 * GU, + _css13: props.weekDay ? 3.5 * GU : 4.5 * GU + }, /*#__PURE__*/React.createElement(MonthDay, props)); + } else { + return /*#__PURE__*/React.createElement(MonthDay, props); + } +} + +export default WrappedMonthDay; +//# sourceMappingURL=MonthDay.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/MonthDay.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/MonthDay.js.map new file mode 100644 index 000000000..ffba3abfe --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/MonthDay.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MonthDay.js","sources":["../../../../../src/components/DateRangePicker/MonthDay.js"],"sourcesContent":["import React, { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { css } from 'styled-components'\nimport { useTheme } from '../../theme'\nimport { textStyle, GU } from '../../style'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport { HoverIndicator } from './components'\n\nfunction MonthDay({\n children,\n disabled,\n inRange,\n rangeBoundaryBegin,\n rangeBoundaryEnd,\n selected,\n today,\n weekDay,\n ...props\n}) {\n const theme = useTheme()\n const dimmedSelectedColor = theme.selected.alpha(0.09)\n const [isHovered, setIsHovered] = useState(false)\n\n return (\n setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n css={`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: ${4.5 * GU}px;\n height: ${weekDay ? 3.5 * GU : 4.5 * GU}px;\n border-radius: 50%;\n cursor: pointer;\n user-select: none;\n margin-bottom: 1px;\n\n ${\n disabled\n ? `\n pointer-events: none;\n opacity: 0;\n `\n : ''\n };\n\n ${\n selected && !disabled\n ? `\n &&& {\n background: ${theme.selected};\n color: ${theme.positiveContent};\n }\n `\n : ''\n }\n\n ${\n inRange && !selected && !disabled\n ? `\n background: ${dimmedSelectedColor};\n border-radius: 0;\n `\n : ''\n }\n\n ${(rangeBoundaryBegin || rangeBoundaryEnd) &&\n css`\n z-index: 1;\n &:before {\n content: '';\n position: absolute;\n top: 0;\n ${rangeBoundaryBegin ? 'right' : 'left'}: 0;\n z-index: 0;\n background: ${dimmedSelectedColor};\n width: 50%;\n height: 100%;\n }\n `}\n\n ${isHovered &&\n css`\n > * {\n z-index: 1;\n }\n `}\n\n ${today &&\n css`\n color: ${theme.selected};\n font-weight: 600;\n `}\n\n ${weekDay &&\n css`\n pointer-events: none;\n color: ${theme.contentSecondary};\n text-transform: uppercase;\n `}\n\n &:after {\n display: block;\n content: '';\n margin-top: 100%;\n }\n `}\n {...props}\n >\n {isHovered ? : null}\n \n {children}\n \n {today ? (\n \n ●\n \n ) : null}\n \n )\n}\n\nMonthDay.propTypes = {\n children: PropTypes.node,\n disabled: PropTypes.bool,\n selected: PropTypes.bool,\n inRange: PropTypes.bool,\n rangeBoundaryBegin: PropTypes.bool,\n rangeBoundaryEnd: PropTypes.bool,\n today: PropTypes.bool,\n weekDay: PropTypes.bool,\n}\n\nfunction WrappedMonthDay({ onClick, ...props }) {\n if (onClick && !props.disabled) {\n return (\n \n \n \n )\n } else {\n return \n }\n}\n\nexport default WrappedMonthDay\n"],"names":["MonthDay","children","disabled","inRange","rangeBoundaryBegin","rangeBoundaryEnd","selected","today","weekDay","props","theme","useTheme","dimmedSelectedColor","alpha","useState","isHovered","setIsHovered","GU","positiveContent","css","contentSecondary","textStyle","surface","propTypes","PropTypes","node","bool","WrappedMonthDay","onClick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAASA,QAAT,OAUG;AAAA,MATDC,QASC,QATDA,QASC;AAAA,MARDC,QAQC,QARDA,QAQC;AAAA,MAPDC,OAOC,QAPDA,OAOC;AAAA,MANDC,kBAMC,QANDA,kBAMC;AAAA,MALDC,gBAKC,QALDA,gBAKC;AAAA,MAJDC,QAIC,QAJDA,QAIC;AAAA,MAHDC,KAGC,QAHDA,KAGC;AAAA,MAFDC,OAEC,QAFDA,OAEC;AAAA,MADEC,KACF;;AACD,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;AACA,MAAMC,mB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AAT,GAAmBZ,KAAK,CAACJ;AAL9C,cADI,GAWF,IA1GN,CADF;AA8GD;;AAEDN,QAAQ,CAACuB,SAAT,GAAqB;AACnBtB,EAAAA,QAAQ,EAAEuB,SAAS,CAACC,IADD;AAEnBvB,EAAAA,QAAQ,EAAEsB,SAAS,CAACE,IAFD;AAGnBpB,EAAAA,QAAQ,EAAEkB,SAAS,CAACE,IAHD;AAInBvB,EAAAA,OAAO,EAAEqB,SAAS,CAACE,IAJA;AAKnBtB,EAAAA,kBAAkB,EAAEoB,SAAS,CAACE,IALX;AAMnBrB,EAAAA,gBAAgB,EAAEmB,SAAS,CAACE,IANT;AAOnBnB,EAAAA,KAAK,EAAEiB,SAAS,CAACE,IAPE;AAQnBlB,EAAAA,OAAO,EAAEgB,SAAS,CAACE;AARA,CAArB;;;;;;;;;;;AAWA,SAASC,eAAT,QAAgD;AAAA,MAArBC,OAAqB,SAArBA,OAAqB;AAAA,MAATnB,KAAS;;AAC9C,MAAImB,OAAO,IAAI,CAACnB,KAAK,CAACP,QAAtB,EAAgC;AAC9B,wBACE;AAOE,MAAA,OAAO,EAAE0B,OAPX;AAAA,cAGa,MAAMX,EAHnB;AAAA,cAIcR,KAAK,CAACD,OAAN,GAAgB,MAAMS,EAAtB,GAA2B,MAAMA;AAJ/C,oBASE,oBAAC,QAAD,EAAcR,KAAd,CATF,CADF;AAaD,GAdD,MAcO;AACL,wBAAO,oBAAC,QAAD,EAAcA,KAAd,CAAP;AACD;AACF;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/components.js b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/components.js new file mode 100644 index 000000000..bf3d39d9a --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/components.js @@ -0,0 +1,66 @@ +import React from 'react'; +import _styled, { css } from 'styled-components'; +import { GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import ButtonBaseWithFocus from '../ButtonBase/ButtonBase.js'; +import IconLeft from '../../icons/components/IconLeft.js'; +import IconRight from '../../icons/components/IconRight.js'; + +var HoverIndicator = _styled.span.withConfig({ + displayName: "components__HoverIndicator", + componentId: "lxakqh-0" +})(["width:100%;height:100%;position:absolute;border-radius:50%;", ""], function (_ref) { + var theme = _ref.theme, + selected = _ref.selected; + return css(["background:", ";border:2px solid ", ";"], selected ? theme.selected : theme.surface, theme.accent); +}); + +var _StyledButtonBase = _styled(ButtonBaseWithFocus).withConfig({ + displayName: "components___StyledButtonBase", + componentId: "lxakqh-1" +})(["font-size:9px;padding:5px 4px 0 4px;margin-top:-4px;color:", ";&:hover{color:inherit;}"], function (p) { + return p._css; +}); + +var ArrowButton = function ArrowButton(props) { + var theme = useTheme(); + return /*#__PURE__*/React.createElement(_StyledButtonBase, _extends_1({ + focusRingRadius: GU * 2 + }, props, { + _css: theme.hint + })); +}; + +var SelectorWrapper = _styled.div.withConfig({ + displayName: "components__SelectorWrapper", + componentId: "lxakqh-2" +})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:", "px;span{", "}"], 1 * GU, function (_ref2) { + var small = _ref2.small, + theme = _ref2.theme; + return css(["", ";", ""], textStyle(small ? 'label2' : 'body2'), small && css(["color:", ";font-weight:600;"], theme.hint)); +}); // eslint-disable-next-line react/prop-types + +function Selector(_ref3) { + var prev = _ref3.prev, + next = _ref3.next, + children = _ref3.children, + small = _ref3.small; + var theme = useTheme(); + return /*#__PURE__*/React.createElement(SelectorWrapper, { + small: small, + theme: theme + }, /*#__PURE__*/React.createElement(ArrowButton, { + onClick: prev + }, /*#__PURE__*/React.createElement(IconLeft, { + size: "small" + })), /*#__PURE__*/React.createElement("span", null, children), /*#__PURE__*/React.createElement(ArrowButton, { + onClick: next + }, /*#__PURE__*/React.createElement(IconRight, { + size: "small" + }))); +} + +export { HoverIndicator, Selector }; +//# sourceMappingURL=components.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/components.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/components.js.map new file mode 100644 index 000000000..c20f8317f --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/components.js.map @@ -0,0 +1 @@ +{"version":3,"file":"components.js","sources":["../../../../../src/components/DateRangePicker/components.js"],"sourcesContent":["import React from 'react'\nimport styled, { css } from 'styled-components'\n\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport { useTheme } from '../../theme'\nimport { GU, textStyle } from '../../style'\nimport { IconLeft, IconRight } from '../../icons/components'\n\nexport const HoverIndicator = styled.span`\n width: 100%;\n height: 100%;\n position: absolute;\n border-radius: 50%;\n ${({ theme, selected }) => css`\n background: ${selected ? theme.selected : theme.surface};\n border: 2px solid ${theme.accent};\n `}\n`\n\nconst ArrowButton = props => {\n const theme = useTheme()\n return (\n \n )\n}\n\nconst SelectorWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: ${1 * GU}px;\n\n span {\n ${({ small, theme }) => css`\n ${textStyle(small ? 'label2' : 'body2')};\n ${small &&\n css`\n color: ${theme.hint};\n font-weight: 600;\n `}\n `}\n }\n`\n\n// eslint-disable-next-line react/prop-types\nexport function Selector({ prev, next, children, small }) {\n const theme = useTheme()\n return (\n \n \n \n \n {children}\n \n \n \n \n )\n}\n"],"names":["HoverIndicator","styled","span","theme","selected","css","surface","accent","ArrowButton","props","useTheme","GU","hint","SelectorWrapper","div","small","textStyle","Selector","prev","next","children"],"mappings":";;;;;;;;;;IAQaA,cAAc,GAAGC,OAAM,CAACC,IAAV;AAAA;AAAA;AAAA,wEAKvB;AAAA,MAAGC,KAAH,QAAGA,KAAH;AAAA,MAAUC,QAAV,QAAUA,QAAV;AAAA,SAAyBC,GAAzB,6CACcD,QAAQ,GAAGD,KAAK,CAACC,QAAT,GAAoBD,KAAK,CAACG,OADhD,EAEoBH,KAAK,CAACI,MAF1B;AAAA,CALuB;;;;;;;;;AAW3B,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAAAC,KAAK,EAAI;AAC3B,MAAMN,KAAK,GAAGO,QAAQ,EAAtB;AACA,sBACE;AACE,IAAA,eAAe,EAAEC,EAAE,GAAG;AADxB,KAYMF,KAZN;AAAA,UAMaN,KAAK,CAACS;AANnB,KADF;AAgBD,CAlBD;;AAoBA,IAAMC,eAAe,GAAGZ,OAAM,CAACa,GAAV;AAAA;AAAA;AAAA,sGAIF,IAAIH,EAJF,EAOf;AAAA,MAAGI,KAAH,SAAGA,KAAH;AAAA,MAAUZ,KAAV,SAAUA,KAAV;AAAA,SAAsBE,GAAtB,gBACEW,SAAS,CAACD,KAAK,GAAG,QAAH,GAAc,OAApB,CADX,EAEEA,KAAK,IACLV,GADK,kCAEMF,KAAK,CAACS,IAFZ,CAFP;AAAA,CAPe,CAArB;;AAmBO,SAASK,QAAT,QAAmD;AAAA,MAA/BC,IAA+B,SAA/BA,IAA+B;AAAA,MAAzBC,IAAyB,SAAzBA,IAAyB;AAAA,MAAnBC,QAAmB,SAAnBA,QAAmB;AAAA,MAATL,KAAS,SAATA,KAAS;AACxD,MAAMZ,KAAK,GAAGO,QAAQ,EAAtB;AACA,sBACE,oBAAC,eAAD;AAAiB,IAAA,KAAK,EAAEK,KAAxB;AAA+B,IAAA,KAAK,EAAEZ;AAAtC,kBACE,oBAAC,WAAD;AAAa,IAAA,OAAO,EAAEe;AAAtB,kBACE,oBAAC,QAAD;AAAU,IAAA,IAAI,EAAC;AAAf,IADF,CADF,eAIE,kCAAOE,QAAP,CAJF,eAKE,oBAAC,WAAD;AAAa,IAAA,OAAO,EAAED;AAAtB,kBACE,oBAAC,SAAD;AAAW,IAAA,IAAI,EAAC;AAAhB,IADF,CALF,CADF;AAWD;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/consts.js b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/consts.js new file mode 100644 index 000000000..9e098a3f0 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/consts.js @@ -0,0 +1,6 @@ +var INPUT_BORDER = 1; +var START_DATE = 'Start day'; +var END_DATE = 'End day'; + +export { END_DATE, INPUT_BORDER, START_DATE }; +//# sourceMappingURL=consts.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/consts.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/consts.js.map new file mode 100644 index 000000000..19d1a0a37 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/consts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"consts.js","sources":["../../../../../src/components/DateRangePicker/consts.js"],"sourcesContent":["export const INPUT_BORDER = 1\n\nexport const START_DATE = 'Start day'\nexport const END_DATE = 'End day'\n"],"names":["INPUT_BORDER","START_DATE","END_DATE"],"mappings":"IAAaA,YAAY,GAAG;IAEfC,UAAU,GAAG;IACbC,QAAQ,GAAG;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/utils.js b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/utils.js new file mode 100644 index 000000000..eafd01f7d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/utils.js @@ -0,0 +1,62 @@ +import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; +import dayjs_min from '../../../node_modules/dayjs/dayjs.min.js'; + +function handleDateSelect(_ref) { + var date = _ref.date, + startDate = _ref.startDate, + endDate = _ref.endDate; + + // clicking on start date resets it, so it can be re-picked + if (startDate && dayjs_min(date).isSame(startDate, 'day')) { + return { + startDate: null + }; + } // clicking on end date resets it, so it can be re-picked + + + if (endDate && dayjs_min(date).isSame(endDate, 'day')) { + return { + endDate: null + }; + } + + var isValidStartDate = !endDate || !dayjs_min(date).isAfter(endDate); + var isValidEndDate = !startDate || !dayjs_min(date).isBefore(startDate); // if we have startDate, then `date` is the end date + + var isValidDate = startDate ? isValidEndDate : isValidStartDate; // both dates are selected - if a date is clicked and it's before + // start date, it should be the new start date + // (this way the start date does not have to be reset before setting) + // (the converse case for end date is handled implicitly below, because + // after both dates are selected, any selected date will be candidate for + // new end date) + + if (startDate && endDate && isValidStartDate && dayjs_min(date).isBefore(startDate, 'day')) { + return { + startDate: date + }; + } // one date is selected, but the clicked date is not corresponding + // (start selected, but clicked a date before start, and vice-versa) + // in this case, reverse the range + + + if (!startDate && endDate && dayjs_min(date).isAfter(endDate)) { + return { + startDate: endDate, + endDate: date + }; + } + + if (!endDate && startDate && dayjs_min(date).isBefore(startDate)) { + return { + startDate: date, + endDate: startDate + }; + } + + if (isValidDate) { + return defineProperty({}, startDate ? 'endDate' : 'startDate', date); + } +} + +export { handleDateSelect }; +//# sourceMappingURL=utils.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/utils.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/utils.js.map new file mode 100644 index 000000000..1797c2f4e --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DateRangePicker/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sources":["../../../../../src/components/DateRangePicker/utils.js"],"sourcesContent":["import dayjs from 'dayjs'\n\nexport function handleDateSelect({ date, startDate, endDate }) {\n // clicking on start date resets it, so it can be re-picked\n if (startDate && dayjs(date).isSame(startDate, 'day')) {\n return {\n startDate: null,\n }\n }\n // clicking on end date resets it, so it can be re-picked\n if (endDate && dayjs(date).isSame(endDate, 'day')) {\n return {\n endDate: null,\n }\n }\n\n const isValidStartDate = !endDate || !dayjs(date).isAfter(endDate)\n const isValidEndDate = !startDate || !dayjs(date).isBefore(startDate)\n // if we have startDate, then `date` is the end date\n const isValidDate = startDate ? isValidEndDate : isValidStartDate\n\n // both dates are selected - if a date is clicked and it's before\n // start date, it should be the new start date\n // (this way the start date does not have to be reset before setting)\n // (the converse case for end date is handled implicitly below, because\n // after both dates are selected, any selected date will be candidate for\n // new end date)\n if (\n startDate &&\n endDate &&\n isValidStartDate &&\n dayjs(date).isBefore(startDate, 'day')\n ) {\n return {\n startDate: date,\n }\n }\n\n // one date is selected, but the clicked date is not corresponding\n // (start selected, but clicked a date before start, and vice-versa)\n // in this case, reverse the range\n if (!startDate && endDate && dayjs(date).isAfter(endDate)) {\n return {\n startDate: endDate,\n endDate: date,\n }\n }\n if (!endDate && startDate && dayjs(date).isBefore(startDate)) {\n return {\n startDate: date,\n endDate: startDate,\n }\n }\n\n if (isValidDate) {\n return {\n [startDate ? 'endDate' : 'startDate']: date,\n }\n }\n}\n"],"names":["handleDateSelect","date","startDate","endDate","dayjs","isSame","isValidStartDate","isAfter","isValidEndDate","isBefore","isValidDate"],"mappings":";;;AAEO,SAASA,gBAAT,OAAwD;AAAA,MAA5BC,IAA4B,QAA5BA,IAA4B;AAAA,MAAtBC,SAAsB,QAAtBA,SAAsB;AAAA,MAAXC,OAAW,QAAXA,OAAW;;AAC7D;AACA,MAAID,SAAS,IAAIE,SAAK,CAACH,IAAD,CAAL,CAAYI,MAAZ,CAAmBH,SAAnB,EAA8B,KAA9B,CAAjB,EAAuD;AACrD,WAAO;AACLA,MAAAA,SAAS,EAAE;AADN,KAAP;AAGD,GAN4D;;;AAQ7D,MAAIC,OAAO,IAAIC,SAAK,CAACH,IAAD,CAAL,CAAYI,MAAZ,CAAmBF,OAAnB,EAA4B,KAA5B,CAAf,EAAmD;AACjD,WAAO;AACLA,MAAAA,OAAO,EAAE;AADJ,KAAP;AAGD;;AAED,MAAMG,gBAAgB,GAAG,CAACH,OAAD,IAAY,CAACC,SAAK,CAACH,IAAD,CAAL,CAAYM,OAAZ,CAAoBJ,OAApB,CAAtC;AACA,MAAMK,cAAc,GAAG,CAACN,SAAD,IAAc,CAACE,SAAK,CAACH,IAAD,CAAL,CAAYQ,QAAZ,CAAqBP,SAArB,CAAtC,CAf6D;;AAiB7D,MAAMQ,WAAW,GAAGR,SAAS,GAAGM,cAAH,GAAoBF,gBAAjD,CAjB6D;AAoB7D;AACA;AACA;AACA;AACA;;AACA,MACEJ,SAAS,IACTC,OADA,IAEAG,gBAFA,IAGAF,SAAK,CAACH,IAAD,CAAL,CAAYQ,QAAZ,CAAqBP,SAArB,EAAgC,KAAhC,CAJF,EAKE;AACA,WAAO;AACLA,MAAAA,SAAS,EAAED;AADN,KAAP;AAGD,GAlC4D;AAqC7D;AACA;;;AACA,MAAI,CAACC,SAAD,IAAcC,OAAd,IAAyBC,SAAK,CAACH,IAAD,CAAL,CAAYM,OAAZ,CAAoBJ,OAApB,CAA7B,EAA2D;AACzD,WAAO;AACLD,MAAAA,SAAS,EAAEC,OADN;AAELA,MAAAA,OAAO,EAAEF;AAFJ,KAAP;AAID;;AACD,MAAI,CAACE,OAAD,IAAYD,SAAZ,IAAyBE,SAAK,CAACH,IAAD,CAAL,CAAYQ,QAAZ,CAAqBP,SAArB,CAA7B,EAA8D;AAC5D,WAAO;AACLA,MAAAA,SAAS,EAAED,IADN;AAELE,MAAAA,OAAO,EAAED;AAFJ,KAAP;AAID;;AAED,MAAIQ,WAAJ,EAAiB;AACf,8BACGR,SAAS,GAAG,SAAH,GAAe,WAD3B,EACyCD,IADzC;AAGD;AACF;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Details/Details.js b/packages/govern-console/public/aragon-ui/esm/src/components/Details/Details.js new file mode 100644 index 000000000..02a5a436b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Details/Details.js @@ -0,0 +1,249 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useRef, useState, useCallback, useEffect, useMemo } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import { GU } from '../../style/constants.js'; +import { springs } from '../../style/springs.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import { useInside as o } from '../../../node_modules/use-inside/dist/index.js'; +import ButtonBaseWithFocus from '../ButtonBase/ButtonBase.js'; +import IconDown from '../../icons/components/IconDown.js'; +import { animated as extendedAnimated, Spring } from '../../../node_modules/react-spring/web.js'; + +// In / out example: [0, 0.25, 0.5, 0.75, 1] => [0, 0.5, 1, 0.5, 0] + +function interpolateToggleElevation(value, fn) { + return value.interpolate(function (v) { + return fn(1 - Math.abs(v * 2 - 1)); + }); +} + +var _StyledSection = _styled("section").withConfig({ + displayName: "Details___StyledSection", + componentId: "b3f99g-0" +})(["", ""], function (p) { + return p._css; +}); + +var _StyledButtonBase = _styled(ButtonBaseWithFocus).withConfig({ + displayName: "Details___StyledButtonBase", + componentId: "b3f99g-1" +})(["position:relative;width:100%;&:active{background:", ";}"], function (p) { + return p._css2; +}); + +var _StyledDiv = _styled("div").withConfig({ + displayName: "Details___StyledDiv", + componentId: "b3f99g-2" +})(["position:absolute;left:", "px;right:", "px;bottom:0;"], function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "Details___StyledDiv2", + componentId: "b3f99g-3" +})(["height:1px;box-shadow:0 1px 1px rgba(0,0,0,0.1);"]); + +var _StyledH = _styled("h1").withConfig({ + displayName: "Details___StyledH", + componentId: "b3f99g-4" +})(["display:flex;justify-content:flex-start;align-items:center;height:", "px;margin-left:", "px;color:", ";", " font-weight:400;"], function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}); + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "Details___StyledDiv3", + componentId: "b3f99g-5" +})(["margin-top:2px;"]); + +var _StyledDiv4 = _styled("div").withConfig({ + displayName: "Details___StyledDiv4", + componentId: "b3f99g-6" +})(["display:flex;align-items:center;justify-content:center;"]); + +var _StyledDiv5 = _styled("div").withConfig({ + displayName: "Details___StyledDiv5", + componentId: "b3f99g-7" +})(["overflow:hidden"]); + +var _StyledAnimatedDiv = _styled(extendedAnimated.div).withConfig({ + displayName: "Details___StyledAnimatedDiv", + componentId: "b3f99g-8" +})(["display:flex;flex-direction:column;justify-content:flex-end;"]); + +var _StyledDiv6 = _styled("div").withConfig({ + displayName: "Details___StyledDiv6", + componentId: "b3f99g-9" +})(["", ""], function (p) { + return p._css9; +}); + +function Details(_ref) { + var children = _ref.children, + label = _ref.label, + onToggle = _ref.onToggle, + openedProp = _ref.opened, + props = objectWithoutProperties(_ref, ["children", "label", "onToggle", "opened"]); + + var theme = useTheme(); + + var _useInside = o('Box'), + _useInside2 = slicedToArray(_useInside, 1), + insideBox = _useInside2[0]; + + var _useInside3 = o('SidePanel'), + _useInside4 = slicedToArray(_useInside3, 1), + insideSidePanel = _useInside4[0]; + + var contentRef = useRef(null); + var contentHeight = useRef(0); // Details supports two modes: managed (internal state), + // or controlled (external state). + + var _useState = useState(false), + _useState2 = slicedToArray(_useState, 2), + openedManaged = _useState2[0], + setOpenedManaged = _useState2[1]; + + var opened = openedProp === undefined ? openedManaged : openedProp; + var updateHeight = useCallback(function () { + if (contentRef.current) { + contentHeight.current = contentRef.current.clientHeight; + } + }, []); + var handleContentRef = useCallback(function (element) { + contentRef.current = element; + updateHeight(); + }, [updateHeight]); + var handleToggle = useCallback(function () { + var newOpened = !opened; // Managed state + + if (openedProp === undefined) { + setOpenedManaged(newOpened); + } // Useful to notify even in managed mode + + + if (onToggle) { + onToggle(newOpened); + } + }, [onToggle, opened, openedProp]); // Animate after the initial render + + var animate = useRef(false); + useEffect(function () { + animate.current = true; + }, []); // Use height: 'auto' when opened + + var _useState3 = useState(false), + _useState4 = slicedToArray(_useState3, 2), + forceHeight = _useState4[0], + setForceHeight = _useState4[1]; + + var handleStart = useCallback(function () { + return setForceHeight(true); + }, []); + var handleRest = useCallback(function () { + // Note: we need to use the opened from the previous + // render cycle here, which is why we don’t use a callback. + setForceHeight(!opened); + }, [opened]); // Update the height + + useEffect(updateHeight, [opened, updateHeight]); + var spacingCss = useMemo(function () { + if (insideSidePanel) { + return { + section: "\n margin: ".concat(2 * GU, "px ").concat(-3 * GU, "px 0;\n padding-bottom: ").concat(3 * GU, "px;\n "), + content: "\n padding: ".concat(2 * GU, "px ").concat(3 * GU, "px 0;\n ") + }; + } + + if (insideBox) { + return { + section: "\n margin: 0 ".concat(-3 * GU, "px;\n "), + content: "\n padding: ".concat(1 * GU, "px ").concat(3 * GU, "px 0;\n ") + }; + } + + return { + section: "\n margin: 0;\n padding-bottom: ".concat(3 * GU, "px;\n "), + content: "\n padding: 0;\n " + }; + }, [insideSidePanel, insideBox]); + return /*#__PURE__*/React.createElement(Spring, { + config: springs.smooth, + from: { + openProgress: 0 + }, + to: { + openProgress: Number(opened) + }, + immediate: !animate, + onRest: handleRest, + onStart: handleStart, + native: true + }, function (_ref2) { + var openProgress = _ref2.openProgress; + return /*#__PURE__*/React.createElement(_StyledSection, _extends_1({}, props, { + _css: spacingCss.section + }), /*#__PURE__*/React.createElement(_StyledButtonBase, { + onClick: handleToggle, + _css2: theme.surfacePressed + }, /*#__PURE__*/React.createElement(_StyledDiv, { + _css3: 3 * GU, + _css4: 3 * GU + }, /*#__PURE__*/React.createElement(extendedAnimated.div, { + style: { + transform: interpolateToggleElevation(openProgress, function (v) { + return "scale3d(".concat(v, ", 1, 1)"); + }), + opacity: interpolateToggleElevation(openProgress, function (v) { + return v; + }) + } + }, /*#__PURE__*/React.createElement(_StyledDiv2, null))), /*#__PURE__*/React.createElement(_StyledH, _extends_1({}, props, { + _css5: 5 * GU, + _css6: 3 * GU, + _css7: theme.surfaceContentSecondary, + _css8: textStyle('label2') + }), /*#__PURE__*/React.createElement(_StyledDiv3, null, label), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(extendedAnimated.div, { + style: { + marginLeft: "".concat(1 * GU, "px"), + transform: openProgress.interpolate(function (v) { + return "rotate(".concat((1 - v) * 180, "deg)"); + }), + transformOrigin: '50% calc(50% - 0.5px)' + } + }, /*#__PURE__*/React.createElement(_StyledDiv4, null, /*#__PURE__*/React.createElement(IconDown, { + size: "tiny" + })))))), /*#__PURE__*/React.createElement(_StyledDiv5, null, /*#__PURE__*/React.createElement(_StyledAnimatedDiv, { + style: { + opacity: openProgress, + height: forceHeight ? openProgress.interpolate(function (v) { + return "".concat(v * contentHeight.current, "px"); + }) : 'auto' + } + }, /*#__PURE__*/React.createElement(_StyledDiv6, { + ref: handleContentRef, + _css9: spacingCss.content + }, /*#__PURE__*/React.createElement("div", null, children))))); + }); +} + +Details.propTypes = { + children: propTypes.node.isRequired, + label: propTypes.string.isRequired, + onToggle: propTypes.func, + opened: propTypes.bool +}; + +export default Details; +//# sourceMappingURL=Details.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Details/Details.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/Details/Details.js.map new file mode 100644 index 000000000..3d6b5a371 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Details/Details.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Details.js","sources":["../../../../../src/components/Details/Details.js"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { Spring, animated } from 'react-spring'\nimport { useInside } from 'use-inside'\nimport { GU, springs, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { IconDown } from '../../icons'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\n// Interpolate the elevation of the toggle from which the drawer slides down.\n// In / out example: [0, 0.25, 0.5, 0.75, 1] => [0, 0.5, 1, 0.5, 0]\nfunction interpolateToggleElevation(value, fn) {\n return value.interpolate(v => fn(1 - Math.abs(v * 2 - 1)))\n}\n\nfunction Details({ children, label, onToggle, opened: openedProp, ...props }) {\n const theme = useTheme()\n const [insideBox] = useInside('Box')\n const [insideSidePanel] = useInside('SidePanel')\n\n const contentRef = useRef(null)\n const contentHeight = useRef(0)\n\n // Details supports two modes: managed (internal state),\n // or controlled (external state).\n const [openedManaged, setOpenedManaged] = useState(false)\n const opened = openedProp === undefined ? openedManaged : openedProp\n\n const updateHeight = useCallback(() => {\n if (contentRef.current) {\n contentHeight.current = contentRef.current.clientHeight\n }\n }, [])\n\n const handleContentRef = useCallback(\n element => {\n contentRef.current = element\n updateHeight()\n },\n [updateHeight]\n )\n\n const handleToggle = useCallback(() => {\n const newOpened = !opened\n\n // Managed state\n if (openedProp === undefined) {\n setOpenedManaged(newOpened)\n }\n\n // Useful to notify even in managed mode\n if (onToggle) {\n onToggle(newOpened)\n }\n }, [onToggle, opened, openedProp])\n\n // Animate after the initial render\n const animate = useRef(false)\n useEffect(() => {\n animate.current = true\n }, [])\n\n // Use height: 'auto' when opened\n const [forceHeight, setForceHeight] = useState(false)\n\n const handleStart = useCallback(() => setForceHeight(true), [])\n const handleRest = useCallback(() => {\n // Note: we need to use the opened from the previous\n // render cycle here, which is why we don’t use a callback.\n setForceHeight(!opened)\n }, [opened])\n\n // Update the height\n useEffect(updateHeight, [opened, updateHeight])\n\n const spacingCss = useMemo(() => {\n if (insideSidePanel) {\n return {\n section: `\n margin: ${2 * GU}px ${-3 * GU}px 0;\n padding-bottom: ${3 * GU}px;\n `,\n content: `\n padding: ${2 * GU}px ${3 * GU}px 0;\n `,\n }\n }\n if (insideBox) {\n return {\n section: `\n margin: 0 ${-3 * GU}px;\n `,\n content: `\n padding: ${1 * GU}px ${3 * GU}px 0;\n `,\n }\n }\n return {\n section: `\n margin: 0;\n padding-bottom: ${3 * GU}px;\n `,\n content: `\n padding: 0;\n `,\n }\n }, [insideSidePanel, insideBox])\n\n return (\n \n {({ openProgress }) => (\n
    \n \n \n `scale3d(${v}, 1, 1)`\n ),\n opacity: interpolateToggleElevation(openProgress, v => v),\n }}\n >\n \n \n \n\n \n \n {label}\n \n
    \n `rotate(${(1 - v) * 180}deg)`\n ),\n transformOrigin: '50% calc(50% - 0.5px)',\n }}\n >\n \n \n
    \n \n \n \n \n
    \n `${v * contentHeight.current}px`\n )\n : 'auto',\n }}\n >\n
    \n
    {children}
    \n
    \n \n
    \n
    \n )}\n \n )\n}\n\nDetails.propTypes = {\n children: PropTypes.node.isRequired,\n label: PropTypes.string.isRequired,\n onToggle: PropTypes.func,\n opened: PropTypes.bool,\n}\n\nexport default Details\n"],"names":["interpolateToggleElevation","value","fn","interpolate","v","Math","abs","Details","children","label","onToggle","openedProp","opened","props","theme","useTheme","useInside","insideBox","insideSidePanel","contentRef","useRef","contentHeight","useState","openedManaged","setOpenedManaged","undefined","updateHeight","useCallback","current","clientHeight","handleContentRef","element","handleToggle","newOpened","animate","useEffect","forceHeight","setForceHeight","handleStart","handleRest","spacingCss","useMemo","section","GU","content","springs","smooth","openProgress","Number","surfacePressed","animated","transform","opacity","surfaceContentSecondary","textStyle","marginLeft","transformOrigin","height","propTypes","PropTypes","node","isRequired","string","func","bool"],"mappings":";;;;;;;;;;;;;;;AAUA;;AACA,SAASA,0BAAT,CAAoCC,KAApC,EAA2CC,EAA3C,EAA+C;AAC7C,SAAOD,KAAK,CAACE,WAAN,CAAkB,UAAAC,CAAC;AAAA,WAAIF,EAAE,CAAC,IAAIG,IAAI,CAACC,GAAL,CAASF,CAAC,GAAG,CAAJ,GAAQ,CAAjB,CAAL,CAAN;AAAA,GAAnB,CAAP;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,SAASG,OAAT,OAA8E;AAAA,MAA3DC,QAA2D,QAA3DA,QAA2D;AAAA,MAAjDC,KAAiD,QAAjDA,KAAiD;AAAA,MAA1CC,QAA0C,QAA1CA,QAA0C;AAAA,MAAxBC,UAAwB,QAAhCC,MAAgC;AAAA,MAATC,KAAS;;AAC5E,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;;AAD4E,mBAExDC,CAAS,CAAC,KAAD,C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,EAAC;AAAf,MAPF,CATF,CADF,CApBF,CApCF,CADF,eAgFE,oDACE;AAME,MAAA,KAAK,EAAE;AACLJ,QAAAA,OAAO,EAAEL,YADJ;AAELU,QAAAA,MAAM,EAAErB,WAAW,GACfW,YAAY,CAAC5C,WAAb,CACE,UAAAC,CAAC;AAAA,2BAAOA,CAAC,GAAGiB,aAAa,CAACO,OAAzB;AAAA,SADH,CADe,GAIf;AANC;AANT,oBAeE;AAAK,MAAA,GAAG,EAAEE,gBAAV;AAAA,aAAiCU,UAAU,CAACI;AAA5C,oBACE,iCAAMpC,QAAN,CADF,CAfF,CADF,CAhFF,CADD;AAAA,GATH,CADF;AAoHD;;AAEDD,OAAO,CAACmD,SAAR,GAAoB;AAClBlD,EAAAA,QAAQ,EAAEmD,SAAS,CAACC,IAAV,CAAeC,UADP;AAElBpD,EAAAA,KAAK,EAAEkD,SAAS,CAACG,MAAV,CAAiBD,UAFN;AAGlBnD,EAAAA,QAAQ,EAAEiD,SAAS,CAACI,IAHF;AAIlBnD,EAAAA,MAAM,EAAE+C,SAAS,CAACK;AAJA,CAApB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DiscButton/DiscButton.js b/packages/govern-console/public/aragon-ui/esm/src/components/DiscButton/DiscButton.js new file mode 100644 index 000000000..3f7258bc5 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DiscButton/DiscButton.js @@ -0,0 +1,53 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import '../../utils/environment.js'; +import { GU } from '../../style/constants.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import ButtonBaseWithFocus from '../ButtonBase/ButtonBase.js'; + +var _StyledButtonBase = _styled(ButtonBaseWithFocus).withConfig({ + displayName: "DiscButton___StyledButtonBase", + componentId: "sc-1ay99f2-0" +})(["display:flex;align-items:center;justify-content:center;width:", "px;height:", "px;background:", ";color:", ";border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,0.25);transition-property:transform,box-shadow;transition-duration:50ms;transition-timing-function:ease-in-out;&:active{transform:translateY(1px);box-shadow:0px 1px 3px rgba(0,0,0,0.125);}"], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}); + +var DiscButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) { + var children = _ref.children, + description = _ref.description, + size = _ref.size, + props = objectWithoutProperties(_ref, ["children", "description", "size"]); + + var theme = useTheme(); + return /*#__PURE__*/React.createElement(_StyledButtonBase, _extends_1({ + ref: ref, + focusRingSpacing: 4, + focusRingRadius: size, + title: description + }, props, { + _css: size, + _css2: size, + _css3: theme.help, + _css4: theme.helpContent + }), children); +}); +DiscButton.propTypes = { + children: propTypes.node.isRequired, + description: propTypes.string.isRequired, + size: propTypes.number +}; +DiscButton.defaultProps = { + size: 5 * GU +}; + +export default DiscButton; +//# sourceMappingURL=DiscButton.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DiscButton/DiscButton.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DiscButton/DiscButton.js.map new file mode 100644 index 000000000..8e21f3cbe --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DiscButton/DiscButton.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DiscButton.js","sources":["../../../../../src/components/DiscButton/DiscButton.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { GU } from '../../style'\nimport { useTheme } from '../../theme'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst DiscButton = React.forwardRef(\n ({ children, description, size, ...props }, ref) => {\n const theme = useTheme()\n return (\n \n {children}\n \n )\n }\n)\n\nDiscButton.propTypes = {\n children: PropTypes.node.isRequired,\n description: PropTypes.string.isRequired,\n size: PropTypes.number,\n}\n\nDiscButton.defaultProps = {\n size: 5 * GU,\n}\n\nexport default DiscButton\n"],"names":["DiscButton","React","forwardRef","ref","children","description","size","props","theme","useTheme","help","helpContent","propTypes","PropTypes","node","isRequired","string","number","defaultProps","GU"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;IAMMA,UAAU,gBAAGC,KAAK,CAACC,UAAN,CACjB,gBAA4CC,GAA5C,EAAoD;AAAA,MAAjDC,QAAiD,QAAjDA,QAAiD;AAAA,MAAvCC,WAAuC,QAAvCA,WAAuC;AAAA,MAA1BC,IAA0B,QAA1BA,IAA0B;AAAA,MAAjBC,KAAiB;;AAClD,MAAMC,KAAK,GAAGC,QAAQ,EAAtB;AACA,sBACE;AACE,IAAA,GAAG,EAAEN,GADP;AAEE,IAAA,gBAAgB,EAAE,CAFpB;AAGE,IAAA,eAAe,EAAEG,IAHnB;AAIE,IAAA,KAAK,EAAED;AAJT,KAyBME,KAzBN;AAAA,UASaD,IATb;AAAA,WAUcA,IAVd;AAAA,WAWkBE,KAAK,CAACE,IAXxB;AAAA,WAYaF,KAAK,CAACG;AAZnB,MA2BGP,QA3BH,CADF;AA+BD,CAlCgB;AAqCnBJ,UAAU,CAACY,SAAX,GAAuB;AACrBR,EAAAA,QAAQ,EAAES,SAAS,CAACC,IAAV,CAAeC,UADJ;AAErBV,EAAAA,WAAW,EAAEQ,SAAS,CAACG,MAAV,CAAiBD,UAFT;AAGrBT,EAAAA,IAAI,EAAEO,SAAS,CAACI;AAHK,CAAvB;AAMAjB,UAAU,CAACkB,YAAX,GAA0B;AACxBZ,EAAAA,IAAI,EAAE,IAAIa;AADc,CAA1B;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Distribution/Distribution.js b/packages/govern-console/public/aragon-ui/esm/src/components/Distribution/Distribution.js new file mode 100644 index 000000000..245b9556d --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Distribution/Distribution.js @@ -0,0 +1,184 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import { GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; + +var _StyledDiv = _styled("div").withConfig({ + displayName: "Distribution___StyledDiv", + componentId: "r4l1i4-0" +})(["margin-bottom:", "px;"], function (p) { + return p._css; +}); + +var _StyledH = _styled("h1").withConfig({ + displayName: "Distribution___StyledH", + componentId: "r4l1i4-1" +})(["", ""], function (p) { + return p._css2; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "Distribution___StyledDiv2", + componentId: "r4l1i4-2" +})(["display:flex;width:100%;overflow:hidden;margin:0 0 ", "px;border-radius:3px;div{height:6px;}"], function (p) { + return p._css3; +}); + +var _StyledUl = _styled("ul").withConfig({ + displayName: "Distribution___StyledUl", + componentId: "r4l1i4-3" +})(["margin-top:", "px;"], function (p) { + return p._css4; +}); + +var _StyledLi = _styled("li").withConfig({ + displayName: "Distribution___StyledLi", + componentId: "r4l1i4-4" +})(["display:flex;align-items:center;justify-content:space-between;margin-top:10px;list-style:none;"]); + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "Distribution___StyledDiv3", + componentId: "r4l1i4-5" +})(["display:flex;align-items:center;flex-shrink:1;flex-grow:1;"]); + +var _StyledDiv4 = _styled("div").withConfig({ + displayName: "Distribution___StyledDiv4", + componentId: "r4l1i4-6" +})(["width:0;flex-shrink:1;flex-grow:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"]); + +var _StyledDiv5 = _styled("div").withConfig({ + displayName: "Distribution___StyledDiv5", + componentId: "r4l1i4-7" +})(["padding-left:", "px;flex-shrink:0;"], function (p) { + return p._css5; +}); + +function Distribution(_ref) { + var colors = _ref.colors, + showLegend = _ref.showLegend, + heading = _ref.heading, + itemTitle = _ref.itemTitle, + LegendItem = _ref.renderLegendItem, + FullLegendItem = _ref.renderFullLegendItem, + items = _ref.items; + var theme = useTheme(); + + if (!colors) { + colors = [theme.blue, theme.red, theme.brown, theme.yellow, theme.purple, theme.green]; + } + + var total = items.reduce(function (total, _ref2) { + var percentage = _ref2.percentage; + return total + percentage; + }, 0); // Sort by percentage + + items = items.sort(function (a, b) { + return b.percentage - a.percentage; + }); + return /*#__PURE__*/React.createElement("section", null, heading && /*#__PURE__*/React.createElement(_StyledDiv, { + _css: 1 * GU + }, typeof heading === 'string' ? /*#__PURE__*/React.createElement(_StyledH, { + _css2: textStyle('body2') + }, heading) : heading), /*#__PURE__*/React.createElement(_StyledDiv2, { + _css3: 1 * GU + }, items.map(function (_ref3, index) { + var item = _ref3.item, + percentage = _ref3.percentage; + return /*#__PURE__*/React.createElement("div", { + key: index, + title: itemTitle({ + item: item, + percentage: percentage, + index: index + }), + style: { + width: "".concat(percentage / total * 100, "%"), + background: colors[index % colors.length] + } + }); + })), showLegend && /*#__PURE__*/React.createElement(_StyledUl, { + _css4: 3 * GU + }, items.map(function (_ref4, index) { + var item = _ref4.item, + percentage = _ref4.percentage; + var color = colors[index % colors.length]; + return /*#__PURE__*/React.createElement(_StyledLi, { + key: index + }, FullLegendItem ? /*#__PURE__*/React.createElement(FullLegendItem, { + bullet: /*#__PURE__*/React.createElement(Bullet, { + color: color + }), + color: color, + index: index, + item: item, + percentage: percentage + }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_StyledDiv3, null, /*#__PURE__*/React.createElement(Bullet, { + color: color + }), /*#__PURE__*/React.createElement(_StyledDiv4, null, /*#__PURE__*/React.createElement(LegendItem, { + color: color, + index: index, + item: item, + percentage: percentage + }))), /*#__PURE__*/React.createElement(_StyledDiv5, { + _css5: 1 * GU + }, /*#__PURE__*/React.createElement("strong", null, percentage, "%")))); + }))); +} + +Distribution.propTypes = { + colors: propTypes.array, + heading: propTypes.node, + itemTitle: propTypes.func, + renderLegendItem: propTypes.func, + renderFullLegendItem: propTypes.func, + showLegend: propTypes.bool, + items: propTypes.arrayOf(propTypes.shape({ + item: propTypes.any.isRequired, + percentage: propTypes.number.isRequired + })).isRequired +}; +Distribution.defaultProps = { + heading: null, + itemTitle: function itemTitle(_ref5) { + var item = _ref5.item, + percentage = _ref5.percentage, + index = _ref5.index; + return "".concat(typeof item === 'string' ? item : "Item ".concat(index + 1), ": ").concat(percentage, "%"); + }, + renderLegendItem: function renderLegendItem(_ref6) { + var item = _ref6.item, + percentage = _ref6.percentage, + index = _ref6.index; + return typeof item === 'string' ? item : "Item ".concat(index + 1); + }, + showLegend: true +}; +/* eslint-disable react/prop-types */ + +var _StyledDiv6 = _styled("div").withConfig({ + displayName: "Distribution___StyledDiv6", + componentId: "r4l1i4-8" +})(["width:", "px;height:", "px;margin-right:", "px;border-radius:50%;flex-shrink:0;"], function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}); + +function Bullet(_ref7) { + var color = _ref7.color; + return /*#__PURE__*/React.createElement(_StyledDiv6, { + style: { + background: color + }, + _css6: 1 * GU, + _css7: 1 * GU, + _css8: 1 * GU + }); +} + +export default Distribution; +//# sourceMappingURL=Distribution.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Distribution/Distribution.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/Distribution/Distribution.js.map new file mode 100644 index 000000000..d0d01923c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Distribution/Distribution.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Distribution.js","sources":["../../../../../src/components/Distribution/Distribution.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { useTheme } from '../../theme'\nimport { GU, textStyle } from '../../style'\n\nfunction Distribution({\n colors,\n showLegend,\n heading,\n itemTitle,\n renderLegendItem: LegendItem,\n renderFullLegendItem: FullLegendItem,\n items,\n}) {\n const theme = useTheme()\n\n if (!colors) {\n colors = [\n theme.blue,\n theme.red,\n theme.brown,\n theme.yellow,\n theme.purple,\n theme.green,\n ]\n }\n\n const total = items.reduce((total, { percentage }) => total + percentage, 0)\n\n // Sort by percentage\n items = items.sort((a, b) => b.percentage - a.percentage)\n\n return (\n
    \n {heading && (\n \n {typeof heading === 'string' ? (\n

    {heading}

    \n ) : (\n heading\n )}\n \n )}\n \n {items.map(({ item, percentage }, index) => (\n \n ))}\n \n {showLegend && (\n \n {items.map(({ item, percentage }, index) => {\n const color = colors[index % colors.length]\n return (\n \n {FullLegendItem ? (\n }\n color={color}\n index={index}\n item={item}\n percentage={percentage}\n />\n ) : (\n \n \n \n \n \n \n \n \n {percentage}%\n \n \n )}\n \n )\n })}\n \n )}\n
    \n )\n}\n\nDistribution.propTypes = {\n colors: PropTypes.array,\n heading: PropTypes.node,\n itemTitle: PropTypes.func,\n renderLegendItem: PropTypes.func,\n renderFullLegendItem: PropTypes.func,\n showLegend: PropTypes.bool,\n items: PropTypes.arrayOf(\n PropTypes.shape({\n item: PropTypes.any.isRequired,\n percentage: PropTypes.number.isRequired,\n })\n ).isRequired,\n}\n\nDistribution.defaultProps = {\n heading: null,\n itemTitle: ({ item, percentage, index }) => {\n return `${\n typeof item === 'string' ? item : `Item ${index + 1}`\n }: ${percentage}%`\n },\n renderLegendItem: ({ item, percentage, index }) => {\n return typeof item === 'string' ? item : `Item ${index + 1}`\n },\n showLegend: true,\n}\n\n/* eslint-disable react/prop-types */\nfunction Bullet({ color }) {\n return (\n \n )\n}\n/* eslint-enable react/prop-types */\n\nexport default Distribution\n"],"names":["Distribution","colors","showLegend","heading","itemTitle","LegendItem","renderLegendItem","FullLegendItem","renderFullLegendItem","items","theme","useTheme","blue","red","brown","yellow","purple","green","total","reduce","percentage","sort","a","b","GU","textStyle","map","index","item","width","background","length","color","propTypes","PropTypes","array","node","func","bool","arrayOf","shape","any","isRequired","number","defaultProps","Bullet"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAASA,YAAT,OAQG;AAAA,MAPDC,MAOC,QAPDA,MAOC;AAAA,MANDC,UAMC,QAND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,EAAE;AAAEF,MAAAA,UAAU,EAAEE;AAAd,KART;AAAA,WAEa,IAAIR,EAFjB;AAAA,WAGc,IAAIA,EAHlB;AAAA,WAIoB,IAAIA;AAJxB,IADF;AAYD;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DropDown/DropDown.js b/packages/govern-console/public/aragon-ui/esm/src/components/DropDown/DropDown.js new file mode 100644 index 000000000..531566c7c --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DropDown/DropDown.js @@ -0,0 +1,439 @@ +import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; +import React, { useState, useCallback, useEffect, useMemo, useRef } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import { unselectable } from '../../utils/css.js'; +import { warnOnce } from '../../utils/environment.js'; +import { RADIUS, GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import { Inside as i } from '../../../node_modules/use-inside/dist/index.js'; +import { useViewport } from '../../providers/Viewport/Viewport.js'; +import ButtonBaseWithFocus from '../ButtonBase/ButtonBase.js'; +import IconDown from '../../icons/components/IconDown.js'; +import Popover from '../Popover/Popover.js'; + +var MIN_WIDTH = 128; + +function useDropDown(_ref) { + var buttonRef = _ref.buttonRef, + items = _ref.items, + displayedLabel = _ref.displayedLabel, + onChange = _ref.onChange, + placeholder = _ref.placeholder, + selected = _ref.selected; + + var _useState = useState(displayedLabel), + _useState2 = slicedToArray(_useState, 2), + selectedLabel = _useState2[0], + setSelectedLabel = _useState2[1]; + + var _useState3 = useState(false), + _useState4 = slicedToArray(_useState3, 2), + opened = _useState4[0], + setOpened = _useState4[1]; + + var close = useCallback(function () { + setOpened(false); + + if (buttonRef.current) { + buttonRef.current.focus(); + } + }, [buttonRef]); + var toggle = useCallback(function () { + return setOpened(function (opened) { + return !opened; + }); + }, []); + var handleItemSelect = useCallback(function (index) { + onChange(index); + close(); + }, [onChange, close]); + useEffect(function () { + if (selected === -1 || !items[selected]) { + if (displayedLabel) { + setSelectedLabel(displayedLabel); + } + + return; + } + + setSelectedLabel(items[selected]); + }, [items, selected, displayedLabel]); + return { + handleItemSelect: handleItemSelect, + close: close, + toggle: toggle, + opened: opened, + selectedLabel: selectedLabel + }; +} + +function useButtonRef(cb) { + var buttonRef = useRef(null); + var refCallback = useCallback(function (el) { + if (el) { + cb(el); + } + + buttonRef.current = el; + }, [cb]); + return { + buttonRef: buttonRef, + refCallback: refCallback + }; +} + +var _StyledButtonBase = _styled(ButtonBaseWithFocus).withConfig({ + displayName: "DropDown___StyledButtonBase", + componentId: "sc-17zpefi-0" +})(["display:", ";justify-content:space-between;align-items:center;height:", "px;padding-left:", "px;padding-right:", "px;width:", ";min-width:", ";background:", ";color:", ";border:", "px solid ", ";", ";", ""], function (p) { + return p._css; +}, function (p) { + return p._css2; +}, function (p) { + return p._css3; +}, function (p) { + return p._css4; +}, function (p) { + return p._css5; +}, function (p) { + return p._css6; +}, function (p) { + return p._css7; +}, function (p) { + return p._css8; +}, function (p) { + return p._css9; +}, function (p) { + return p._css10; +}, function (p) { + return p._css11; +}, function (p) { + return p._css12; +}); + +var _StyledDiv = _styled("div").withConfig({ + displayName: "DropDown___StyledDiv", + componentId: "sc-17zpefi-1" +})(["overflow:hidden;"]); + +var _StyledIconDown = _styled(IconDown).withConfig({ + displayName: "DropDown___StyledIconDown", + componentId: "sc-17zpefi-2" +})(["margin-left:", "px;color:", ";"], function (p) { + return p._css13; +}, function (p) { + return p._css14; +}); + +var _StyledDiv2 = _styled("div").withConfig({ + displayName: "DropDown___StyledDiv2", + componentId: "sc-17zpefi-3" +})(["position:absolute;top:-100vh;left:-100vw;opacity:0;visibility:hidden;"]); + +var DropDown = /*#__PURE__*/React.memo(function DropDown(_ref2) { + var disabled = _ref2.disabled, + header = _ref2.header, + items = _ref2.items, + onChange = _ref2.onChange, + placeholder = _ref2.placeholder, + renderLabel = _ref2.renderLabel, + selected = _ref2.selected, + wide = _ref2.wide, + width = _ref2.width, + active = _ref2.active, + label = _ref2.label, + props = objectWithoutProperties(_ref2, ["disabled", "header", "items", "onChange", "placeholder", "renderLabel", "selected", "wide", "width", "active", "label"]); + + if (active !== undefined) { + warnOnce('DropDown:active', 'The “active” prop is deprecated. Please use “selected” to pass the selected index instead.'); + } + + if (label !== undefined) { + warnOnce('DropDown:label', 'DropDown: the “label” prop is deprecated, please use “placeholder” instead.'); + } + + var theme = useTheme(); + + var _useViewport = useViewport(), + vw = _useViewport.width; + + var _split = (width || '').split('px'), + _split2 = slicedToArray(_split, 1), + _split2$ = _split2[0], + widthNoPx = _split2$ === void 0 ? MIN_WIDTH : _split2$; + + var _useState5 = useState(0), + _useState6 = slicedToArray(_useState5, 2), + buttonWidth = _useState6[0], + setButtonWidth = _useState6[1]; + + var _useState7 = useState(true), + _useState8 = slicedToArray(_useState7, 2), + measureWidth = _useState8[0], + setMeasureWidth = _useState8[1]; // Adjust the button width if the item widths are larger than declared width + + + var _useState9 = useState(Math.min(widthNoPx, MIN_WIDTH)), + _useState10 = slicedToArray(_useState9, 2), + placeholderMinWidth = _useState10[0], + setPlaceholderMinWidth = _useState10[1]; + + var popoverRefCallback = useCallback(function (el) { + if (!el) { + return; + } + + setPlaceholderMinWidth(el.clientWidth); + setMeasureWidth(false); + }, []); + useEffect(function () { + setMeasureWidth(true); + }, [vw, items]); // Update the button width every time the reference updates + + var _useButtonRef = useButtonRef(function (el) { + setButtonWidth(el.clientWidth); + }), + refCallback = _useButtonRef.refCallback, + buttonRef = _useButtonRef.buttonRef; // And every time the viewport resizes + + + useEffect(function () { + if (!buttonRef.current) { + return; + } + + setButtonWidth(buttonRef.current.clientWidth); + }, [buttonRef, vw]); + var selectedIndex = useMemo(function () { + if (selected !== undefined) { + return selected; + } + + if (active !== undefined) { + return active; + } + + return -1; + }, [active, selected]); + + var _useDropDown = useDropDown({ + buttonRef: buttonRef, + displayedLabel: placeholder || label, + items: items, + onChange: onChange, + selected: selected + }), + handleItemSelect = _useDropDown.handleItemSelect, + close = _useDropDown.close, + toggle = _useDropDown.toggle, + opened = _useDropDown.opened, + selectedLabel = _useDropDown.selectedLabel; + + var closedWithChanges = !opened && selectedIndex !== -1; + var Label = renderLabel; + return /*#__PURE__*/React.createElement(i, { + name: "DropDown" + }, /*#__PURE__*/React.createElement(_StyledButtonBase, _extends_1({ + ref: refCallback, + disabled: disabled, + onClick: toggle, + focusRingRadius: RADIUS, + focusRingSpacing: 1 + }, props, { + _css: wide ? 'flex' : 'inline-flex', + _css2: 5 * GU, + _css3: 2 * GU, + _css4: 1.5 * GU, + _css5: width || (wide ? '100%' : 'auto'), + _css6: wide ? 'auto' : "".concat(placeholderMinWidth, "px"), + _css7: disabled ? theme.disabled : theme.surface, + _css8: disabled ? theme.disabledContent : theme.surfaceContent, + _css9: disabled ? 0 : 1, + _css10: closedWithChanges ? theme.selected : theme.border, + _css11: textStyle('body2'), + _css12: disabled ? 'font-weight: 600;' : "\n &:active {\n background: ".concat(theme.surfacePressed, ";\n }\n ") + }), /*#__PURE__*/React.createElement(_StyledDiv, null, /*#__PURE__*/React.createElement(Label, { + selectedIndex: selectedIndex, + selectedLabel: selectedLabel + })), /*#__PURE__*/React.createElement(_StyledIconDown, { + size: "tiny", + _css13: 1.5 * GU, + _css14: disabled ? theme.disabledIcon : closedWithChanges ? theme.accent : theme.surfaceIcon + })), measureWidth && /*#__PURE__*/React.createElement(_StyledDiv2, null, /*#__PURE__*/React.createElement(PopoverContent, { + refCallback: popoverRefCallback, + buttonWidth: buttonWidth, + header: header, + items: items + })), /*#__PURE__*/React.createElement(Popover, { + onClose: close, + opener: buttonRef.current, + visible: opened + }, /*#__PURE__*/React.createElement(PopoverContent, { + buttonWidth: buttonWidth, + header: header, + items: items, + handleItemSelect: handleItemSelect, + selectedIndex: selectedIndex + }))); +}); +DropDown.propTypes = { + disabled: propTypes.bool, + header: propTypes.node, + items: propTypes.arrayOf(propTypes.node).isRequired, + onChange: propTypes.func.isRequired, + placeholder: propTypes.node, + renderLabel: propTypes.func, + selected: propTypes.number, + wide: propTypes.bool, + width: propTypes.string, + // deprecated + active: propTypes.number, + label: propTypes.string +}; +DropDown.defaultProps = { + placeholder: 'Select an item', + renderLabel: function renderLabel(_ref3) { + var selectedLabel = _ref3.selectedLabel; + return selectedLabel; + }, + wide: false +}; + +var _StyledDiv3 = _styled("div").withConfig({ + displayName: "DropDown___StyledDiv3", + componentId: "sc-17zpefi-4" +})(["min-width:", "px;color:", ";"], function (p) { + return p._css15; +}, function (p) { + return p._css16; +}); + +var _StyledDiv4 = _styled("div").withConfig({ + displayName: "DropDown___StyledDiv4", + componentId: "sc-17zpefi-5" +})(["padding:", "px ", "px ", "px;", ";", ";"], function (p) { + return p._css17; +}, function (p) { + return p._css18; +}, function (p) { + return p._css19; +}, function (p) { + return p._css20; +}, unselectable); + +var _StyledUl = _styled("ul").withConfig({ + displayName: "DropDown___StyledUl", + componentId: "sc-17zpefi-6" +})(["margin:0;padding:0;list-style:none;width:100%;"]); + +var PopoverContent = /*#__PURE__*/React.memo(function PopoverContent(_ref4) { + var refCallback = _ref4.refCallback, + buttonWidth = _ref4.buttonWidth, + header = _ref4.header, + items = _ref4.items, + handleItemSelect = _ref4.handleItemSelect, + selectedIndex = _ref4.selectedIndex; + var theme = useTheme(); + return /*#__PURE__*/React.createElement(_StyledDiv3, { + _css15: buttonWidth, + _css16: theme.surfaceContentSecondary + }, header && /*#__PURE__*/React.createElement(_StyledDiv4, { + _css17: 1.5 * GU, + _css18: 2 * GU, + _css19: 1.25 * GU, + _css20: textStyle('label2') + }, header), /*#__PURE__*/React.createElement(_StyledUl, { + ref: refCallback + }, /*#__PURE__*/React.createElement(i, { + name: "DropDown:menu" + }, items.map(function (item, index) { + return /*#__PURE__*/React.createElement(Item, { + key: index, + index: index, + onSelect: handleItemSelect, + theme: theme, + item: item, + header: header, + length: items.length, + selected: selectedIndex + }); + })))); +}); +PopoverContent.propTypes = { + refCallback: propTypes.func.isRequired, + buttonWidth: propTypes.number.isRequired, + header: propTypes.node, + items: propTypes.array.isRequired, + handleItemSelect: propTypes.func.isRequired, + selectedIndex: propTypes.number.isRequired +}; +PopoverContent.defaultProps = { + refCallback: function refCallback() { + return null; + }, + handleItemSelect: function handleItemSelect() { + return null; + }, + selectedIndex: -1 +}; + +var _StyledButtonBase2 = _styled(ButtonBaseWithFocus).withConfig({ + displayName: "DropDown___StyledButtonBase2", + componentId: "sc-17zpefi-7" +})(["width:100%;text-align:left;padding:", "px ", "px;border-radius:0;color:", ";", ";", " ", " ", " &:active{background:", ";}"], function (p) { + return p._css21; +}, function (p) { + return p._css22; +}, function (p) { + return p._css23; +}, function (p) { + return p._css24; +}, function (p) { + return p._css25; +}, function (p) { + return p._css26; +}, function (p) { + return p._css27; +}, function (p) { + return p._css28; +}); + +var Item = /*#__PURE__*/React.memo(function Item(_ref5) { + var header = _ref5.header, + index = _ref5.index, + item = _ref5.item, + length = _ref5.length, + onSelect = _ref5.onSelect, + selected = _ref5.selected, + theme = _ref5.theme; + var handleClick = useCallback(function () { + onSelect(index); + }, [index, onSelect]); + return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(_StyledButtonBase2, { + onClick: handleClick, + _css21: 1.25 * GU, + _css22: 2 * GU, + _css23: theme.content, + _css24: textStyle('body2'), + _css25: !header && index === 0 ? "border-top-left-radius: ".concat(RADIUS, "px;") : '', + _css26: index === length - 1 ? "border-bottom-left-radius: ".concat(RADIUS, "px;") : '', + _css27: selected === index ? "\n border-left: 2px solid ".concat(theme.accent, ";\n background: ").concat(theme.surfaceSelected, ";\n ") : '', + _css28: theme.surfacePressed + }, item)); +}); +Item.propTypes = { + header: propTypes.node, + index: propTypes.number.isRequired, + item: propTypes.node.isRequired, + length: propTypes.number.isRequired, + onSelect: propTypes.func.isRequired, + selected: propTypes.number.isRequired, + theme: propTypes.object.isRequired +}; + +export default DropDown; +//# sourceMappingURL=DropDown.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/DropDown/DropDown.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/DropDown/DropDown.js.map new file mode 100644 index 000000000..724f326c0 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/DropDown/DropDown.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DropDown.js","sources":["../../../../../src/components/DropDown/DropDown.js"],"sourcesContent":["import React, { useState, useRef, useEffect, useCallback, useMemo } from 'react'\nimport PropTypes from 'prop-types'\nimport { Inside } from 'use-inside'\nimport { warnOnce, unselectable } from '../../utils'\nimport { GU, RADIUS, textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { IconDown } from '../../icons'\nimport { useViewport } from '../../providers/Viewport/Viewport'\nimport ButtonBase from '../ButtonBase/ButtonBase'\nimport Popover from '../Popover/Popover'\n\nconst MIN_WIDTH = 128\n\nfunction useDropDown({\n buttonRef,\n items,\n displayedLabel,\n onChange,\n placeholder,\n selected,\n}) {\n const [selectedLabel, setSelectedLabel] = useState(displayedLabel)\n const [opened, setOpened] = useState(false)\n\n const close = useCallback(() => {\n setOpened(false)\n\n if (buttonRef.current) {\n buttonRef.current.focus()\n }\n }, [buttonRef])\n\n const toggle = useCallback(() => setOpened(opened => !opened), [])\n\n const handleItemSelect = useCallback(\n index => {\n onChange(index)\n close()\n },\n [onChange, close]\n )\n\n useEffect(() => {\n if (selected === -1 || !items[selected]) {\n if (displayedLabel) {\n setSelectedLabel(displayedLabel)\n }\n return\n }\n setSelectedLabel(items[selected])\n }, [items, selected, displayedLabel])\n\n return {\n handleItemSelect,\n close,\n toggle,\n opened,\n selectedLabel,\n }\n}\n\nfunction useButtonRef(cb) {\n const buttonRef = useRef(null)\n\n const refCallback = useCallback(\n el => {\n if (el) {\n cb(el)\n }\n buttonRef.current = el\n },\n [cb]\n )\n\n return {\n buttonRef,\n refCallback,\n }\n}\n\nconst DropDown = React.memo(function DropDown({\n disabled,\n header,\n items,\n onChange,\n placeholder,\n renderLabel,\n selected,\n wide,\n width,\n\n // deprecated\n active,\n label,\n\n // rest\n ...props\n}) {\n if (active !== undefined) {\n warnOnce(\n 'DropDown:active',\n 'The “active” prop is deprecated. Please use “selected” to pass the selected index instead.'\n )\n }\n if (label !== undefined) {\n warnOnce(\n 'DropDown:label',\n 'DropDown: the “label” prop is deprecated, please use “placeholder” instead.'\n )\n }\n\n const theme = useTheme()\n const { width: vw } = useViewport()\n\n const [widthNoPx = MIN_WIDTH] = (width || '').split('px')\n const [buttonWidth, setButtonWidth] = useState(0)\n const [measureWidth, setMeasureWidth] = useState(true)\n\n // Adjust the button width if the item widths are larger than declared width\n const [placeholderMinWidth, setPlaceholderMinWidth] = useState(\n Math.min(widthNoPx, MIN_WIDTH)\n )\n const popoverRefCallback = useCallback(el => {\n if (!el) {\n return\n }\n setPlaceholderMinWidth(el.clientWidth)\n setMeasureWidth(false)\n }, [])\n useEffect(() => {\n setMeasureWidth(true)\n }, [vw, items])\n\n // Update the button width every time the reference updates\n const { refCallback, buttonRef } = useButtonRef(el => {\n setButtonWidth(el.clientWidth)\n })\n // And every time the viewport resizes\n useEffect(() => {\n if (!buttonRef.current) {\n return\n }\n setButtonWidth(buttonRef.current.clientWidth)\n }, [buttonRef, vw])\n\n const selectedIndex = useMemo(() => {\n if (selected !== undefined) {\n return selected\n }\n if (active !== undefined) {\n return active\n }\n return -1\n }, [active, selected])\n\n const {\n handleItemSelect,\n close,\n toggle,\n opened,\n selectedLabel,\n } = useDropDown({\n buttonRef,\n displayedLabel: placeholder || label,\n items,\n onChange,\n selected,\n })\n\n const closedWithChanges = !opened && selectedIndex !== -1\n const Label = renderLabel\n\n return (\n \n \n
    \n
    \n \n \n {measureWidth && (\n \n \n \n )}\n \n \n \n
    \n )\n})\n\nDropDown.propTypes = {\n disabled: PropTypes.bool,\n header: PropTypes.node,\n items: PropTypes.arrayOf(PropTypes.node).isRequired,\n onChange: PropTypes.func.isRequired,\n placeholder: PropTypes.node,\n renderLabel: PropTypes.func,\n selected: PropTypes.number,\n wide: PropTypes.bool,\n width: PropTypes.string,\n\n // deprecated\n active: PropTypes.number,\n label: PropTypes.string,\n}\n\nDropDown.defaultProps = {\n placeholder: 'Select an item',\n renderLabel: ({ selectedLabel }) => selectedLabel,\n wide: false,\n}\n\nconst PopoverContent = React.memo(function PopoverContent({\n refCallback,\n buttonWidth,\n header,\n items,\n handleItemSelect,\n selectedIndex,\n}) {\n const theme = useTheme()\n return (\n \n {header && (\n \n {header}\n \n )}\n \n \n {items.map((item, index) => {\n return (\n \n )\n })}\n \n \n \n )\n})\n\nPopoverContent.propTypes = {\n refCallback: PropTypes.func.isRequired,\n buttonWidth: PropTypes.number.isRequired,\n header: PropTypes.node,\n items: PropTypes.array.isRequired,\n handleItemSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n}\n\nPopoverContent.defaultProps = {\n refCallback: () => null,\n handleItemSelect: () => null,\n selectedIndex: -1,\n}\n\nconst Item = React.memo(function Item({\n header,\n index,\n item,\n length,\n onSelect,\n selected,\n theme,\n}) {\n const handleClick = useCallback(() => {\n onSelect(index)\n }, [index, onSelect])\n\n return (\n
  • \n \n {item}\n \n
  • \n )\n})\n\nItem.propTypes = {\n header: PropTypes.node,\n index: PropTypes.number.isRequired,\n item: PropTypes.node.isRequired,\n length: PropTypes.number.isRequired,\n onSelect: PropTypes.func.isRequired,\n selected: PropTypes.number.isRequired,\n theme: PropTypes.object.isRequired,\n}\n\nexport default DropDown\n"],"names":["MIN_WIDTH","useDropDown","buttonRef","items","displayedLabel","onChange","placeholder","selected","useState","selectedLabel","setSelectedLabel","opened","setOpened","close","useCallback","current","focus","toggle","handleItemSelect","index","useEffect","useButtonRef","cb","useRef","refCallback","el","DropDown","React","memo","disabled","header","renderLabel","wide","width","active","label","props","undefined","warnOnce","theme","useTheme","useViewport","vw","split","widthNoPx","buttonWidth","setButtonWidth","measureWidth","setMeasureWidth","Math","min","placeholderMinWidth","setPlaceholderMinWidth","popoverRefCallback","clientWidth","selectedIndex","useMemo","closedWithChanges","Label","Inside","RADIUS","GU","surface","disabledContent","surfaceContent","border","textStyle","surfacePressed","disabledIcon","accent","surfaceIcon","propTypes","PropTypes","bool","node","arrayOf","isRequired","func","number","string","defaultProps","unselectable","PopoverContent","surfaceContentSecondary","map","item","length","array","Item","onSelect","handleClick","content","surfaceSelected","object"],"mappings":";;;;;;;;;;;;;;;;;AAWA,IAAMA,SAAS,GAAG,GAAlB;;AAEA,SAASC,WAAT,OAOG;AAAA,MANDC,SAMC,QANDA,SAMC;AAAA,MALDC,KAKC,QALDA,KAKC;AAAA,MAJDC,cAIC,QAJDA,cAIC;AAAA,MAHDC,QAGC,QAHDA,QAGC;AAAA,MAFDC,WAEC,QAFDA,WAEC;AAAA,MADDC,QACC,QADDA,QACC;;AAAA,kBACyCC,QAAQ,CAACJ,cAAD,CADjD;AAAA;AAAA,MACMK,aADN;AAAA,MACqBC,gBADrB;;AAAA,mBAE2BF,QAAQ,CAAC,KAAD,CAFnC;AAAA;AAAA,MAEMG,MAFN;AAAA,MAEcC,SAFd;;AAID,MAAMC,KAAK,GAAGC,WAAW,CAAC,YAAM;AAC9BF,IAAAA,SAAS,CAAC,KAAD,CAAT;;AAEA,QAAIV,SAAS,CAACa,OAAd,EAAuB;AACrBb,MAAAA,SAAS,CAACa,OAAV,CAAkBC,KAAlB;AACD;AACF,GANwB,EAMtB,CAACd,SAAD,CANsB,CAAzB;AAQA,MAAMe,MAAM,GAAGH,WAAW,CAAC;AAAA,WAAMF,SAAS,CAAC,UAAAD,MAAM;AAAA,aAAI,CAACA,MAAL;AAAA,KAAP,CAAf;AAAA,GAAD,EAAqC,EAArC,CAA1B;AAEA,MAAMO,gBAAgB,GAAGJ,WAAW,CAClC,UAAAK,KAAK,EAAI;AACPd,IAAAA,QAAQ,CAACc,KAAD,CAAR;AACAN,IAA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AAO,EAAEC,WADX;AAAA,YAKe,OAAO7B,EALtB;AAAA,YAK8B,IAAIA,EALlC;AAAA,YAOatB,KAAK,CAACoD,OAPnB;AAAA,YASMzB,SAAS,CAAC,OAAD,CATf;AAAA,YAWM,CAACpC,MAAD,IAAWX,KAAK,KAAK,CAArB,qCAAoDyC,MAApD,WAAkE,EAXxE;AAAA,YAcMzC,KAAK,KAAKmE,MAAM,GAAG,CAAnB,wCACkC1B,MADlC,WAEI,EAhBV;AAAA,YAmBMrD,QAAQ,KAAKY,KAAb,oDAE2BoB,KAAK,CAAC8B,MAFjC,0CAGgB9B,KAAK,CAACqD,eAHtB,uBAKI,EAxBV;AAAA,YA4BoBrD,KAAK,CAAC4B;AA5B1B,KAgCGkB,IAhCH,CADF,CADF;AAsCD,CAnDY,CAAb;AAqDAG,IAAI,CAACjB,SAAL,GAAiB;AACfzC,EAAAA,MAAM,EAAE0C,SAAS,CAACE,IADH;AAEfvD,EAAAA,KAAK,EAAEqD,SAAS,CAACM,MAAV,CAAiBF,UAFT;AAGfS,EAAAA,IAAI,EAAEb,SAAS,CAACE,IAAV,CAAeE,UAHN;AAIfU,EAAAA,MAAM,EAAEd,SAAS,CAACM,MAAV,CAAiBF,UAJV;AAKfa,EAAAA,QAAQ,EAAEjB,SAAS,CAACK,IAAV,CAAeD,UALV;AAMfrE,EAAAA,QAAQ,EAAEiE,SAAS,CAACM,MAAV,CAAiBF,UANZ;AAOfrC,EAAAA,KAAK,EAAEiC,SAAS,CAACqB,MAAV,CAAiBjB;AAPT,CAAjB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/EscapeOutside/EscapeOutside.js b/packages/govern-console/public/aragon-ui/esm/src/components/EscapeOutside/EscapeOutside.js new file mode 100644 index 000000000..50cfaac48 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/EscapeOutside/EscapeOutside.js @@ -0,0 +1,115 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; +import classCallCheck from '../../../node_modules/@babel/runtime/helpers/classCallCheck.js'; +import createClass from '../../../node_modules/@babel/runtime/helpers/createClass.js'; +import inherits from '../../../node_modules/@babel/runtime/helpers/inherits.js'; +import assertThisInitialized from '../../../node_modules/@babel/runtime/helpers/assertThisInitialized.js'; +import possibleConstructorReturn from '../../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js'; +import getPrototypeOf from '../../../node_modules/@babel/runtime/helpers/getPrototypeOf.js'; +import { noop } from '../../utils/miscellaneous.js'; +import { KEY_ESC } from '../../utils/keycodes.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +var EscapeOutside = /*#__PURE__*/function (_React$Component) { + inherits(EscapeOutside, _React$Component); + + var _super = _createSuper(EscapeOutside); + + function EscapeOutside() { + var _this; + + classCallCheck(this, EscapeOutside); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + defineProperty(assertThisInitialized(_this), "_element", /*#__PURE__*/React.createRef()); + + defineProperty(assertThisInitialized(_this), "_document", null); + + defineProperty(assertThisInitialized(_this), "handleClick", function (e) { + var onEscapeOutside = _this.props.onEscapeOutside; + + if (!_this._element.contains(e.target)) { + onEscapeOutside(); + } + }); + + defineProperty(assertThisInitialized(_this), "handleEscape", function (e) { + var onEscapeOutside = _this.props.onEscapeOutside; + + if (e.keyCode === KEY_ESC) { + onEscapeOutside(); + } + }); + + return _this; + } + + createClass(EscapeOutside, [{ + key: "componentDidMount", + value: function componentDidMount() { + var useCapture = this.props.useCapture; + this._document = this._element.ownerDocument; + + this._document.addEventListener('keydown', this.handleEscape, useCapture); + + this._document.addEventListener('click', this.handleClick, useCapture); + + this._document.addEventListener('touchend', this.handleClick, useCapture); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + var useCapture = this.props.useCapture; + + this._document.removeEventListener('keydown', this.handleEscape, useCapture); + + this._document.removeEventListener('click', this.handleClick, useCapture); + + this._document.removeEventListener('touchend', this.handleClick, useCapture); + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + children = _this$props.children, + onEscapeOutside = _this$props.onEscapeOutside, + useCapture = _this$props.useCapture, + rest = objectWithoutProperties(_this$props, ["children", "onEscapeOutside", "useCapture"]); + + return /*#__PURE__*/React.createElement("div", _extends_1({}, rest, { + ref: function ref(n) { + return _this2._element = n; + } + }), children); + } + }]); + + return EscapeOutside; +}(React.Component); + +defineProperty(EscapeOutside, "propTypes", { + children: propTypes.node.isRequired, + onEscapeOutside: propTypes.func.isRequired, + useCapture: propTypes.bool +}); + +defineProperty(EscapeOutside, "defaultProps", { + onEscapeOutside: noop, + useCapture: false +}); + +export default EscapeOutside; +//# sourceMappingURL=EscapeOutside.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/EscapeOutside/EscapeOutside.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/EscapeOutside/EscapeOutside.js.map new file mode 100644 index 000000000..cda9da063 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/EscapeOutside/EscapeOutside.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EscapeOutside.js","sources":["../../../../../src/components/EscapeOutside/EscapeOutside.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport { noop, KEY_ESC } from '../../utils'\n\nclass EscapeOutside extends React.Component {\n static propTypes = {\n children: PropTypes.node.isRequired,\n onEscapeOutside: PropTypes.func.isRequired,\n useCapture: PropTypes.bool,\n }\n\n static defaultProps = {\n onEscapeOutside: noop,\n useCapture: false,\n }\n\n _element = React.createRef()\n _document = null\n\n componentDidMount() {\n const { useCapture } = this.props\n this._document = this._element.ownerDocument\n this._document.addEventListener('keydown', this.handleEscape, useCapture)\n this._document.addEventListener('click', this.handleClick, useCapture)\n this._document.addEventListener('touchend', this.handleClick, useCapture)\n }\n\n componentWillUnmount() {\n const { useCapture } = this.props\n this._document.removeEventListener('keydown', this.handleEscape, useCapture)\n this._document.removeEventListener('click', this.handleClick, useCapture)\n this._document.removeEventListener('touchend', this.handleClick, useCapture)\n }\n\n handleClick = e => {\n const { onEscapeOutside } = this.props\n if (!this._element.contains(e.target)) {\n onEscapeOutside()\n }\n }\n\n handleEscape = e => {\n const { onEscapeOutside } = this.props\n if (e.keyCode === KEY_ESC) {\n onEscapeOutside()\n }\n }\n\n render() {\n const { children, onEscapeOutside, useCapture, ...rest } = this.props\n\n return (\n
    (this._element = n)}>\n {children}\n
    \n )\n }\n}\n\nexport default EscapeOutside\n"],"names":["EscapeOutside","React","createRef","e","onEscapeOutside","props","_element","contains","target","keyCode","KEY_ESC","useCapture","_document","ownerDocument","addEventListener","handleEscape","handleClick","removeEventListener","children","rest","n","Component","PropTypes","node","isRequired","func","bool","noop"],"mappings":";;;;;;;;;;;;;;;;;;IAIMA;;;;;;;;;;;;;;;;0EAYOC,KAAK,CAACC,SAAN;;8DACC;;gEAiBE,UAAAC,CAAC,EAAI;AAAA,UACTC,eADS,GACW,MAAKC,KADhB,CACTD,eADS;;AAEjB,UAAI,CAAC,MAAKE,QAAL,CAAcC,QAAd,CAAuBJ,CAAC,CAACK,MAAzB,CAAL,EAAuC;AACrCJ,QAAAA,eAAe;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,EAAEI,SAAS,CAACC,IAAV,CAAeC,UADR;AAEjBpB,EAAAA,eAAe,EAAEkB,SAAS,CAACG,IAAV,CAAeD,UAFf;AAGjBb,EAAAA,UAAU,EAAEW,SAAS,CAACI;AAHL;;eADf1B,+BAOkB;AACpBI,EAAAA,eAAe,EAAEuB,IADG;AAEpBhB,EAAAA,UAAU,EAAE;AAFQ;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/EthIdenticon/EthIdenticon.js b/packages/govern-console/public/aragon-ui/esm/src/components/EthIdenticon/EthIdenticon.js new file mode 100644 index 000000000..e01a8226b --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/EthIdenticon/EthIdenticon.js @@ -0,0 +1,108 @@ +import React from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import defineProperty from '../../../node_modules/@babel/runtime/helpers/defineProperty.js'; +import _styled from 'styled-components'; +import classCallCheck from '../../../node_modules/@babel/runtime/helpers/classCallCheck.js'; +import createClass from '../../../node_modules/@babel/runtime/helpers/createClass.js'; +import inherits from '../../../node_modules/@babel/runtime/helpers/inherits.js'; +import possibleConstructorReturn from '../../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js'; +import getPrototypeOf from '../../../node_modules/@babel/runtime/helpers/getPrototypeOf.js'; +import { stylingProps } from '../../utils/components.js'; +import { isAddress } from '../../utils/web3.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import Blockies from '../../../node_modules/react-blockies/dist/main.js'; + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +var PX_RATIO = typeof devicePixelRatio === 'undefined' ? 2 : devicePixelRatio; +var BLOCKIES_SQUARES = 8; // commonly used to represent Ethereum addresses + +var BASE_SCALE = 3; + +var EthIdenticon = /*#__PURE__*/function (_React$Component) { + inherits(EthIdenticon, _React$Component); + + var _super = _createSuper(EthIdenticon); + + function EthIdenticon() { + classCallCheck(this, EthIdenticon); + + return _super.apply(this, arguments); + } + + createClass(EthIdenticon, [{ + key: "render", + value: function render() { + var _this$props = this.props, + address = _this$props.address, + scale = _this$props.scale, + radius = _this$props.radius, + soften = _this$props.soften; + var blockiesScale = scale * BASE_SCALE; + return isAddress(address) ? /*#__PURE__*/React.createElement(Main, _extends_1({ + size: BLOCKIES_SQUARES * blockiesScale, + radius: radius + }, stylingProps(this)), /*#__PURE__*/React.createElement(BlockiesScaling, { + size: BLOCKIES_SQUARES * blockiesScale * PX_RATIO + }, /*#__PURE__*/React.createElement(BlockiesOpacity, { + soften: soften + }, /*#__PURE__*/React.createElement(Blockies, { + seed: address.toLowerCase(), + size: BLOCKIES_SQUARES, + scale: blockiesScale * PX_RATIO + })))) : null; + } + }]); + + return EthIdenticon; +}(React.Component); +/* + * `vertical-align` prevents the inline parent to have an incorrect height. + * + * See + * - https://bugzilla.mozilla.org/show_bug.cgi?id=491549#c9 + * - https://bugzilla.mozilla.org/show_bug.cgi?id=737757#c1 + */ + + +defineProperty(EthIdenticon, "propTypes", { + address: propTypes.string.isRequired, + scale: propTypes.number, + radius: propTypes.number, + soften: propTypes.number +}); + +defineProperty(EthIdenticon, "defaultProps", { + scale: 1, + radius: 0, + soften: 0.3 +}); + +var Main = _styled.div.withConfig({ + displayName: "EthIdenticon__Main", + componentId: "sc-1h8gagr-0" +})(["display:inline-flex;vertical-align:middle;overflow:hidden;width:", "px;height:", "px;border-radius:", "px;mask-image:linear-gradient(red,red);"], function (p) { + return p.size; +}, function (p) { + return p.size; +}, function (p) { + return p.radius; +}); +var BlockiesOpacity = _styled.div.withConfig({ + displayName: "EthIdenticon__BlockiesOpacity", + componentId: "sc-1h8gagr-1" +})(["opacity:", ";"], function (p) { + return 1 - p.soften; +}); +var BlockiesScaling = _styled.div.withConfig({ + displayName: "EthIdenticon__BlockiesScaling", + componentId: "sc-1h8gagr-2" +})(["display:flex;width:", "px;height:", "px;background:#fff;transform:scale(", ",", ");transform-origin:0 0;"], function (p) { + return p.size; +}, function (p) { + return p.size; +}, 1 / PX_RATIO, 1 / PX_RATIO); + +export default EthIdenticon; +//# sourceMappingURL=EthIdenticon.js.map diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/EthIdenticon/EthIdenticon.js.map b/packages/govern-console/public/aragon-ui/esm/src/components/EthIdenticon/EthIdenticon.js.map new file mode 100644 index 000000000..809be11a5 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/EthIdenticon/EthIdenticon.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EthIdenticon.js","sources":["../../../../../src/components/EthIdenticon/EthIdenticon.js"],"sourcesContent":["import React from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\nimport Blockies from 'react-blockies'\nimport { stylingProps, isAddress } from '../../utils'\n\nconst PX_RATIO = typeof devicePixelRatio === 'undefined' ? 2 : devicePixelRatio\nconst BLOCKIES_SQUARES = 8 // commonly used to represent Ethereum addresses\nconst BASE_SCALE = 3\n\nclass EthIdenticon extends React.Component {\n static propTypes = {\n address: PropTypes.string.isRequired,\n scale: PropTypes.number,\n radius: PropTypes.number,\n soften: PropTypes.number,\n }\n static defaultProps = {\n scale: 1,\n radius: 0,\n soften: 0.3,\n }\n render() {\n const { address, scale, radius, soften } = this.props\n const blockiesScale = scale * BASE_SCALE\n return isAddress(address) ? (\n \n \n \n \n \n \n \n ) : null\n }\n}\n\n/*\n * `vertical-align` prevents the inline parent to have an incorrect height.\n *\n * See\n * - https://bugzilla.mozilla.org/show_bug.cgi?id=491549#c9\n * - https://bugzilla.mozilla.org/show_bug.cgi?id=737757#c1\n */\nconst Main = styled.div`\n display: inline-flex;\n vertical-align: middle;\n overflow: hidden;\n width: ${p => p.size}px;\n height: ${p => p.size}px;\n border-radius: ${p => p.radius}px;\n\n // Fix an issue where the border-radius wasn’t visible on Blink browsers.\n // See https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7b\n mask-image: linear-gradient(red, red);\n`\n\nconst BlockiesOpacity = styled.div`\n opacity: ${p => 1 - p.soften};\n`\n\nconst BlockiesScaling = styled.div`\n /* display:flex to remove the display:inline on the child without using a\n * selector (Blockies doesn’t allow the style prop to be passed). */\n display: flex;\n width: ${p => p.size}px;\n height: ${p => p.size}px;\n background: #fff;\n\n /* add high-res screens support to Blockies */\n transform: scale(${1 / PX_RATIO}, ${1 / PX_RATIO});\n transform-origin: 0 0;\n`\n\nexport default EthIdenticon\n"],"names":["PX_RATIO","devicePixelRatio","BLOCKIES_SQUARES","BASE_SCALE","EthIdenticon","props","address","scale","radius","soften","blockiesScale","isAddress","stylingProps","toLowerCase","React","Component","PropTypes","string","isRequired","number","Main","styled","div","p","size","BlockiesOpacity","BlockiesScaling"],"mappings":";;;;;;;;;;;;;;;;;AAMA,IAAMA,QAAQ,GAAG,OAAOC,gBAAP,KAA4B,WAA5B,GAA0C,CAA1C,GAA8CA,gBAA/D;AACA,IAAMC,gBAAgB,GAAG,CAAzB;;AACA,IAAMC,UAAU,GAAG,CAAnB;;IAEMC;;;;;;;;;;;;;6BAYK;AAAA,wBACoC,KAAKC,KADzC;AAAA,UACCC,OADD,eACCA,OADD;AAAA,UACUC,KADV,eACUA,KADV;AAAA,UACiBC,MADjB,eACiBA,MADjB;AAAA,UACyBC,MADzB,eACyBA,MADzB;AAEP,UAAMC,aAAa,GAAGH,KAAK,GAAGJ,UAA9B;AACA,aAAOQ,SAAS,CAACL,OAAD,CAAT,gBACL,oBAAC,IAAD;AACE,QAAA,IAAI,EAAEJ,gBAAgB,GAAGQ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HAIV,UAAAC,CAAC;AAAA,SAAIA,CAAC,CAACC,IAAN;AAAA,CAJS,EAKT,UAAAD,CAAC;AAAA,SAAIA,CAAC,CAACC,IAAN;AAAA,CALQ,EASA,IAAIxB,QATJ,EASiB,IAAIA,QATrB,CAArB;;;;"} \ No newline at end of file diff --git a/packages/govern-console/public/aragon-ui/esm/src/components/Field/Field.js b/packages/govern-console/public/aragon-ui/esm/src/components/Field/Field.js new file mode 100644 index 000000000..e1be92775 --- /dev/null +++ b/packages/govern-console/public/aragon-ui/esm/src/components/Field/Field.js @@ -0,0 +1,89 @@ +import React, { useMemo } from 'react'; +import propTypes from '../../../node_modules/prop-types/index.js'; +import _styled from 'styled-components'; +import { unselectable } from '../../utils/css.js'; +import { GU } from '../../style/constants.js'; +import { textStyle } from '../../style/text-styles.js'; +import { useTheme } from '../../theme/Theme2.js'; +import _extends_1 from '../../../node_modules/@babel/runtime/helpers/extends.js'; +import objectWithoutProperties from '../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js'; +import { Inside as i } from '../../../node_modules/use-inside/dist/index.js'; + +// be used to link the
    -
    -

    ERC-20 Tool

    -
    - -
    - {tokenAddress && - ercAbi.map( - abiItem => - abiItem?.type === 'function' && ( -
    - -
    - ), - )} -
    - - ) -} - -type Input = { - name: string | undefined - type: string | undefined -} - -type ContractCallHandlerProps = { - constant: boolean - ercContract: any - name: string - inputs: Input[] | any[] -} - -function ContractCallHandler({ - constant, - ercContract, - name, - inputs, -}: ContractCallHandlerProps) { - const [result, setResult] = useState('') - const [values, setValues] = useState(() => { - if (inputs.length === 0) { - return null - } - // @ts-ignore - // Sorry but I got very tired of fighting with types - return inputs.map((input: any) => ({ - name: input.name, - type: input.type, - value: '', - })) - }) - - const updateValue = useCallback( - (name, updatedValue) => { - if (values) { - setValues((elements: any) => - elements.map((element: any) => - element.name === name - ? { ...element, value: updatedValue } - : element, - ), - ) - } - }, - [values], - ) - - const handleExecute = useCallback( - async e => { - e.preventDefault() - try { - if (constant) { - let res - if (values) { - const args = values.map((val: any) => val.value) - res = await ercContract[name](...args) - setResult(res.toString()) - return - } else { - res = await ercContract[name]() - setResult(res.toString()) - return - } - } - const args = (values as any).map((val: any) => val.value) - const res = await ercContract[name](...args) - setResult(res.hash) - } catch (e) { - console.error(e) - } - }, - [ercContract, constant, name, values], - ) - - return ( - <> -

    {name}

    -
    - {values?.map((value: any, i: number) => ( -
    - -
    - ))} - - Result: {result} -
    - - ) -} diff --git a/packages/govern-console/src/assets/aragon-metal.svg b/packages/govern-console/src/assets/aragon-metal.svg deleted file mode 100644 index 718a9435b..000000000 --- a/packages/govern-console/src/assets/aragon-metal.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/packages/govern-console/src/components/AddressIdentifier/AddressIdentifier.stories.tsx b/packages/govern-console/src/components/AddressIdentifier/AddressIdentifier.stories.tsx new file mode 100644 index 000000000..abfca1d8e --- /dev/null +++ b/packages/govern-console/src/components/AddressIdentifier/AddressIdentifier.stories.tsx @@ -0,0 +1,46 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { AddressIdentifier, AddressIdentifierProps } from './AddressIdentifier'; + +export default { + title: 'AN-AddressIdentifier', + component: AddressIdentifier, + argTypes: { + labelColor: { control: 'green' }, + }, +} as Meta; + +const Template: Story = (args) => ( + +); + +export const AddressSmall = Template.bind({}); +AddressSmall.args = { + componentSize: 'small', + displayText: '0xe3cF69b86F274a14B87946bf641f11Ac837f4492', + isAddress: true, +}; + +export const AddressNormal = Template.bind({}); +AddressNormal.args = { + componentSize: 'medium', + displayText: '0xe3cF69b86F274a14B87946bf641f11Ac837f4492', + isAddress: true, +}; + +export const NameSmall = Template.bind({}); +NameSmall.args = { + componentSize: 'small', + displayText: 'Raul Alvarez', + isAddress: false, +}; + +export const NameNormal = Template.bind({}); +NameNormal.args = { + componentSize: 'medium', + displayText: 'Raul Alvarez', + isAddress: false, +}; diff --git a/packages/govern-console/src/components/AddressIdentifier/AddressIdentifier.tsx b/packages/govern-console/src/components/AddressIdentifier/AddressIdentifier.tsx new file mode 100644 index 000000000..2da9d5631 --- /dev/null +++ b/packages/govern-console/src/components/AddressIdentifier/AddressIdentifier.tsx @@ -0,0 +1,91 @@ +import React from 'react'; +import { styled, useTheme } from '@material-ui/core/styles'; +import MUIChip, { ChipProps } from '@material-ui/core/Chip'; +import Avatar from '@material-ui/core/Avatar'; +// import { ReactComponent as AddressIcon } from '../../../src/images/svgs/DefaultImageAddress.svg'; + +export interface AddressIdentifierProps extends ChipProps { + /** + * Image Url String + */ + imageUrl: string; + /** + * If Address or not + */ + isAddress: boolean; + /** + * User Name or Address + */ + displayText: string; + /** + * Image to be shown or not + */ + isImageVisible: boolean; + /** + * Size of the component + */ + componentSize: string; + onClick?: () => void; +} + +export const AddressIdentifier: React.FC = ({ + imageUrl, + isAddress, + displayText, + isImageVisible, + componentSize, + ...props +}) => { + const theme = useTheme(); + const getImageUrl = () => { + if (imageUrl) { + return imageUrl; + } else { + return 'src/images/svgs/DefaultImageAddress.svg'; + } + }; + const getDisplayText = () => { + if (isAddress) { + const formattedAddress = + displayText.slice(0, 5) + + '...' + + displayText.slice(displayText.length - 5, displayText.length - 1); + return formattedAddress; + } else { + let formattedName = displayText; + if (displayText.length > 20) { + formattedName = displayText.slice(0, 19); + } + return formattedName; + } + }; + + const AddressIdentifier = styled(MUIChip)({ + color: theme.custom.black, + backgroundColor: theme.custom.white, + width: 'fit-content', + display: 'flex', + flexDirection: 'row', + justifyContent: 'center', + alignItems: 'center', + padding: '6px 8px', + borderRadius: '40px', + }); + + const getAvatar = () => { + if (imageUrl) { + console.log('xyz'); + return ; + } + console.log('abc'); + return ; + }; + + return ( + + ); +}; diff --git a/packages/govern-console/src/components/AdviceMessages/AdviceMessage.stories.tsx b/packages/govern-console/src/components/AdviceMessages/AdviceMessage.stories.tsx new file mode 100644 index 000000000..c5f40887e --- /dev/null +++ b/packages/govern-console/src/components/AdviceMessages/AdviceMessage.stories.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { AdviceMessage, AdviceMessageProps } from './AdviceMessage'; + +export default { + title: 'AN-Message-Card', + component: AdviceMessage, + argTypes: { + cardColor: { control: 'green' }, + }, +} as Meta; + +const Template: Story = (args) => ( + +); + +export const Green = Template.bind({}); +Green.args = { + cardColor: 'green', + messageText: + 'Everyone thinks that they are a Rick when they actually are a Jerry. Beth might be a robot and Rick must have forgot if she is his actual daughter or a robot that he made to take her place.', +}; +export const Orange = Template.bind({}); +Orange.args = { + cardColor: 'orange', + messageText: + 'Everyone thinks that they are a Rick when they actually are a Jerry. Beth might be a robot and Rick must have forgot if she is his actual daughter or a robot that he made to take her place.', +}; +export const Blue = Template.bind({}); +Blue.args = { + cardColor: 'blue', + messageText: + 'Everyone thinks that they are a Rick when they actually are a Jerry. Beth might be a robot and Rick must have forgot if she is his actual daughter or a robot that he made to take her place.', +}; +export const Grey = Template.bind({}); +Grey.args = { + cardColor: 'grey', + messageText: + 'Everyone thinks that they are a Rick when they actually are a Jerry. Beth might be a robot and Rick must have forgot if she is his actual daughter or a robot that he made to take her place.', +}; diff --git a/packages/govern-console/src/components/AdviceMessages/AdviceMessage.tsx b/packages/govern-console/src/components/AdviceMessages/AdviceMessage.tsx new file mode 100644 index 000000000..009f8fd09 --- /dev/null +++ b/packages/govern-console/src/components/AdviceMessages/AdviceMessage.tsx @@ -0,0 +1,64 @@ +import React from 'react'; +import { styled, useTheme } from '@material-ui/core/styles'; +import MUICard, { CardProps } from '@material-ui/core/Card'; +import MUITypography from '@material-ui/core/Typography'; + +export interface AdviceMessageProps extends CardProps { + /** + * Card Color + */ + cardColor: string; + /** + * Card Text + */ + messageText: string | React.ReactNode; + /** + * Optional Function Handler + */ + onClick?: () => void; +} + +export const AdviceMessage: React.FC = ({ cardColor, messageText }) => { + const theme = useTheme(); + const getBackground = () => { + if (cardColor === 'green') return `${theme.custom.light.grass}`; + if (cardColor === 'orange') return `${theme.custom.light.cream}`; + if (cardColor === 'blue') return `${theme.custom.light.sky}`; + if (cardColor === 'grey') return `${theme.custom.greyscale.light}`; + }; + + const getColor = () => { + if (cardColor === 'green') return `${theme.custom.informative.green}`; + if (cardColor === 'orange') return `${theme.custom.informative.orange}`; + if (cardColor === 'blue') return `${theme.custom.plain.sapphire}`; + if (cardColor === 'grey') return `${theme.custom.greyscale.solid}`; + }; + + const AdviceMessageCard = styled(MUICard)({ + backgroundColor: getBackground(), + width: '293px', + height: 'fit-content', + display: 'flex', + flexDirection: 'row', + justifyContent: 'center', + alignItems: 'center', + padding: '16px 16px', + borderRadius: '10px', + }); + + const AdviceMessageText = styled(MUITypography)({ + color: getColor(), + lineHeight: '19px', + fontSize: '14px', + fontWeight: 500, + fontFamily: 'Manrope', + fontStyle: 'normal', + overflow: 'visible', + }); + + return ( + + {messageText} + + ); +}; diff --git a/packages/govern-console/src/components/Button.tsx b/packages/govern-console/src/components/Button.tsx deleted file mode 100644 index c4db3b7f7..000000000 --- a/packages/govern-console/src/components/Button.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react' -import 'styled-components/macro' - -export default function Button({ - children, - disabled = false, - onClick, - type, -}: React.ComponentProps<'button'>): JSX.Element { - return ( - - ) -} diff --git a/packages/govern-console/src/components/Button/ANButton.tsx b/packages/govern-console/src/components/Button/ANButton.tsx new file mode 100644 index 000000000..09d748e01 --- /dev/null +++ b/packages/govern-console/src/components/Button/ANButton.tsx @@ -0,0 +1,151 @@ +import React from 'react'; +import { styled, useTheme } from '@material-ui/core/styles'; +import MUIButton, { ButtonProps } from '@material-ui/core/Button'; + +export interface ANButtonProps { + /** + * Button type + */ + type?: string; + /** + * If you want to override the color + */ + backgroundColor?: string; + /** + * How large should the button be? + */ + size?: 'small' | 'medium' | 'large'; + /** + * Button contents + */ + label: string | React.ReactNode; + // /** + // * Any additional overwriting style. + // */ + // style: object; + /** + * Optional click handler + */ + onClick?: () => void; + /** + * Disable button + */ + disabled?: boolean; + /** + * width + */ + width?: string; + /** + * height + */ + height?: string; + /** + * Color vlue + */ + color?: string; + /** + * style + */ + style?: any; +} + +/** + * Primary UI component for user interaction + */ +export const ANButton: React.FC = ({ + type = 'primary', + // size = 'medium', + backgroundColor, + label, + // style, + disabled, + width, + height, + color, + style, + ...props +}) => { + const theme = useTheme(); + + const getBackground = () => { + if (disabled) return `${theme.custom.greyscale.light} !important`; + if (backgroundColor) return backgroundColor; + if (type === 'primary') + return 'linear-gradient(107.79deg, #00C2FF 1.46%, #01E8F7 100%)'; + if (type === 'challenge') + return 'linear-gradient(107.79deg, #F7B201 1.46%, #FF7A00 100%)'; + return '#ffffff'; + }; + const getBackgroundForHoveredState = () => { + if (disabled) return '#D9E0F5 !important'; + if (backgroundColor) return backgroundColor; + if (type === 'primary') + return 'linear-gradient(107.79deg, #82E1FF 1.46%, #3CF3FF 100%)'; + if (type === 'challenge') + return 'linear-gradient(107.79deg, #FFD056 1.46%, #FF9636 100%)'; + return '#ffffff'; + }; + const getBackgroundForPressedState = () => { + if (disabled) return '#D9E0F5 !important'; + if (backgroundColor) return backgroundColor; + if (type === 'primary') + return 'linear-gradient(107.79deg, #01B9F2 1.46%, #01DBE9 100%)'; + if (type === 'challenge') + return 'linear-gradient(107.79deg, #EBA900 1.46%, #ED7100 100%)'; + return '#EFF1F7;'; + }; + + const getColor = () => { + if (disabled) return '#B0BDE5 !important'; + if (color && color !== '') return color; + if (type === 'secondary') return '#20232C'; + return '#ffffff'; + }; + + const ANButton = styled(MUIButton)({ + color: getColor(), + height: height || 46, + width: width || 154, + background: getBackground(), + boxSizing: 'border-box', + boxShadow: disabled + ? 'none !important' + : '0px 3px 3px rgba(116, 131, 178, 0.2)', + borderRadius: '8px', + fontFamily: 'Manrope', + fontStyle: 'normal', + fontWeight: 'normal', + fontSize: '16px', + lineHeight: '22px', + textTransform: 'none', + animation: 'none', + transition: 'none', + '&:hover': { + background: getBackgroundForHoveredState(), + boxShadow: '0px 4px 4px rgba(116, 131, 178, 0.25)', + color: type === 'secondary' ? '#7483B2' : 'white', + }, + '&:active': { + background: getBackgroundForPressedState(), + boxShadow: '0px 1px 1px rgba(116, 131, 178, 0.35)', + }, + '& .MuiTouchRipple-root': { + display: 'none', + }, + ...style, + }); + + return ( + { + return; + } + : props.onClick + } + > + {label} + + ); +}; diff --git a/packages/govern-console/src/components/Button/AnButton.stories.tsx b/packages/govern-console/src/components/Button/AnButton.stories.tsx new file mode 100644 index 000000000..6eff04a56 --- /dev/null +++ b/packages/govern-console/src/components/Button/AnButton.stories.tsx @@ -0,0 +1,35 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { ANButton, ANButtonProps } from './ANButton'; + +export default { + title: 'ANButton', + component: ANButton, + argTypes: { + backgroundColor: { control: 'color' }, + }, +} as Meta; + +const Template: Story = (args) => ; + +export const Primary = Template.bind({}); +Primary.args = { + type: 'primary', + label: 'New proposal', + disabled: true, +}; + +export const Secondary = Template.bind({}); +Secondary.args = { + type: 'secondary', + label: 'Cancel', +}; + +export const Challenge = Template.bind({}); +Challenge.args = { + type: 'challenge', + label: 'Challenge', +}; diff --git a/packages/govern-console/src/components/ConsoleHeader/ConsoleHeader.stories.tsx b/packages/govern-console/src/components/ConsoleHeader/ConsoleHeader.stories.tsx new file mode 100644 index 000000000..ffa601c1a --- /dev/null +++ b/packages/govern-console/src/components/ConsoleHeader/ConsoleHeader.stories.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { ConsoleHeader, ConsoleHeaderProps } from './ConsoleHeader'; + +export default { + title: 'AN-ConsoleHeader', + component: ConsoleHeader, + argTypes: {}, +} as Meta; + +const Template: Story = (args) => ( + +); + +export const ANConsoleHeader = Template.bind({}); +ANConsoleHeader.args = {}; diff --git a/packages/govern-console/src/components/ConsoleHeader/ConsoleHeader.tsx b/packages/govern-console/src/components/ConsoleHeader/ConsoleHeader.tsx new file mode 100644 index 000000000..79b96c4c1 --- /dev/null +++ b/packages/govern-console/src/components/ConsoleHeader/ConsoleHeader.tsx @@ -0,0 +1,91 @@ +import React, { useRef } from 'react'; +import { styled, useTheme } from '@material-ui/core/styles'; +import MUICard, { CardProps } from '@material-ui/core/Card'; +import MUITypography from '@material-ui/core/Typography'; +import { InputField } from '../InputFields/InputField'; +import { ANButton } from '../Button/ANButton'; + +export interface ConsoleHeaderProps { + /** + * Function to be called on search + */ + onSearch?: (val: string) => void; +} + +export const ConsoleHeader: React.FC = ({ + onSearch, + ...props +}) => { + const theme = useTheme(); + const searchString = useRef(''); + const onInputChange = (val: string) => { + searchString.current = val; + }; + const onGotoDao = () => { + console.log(searchString.current); + }; + const ConsoleHeaderCard = styled(MUICard)({ + background: theme.custom.daoHeader.background, + width: '100%', + height: '335px', + paddingLeft: '76px', + paddingTop: '61px', + paddingBottom: '82px', + boxSizing: 'border-box', + boxShadow: 'none', + }); + + const HeaderLabel = styled(MUITypography)({ + color: theme.custom.daoHeader.labelColor, + lineHeight: '27px', + fontSize: '18px', + fontWeight: theme.custom.daoHeader.labelFontWeight, + fontFamily: theme.typography.fontFamily, + fontStyle: 'normal', + }); + + const HeaderValue = styled(MUITypography)({ + color: theme.custom.daoHeader.valueColor, + lineHeight: '60.1px', + fontSize: '44px', + fontWeight: theme.custom.daoHeader.valueFontWeight, + fontFamily: theme.typography.fontFamily, + fontStyle: 'normal', + }); + + return ( + + Welcome to Aragon Console +
    + + Lorem ipsum dolor amet ipsu amet dolores ipsum amet dolor ipsum amet + ipsum amet dolors ipsum{' '} + +
    +
    +
    + + {' '} + +
    +
    + onGotoDao()} + > + {' '} + +
    +
    +
    + ); +}; diff --git a/packages/govern-console/src/components/DaoCards/DaoCard.stories.tsx b/packages/govern-console/src/components/DaoCards/DaoCard.stories.tsx new file mode 100644 index 000000000..6bfd1cc30 --- /dev/null +++ b/packages/govern-console/src/components/DaoCards/DaoCard.stories.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { DaoCard, DaoCardProps } from './DaoCard'; + +export default { + title: 'AN-DaoCard', + component: DaoCard, + argTypes: {}, +} as Meta; + +const Template: Story = (args) => ; + +export const ANDaoCard = Template.bind({}); +ANDaoCard.args = { + label: 'Aaragon Dao', + aumValue: 100.4, + numberOfProposals: 453, +}; diff --git a/packages/govern-console/src/components/DaoCards/DaoCard.tsx b/packages/govern-console/src/components/DaoCards/DaoCard.tsx new file mode 100644 index 000000000..37f0aa696 --- /dev/null +++ b/packages/govern-console/src/components/DaoCards/DaoCard.tsx @@ -0,0 +1,124 @@ +import React from 'react'; +import { styled, useTheme } from '@material-ui/core/styles'; +import MUICard, { CardProps } from '@material-ui/core/Card'; +import MUITypography from '@material-ui/core/Typography'; + +export interface DaoCardProps { + /** + * Label of the card - name of the DAO + */ + label: string; + /** + * Aum Value of the DAO + */ + aumValue: string | number; + /** + * Number of Proposals + */ + numberOfProposals: number; + /** + * ID of the DAO + */ + daoId: number | string; + /** + * function to be called on click. + */ + onClick?: () => void; +} + +export const DaoCard: React.FC = ({ + label, + aumValue, + numberOfProposals, + daoId, + ...props +}) => { + const theme = useTheme(); + const DaoCard = styled(MUICard)({ + background: theme.custom.daoCard.background, + width: '328px', + height: '161px', + border: `2px ${theme.custom.daoCard.border}`, + boxSizing: 'border-box', + boxShadow: '0px 6px 6px rgba(180, 193, 228, 0.35)', + justifyContent: 'center', + alignItems: 'center', + padding: '0px', + borderRadius: '8px', + display: 'flex', + flexDirection: 'column', + }); + + const CardLabel = styled(MUITypography)({ + lineHeight: theme.custom.daoCard.labelLineHeight, + fontSize: theme.custom.daoCard.labeFontSize, + fontWeight: theme.custom.daoCard.labelFontWeight, + fontFamily: theme.custom.daoCard.fontFamily, + fontStyle: theme.custom.daoCard.fontStyle, + background: theme.custom.daoCard.labelColor, + WebkitBackgroundClip: 'text', + WebkitTextFillColor: 'transparent', + padding: '0px 18px', + marginBottom: '35px', + }); + + const DaoPropertyLabel = styled(MUITypography)({ + color: theme.custom.daoCard.propertyLabelColor, + lineHeight: theme.custom.daoCard.propertyLabelLineHeight, + fontSize: theme.custom.daoCard.propertLabelFontSize, + fontWeight: theme.custom.daoCard.propertyLabelFontWeight, + fontFamily: theme.custom.daoCard.fontFamily, + fontStyle: theme.custom.daoCard.fontStyle, + }); + + const DaoPropertyText = styled(MUITypography)({ + color: theme.custom.daoCard.propertyTextColor, + lineHeight: theme.custom.daoCard.propertyTextLineHeight, + fontSize: theme.custom.daoCard.propertyTextFontSize, + fontWeight: theme.custom.daoCard.propertyTextFontWeight, + fontFamily: theme.custom.daoCard.fontFamily, + fontStyle: theme.custom.daoCard.fontStyle, + }); + + const DaoProperty: React.FC = ({ propertyLabel, propertyText }) => { + return ( +
    + {propertyLabel} + {propertyText} +
    + ); + }; + + return ( + + {label} +
    +
    + +
    +
    + +
    +
    +
    + ); +}; diff --git a/packages/govern-console/src/components/DaoHeader/DaoHeader.stories.tsx b/packages/govern-console/src/components/DaoHeader/DaoHeader.stories.tsx new file mode 100644 index 000000000..540d1800a --- /dev/null +++ b/packages/govern-console/src/components/DaoHeader/DaoHeader.stories.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { DaoHeader, DaoHeaderProps } from './DaoHeader'; + +export default { + title: 'AN-DaoHeader', + component: DaoHeader, + argTypes: {}, +} as Meta; + +const Template: Story = (args) => ; + +export const ANDaoHeader = Template.bind({}); +ANDaoHeader.args = { + daoName: 'Aaragon Dao', + usdBalance: 59346, + ethBalance: 15.091, +}; diff --git a/packages/govern-console/src/components/DaoHeader/DaoHeader.tsx b/packages/govern-console/src/components/DaoHeader/DaoHeader.tsx new file mode 100644 index 000000000..25c4ec1aa --- /dev/null +++ b/packages/govern-console/src/components/DaoHeader/DaoHeader.tsx @@ -0,0 +1,94 @@ +import React from 'react'; +import { styled, useTheme } from '@material-ui/core/styles'; +import MUICard, { CardProps } from '@material-ui/core/Card'; +import MUITypography from '@material-ui/core/Typography'; + +export interface DaoHeaderProps { + /** + * Label of the card - name of the DAO + */ + daoName: string; + /** + * Value in Ether + */ + ethBalance: string | number; + /** + * Value in USD + */ + usdBalance: number | string; + /** + * logo of the DAO + */ + logoUrl?: string; +} + +export const DaoHeader: React.FC = ({ + daoName, + ethBalance, + usdBalance, + ...props +}) => { + const theme = useTheme(); + const DaoHeaderCard = styled(MUICard)({ + background: theme.custom.daoHeader.background, + width: '1344px', + height: '80px', + paddingLeft: '64px', + paddingTop: '55px', + paddingBottom: '63px', + }); + + const HeaderLabel = styled(MUITypography)({ + color: theme.custom.daoHeader.labelColor, + lineHeight: theme.custom.daoHeader.labelLineHeight, + fontSize: theme.custom.daoHeader.labelFontSize, + fontWeight: theme.custom.daoHeader.labelFontWeight, + fontFamily: theme.typography.fontFamily, + fontStyle: 'normal', + }); + + const HeaderValue = styled(MUITypography)({ + color: theme.custom.daoHeader.valueColor, + lineHeight: theme.custom.daoHeader.valueLineHeight, + fontSize: theme.custom.daoHeader.valueFontSize, + fontWeight: theme.custom.daoHeader.valueFontWeight, + fontFamily: theme.typography.fontFamily, + fontStyle: 'normal', + }); + + const HeaderUsdBalance = styled(MUITypography)({ + color: theme.custom.daoHeader.valueColor, + lineHeight: theme.custom.daoHeader.valueLineHeight, + fontSize: theme.custom.daoHeader.labelFontSize, + fontWeight: theme.custom.daoHeader.labelFontWeight, + fontFamily: theme.typography.fontFamily, + fontStyle: 'normal', + }); + + return ( + +
    +
    + DAO Name + {daoName} +
    +
    + ETH DAO Balance +
    + {ethBalance} + + {'$ ' + usdBalance} + +
    +
    +
    +
    + ); +}; diff --git a/packages/govern-console/src/components/Dropdown/Dropdown.stories.tsx b/packages/govern-console/src/components/Dropdown/Dropdown.stories.tsx new file mode 100644 index 000000000..43e577673 --- /dev/null +++ b/packages/govern-console/src/components/Dropdown/Dropdown.stories.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { Dropdown } from './Dropdown'; + +export default { + title: 'AN-Dropdown', + component: Dropdown, + argTypes: { + backgroundColor: { control: 'color' }, + }, +} as Meta; + +const Template: Story = (args) => ; + +export const DropdownExample = Template.bind({}); +DropdownExample.args = { + type: 'primary', + label: 'New proposal', + disabled: true, +}; diff --git a/packages/govern-console/src/components/Dropdown/Dropdown.tsx b/packages/govern-console/src/components/Dropdown/Dropdown.tsx new file mode 100644 index 000000000..b393522f7 --- /dev/null +++ b/packages/govern-console/src/components/Dropdown/Dropdown.tsx @@ -0,0 +1,106 @@ +import React, { useState } from 'react'; +import { deepPurple } from '@material-ui/core/colors'; +import { makeStyles, useTheme } from '@material-ui/core/styles'; +import Select from '@material-ui/core/Select'; +import MenuItem from '@material-ui/core/MenuItem'; +import FormControl from '@material-ui/core/FormControl'; +import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; + +// Original design here: https://github.com/siriwatknp/mui-treasury/issues/541 + +export const Dropdown: React.FC = ({ ...props }) => { + const theme = useTheme(); + const aaragonDropDownStyles = makeStyles({ + select: { + minWidth: 567, + background: theme.custom.white, + color: theme.custom.black, + fontWeight: 400, + border: `1px solid ${theme.custom.greyscale.soft}`, + borderRadius: 8, + padding: '13px 16px', + '&:focus': { + borderRadius: 8, + background: 'white', + borderColor: `${theme.custom.greyscale.soft}`, + }, + }, + icon: { + color: `${theme.custom.black}`, + right: 19, + position: 'absolute', + userSelect: 'none', + pointerEvents: 'none', + }, + paper: { + borderRadius: 8, + marginTop: 8, + }, + list: { + padding: '0px', + background: 'white', + border: `1px solid ${theme.custom.greyscale.soft}`, + '& li': { + fontWeight: 400, + padding: '13px 16px', + }, + '& li:hover': { + background: `${theme.custom.greyscale.light}`, + color: `${theme.custom.black}`, + }, + '& li.Mui-selected': { + color: `${theme.custom.black}`, + background: `${theme.custom.greyscale.light}`, + borderBottom: `1px solid ${theme.custom.greyscale.soft}`, + }, + '& li.Mui-selected:hover': { + background: `${theme.custom.greyscale.light}`, + }, + }, + }); + const classes = aaragonDropDownStyles(); + const [val, setVal] = useState(1); + + const handleChange = (event: any) => { + setVal(event.target.value); + }; + + const iconComponent = (props: any) => { + return ; + }; + + // moves the menu below the select input + const menuProps = { + classes: { + paper: classes.paper, + list: classes.list, + }, + anchorOrigin: { + vertical: 'bottom', + horizontal: 'left', + }, + transformOrigin: { + vertical: 'top', + horizontal: 'left', + }, + getContentAnchorEl: null, + }; + + return ( + + + + ); +}; diff --git a/packages/govern-console/src/components/Entity/Entity.tsx b/packages/govern-console/src/components/Entity/Entity.tsx deleted file mode 100644 index 87b2d7c86..000000000 --- a/packages/govern-console/src/components/Entity/Entity.tsx +++ /dev/null @@ -1,84 +0,0 @@ -import React from 'react' -import 'styled-components/macro' -import { cid as isCid } from 'is-ipfs' -import { hexToUtf8, isAddress } from 'web3-utils' -import { useChainId } from '../../lib/chain-id' -import { shortenAddress } from '../../lib/web3-utils' -import { RINKEBY } from '../../lib/known-chains' - -type EntityProps = { - address: string - type: 'address' | 'tx' - shorten?: boolean -} - -function composeEtherscanLink( - address: string, - chainId: number, - type: string, -): string { - return `https://${ - chainId === RINKEBY ? 'rinkeby.' : '' - }etherscan.io/${type}/${address}` -} - -function composeIpfsLink(cid: string): string { - return `https://ipfs.fleek.co/ipfs/${cid}` -} - -function detectAndComposeLinkType( - hash: string, - chainId: number, - type: string, -): string[] { - try { - if (isAddress(hash)) { - return [composeEtherscanLink(hash, chainId, type), 'ethereum'] - } - - if (isCid(hexToUtf8(hash))) { - return [composeIpfsLink(hexToUtf8(hash)), 'ipfs'] - } - } catch (err) { - return ['', ''] - } - - return ['', ''] -} - -function formatAddress( - address: string, - { shorten }: { shorten: boolean }, -): string { - try { - if (isAddress(address)) { - return shorten ? shortenAddress(address) : address - } - - if (isCid(hexToUtf8(address))) { - return hexToUtf8(address) - } - } catch (err) { - // Won't be a valid string anyway, so we return it - return address.length > 42 ? `${address.slice(0, 43)}...` : address - } - - // In this case, it's possible that it's really just plain text, so we decode it anyways. - return hexToUtf8(address) -} - -export default function Entity({ - address, - shorten = false, - type, -}: EntityProps): JSX.Element { - const { chainId } = useChainId() - const [url] = detectAndComposeLinkType(address, chainId, type) - return url ? ( -
    - {formatAddress(address, { shorten })} - - ) : ( - {address.length > 42 ? `${address.slice(0, 43)}...` : address} - ) -} diff --git a/packages/govern-console/src/components/FilteredActions/FilteredActions.tsx b/packages/govern-console/src/components/FilteredActions/FilteredActions.tsx deleted file mode 100644 index 1439a1c14..000000000 --- a/packages/govern-console/src/components/FilteredActions/FilteredActions.tsx +++ /dev/null @@ -1,223 +0,0 @@ -import React, { useCallback, useMemo, useState } from 'react' -import { useHistory, useParams } from 'react-router-dom' -import { fromUnixTime } from 'date-fns' -import 'styled-components/macro' -import { shortenAddress } from '../../lib/web3-utils' - -type FilteredActionsProps = { - actions: any[] - actionsPerPage: number -} - -export default function FilteredActions({ - actions, - actionsPerPage, -}: FilteredActionsProps): JSX.Element { - const [selected, setSelected] = useState(0) - const [selectedFilter, setSelectedFilter] = useState< - 'Executed' | 'Scheduled' | 'All' - >('All') - const handleChangeFilter = useCallback( - (filterValue: string) => { - if ( - filterValue !== 'All' && - filterValue !== 'Executed' && - filterValue !== 'Scheduled' - ) { - throw new Error('Invalid filter') - } - setSelectedFilter(filterValue) - }, - [setSelectedFilter], - ) - const first = useMemo(() => selected * actionsPerPage, [ - selected, - actionsPerPage, - ]) - const last = useMemo( - () => - Math.min(actions.length || 0, selected * actionsPerPage + actionsPerPage), - [actionsPerPage, actions, selected], - ) - - const filteredActions = actions.filter((action: any) => { - if (selectedFilter === 'All' || action.state === selectedFilter) { - return true - } - - return false - }) - - const pages = useMemo( - () => Math.ceil(filteredActions.length / actionsPerPage), - [filteredActions, actionsPerPage], - ) - - const filteredAndPaginatedActions = filteredActions.slice(first, last) - const paginationItems = useMemo(() => [...Array(pages)].map((_, i) => i), [ - pages, - ]) - - const hasActions = useMemo(() => actions.length > 0, [actions]) - - return ( -
    - -
    - {hasActions && - filteredAndPaginatedActions - .reverse() - .sort((a, b) => { - return b.payload.executionTime - a.payload.executionTime - }) - .map((action: any) => ( - - ))} -
    -
    div + div { - margin-left: 8px; - } - `} - > - {paginationItems.map((idx: number) => ( - setSelected(idx)} key={idx}> - {idx + 1} - - ))} -
    -
    - ) -} - -type PaginationItemProps = { - children: React.ReactNode - onClick: () => void -} -function PaginationItem({ children, onClick }: PaginationItemProps) { - return ( - - ) -} - -type ActionCardProps = { - executionTime: string - id: string - state: string -} - -function ActionCard({ executionTime, id, state }: ActionCardProps) { - const history = useHistory() - const { daoAddress }: any = useParams() - - const handleCardClick = useCallback(() => { - history.push(`${daoAddress}/view-action/${id}`) - }, [daoAddress, history, id]) - - return ( -
    -
    - {shortenAddress(id)} -
    -
    - {state} -
    - {fromUnixTime(Number(executionTime)).toLocaleDateString('en-US')} -
    - ) -} diff --git a/packages/govern-console/src/components/Frame/Frame.tsx b/packages/govern-console/src/components/Frame/Frame.tsx deleted file mode 100644 index 2e2ffa42d..000000000 --- a/packages/govern-console/src/components/Frame/Frame.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import * as React from 'react' -import 'styled-components/macro' - -type FrameProps = { - children: React.ReactNode -} - -export default function Frame({ children }: FrameProps): JSX.Element { - return ( -
    - {children} -
    - ) -} diff --git a/packages/govern-console/src/components/Header/Header.tsx b/packages/govern-console/src/components/Header/Header.tsx index d658a927c..6641b3a58 100644 --- a/packages/govern-console/src/components/Header/Header.tsx +++ b/packages/govern-console/src/components/Header/Header.tsx @@ -1,127 +1,57 @@ -import React, { useCallback, useEffect } from 'react' -import { ChainUnsupportedError } from 'use-wallet' -import 'styled-components/macro' -import Button from '../Button' -import { useChainId } from '../../lib/chain-id' -import { useWallet } from '../../Providers/Wallet' -import { useRouting } from '../../lib/routing' -import { shortenAddress, getNetworkName } from '../../lib/web3-utils' -import AragonSvg from '../../assets/aragon-metal.svg' - -function Header(): JSX.Element { - const { goHome } = useRouting() - const { chainId, updateChainId } = useChainId() - const { wallet } = useWallet() - - useEffect(() => { - if (wallet.error && wallet.error instanceof ChainUnsupportedError) { - alert( - `Wrong network. Please connect to the ${getNetworkName( - chainId, - )} network.`, - ) - } - }, [chainId, wallet]) - - const handleChangeChain = useCallback( - (event: { target: { value: string } }) => { - updateChainId(Number(event.target.value)) - }, - [updateChainId], - ) - - const handleWalletConnection = useCallback(() => { - wallet.status === 'connected' ? wallet.reset() : wallet.connect('injected') - }, [wallet]) +import React from 'react'; +import { styled, useTheme } from '@material-ui/core/styles'; +import Typography from '@material-ui/core/Typography'; +import governIcon from 'images/aragon-icon.svg'; +// import +const Header = ({}) => { + const HeaderWrapperDiv = styled('div')({ + height: '106px', + width: '100%', + display: 'block', + }); + const TitleText = styled(Typography)({ + fontFamily: 'Manrope', + fontStyle: 'normal', + fontWeight: 'normal', + fontSize: '18px', + lineHeight: '25px', + color: '#7483B2', + width: 'fit-content', + '& img': {}, + }); + const Navbar = styled('div')({ + display: 'flex', + width: '100%', + flexDirection: 'row', + justifyContent: 'flex-start', + height: '100%', + }); + const Title = styled('div')({ + display: 'block', + width: 'fit-content', + cursor: 'pointer', + }); + const Account = styled('div')({ + display: 'flex', + width: '100%', + flexDirection: 'row', + justifyContent: 'flex-start', + }); return ( -
    -
    - -
    -
    - - -
    -
    - ) -} + + + + <img src={governIcon} /> + <TitleText>Govern Console</TitleText> + + + {/* */} + {/* */} + + + + ); +}; -export default Header +export default Header; diff --git a/packages/govern-console/src/components/HelpButton/HelpButton.stories.tsx b/packages/govern-console/src/components/HelpButton/HelpButton.stories.tsx new file mode 100644 index 000000000..d81f9e43e --- /dev/null +++ b/packages/govern-console/src/components/HelpButton/HelpButton.stories.tsx @@ -0,0 +1,22 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { HelpButton, HelpButtonProps } from './HelpButton'; + +export default { + title: 'HelpButton', + component: HelpButton, + argTypes: { + backgroundColor: { control: 'color' }, + }, +} as Meta; + +const Template: Story = (args) => ; + +export const HelpBtn = Template.bind({}); +HelpBtn.args = { + helpText: + 'Question: as the result of the originating action being challenged. When the challenge is resolved?', +}; diff --git a/packages/govern-console/src/components/HelpButton/HelpButton.tsx b/packages/govern-console/src/components/HelpButton/HelpButton.tsx new file mode 100644 index 000000000..655243c22 --- /dev/null +++ b/packages/govern-console/src/components/HelpButton/HelpButton.tsx @@ -0,0 +1,62 @@ +import React, { ReactChild, ReactFragment, ReactPortal } from 'react'; +import { styled, useTheme } from '@material-ui/core/styles'; +import Button, { ButtonProps } from '@material-ui/core/Button'; +// import { div } from '@material-ui/core'; +import MuiTooltip from '@material-ui/core/Tooltip'; + +import helpIcon from '../../images/ds/help-icon.svg'; + +export interface HelpButtonProps extends ButtonProps { + /** + * Help text to show on hover + */ + helpText: boolean | ReactChild | ReactFragment | ReactPortal; +} + +export const HelpButton: React.FC = ({ helpText }) => { + const theme = useTheme(); + + const HelpButtonDiv = styled(Button)({ + height: 16, + width: 16, + minWidth: 16, + background: '#635BFF', + filter: 'drop-shadow(0px 3px 3px rgba(116, 131, 178, 0.25))', + boxSizing: 'border-box', + boxShadow: '0px 3px 3px 0px rgba(116, 131, 178, 0.25)', + borderRadius: '50%', + textTransform: 'none', + animation: 'none', + transition: 'none', + '&:hover': { + background: '#8991FF', + boxShadow: '0px 6px 6px rgba(180, 193, 228, 0.35)', + }, + '& .MuiTouchRipple-root': { + display: 'none', + }, + // ...style, + }); + + const HelpToolTip = styled(MuiTooltip)({ + '& .MuiTooltip-popper': { + maxWidth: 300, + background: theme.custom.light.violet, + }, + '& .MuiTooltip-tooltip': { + background: theme.custom.light.violet, + color: theme.custom.plain.amethyst, + }, + }); + + return ( + + + {}} onMouseLeave={() => {}} + /> + + + ); +}; diff --git a/packages/govern-console/src/components/Info/Info.tsx b/packages/govern-console/src/components/Info/Info.tsx deleted file mode 100644 index 9fb11dcb2..000000000 --- a/packages/govern-console/src/components/Info/Info.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import React from 'react' -import 'styled-components/macro' - -type InfoProps = { - mode: 'error' | 'info' | 'success' | '' - children: React.ReactNode -} - -function resolveColorsFromStatus(mode: string): string { - if (mode === 'error') { - return 'red' - } - if (mode === 'success') { - return 'green' - } - return 'cyan' -} - -export default function Info({ mode, children }: InfoProps): JSX.Element { - return ( -
    - {children} -
    - ) -} diff --git a/packages/govern-console/src/components/InputFields/InputField.stories.tsx b/packages/govern-console/src/components/InputFields/InputField.stories.tsx new file mode 100644 index 000000000..9d398d051 --- /dev/null +++ b/packages/govern-console/src/components/InputFields/InputField.stories.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { InputField } from './InputField'; + +export default { + title: 'AN-TextField', + component: InputField, + argTypes: { + backgroundColor: { control: 'color' }, + }, +} as Meta; + +const Template: Story = (args) => ; + +export const InputFieldExample = Template.bind({}); +InputFieldExample.args = { + type: 'primary', + label: 'New proposal', + disabled: true, +}; diff --git a/packages/govern-console/src/components/InputFields/InputField.tsx b/packages/govern-console/src/components/InputFields/InputField.tsx new file mode 100644 index 000000000..b4549a758 --- /dev/null +++ b/packages/govern-console/src/components/InputFields/InputField.tsx @@ -0,0 +1,93 @@ +import React from 'react'; +import { orange, purple } from '@material-ui/core/colors'; +import { makeStyles, useTheme } from '@material-ui/core/styles'; +import TextField from '@material-ui/core/TextField'; + +export interface InputFieldProps { + /** + * Label of the field + */ + label: string; + /** + * Placeholder + */ + placeholder: string; + /** + * Function to be called onChange + */ + onInputChange: (val: string) => void; + /** + * Height of the input box + */ + height: string; + /** + * Width of the input box + */ + width: string; +} + +export const InputField: React.FC = ({ + onInputChange, + placeholder, + label, + height, + width, + ...props +}) => { + const theme = useTheme(); + const inputLabelStyles = makeStyles({ + root: { + color: `${theme.custom.greyscale.medium}`, + // marginLeft: '0.75rem', + display: 'none', + }, + error: {}, + focused: {}, + shrink: { + transform: 'translate(0, 1.5px) scale(1)', + }, + }); + const inputLabelClasses = inputLabelStyles(); + + const inputBaseStyles = makeStyles({ + root: { + padding: '0px', + margin: '0px', + }, + input: { + padding: '0px 0px 0px 24px', + margin: '0px', + color: `${theme.custom.black}`, + fontSize: 16, + fontWeight: 400, + '&::placeholder': { + textOverflow: 'ellipsis !important', + color: `#7483AB`, + marginLeft: '24px', + }, + backgroundColor: theme.custom.white, + border: `2px solid #EFF1F7`, + borderRadius: '8px', + height: height || '46px', + width: width || '200px', + }, + formControl: { + 'label + &': { + padding: '13px 16px', + margin: '0px', + }, + }, + }); + const inputBaseClasses = inputBaseStyles(); + + return ( + onInputChange(e.target.value)} + /> + ); +}; diff --git a/packages/govern-console/src/components/Labels/Label.stories.tsx b/packages/govern-console/src/components/Labels/Label.stories.tsx new file mode 100644 index 000000000..d648b2bbe --- /dev/null +++ b/packages/govern-console/src/components/Labels/Label.stories.tsx @@ -0,0 +1,52 @@ +import React from 'react'; +// also exported from '@storybook/react' if you can deal with breaking changes in 6.1 + +import { Story, Meta } from '@storybook/react'; + +import { Label, LabelProps } from './Label'; + +export default { + title: 'AN-Label', + component: Label, + argTypes: { + labelColor: { control: 'green' }, + }, +} as Meta; + +const Template: Story = (args) =>