@cdc/map 2.6.0 → 2.6.3

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 (61) hide show
  1. package/convert-topojson.js +70 -0
  2. package/dist/cdcmap.js +190 -0
  3. package/examples/default-county.json +105 -0
  4. package/examples/default-single-state.json +109 -0
  5. package/examples/default-usa.json +968 -0
  6. package/examples/default-world.json +1495 -0
  7. package/examples/example-city-state.json +474 -0
  8. package/examples/example-world-map.json +1596 -0
  9. package/examples/gender-rate-map.json +1 -0
  10. package/package.json +50 -50
  11. package/src/CdcMap.js +1384 -0
  12. package/src/components/CityList.js +93 -0
  13. package/src/components/CountyMap.js +556 -0
  14. package/src/components/DataTable.js +357 -0
  15. package/src/components/EditorPanel.js +2111 -0
  16. package/src/components/Geo.js +21 -0
  17. package/src/components/Modal.js +31 -0
  18. package/src/components/NavigationMenu.js +66 -0
  19. package/src/components/Sidebar.js +167 -0
  20. package/src/components/SingleStateMap.js +326 -0
  21. package/src/components/UsaMap.js +342 -0
  22. package/src/components/WorldMap.js +175 -0
  23. package/src/components/ZoomableGroup.js +47 -0
  24. package/src/data/abbreviations.js +57 -0
  25. package/src/data/color-palettes.js +200 -0
  26. package/src/data/county-map-halfquality.json +58453 -0
  27. package/src/data/county-map-quarterquality.json +1 -0
  28. package/src/data/county-topo.json +1 -0
  29. package/src/data/dfc-map.json +1 -0
  30. package/src/data/initial-state.js +60 -0
  31. package/src/data/newtest.json +1 -0
  32. package/src/data/state-abbreviations.js +60 -0
  33. package/src/data/supported-geos.js +3775 -0
  34. package/src/data/test.json +1 -0
  35. package/src/data/us-hex-topo.json +1 -0
  36. package/src/data/us-topo.json +1 -0
  37. package/src/data/world-topo.json +1 -0
  38. package/src/hooks/useActiveElement.js +19 -0
  39. package/src/hooks/useZoomPan.js +110 -0
  40. package/src/images/active-checkmark.svg +1 -0
  41. package/src/images/asc.svg +1 -0
  42. package/src/images/close.svg +1 -0
  43. package/src/images/desc.svg +1 -0
  44. package/src/images/external-link.svg +1 -0
  45. package/src/images/icon-download-img.svg +1 -0
  46. package/src/images/icon-download-pdf.svg +1 -0
  47. package/src/images/inactive-checkmark.svg +1 -0
  48. package/src/images/map-folded.svg +1 -0
  49. package/src/index.html +29 -0
  50. package/src/index.js +20 -0
  51. package/src/scss/btn.scss +69 -0
  52. package/src/scss/datatable.scss +7 -0
  53. package/src/scss/editor-panel.scss +654 -0
  54. package/src/scss/main.scss +224 -0
  55. package/src/scss/map.scss +188 -0
  56. package/src/scss/sidebar.scss +146 -0
  57. package/src/scss/tooltips.scss +30 -0
  58. package/src/scss/variables.scss +1 -0
  59. package/uploads/upload-example-city-state.json +392 -0
  60. package/uploads/upload-example-world-data.json +1490 -0
  61. package/LICENSE +0 -201
