diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index 487678154..5dc0f78d1 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,5 +1,5 @@ { - "buildCommand": "build-lib", - "sandboxes": ["vanilla", "new"], - "node": "16" + "buildCommand": "build:lib", + "sandboxes": ["vanilla", "new"], + "node": "16" } diff --git a/.eslintignore b/.eslintignore index f142f4c13..c415747ef 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ coverage node_modules -dist \ No newline at end of file +dist +storybook-static \ No newline at end of file diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 768374901..10a117c02 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -27,7 +27,7 @@ jobs: run: npm install - name: Build Storybook - run: npm run build-storybook + run: npm run build:storybook - name: Publish on Chromatic run: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9fcab59e..b05405a3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: run: npm run generate-exports - name: build - run: npm run build-lib + run: npm run build:lib - name: release env: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9853a0b69..bbc7373a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,4 +19,4 @@ jobs: - run: npm install - name: Running all test coverage - run: npm run coverage + run: npm run test:coverage diff --git a/assets/table-value.json b/assets/table-value.json index be9127851..a647907da 100644 --- a/assets/table-value.json +++ b/assets/table-value.json @@ -1,444 +1,444 @@ { - "data": [ - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "003", - "prototype": "C", - "supTerrain": 300, - "supBuilding": 95.38, - "physicalValue": 1924851.5593287665, - "commercialValue": 4387984.64, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2325631.86, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "004", - "prototype": "A", - "supTerrain": 300, - "supBuilding": 62.58, - "physicalValue": 1262918.9618661585, - "commercialValue": 2652000, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1405560, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "101", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 69, - "physicalValue": 1392480.1592963398, - "commercialValue": 3868701.9, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2050412.01, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "102", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 68.36, - "physicalValue": 1379564.4012970694, - "commercialValue": 3831818.7, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2030863.91, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "103", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 61.8, - "physicalValue": 1247177.8818045477, - "commercialValue": 3607626.47, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1912042.03, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "104", - "prototype": "A", - "supTerrain": 300, - "supBuilding": 39.949999999999996, - "physicalValue": 806225.8313607068, - "commercialValue": 2424719.93, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1285101.56, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "201", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 69, - "physicalValue": 1392480.1592963398, - "commercialValue": 3946075.94, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2091420.25, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "202", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 68.36, - "physicalValue": 1379564.4012970694, - "commercialValue": 3908455.07, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2071481.19, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "203", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 61.8, - "physicalValue": 1247177.8818045477, - "commercialValue": 3544763.67, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1878724.75, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "204", - "prototype": "A", - "supTerrain": 300, - "supBuilding": 39.949999999999996, - "physicalValue": 806225.8313607068, - "commercialValue": 2424719.93, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1285101.56, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "301", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 69, - "physicalValue": 1392480.1592963398, - "commercialValue": 3984762.96, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2111924.37, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "302", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 68.36, - "physicalValue": 1379564.4012970694, - "commercialValue": 3946773.26, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2091789.83, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "303", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 61.8, - "physicalValue": 1247177.8818045477, - "commercialValue": 3642995.36, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1930787.54, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "304", - "prototype": "A", - "supTerrain": 300, - "supBuilding": 39.949999999999996, - "physicalValue": 806225.8313607068, - "commercialValue": 2448491.69, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1297700.6, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "401", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 69, - "physicalValue": 1392480.1592963398, - "commercialValue": 3984762.96, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2111924.37, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "402", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 68.36, - "physicalValue": 1379564.4012970694, - "commercialValue": 3946773.26, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2091789.83, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "403", - "prototype": "B", - "supTerrain": 300, - "supBuilding": 61.8, - "physicalValue": 1247177.8818045477, - "commercialValue": 3642995.36, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1930787.54, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "404", - "prototype": "A", - "supTerrain": 300, - "supBuilding": 39.949999999999996, - "physicalValue": 806225.8313607068, - "commercialValue": 2448491.69, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1297700.6, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "PH1", - "prototype": "C", - "supTerrain": 300, - "supBuilding": 113.6, - "physicalValue": 2292547.044870496, - "commercialValue": 5061000, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2682330, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "PH2", - "prototype": "C", - "supTerrain": 300, - "supBuilding": 113.7, - "physicalValue": 2294565.132057882, - "commercialValue": 5061000, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2682330, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "PH3", - "prototype": "C", - "supTerrain": 300, - "supBuilding": 99.50999999999999, - "physicalValue": 2008198.5601678083, - "commercialValue": 4304333.07, - "balance": 0, - "capacity": 0.53, - "releaseValue": 2281296.53, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - }, - { - "credit": "00330001", - "division": "Ciudad de los Deportes", - "street": "Eje 6 sur Tintoreto 74", - "number": 74, - "inside": "PH4", - "prototype": "A", - "supTerrain": 300, - "supBuilding": 39.050000000000004, - "physicalValue": 788063.0466742329, - "commercialValue": 2176037.12, - "balance": 0, - "capacity": 0.53, - "releaseValue": 1153299.67, - "returnPortion": 0, - "cancelled": "No", - "released": "No", - "historical": "No", - "inhabited": "No" - } - ] + "data": [ + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "003", + "prototype": "C", + "supTerrain": 300, + "supBuilding": 95.38, + "physicalValue": 1924851.5593287665, + "commercialValue": 4387984.64, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2325631.86, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "004", + "prototype": "A", + "supTerrain": 300, + "supBuilding": 62.58, + "physicalValue": 1262918.9618661585, + "commercialValue": 2652000, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1405560, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "101", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 69, + "physicalValue": 1392480.1592963398, + "commercialValue": 3868701.9, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2050412.01, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "102", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 68.36, + "physicalValue": 1379564.4012970694, + "commercialValue": 3831818.7, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2030863.91, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "103", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 61.8, + "physicalValue": 1247177.8818045477, + "commercialValue": 3607626.47, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1912042.03, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "104", + "prototype": "A", + "supTerrain": 300, + "supBuilding": 39.949999999999996, + "physicalValue": 806225.8313607068, + "commercialValue": 2424719.93, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1285101.56, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "201", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 69, + "physicalValue": 1392480.1592963398, + "commercialValue": 3946075.94, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2091420.25, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "202", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 68.36, + "physicalValue": 1379564.4012970694, + "commercialValue": 3908455.07, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2071481.19, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "203", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 61.8, + "physicalValue": 1247177.8818045477, + "commercialValue": 3544763.67, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1878724.75, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "204", + "prototype": "A", + "supTerrain": 300, + "supBuilding": 39.949999999999996, + "physicalValue": 806225.8313607068, + "commercialValue": 2424719.93, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1285101.56, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "301", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 69, + "physicalValue": 1392480.1592963398, + "commercialValue": 3984762.96, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2111924.37, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "302", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 68.36, + "physicalValue": 1379564.4012970694, + "commercialValue": 3946773.26, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2091789.83, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "303", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 61.8, + "physicalValue": 1247177.8818045477, + "commercialValue": 3642995.36, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1930787.54, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "304", + "prototype": "A", + "supTerrain": 300, + "supBuilding": 39.949999999999996, + "physicalValue": 806225.8313607068, + "commercialValue": 2448491.69, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1297700.6, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "401", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 69, + "physicalValue": 1392480.1592963398, + "commercialValue": 3984762.96, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2111924.37, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "402", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 68.36, + "physicalValue": 1379564.4012970694, + "commercialValue": 3946773.26, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2091789.83, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "403", + "prototype": "B", + "supTerrain": 300, + "supBuilding": 61.8, + "physicalValue": 1247177.8818045477, + "commercialValue": 3642995.36, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1930787.54, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "404", + "prototype": "A", + "supTerrain": 300, + "supBuilding": 39.949999999999996, + "physicalValue": 806225.8313607068, + "commercialValue": 2448491.69, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1297700.6, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "PH1", + "prototype": "C", + "supTerrain": 300, + "supBuilding": 113.6, + "physicalValue": 2292547.044870496, + "commercialValue": 5061000, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2682330, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "PH2", + "prototype": "C", + "supTerrain": 300, + "supBuilding": 113.7, + "physicalValue": 2294565.132057882, + "commercialValue": 5061000, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2682330, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "PH3", + "prototype": "C", + "supTerrain": 300, + "supBuilding": 99.50999999999999, + "physicalValue": 2008198.5601678083, + "commercialValue": 4304333.07, + "balance": 0, + "capacity": 0.53, + "releaseValue": 2281296.53, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + }, + { + "credit": "00330001", + "division": "Ciudad de los Deportes", + "street": "Eje 6 sur Tintoreto 74", + "number": 74, + "inside": "PH4", + "prototype": "A", + "supTerrain": 300, + "supBuilding": 39.050000000000004, + "physicalValue": 788063.0466742329, + "commercialValue": 2176037.12, + "balance": 0, + "capacity": 0.53, + "releaseValue": 1153299.67, + "returnPortion": 0, + "cancelled": "No", + "released": "No", + "historical": "No", + "inhabited": "No" + } + ] } diff --git a/package-lock.json b/package-lock.json index 1bf893917..4956cada3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,7 +46,6 @@ "autoprefixer": "10.4.0", "babel-loader": "8.2.3", "chromatic": "6.7.4", - "downlevel-dts": "^0.10.0", "esbuild": "0.14.53", "eslint": "^8.36.0", "eslint-config-prettier": "^8.8.0", @@ -61,7 +60,6 @@ "prettier": "2.4.1", "react": "17.0.0", "react-dom": "17.0.0", - "rimraf": "3.0.2", "rollup": "2.40.0", "rollup-plugin-dts": "4.2.2", "rollup-plugin-peer-deps-external": "2.2.4", @@ -2086,22 +2084,6 @@ "node": ">=10.0.0" } }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.14.53.tgz", - "integrity": "sha512-W2dAL6Bnyn4xa/QRSU3ilIK4EzD5wgYXKXJiS1HDF5vU3675qc2bvFyLwbUcdmssDveyndy7FbitrCoiV/eMLg==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.3.0.tgz", @@ -11385,53 +11367,6 @@ "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", "dev": true }, - "node_modules/downlevel-dts": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/downlevel-dts/-/downlevel-dts-0.10.1.tgz", - "integrity": "sha512-bwY63Y0Gfwotcly4vU6rB66m5txvfQzDGd1Gai9E9orqsDIswXKjkdR18Tm6TidnAk9+J5N68a5VMDO2bsQCKQ==", - "dev": true, - "dependencies": { - "semver": "^7.3.2", - "shelljs": "^0.8.3", - "typescript": "next" - }, - "bin": { - "downlevel-dts": "index.js" - } - }, - "node_modules/downlevel-dts/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/downlevel-dts/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/downlevel-dts/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -11775,54 +11710,6 @@ "esbuild-windows-arm64": "0.14.53" } }, - "node_modules/esbuild-android-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.53.tgz", - "integrity": "sha512-fIL93sOTnEU+NrTAVMIKiAw0YH22HWCAgg4N4Z6zov2t0kY9RAJ50zY9ZMCQ+RT6bnOfDt8gCTnt/RaSNA2yRA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-android-arm64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.53.tgz", - "integrity": "sha512-PC7KaF1v0h/nWpvlU1UMN7dzB54cBH8qSsm7S9mkwFA1BXpaEOufCg8hdoEI1jep0KeO/rjZVWrsH8+q28T77A==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-darwin-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.53.tgz", - "integrity": "sha512-gE7P5wlnkX4d4PKvLBUgmhZXvL7lzGRLri17/+CmmCzfncIgq8lOBvxGMiQ4xazplhxq+72TEohyFMZLFxuWvg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/esbuild-darwin-arm64": { "version": "0.14.53", "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.53.tgz", @@ -11839,262 +11726,6 @@ "node": ">=12" } }, - "node_modules/esbuild-freebsd-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.53.tgz", - "integrity": "sha512-WkdJa8iyrGHyKiPF4lk0MiOF87Q2SkE+i+8D4Cazq3/iqmGPJ6u49je300MFi5I2eUsQCkaOWhpCVQMTKGww2w==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-freebsd-arm64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.53.tgz", - "integrity": "sha512-9T7WwCuV30NAx0SyQpw8edbKvbKELnnm1FHg7gbSYaatH+c8WJW10g/OdM7JYnv7qkimw2ZTtSA+NokOLd2ydQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-32": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.53.tgz", - "integrity": "sha512-VGanLBg5en2LfGDgLEUxQko2lqsOS7MTEWUi8x91YmsHNyzJVT/WApbFFx3MQGhkf+XdimVhpyo5/G0PBY91zg==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.53.tgz", - "integrity": "sha512-pP/FA55j/fzAV7N9DF31meAyjOH6Bjuo3aSKPh26+RW85ZEtbJv9nhoxmGTd9FOqjx59Tc1ZbrJabuiXlMwuZQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-arm": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.53.tgz", - "integrity": "sha512-/u81NGAVZMopbmzd21Nu/wvnKQK3pT4CrvQ8BTje1STXcQAGnfyKgQlj3m0j2BzYbvQxSy+TMck4TNV2onvoPA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-arm64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.53.tgz", - "integrity": "sha512-GDmWITT+PMsjCA6/lByYk7NyFssW4Q6in32iPkpjZ/ytSyH+xeEx8q7HG3AhWH6heemEYEWpTll/eui3jwlSnw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-mips64le": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.53.tgz", - "integrity": "sha512-d6/XHIQW714gSSp6tOOX2UscedVobELvQlPMkInhx1NPz4ThZI9uNLQ4qQJHGBGKGfu+rtJsxM4NVHLhnNRdWQ==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-ppc64le": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.53.tgz", - "integrity": "sha512-ndnJmniKPCB52m+r6BtHHLAOXw+xBCWIxNnedbIpuREOcbSU/AlyM/2dA3BmUQhsHdb4w3amD5U2s91TJ3MzzA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-riscv64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.53.tgz", - "integrity": "sha512-yG2sVH+QSix6ct4lIzJj329iJF3MhloLE6/vKMQAAd26UVPVkhMFqFopY+9kCgYsdeWvXdPgmyOuKa48Y7+/EQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-s390x": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.53.tgz", - "integrity": "sha512-OCJlgdkB+XPYndHmw6uZT7jcYgzmx9K+28PVdOa/eLjdoYkeAFvH5hTwX4AXGLZLH09tpl4bVsEtvuyUldaNCg==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-netbsd-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.53.tgz", - "integrity": "sha512-gp2SB+Efc7MhMdWV2+pmIs/Ja/Mi5rjw+wlDmmbIn68VGXBleNgiEZG+eV2SRS0kJEUyHNedDtwRIMzaohWedQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-openbsd-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.53.tgz", - "integrity": "sha512-eKQ30ZWe+WTZmteDYg8S+YjHV5s4iTxeSGhJKJajFfQx9TLZJvsJX0/paqwP51GicOUruFpSUAs2NCc0a4ivQQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-sunos-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.53.tgz", - "integrity": "sha512-OWLpS7a2FrIRukQqcgQqR1XKn0jSJoOdT+RlhAxUoEQM/IpytS3FXzCJM6xjUYtpO5GMY0EdZJp+ur2pYdm39g==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-32": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.53.tgz", - "integrity": "sha512-m14XyWQP5rwGW0tbEfp95U6A0wY0DYPInWBB7D69FAXUpBpBObRoGTKRv36lf2RWOdE4YO3TNvj37zhXjVL5xg==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.53.tgz", - "integrity": "sha512-s9skQFF0I7zqnQ2K8S1xdLSfZFsPLuOGmSx57h2btSEswv0N0YodYvqLcJMrNMXh6EynOmWD7rz+0rWWbFpIHQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-arm64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.53.tgz", - "integrity": "sha512-E+5Gvb+ZWts+00T9II6wp2L3KG2r3iGxByqd/a1RmLmYWVsSVUjkvIxZuJ3hYTIbhLkH5PRwpldGTKYqVz0nzQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -23238,18 +22869,6 @@ "node": ">=8.10.0" } }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dev": true, - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/redent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", @@ -24941,32 +24560,6 @@ "node": ">=8" } }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dev": true, - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/shelljs/node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", @@ -30230,13 +29823,6 @@ "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", "dev": true }, - "@esbuild/linux-loong64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.14.53.tgz", - "integrity": "sha512-W2dAL6Bnyn4xa/QRSU3ilIK4EzD5wgYXKXJiS1HDF5vU3675qc2bvFyLwbUcdmssDveyndy7FbitrCoiV/eMLg==", - "dev": true, - "optional": true - }, "@eslint-community/eslint-utils": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.3.0.tgz", @@ -37303,43 +36889,6 @@ "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", "dev": true }, - "downlevel-dts": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/downlevel-dts/-/downlevel-dts-0.10.1.tgz", - "integrity": "sha512-bwY63Y0Gfwotcly4vU6rB66m5txvfQzDGd1Gai9E9orqsDIswXKjkdR18Tm6TidnAk9+J5N68a5VMDO2bsQCKQ==", - "dev": true, - "requires": { - "semver": "^7.3.2", - "shelljs": "^0.8.3", - "typescript": "next" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, "duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -37638,27 +37187,6 @@ "esbuild-windows-arm64": "0.14.53" } }, - "esbuild-android-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.53.tgz", - "integrity": "sha512-fIL93sOTnEU+NrTAVMIKiAw0YH22HWCAgg4N4Z6zov2t0kY9RAJ50zY9ZMCQ+RT6bnOfDt8gCTnt/RaSNA2yRA==", - "dev": true, - "optional": true - }, - "esbuild-android-arm64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.53.tgz", - "integrity": "sha512-PC7KaF1v0h/nWpvlU1UMN7dzB54cBH8qSsm7S9mkwFA1BXpaEOufCg8hdoEI1jep0KeO/rjZVWrsH8+q28T77A==", - "dev": true, - "optional": true - }, - "esbuild-darwin-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.53.tgz", - "integrity": "sha512-gE7P5wlnkX4d4PKvLBUgmhZXvL7lzGRLri17/+CmmCzfncIgq8lOBvxGMiQ4xazplhxq+72TEohyFMZLFxuWvg==", - "dev": true, - "optional": true - }, "esbuild-darwin-arm64": { "version": "0.14.53", "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.53.tgz", @@ -37666,118 +37194,6 @@ "dev": true, "optional": true }, - "esbuild-freebsd-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.53.tgz", - "integrity": "sha512-WkdJa8iyrGHyKiPF4lk0MiOF87Q2SkE+i+8D4Cazq3/iqmGPJ6u49je300MFi5I2eUsQCkaOWhpCVQMTKGww2w==", - "dev": true, - "optional": true - }, - "esbuild-freebsd-arm64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.53.tgz", - "integrity": "sha512-9T7WwCuV30NAx0SyQpw8edbKvbKELnnm1FHg7gbSYaatH+c8WJW10g/OdM7JYnv7qkimw2ZTtSA+NokOLd2ydQ==", - "dev": true, - "optional": true - }, - "esbuild-linux-32": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.53.tgz", - "integrity": "sha512-VGanLBg5en2LfGDgLEUxQko2lqsOS7MTEWUi8x91YmsHNyzJVT/WApbFFx3MQGhkf+XdimVhpyo5/G0PBY91zg==", - "dev": true, - "optional": true - }, - "esbuild-linux-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.53.tgz", - "integrity": "sha512-pP/FA55j/fzAV7N9DF31meAyjOH6Bjuo3aSKPh26+RW85ZEtbJv9nhoxmGTd9FOqjx59Tc1ZbrJabuiXlMwuZQ==", - "dev": true, - "optional": true - }, - "esbuild-linux-arm": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.53.tgz", - "integrity": "sha512-/u81NGAVZMopbmzd21Nu/wvnKQK3pT4CrvQ8BTje1STXcQAGnfyKgQlj3m0j2BzYbvQxSy+TMck4TNV2onvoPA==", - "dev": true, - "optional": true - }, - "esbuild-linux-arm64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.53.tgz", - "integrity": "sha512-GDmWITT+PMsjCA6/lByYk7NyFssW4Q6in32iPkpjZ/ytSyH+xeEx8q7HG3AhWH6heemEYEWpTll/eui3jwlSnw==", - "dev": true, - "optional": true - }, - "esbuild-linux-mips64le": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.53.tgz", - "integrity": "sha512-d6/XHIQW714gSSp6tOOX2UscedVobELvQlPMkInhx1NPz4ThZI9uNLQ4qQJHGBGKGfu+rtJsxM4NVHLhnNRdWQ==", - "dev": true, - "optional": true - }, - "esbuild-linux-ppc64le": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.53.tgz", - "integrity": "sha512-ndnJmniKPCB52m+r6BtHHLAOXw+xBCWIxNnedbIpuREOcbSU/AlyM/2dA3BmUQhsHdb4w3amD5U2s91TJ3MzzA==", - "dev": true, - "optional": true - }, - "esbuild-linux-riscv64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.53.tgz", - "integrity": "sha512-yG2sVH+QSix6ct4lIzJj329iJF3MhloLE6/vKMQAAd26UVPVkhMFqFopY+9kCgYsdeWvXdPgmyOuKa48Y7+/EQ==", - "dev": true, - "optional": true - }, - "esbuild-linux-s390x": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.53.tgz", - "integrity": "sha512-OCJlgdkB+XPYndHmw6uZT7jcYgzmx9K+28PVdOa/eLjdoYkeAFvH5hTwX4AXGLZLH09tpl4bVsEtvuyUldaNCg==", - "dev": true, - "optional": true - }, - "esbuild-netbsd-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.53.tgz", - "integrity": "sha512-gp2SB+Efc7MhMdWV2+pmIs/Ja/Mi5rjw+wlDmmbIn68VGXBleNgiEZG+eV2SRS0kJEUyHNedDtwRIMzaohWedQ==", - "dev": true, - "optional": true - }, - "esbuild-openbsd-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.53.tgz", - "integrity": "sha512-eKQ30ZWe+WTZmteDYg8S+YjHV5s4iTxeSGhJKJajFfQx9TLZJvsJX0/paqwP51GicOUruFpSUAs2NCc0a4ivQQ==", - "dev": true, - "optional": true - }, - "esbuild-sunos-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.53.tgz", - "integrity": "sha512-OWLpS7a2FrIRukQqcgQqR1XKn0jSJoOdT+RlhAxUoEQM/IpytS3FXzCJM6xjUYtpO5GMY0EdZJp+ur2pYdm39g==", - "dev": true, - "optional": true - }, - "esbuild-windows-32": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.53.tgz", - "integrity": "sha512-m14XyWQP5rwGW0tbEfp95U6A0wY0DYPInWBB7D69FAXUpBpBObRoGTKRv36lf2RWOdE4YO3TNvj37zhXjVL5xg==", - "dev": true, - "optional": true - }, - "esbuild-windows-64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.53.tgz", - "integrity": "sha512-s9skQFF0I7zqnQ2K8S1xdLSfZFsPLuOGmSx57h2btSEswv0N0YodYvqLcJMrNMXh6EynOmWD7rz+0rWWbFpIHQ==", - "dev": true, - "optional": true - }, - "esbuild-windows-arm64": { - "version": "0.14.53", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.53.tgz", - "integrity": "sha512-E+5Gvb+ZWts+00T9II6wp2L3KG2r3iGxByqd/a1RmLmYWVsSVUjkvIxZuJ3hYTIbhLkH5PRwpldGTKYqVz0nzQ==", - "dev": true, - "optional": true - }, "escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -46007,15 +45423,6 @@ "picomatch": "^2.2.1" } }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dev": true, - "requires": { - "resolve": "^1.1.6" - } - }, "redent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", @@ -47346,25 +46753,6 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, - "shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dev": true, - "requires": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "dependencies": { - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true - } - } - }, "side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", diff --git a/package.json b/package.json index ead60efa4..dda7ef3fb 100644 --- a/package.json +++ b/package.json @@ -31,23 +31,21 @@ "npm": "7 || 8" }, "scripts": { - "serve": "vite preview", - "storybook": "start-storybook -p 6006", "test": "vitest run", + "build:lib": "rollup -c", + "lint": "eslint . --ext=.ts,.tsx,.js,.jsx,.json", + "lint:fix": "eslint . --ext=.ts,.tsx,.js,.jsx,.json --fix", + "storybook": "start-storybook -p 6006", "test:watch": "vitest", - "coverage": "vitest run --coverage", - "prebuild-lib": "rimraf dist", - "build-lib": "rollup -c", - "build-storybook": "build-storybook", + "test:coverage": "vitest run --coverage", + "prebuild:lib": "rm -rf dist", + "build:storybook": "build-storybook", "format": "prettier --write ./src", - "lint": "eslint . --ext=.ts,.tsx", - "lint:fix": "eslint . --ext=.ts,.tsx --fix", "prepare": "husky install", + "pre-commit": "npm run lint:fix", "commit": "git cz", "add-co": "git add . && git cz", - "pre-commit": "npm run lint:fix", "pre-push": "npm run test", - "copy": "downlevel-dts dist dist/types", "clean": "rm -rf ./node_modules && rm -f package-lock.json", "semantic-release": "semantic-release", "generate-exports": "node ./scripts/combinePackage.js" @@ -94,7 +92,6 @@ "autoprefixer": "10.4.0", "babel-loader": "8.2.3", "chromatic": "6.7.4", - "downlevel-dts": "^0.10.0", "esbuild": "0.14.53", "eslint": "^8.36.0", "eslint-config-prettier": "^8.8.0", @@ -109,7 +106,6 @@ "prettier": "2.4.1", "react": "17.0.0", "react-dom": "17.0.0", - "rimraf": "3.0.2", "rollup": "2.40.0", "rollup-plugin-dts": "4.2.2", "rollup-plugin-peer-deps-external": "2.2.4", diff --git a/rollup.config.js b/rollup.config.js index 70e2cf873..d1b897e9d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,5 +1,6 @@ +/* eslint-disable camelcase */ import babelPlugin from '@rollup/plugin-babel' -import resolve from '@rollup/plugin-node-resolve' +import nodeResolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' import dts from 'rollup-plugin-dts' @@ -12,15 +13,16 @@ import { terser } from 'rollup-plugin-terser' import { createModule, getBabelOptions } from './scripts/rollup.cfg' -const extensions = ['.js', '.ts', '.tsx'] - const plugs = [ peerDepsExternal(), postcss({ extract: 'dd360.css', + plugins: [require('cssnano')], extensions: ['.css'] }), - resolve({ extensions }), + nodeResolve({ + extensions: ['.js', '.ts', '.tsx'] + }), commonjs(), ts({ tsconfig: './scripts/tsconfig.build.json', @@ -28,7 +30,27 @@ const plugs = [ declarationDir: 'dist' }), svg(), - terser(), + terser({ + compress: { + drop_console: true, + passes: 2, + unsafe: true, + unsafe_arrows: true, + unsafe_comps: true, + unsafe_Function: true, + unsafe_math: true, + unsafe_methods: true, + unsafe_proto: true, + unsafe_regexp: true, + unsafe_symbols: true, + unsafe_undefined: true, + warnings: false + }, + format: { + comments: false + }, + mangle: true + }), visualizer({ filename: 'bundle-analysis.html' }) diff --git a/scripts/rollup.cfg.js b/scripts/rollup.cfg.js index a96b81916..34d8ca621 100644 --- a/scripts/rollup.cfg.js +++ b/scripts/rollup.cfg.js @@ -84,7 +84,15 @@ export function createModule({ plugins, format = 'esm', ...otherProps }) { sourcemap: true }, plugins: plugins, + cache: true, + treeshake: { + moduleSideEffects: false + }, external: ['react', 'react-dom', '@popperjs/core'], + onwarn: (warning, warn) => { + // if (warning.code === 'CIRCULAR_DEPENDENCY') return + warn(warning) + }, ...otherProps } diff --git a/scripts/tsconfig.build.json b/scripts/tsconfig.build.json index 50f80e4e1..087932781 100644 --- a/scripts/tsconfig.build.json +++ b/scripts/tsconfig.build.json @@ -1,4 +1,15 @@ { - "extends": "../tsconfig.json", - "exclude": ["node_modules", "build", "dist", "scripts", "tests", "src/stories/**"] + "extends": "../tsconfig.json", + "exclude": [ + "node_modules", + "build", + "dist", + "scripts", + "tests", + "src/stories/**", + "**/*.test.ts", + "**/*.test.tsx", + "**/*.spec.ts", + "**/*.spec.tsx" + ] } diff --git a/src/components/AutoComplete/AutoComplete.tsx b/src/components/AutoComplete/AutoComplete.tsx index e763f8b47..f8797ae4a 100644 --- a/src/components/AutoComplete/AutoComplete.tsx +++ b/src/components/AutoComplete/AutoComplete.tsx @@ -1,11 +1,11 @@ -import React, { useEffect, useState } from 'react' -import Divider from 'components/Divider' -import Text from 'components/Typography' -import Input, { InputProps } from '../Form/Input' - +import { useEffect, useState, ChangeEvent, useRef } from 'react' import { composeClasses } from 'lib/classes' -type Item = { +import Divider from '../Divider' +import Text from '../Typography' +import Input, { InputProps } from '../Form/Input' + +export type AutocompleteItem = { name: string id: string | number } @@ -14,19 +14,19 @@ export interface AutoCompleteProps extends InputProps { label?: string canFindText?: string isLoading?: boolean - items: Array> + items: Array> loadingText?: string - onSelectItem?: (item: Partial) => void + onSelectItem?: (item: Partial) => void value?: string removeSelectedItem?: () => void role?: string isCloseOnBlur?: boolean className?: string - onChange?: (event: React.ChangeEvent) => void + onChange?: (event: ChangeEvent) => void disabled?: boolean } -function AutoComplete({ +export default function AutoComplete({ value, onSelectItem, role, @@ -43,14 +43,14 @@ function AutoComplete({ ...otherProps }: AutoCompleteProps) { const [isActiveAutoComplete, setIsActiveAutoComplete] = useState(false) - const [itemName, setItemName] = useState(value ?? '') + const [itemName, setItemName] = useState(value || '') + + const timer = useRef() const onBlur = () => { - if (isCloseOnBlur) { - setTimeout(() => { - setIsActiveAutoComplete(false) - }, 300) - } + if (!isCloseOnBlur) return + if (timer.current) clearTimeout(timer.current) + timer.current = setTimeout(() => setIsActiveAutoComplete(false), 300) } const onFocus = () => { @@ -67,7 +67,7 @@ function AutoComplete({ } } - const handleSelectedItem = (item: Item) => { + const handleSelectedItem = (item: AutocompleteItem) => { onSelectItem && onSelectItem(item) setItemName(item.name) setIsActiveAutoComplete(false) @@ -121,13 +121,13 @@ function AutoComplete({ )} - {!isLoading && items.length > 0 && ( + {!isLoading && items?.length > 0 && (
    {items.map((item, key) => (
  • handleSelectedItem(item as Item)} + onClick={() => handleSelectedItem(item as AutocompleteItem)} key={item.id || key} >
    @@ -156,5 +156,3 @@ function AutoComplete({
    ) } - -export default AutoComplete diff --git a/src/components/Breadcrumbs/Breadcrumbs.tsx b/src/components/Breadcrumbs/Breadcrumbs.tsx index 3baaaee9b..cc4b7daa7 100644 --- a/src/components/Breadcrumbs/Breadcrumbs.tsx +++ b/src/components/Breadcrumbs/Breadcrumbs.tsx @@ -1,5 +1,5 @@ import React, { forwardRef, ReactNode, FC } from 'react' -import { ChevronRightIcon } from '@heroicons/react/outline' +import ChevronRightIcon from '@heroicons/react/outline/ChevronRightIcon' import { composeClasses } from 'lib/classes' export interface BreadcrumbsProps extends React.HTMLProps { diff --git a/src/components/FileViewer/FileViewer.tsx b/src/components/FileViewer/FileViewer.tsx index 76945839b..7b7da9fa4 100644 --- a/src/components/FileViewer/FileViewer.tsx +++ b/src/components/FileViewer/FileViewer.tsx @@ -3,7 +3,7 @@ import { composeClasses } from 'lib/classes' import { composeStyles } from 'lib/styles' import { Portal } from 'common/Portal' -import { DownloadIcon } from '@heroicons/react/outline' +import DownloadIcon from '@heroicons/react/outline/DownloadIcon' import Button, { IButtonProps } from '../Buttons/Button' import Text from '../Typography/Text' import Spinner from '../Spinner' diff --git a/src/hooks/useTooltip.ts b/src/hooks/useTooltip.ts index 7a7e104a1..61544c8ba 100644 --- a/src/hooks/useTooltip.ts +++ b/src/hooks/useTooltip.ts @@ -1,5 +1,8 @@ import { useState, useRef, useEffect, useCallback } from 'react' -import { createPopper, Instance, preventOverflow, flip } from '@popperjs/core' +import { createPopper, Instance } from '@popperjs/core/lib/popper-lite.js' +import preventOverflow from '@popperjs/core/lib/modifiers/preventOverflow.js' +import flip from '@popperjs/core/lib/modifiers/flip.js' + import { PositionVariants } from '../interfaces/types' export interface TooltipParams { diff --git a/tsconfig.json b/tsconfig.json index e07a589ff..cbe50069b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,17 +21,20 @@ "common/*": ["common/*"], "hooks/*": ["hooks/*"], "lib/*": ["lib/*"], - "theme/*": ["theme/*"], + "theme/*": ["theme/*"] } }, - "include": [ - "src/common", - "src/hooks", - "src/interfaces", - "src/index.ts", - "src/components", - "src/global.d.ts" + "include": ["src/*"], + "exclude": [ + "node_modules", + "build", + "dist", + "scripts", + "website", + "**/*.test.ts", + "**/*.test.tsx", + "**/*.spec.ts", + "**/*.spec.tsx" ], - "exclude": ["node_modules", "build", "dist", "scripts", "website"], "types": ["typePatches"] }