@cdc/map 2.6.3 → 9.22.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/cdcmap.js +32 -18
  2. package/examples/bubble-us.json +363 -0
  3. package/examples/bubble-world.json +427 -0
  4. package/examples/default-county.json +64 -12
  5. package/examples/default-hex.json +477 -0
  6. package/examples/default-usa-regions.json +118 -0
  7. package/examples/default-usa.json +1 -1
  8. package/examples/default-world-data.json +1450 -0
  9. package/examples/default-world.json +5 -3
  10. package/examples/example-city-state.json +46 -1
  11. package/examples/gallery/categorical-qualitative.json +797 -0
  12. package/examples/gallery/categorical-scale-based.json +739 -0
  13. package/examples/gallery/city-state.json +479 -0
  14. package/examples/gallery/county.json +22731 -0
  15. package/examples/gallery/equal-interval.json +1027 -0
  16. package/examples/gallery/equal-number.json +1027 -0
  17. package/examples/gallery/filterable.json +909 -0
  18. package/examples/gallery/hex-filtered.json +420 -0
  19. package/examples/gallery/hex.json +413 -0
  20. package/examples/gallery/single-state.json +21402 -0
  21. package/examples/gallery/world.json +1592 -0
  22. package/examples/private/atsdr.json +439 -0
  23. package/examples/private/atsdr_new.json +436 -0
  24. package/examples/private/bubble.json +285 -0
  25. package/examples/private/city-state.json +428 -0
  26. package/examples/private/cty-issue.json +42768 -0
  27. package/examples/private/default-usa.json +460 -0
  28. package/examples/private/default-world-data.json +1444 -0
  29. package/examples/private/default.json +968 -0
  30. package/examples/private/legend-issue.json +1 -0
  31. package/examples/private/map-rounding-error.json +42759 -0
  32. package/examples/private/map.csv +60 -0
  33. package/examples/private/mdx.json +210 -0
  34. package/examples/private/monkeypox.json +376 -0
  35. package/examples/private/regions.json +52 -0
  36. package/examples/private/valid-data-map.csv +59 -0
  37. package/examples/private/wcmsrd-13881-data.json +2858 -0
  38. package/examples/private/wcmsrd-13881.json +5823 -0
  39. package/examples/private/wcmsrd-14492-data.json +292 -0
  40. package/examples/private/wcmsrd-14492.json +114 -0
  41. package/examples/private/wcmsrd-test.json +268 -0
  42. package/examples/private/world.json +1580 -0
  43. package/examples/private/worldmap.json +1490 -0
  44. package/package.json +51 -50
  45. package/src/CdcMap.js +496 -158
  46. package/src/components/BubbleList.js +244 -0
  47. package/src/components/CityList.js +41 -5
  48. package/src/components/CountyMap.js +16 -6
  49. package/src/components/DataTable.js +25 -18
  50. package/src/components/EditorPanel.js +915 -404
  51. package/src/components/Geo.js +1 -1
  52. package/src/components/Modal.js +2 -1
  53. package/src/components/NavigationMenu.js +4 -3
  54. package/src/components/Sidebar.js +14 -19
  55. package/src/components/SingleStateMap.js +11 -5
  56. package/src/components/UsaMap.js +103 -36
  57. package/src/components/UsaRegionMap.js +320 -0
  58. package/src/components/WorldMap.js +116 -34
  59. package/src/data/country-coordinates.js +250 -0
  60. package/src/data/{dfc-map.json → county-map.json} +0 -0
  61. package/src/data/initial-state.js +20 -2
  62. package/src/data/state-coordinates.js +55 -0
  63. package/src/data/supported-geos.js +96 -15
  64. package/src/data/us-regions-topo-2.json +360525 -0
  65. package/src/data/us-regions-topo.json +37894 -0
  66. package/src/hooks/useColorPalette.ts +96 -0
  67. package/src/index.html +7 -4
  68. package/src/scss/editor-panel.scss +78 -57
  69. package/src/scss/main.scss +1 -1
  70. package/src/scss/map.scss +112 -2
  71. package/src/scss/sidebar.scss +2 -1
  72. package/src/data/color-palettes.js +0 -200
  73. package/src/images/map-folded.svg +0 -1