@@ -0,0 +1,200 @@
1
+ export default {
2
+ yelloworangered: [
3
+ '#ffffcc',
4
+ '#ffeda0',
5
+ '#fed976',
6
+ '#feb24c',
7
+ '#fd8d3c',
8
+ '#fc4e2a',
9
+ '#e31a1c',
10
+ '#bd0026',
11
+ '#800026'],
12
+ yelloworangebrown: [
13
+ '#ffffe5',
14
+ '#fff7bc',
15
+ '#fee391',
16
+ '#fec44f',
17
+ '#fe9929',
18
+ '#ec7014',
19
+ '#cc4c02',
20
+ '#993404',
21
+ '#662506'],
22
+ pinkpurple: [
23
+ '#fff7f3',
24
+ '#fde0dd',
25
+ '#fcc5c0',
26
+ '#fa9fb5',
27
+ '#f768a1',
28
+ '#dd3497',
29
+ '#ae017e',
30
+ '#7a0177',
31
+ '#49006a'],
32
+ bluegreen: [
33
+ '#fff7fb',
34
+ '#ece2f0',
35
+ '#d0d1e6',
36
+ '#a6bddb',
37
+ '#67a9cf',
38
+ '#3690c0',
39
+ '#02818a',
40
+ '#016c59',
41
+ '#014636'],
42
+ orangered: [
43
+ '#fff7ec',
44
+ '#fee8c8',
45
+ '#fdd49e',
46
+ '#fdbb84',
47
+ '#fc8d59',
48
+ '#ef6548',
49
+ '#d7301f',
50
+ '#b30000',
51
+ '#7f0000'],
52
+ red: [
53
+ '#fff5f0',
54
+ '#fee0d2',
55
+ '#fcbba1',
56
+ '#fc9272',
57
+ '#fb6a4a',
58
+ '#ef3b2c',
59
+ '#cb181d',
60
+ '#a50f15',
61
+ '#67000d'],
62
+ greenblue: [
63
+ '#f7fcf0',
64
+ '#e0f3db',
65
+ '#ccebc5',
66
+ '#a8ddb5',
67
+ '#7bccc4',
68
+ '#4eb3d3',
69
+ '#2b8cbe',
70
+ '#0868ac',
71
+ '#084081'],
72
+ yelloworangeredreverse: [
73
+ '#800026',
74
+ '#bd0026',
75
+ '#e31a1c',
76
+ '#fc4e2a',
77
+ '#fd8d3c',
78
+ '#feb24c',
79
+ '#fed976',
80
+ '#ffeda0',
81
+ '#ffffcc'],
82
+ yelloworangebrownreverse: [
83
+ '#662506',
84
+ '#993404',
85
+ '#cc4c02',
86
+ '#ec7014',
87
+ '#fe9929',
88
+ '#fec44f',
89
+ '#fee391',
90
+ '#fff7bc',
91
+ '#ffffe5'],
92
+ pinkpurplereverse: [
93
+ '#49006a',
94
+ '#7a0177',
95
+ '#ae017e',
96
+ '#dd3497',
97
+ '#f768a1',
98
+ '#fa9fb5',
99
+ '#fcc5c0',
100
+ '#fde0dd',
101
+ '#fff7f3'],
102
+ bluegreenreverse: [
103
+ '#014636',
104
+ '#016c59',
105
+ '#02818a',
106
+ '#3690c0',
107
+ '#67a9cf',
108
+ '#a6bddb',
109
+ '#d0d1e6',
110
+ '#ece2f0',
111
+ '#fff7fb'],
112
+ orangeredreverse: [
113
+ '#7f0000',
114
+ '#b30000',
115
+ '#d7301f',
116
+ '#ef6548',
117
+ '#fc8d59',
118
+ '#fdbb84',
119
+ '#fdd49e',
120
+ '#fee8c8',
121
+ '#fff7ec'],
122
+ redreverse: [
123
+ '#67000d',
124
+ '#a50f15',
125
+ '#cb181d',
126
+ '#ef3b2c',
127
+ '#fb6a4a',
128
+ '#fc9272',
129
+ '#fcbba1',
130
+ '#fee0d2',
131
+ '#fff5f0'],
132
+ greenbluereverse: [
133
+ '#084081',
134
+ '#0868ac',
135
+ '#2b8cbe',
136
+ '#4eb3d3',
137
+ '#7bccc4',
138
+ '#a8ddb5',
139
+ '#ccebc5',
140
+ '#e0f3db',
141
+ '#f7fcf0'],
142
+ yellowpurple: [
143
+ '#FFF0B0',
144
+ '#F5CC76',
145
+ '#EDAE4B',
146
+ '#E3683C',
147
+ '#BF2A48',
148
+ '#6D2059',
149
+ '#8F0C4B',
150
+ '#310958',
151
+ '#0E0943'],
152
+ qualitative1: [
153
+ '#a6cee3',
154
+ '#1f78b4',
155
+ '#b2df8a',
156
+ '#33a02c',
157
+ '#fb9a99',
158
+ '#e31a1c',
159
+ '#6a3d9a',
160
+ '#cab2d6',
161
+ '#E31A90',
162
+ '#15017A',
163
+ '#C2C0FC'],
164
+ qualitative2: [
165
+ '#7fc97f',
166
+ '#beaed4',
167
+ '#ff9',
168
+ '#386cb0',
169
+ '#f0027f',
170
+ '#bf5b17',
171
+ '#666',
172
+ '#fedab8'],
173
+ qualitative3: [
174
+ '#1b9e77',
175
+ '#d95f02',
176
+ '#7570b3',
177
+ '#e7298a',
178
+ '#66a61e',
179
+ '#e6ab02',
180
+ '#a6761d',
181
+ '#666'],
182
+ qualitative4: [
183
+ '#e41a1c',
184
+ '#377eb8',
185
+ '#4daf4a',
186
+ '#984ea3',
187
+ '#ff7f00',
188
+ '#ff3',
189
+ '#a65628',
190
+ '#f781bf'],
191
+ qualitative9: [
192
+ '#497d0c',
193
+ '#84BC49',
194
+ '#88c3ea',
195
+ '#fcad90',
196
+ '#f26b4f',
197
+ '#c31b1f',
198
+ '#c31b1f'
199
+ ]
200
+ };