package/package.json CHANGED
@@ -1,52 +1,53 @@
1
1
  {
2
- "name": "@cdc/map",
3
- "version": "2.6.3",
4
- "description": "React component for visualizing tabular data on a map of the United States or the world.",
5
- "main": "dist/cdcmap",
6
- "scripts": {
7
- "start": "npx webpack serve --mode development -c ../../webpack.config.js",
8
- "build": "npx webpack --mode production --env packageName=CdcMap --env folderName=map -c ../../webpack.config.js",
9
- "prepublishOnly": "lerna run --scope @cdc/map build"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/CDCgov/cdc-open-viz",
14
- "directory": "packages/map"
15
- },
16
- "author": "Daniel Immke <npm@daniel.do>",
17
- "bugs": {
18
- "url": "https://github.com/CDCgov/cdc-open-viz/issues"
19
- },
20
- "license": "Apache-2.0",
21
- "devDependencies": {
22
- "@babel/runtime": "^7.12.5",
23
- "@cdc/core": "^1.1.2",
24
- "@emotion/core": "^10.0.28",
25
- "@emotion/react": "^11.1.5",
26
- "@visx/geo": "^1.13.0",
27
- "canvg": "^3.0.7",
28
- "chroma": "0.0.1",
29
- "chroma-js": "^2.1.0",
30
- "d3": "^6.6.0",
31
- "html-react-parser": "^1.2.1",
32
- "html2canvas": "^1.0.0-rc.7",
33
- "html2pdf.js": "^0.9.2",
34
- "papaparse": "^5.3.0",
35
- "react-accessible-accordion": "^3.0.1",
36
- "react-beautiful-dnd": "^13.0.0",
37
- "react-table": "^7.5.0",
38
- "react-tag-autocomplete": "^6.0.0",
39
- "react-tooltip": "4.2.8",
40
- "topojson-client": "^3.1.0",
41
- "use-debounce": "^5.2.0",
42
- "whatwg-fetch": "^3.6.2"
43
- },
44
- "peerDependencies": {
45
- "react": ">=16.8",
46
- "react-dom": ">=16"
47
- },
48
- "gitHead": "170845062bcbb93f31270104688f69c4148935d8",
49
- "dependencies": {
50
- "d3-composite-projections": "^1.4.0"
51
- }
2
+ "name": "@cdc/map",
3
+ "version": "9.22.9",
4
+ "description": "React component for visualizing tabular data on a map of the United States or the world.",
5
+ "main": "dist/cdcmap",
6
+ "scripts": {
7
+ "start": "npx webpack serve --mode development -c ../../webpack.config.js",
8
+ "build": "npx webpack --mode production --env packageName=CdcMap --env folderName=map -c ../../webpack.config.js",
9
+ "prepublishOnly": "lerna run --scope @cdc/map build"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/CDCgov/cdc-open-viz",
14
+ "directory": "packages/map"
15
+ },
16
+ "author": "Daniel Immke <npm@daniel.do>",
17
+ "bugs": {
18
+ "url": "https://github.com/CDCgov/cdc-open-viz/issues"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "dependencies": {
22
+ "@babel/runtime": "^7.12.5",
23
+ "@cdc/core": "^9.22.9",
24
+ "@emotion/core": "^10.0.28",
25
+ "@emotion/react": "^11.1.5",
26
+ "@visx/geo": "^1.13.0",
27
+ "canvg": "^3.0.7",
28
+ "chroma": "0.0.1",
29
+ "chroma-js": "^2.1.0",
30
+ "d3": "^6.6.0",
31
+ "d3-composite-projections": "^1.4.0",
32
+ "html-react-parser": "1.4.9",
33
+ "html2canvas": "^1.0.0-rc.7",
34
+ "html2pdf.js": "^0.9.2",
35
+ "papaparse": "^5.3.0",
36
+ "react-accessible-accordion": "^3.0.1",
37
+ "react-beautiful-dnd": "^13.0.0",
38
+ "react-table": "^7.5.0",
39
+ "react-tag-autocomplete": "^6.0.0",
40
+ "react-tooltip": "4.2.8",
41
+ "topojson-client": "^3.1.0",
42
+ "use-debounce": "^5.2.0",
43
+ "whatwg-fetch": "^3.6.2"
44
+ },
45
+ "peerDependencies": {
46
+ "react": ">=16.8",
47
+ "react-dom": ">=16"
48
+ },
49
+ "resolutions": {
50
+ "@types/react": "17.x"
51
+ },
52
+ "gitHead": "90faf22c91ca0062432607e4599598f9e67c848a"
52
53
  }