@cdc/core 4.22.10 → 4.22.11

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/README.md +1 -1
  2. package/components/AdvancedEditor.js +52 -67
  3. package/components/ErrorBoundary.jsx +10 -11
  4. package/components/GlobalContext.jsx +2 -6
  5. package/components/LegendCircle.jsx +3 -4
  6. package/components/Loading.jsx +14 -12
  7. package/components/Waiting.jsx +14 -5
  8. package/components/elements/Button.jsx +34 -45
  9. package/components/elements/Card.jsx +1 -1
  10. package/components/inputs/InputCheckbox.jsx +32 -35
  11. package/components/inputs/InputGroup.jsx +38 -17
  12. package/components/inputs/InputSelect.jsx +27 -23
  13. package/components/inputs/InputText.jsx +9 -25
  14. package/components/inputs/InputToggle.jsx +29 -33
  15. package/components/managers/DataDesigner.jsx +87 -64
  16. package/components/ui/Accordion.jsx +18 -30
  17. package/components/ui/Icon.jsx +34 -35
  18. package/components/ui/LoadSpin.jsx +6 -11
  19. package/components/ui/Modal.jsx +40 -44
  20. package/components/ui/Overlay.jsx +12 -23
  21. package/components/ui/OverlayFrame.jsx +1 -5
  22. package/components/ui/Tooltip.jsx +8 -28
  23. package/data/colorPalettes.js +29 -266
  24. package/data/dataDesignerTables.js +107 -107
  25. package/data/themes.js +13 -13
  26. package/helpers/DataTransform.js +92 -92
  27. package/helpers/cacheBustingString.js +3 -3
  28. package/helpers/events.js +5 -6
  29. package/helpers/fetchRemoteData.js +31 -33
  30. package/helpers/getViewport.js +15 -15
  31. package/helpers/numberFromString.js +7 -7
  32. package/helpers/updatePaletteNames.js +15 -17
  33. package/helpers/useDataVizClasses.js +38 -35
  34. package/helpers/validateFipsCodeLength.js +41 -56
  35. package/package.json +2 -2
  36. package/styles/_data-table.scss +32 -27
  37. package/styles/_global.scss +29 -24
  38. package/styles/_mixins.scss +12 -12
  39. package/styles/_reset.scss +85 -16
  40. package/styles/_variables.scss +5 -5
  41. package/styles/base.scss +99 -48
  42. package/styles/heading-colors.scss +6 -2
  43. package/styles/loading.scss +62 -60
  44. package/styles/v2/base/_file-selector.scss +2 -2
  45. package/styles/v2/base/_general.scss +1 -1
  46. package/styles/v2/base/_reset.scss +2 -2
  47. package/styles/v2/base/index.scss +4 -4
  48. package/styles/v2/components/accordion.scss +13 -13
  49. package/styles/v2/components/button.scss +3 -3
  50. package/styles/v2/components/card.scss +1 -1
  51. package/styles/v2/components/data-designer.scss +7 -6
  52. package/styles/v2/components/editor.scss +52 -51
  53. package/styles/v2/components/guidance-block.scss +6 -6
  54. package/styles/v2/components/input/_input-check-radio.scss +7 -7
  55. package/styles/v2/components/input/_input-group.scss +2 -2
  56. package/styles/v2/components/input/_input-slider.scss +2 -3
  57. package/styles/v2/components/input/index.scss +6 -6
  58. package/styles/v2/components/loadspin.scss +1 -1
  59. package/styles/v2/components/modal.scss +2 -2
  60. package/styles/v2/components/overlay.scss +4 -4
  61. package/styles/v2/layout/_alert.scss +8 -8
  62. package/styles/v2/layout/_component.scss +1 -1
  63. package/styles/v2/layout/_data-table.scss +12 -11
  64. package/styles/v2/layout/_progression.scss +8 -6
  65. package/styles/v2/layout/index.scss +5 -5
  66. package/styles/v2/main.scss +7 -7
  67. package/styles/v2/themes/_color-definitions.scss +77 -24
  68. package/styles/v2/themes/index.scss +1 -1
  69. package/styles/v2/utils/_animations.scss +2 -2
  70. package/styles/v2/utils/_breakpoints.scss +53 -12
  71. package/styles/v2/utils/_variables.scss +5 -5
  72. package/styles/v2/utils/index.scss +8 -8
  73. package/styles/waiting.scss +22 -23
@@ -11,16 +11,7 @@ const ModalHeader = () => null
11
11
  const ModalContent = () => null
12
12
  const ModalFooter = () => null
13
13
 
14
- const Modal = ({
15
- fontTheme = 'dark',
16
- headerBgColor = '#fff',
17
- showDividerTop = true,
18
- showDividerBottom = true,
19
- showClose = true,
20
- children,
21
- override = null
22
- }) => {
23
-
14
+ const Modal = ({ fontTheme = 'dark', headerBgColor = '#fff', showDividerTop = true, showDividerBottom = true, showClose = true, children, override = null }) => {
24
15
  //Access global overlay state
25
16
  let { overlay } = useGlobalContext()
26
17
 
@@ -31,47 +22,52 @@ const Modal = ({
31
22
  const modalFooterChildren = childNodes.find(child => child?.type === ModalFooter)
32
23
 
33
24
  //Modal computed style options
34
- const dividerBorder = (bool) => {
25
+ const dividerBorder = bool => {
35
26
  return !bool ? 'none' : null
36
27
  }
37
28
 
38
29
  //Render output
39
30
  return (
40
31
  <div className={`cove-modal cove-modal__theme--${fontTheme}`}>
41
- {(showClose || modalHeaderChildren) &&
42
- <div className="cove-modal__header" style={{
43
- backgroundColor: headerBgColor,
44
- boxShadow: dividerBorder(modalHeaderChildren && showDividerTop),
45
- padding: !modalHeaderChildren ? '0' : null,
46
- minHeight: !modalHeaderChildren ? 'unset' : null
47
- }}>
48
- {modalHeaderChildren && modalHeaderChildren.props.children}
49
- {showClose &&
50
- <button className="cove-modal--close"
51
- onClick={(e) => {
52
- if (override) return override.actions.toggleOverlay(false)
53
- if (overlay) return overlay?.actions.toggleOverlay(false)
54
- e.preventDefault()
55
- }}>
56
- <Icon display="close"/>
57
- </button>
58
- }
59
- </div>
60
- }
61
-
62
- <div className="cove-modal__content">
63
- {modalContentChildren && modalContentChildren.props.children}
64
- </div>
32
+ {(showClose || modalHeaderChildren) && (
33
+ <div
34
+ className='cove-modal__header'
35
+ style={{
36
+ backgroundColor: headerBgColor,
37
+ boxShadow: dividerBorder(modalHeaderChildren && showDividerTop),
38
+ padding: !modalHeaderChildren ? '0' : null,
39
+ minHeight: !modalHeaderChildren ? 'unset' : null
40
+ }}
41
+ >
42
+ {modalHeaderChildren && modalHeaderChildren.props.children}
43
+ {showClose && (
44
+ <button
45
+ className='cove-modal--close'
46
+ onClick={e => {
47
+ if (override) return override.actions.toggleOverlay(false)
48
+ if (overlay) return overlay?.actions.toggleOverlay(false)
49
+ e.preventDefault()
50
+ }}
51
+ >
52
+ <Icon display='close' />
53
+ </button>
54
+ )}
55
+ </div>
56
+ )}
65
57
 
66
- {modalFooterChildren &&
67
- <div className="cove-modal__footer" style={{
68
- boxShadow: dividerBorder(showDividerBottom),
69
- paddingTop: showDividerBottom ? '1rem' : null
70
- }}>
71
- {modalFooterChildren.props.children}
72
- </div>
73
- }
58
+ <div className='cove-modal__content'>{modalContentChildren && modalContentChildren.props.children}</div>
74
59
 
60
+ {modalFooterChildren && (
61
+ <div
62
+ className='cove-modal__footer'
63
+ style={{
64
+ boxShadow: dividerBorder(showDividerBottom),
65
+ paddingTop: showDividerBottom ? '1rem' : null
66
+ }}
67
+ >
68
+ {modalFooterChildren.props.children}
69
+ </div>
70
+ )}
75
71
  </div>
76
72
  )
77
73
  }
@@ -82,7 +78,7 @@ Modal.Content = ModalContent
82
78
  Modal.Footer = ModalFooter
83
79
 
84
80
  Modal.propTypes = {
85
- fontTheme: PropTypes.oneOf([ 'dark', 'light' ]),
81
+ fontTheme: PropTypes.oneOf(['dark', 'light']),
86
82
  headerBgColor: PropTypes.string,
87
83
  showDividerTop: PropTypes.bool,
88
84
  showDividerBottom: PropTypes.bool,
@@ -9,9 +9,9 @@ const Overlay = ({ disableBgClose, children, override = null }) => {
9
9
  let { overlay } = useGlobalContext()
10
10
 
11
11
  //Set local states
12
- const [ displayOverlay, setDisplayOverlay ] = useState(false)
13
- const [ overlayAnimationState, setOverlayAnimationState ] = useState(null)
14
- const [ overlayErrorState, setOverlayErrorState ] = useState(false)
12
+ const [displayOverlay, setDisplayOverlay] = useState(false)
13
+ const [overlayAnimationState, setOverlayAnimationState] = useState(null)
14
+ const [overlayErrorState, setOverlayErrorState] = useState(false)
15
15
 
16
16
  const overlayDisplay = override ? override?.show : overlay?.show
17
17
 
@@ -29,7 +29,7 @@ const Overlay = ({ disableBgClose, children, override = null }) => {
29
29
  }, 750)
30
30
 
31
31
  return () => clearTimeout(timeoutShow)
32
- }, [ overlayDisplay ])
32
+ }, [overlayDisplay])
33
33
 
34
34
  //Animate Out effect
35
35
  useEffect(() => {
@@ -45,7 +45,7 @@ const Overlay = ({ disableBgClose, children, override = null }) => {
45
45
  }, 400)
46
46
 
47
47
  return () => clearTimeout(timeoutHide)
48
- }, [ overlayDisplay ])
48
+ }, [overlayDisplay])
49
49
 
50
50
  //Error animate effect
51
51
  useEffect(() => {
@@ -56,30 +56,19 @@ const Overlay = ({ disableBgClose, children, override = null }) => {
56
56
  }, 400)
57
57
 
58
58
  return () => clearTimeout(timeoutHide)
59
- }, [ overlayErrorState ])
59
+ }, [overlayErrorState])
60
60
 
61
61
  //Render output
62
62
  return (
63
63
  <>
64
- {displayOverlay &&
65
- <div
66
- className={`cove-overlay${overlayAnimationState ? (' ' + overlayAnimationState) : ''}${overlayErrorState ? ' overlay-error' : ''}`}>
67
- <div className="cove-overlay__bg" style={{ cursor: disableBgClose ? 'default' : null }}
68
- onClick={(e) =>
69
- disableBgClose ? setOverlayErrorState(true) :
70
- overlay ? overlay.actions.toggleOverlay(false) :
71
- override ? override.actions.toggleOverlay(false) :
72
- e.preventDefault()
73
- }
74
- role="alert"
75
- />
76
- <div className="cove-overlay__wrapper">
77
- <div className="cove-overlay__container">
78
- {children}
79
- </div>
64
+ {displayOverlay && (
65
+ <div className={`cove-overlay${overlayAnimationState ? ' ' + overlayAnimationState : ''}${overlayErrorState ? ' overlay-error' : ''}`}>
66
+ <div className='cove-overlay__bg' style={{ cursor: disableBgClose ? 'default' : null }} onClick={e => (disableBgClose ? setOverlayErrorState(true) : overlay ? overlay.actions.toggleOverlay(false) : override ? override.actions.toggleOverlay(false) : e.preventDefault())} role='alert' />
67
+ <div className='cove-overlay__wrapper'>
68
+ <div className='cove-overlay__container'>{children}</div>
80
69
  </div>
81
70
  </div>
82
- }
71
+ )}
83
72
  </>
84
73
  )
85
74
  }
@@ -6,11 +6,7 @@ import Overlay from './Overlay'
6
6
 
7
7
  const OverlayFrame = () => {
8
8
  const { overlay } = useGlobalContext()
9
- return (
10
- <Overlay disableBgClose={overlay.disableBgClose}>
11
- { overlay.object }
12
- </Overlay>
13
- )
9
+ return <Overlay disableBgClose={overlay.disableBgClose}>{overlay.object}</Overlay>
14
10
  }
15
11
 
16
12
  export default OverlayFrame
@@ -4,28 +4,16 @@ import ReactTooltip from 'react-tooltip'
4
4
  const TooltipTarget = () => null
5
5
  const TooltipContent = () => null
6
6
 
7
- const Tooltip = ({
8
- position = 'top',
9
- trigger = 'hover focus',
10
- float = false,
11
- shadow = true,
12
- border = null,
13
- borderColor = '#bdbdbd',
14
- hideOnScroll = true,
15
- children,
16
- style,
17
- ...attributes
18
- }) => {
19
-
7
+ const Tooltip = ({ position = 'top', trigger = 'hover focus', float = false, shadow = true, border = null, borderColor = '#bdbdbd', hideOnScroll = true, children, style, ...attributes }) => {
20
8
  const tooltipTargetChildren = children.find(el => el.type === TooltipTarget)
21
9
  const tooltipContentChildren = children.find(el => el.type === TooltipContent)
22
10
 
23
-
24
11
  const uid = 'tooltip-' + Math.floor(Math.random() * 100000)
25
12
 
26
13
  return (
27
- <span className="cove-tooltip" style={style} {...attributes}>
28
- <button className="cove-tooltip--target"
14
+ <span className='cove-tooltip' style={style} {...attributes}>
15
+ <button
16
+ className='cove-tooltip--target'
29
17
  data-for={uid}
30
18
  data-place={position}
31
19
  data-event={trigger}
@@ -35,23 +23,15 @@ const Tooltip = ({
35
23
  onClick={e => {
36
24
  e.preventDefault()
37
25
  }}
38
- onMouseEnter={ e => ReactTooltip.show(e.target)}
26
+ onMouseEnter={e => ReactTooltip.show(e.target)}
39
27
  onMouseLeave={e => ReactTooltip.hide(e.target)}
40
- onFocus={(e) => ReactTooltip.show(e.target)}
41
- onBlur={(e) => ReactTooltip.hide(e.target)}
28
+ onFocus={e => ReactTooltip.show(e.target)}
29
+ onBlur={e => ReactTooltip.hide(e.target)}
42
30
  style={{ background: 'transparent', border: 'none' }}
43
31
  >
44
32
  {tooltipTargetChildren ? tooltipTargetChildren.props.children : null}
45
33
  </button>
46
- <ReactTooltip
47
- id={uid}
48
- className={'cove-tooltip__content' + (trigger === 'click' ? ' interactive' : '') + (border ? (' cove-tooltip--border-' + border) : '') + (shadow ? ' has-shadow' : '')}
49
- type="light"
50
- effect="solid"
51
- border={!!border}
52
- borderColor={borderColor}
53
- globalEventOff="click"
54
- >
34
+ <ReactTooltip id={uid} className={'cove-tooltip__content' + (trigger === 'click' ? ' interactive' : '') + (border ? ' cove-tooltip--border-' + border : '') + (shadow ? ' has-shadow' : '')} type='light' effect='solid' border={!!border} borderColor={borderColor} globalEventOff='click'>
55
35
  {tooltipContentChildren ? tooltipContentChildren.props.children : null}
56
36
  </ReactTooltip>
57
37
  </span>
@@ -1,286 +1,49 @@
1
1
  import { updatePaletteNames } from '../helpers/updatePaletteNames'
2
2
 
3
3
  const colorPalettesMap = {
4
- yelloworangered: [
5
- "#ffffcc",
6
- "#ffeda0",
7
- "#fed976",
8
- "#feb24c",
9
- "#fd8d3c",
10
- "#fc4e2a",
11
- "#e31a1c",
12
- "#bd0026",
13
- "#800026",
14
- ],
15
- yelloworangebrown: [
16
- "#ffffe5",
17
- "#fff7bc",
18
- "#fee391",
19
- "#fec44f",
20
- "#fe9929",
21
- "#ec7014",
22
- "#cc4c02",
23
- "#993404",
24
- "#662506",
25
- ],
26
- pinkpurple: [
27
- "#fff7f3",
28
- "#fde0dd",
29
- "#fcc5c0",
30
- "#fa9fb5",
31
- "#f768a1",
32
- "#dd3497",
33
- "#ae017e",
34
- "#7a0177",
35
- "#49006a",
36
- ],
37
- bluegreen: [
38
- "#fff7fb",
39
- "#ece2f0",
40
- "#d0d1e6",
41
- "#a6bddb",
42
- "#67a9cf",
43
- "#3690c0",
44
- "#02818a",
45
- "#016c59",
46
- "#014636",
47
- ],
48
- orangered: [
49
- "#fff7ec",
50
- "#fee8c8",
51
- "#fdd49e",
52
- "#fdbb84",
53
- "#fc8d59",
54
- "#ef6548",
55
- "#d7301f",
56
- "#b30000",
57
- "#7f0000",
58
- ],
59
- red: [
60
- "#fff5f0",
61
- "#fee0d2",
62
- "#fcbba1",
63
- "#fc9272",
64
- "#fb6a4a",
65
- "#ef3b2c",
66
- "#cb181d",
67
- "#a50f15",
68
- "#67000d",
69
- ],
70
- greenblue: [
71
- "#f7fcf0",
72
- "#e0f3db",
73
- "#ccebc5",
74
- "#a8ddb5",
75
- "#7bccc4",
76
- "#4eb3d3",
77
- "#267BA6",
78
- "#0868ac",
79
- "#084081",
80
- ],
81
- yellowpurple: [
82
- "#FFF0B0",
83
- "#F5CC76",
84
- "#EDAE4B",
85
- "#E3683C",
86
- "#BF2A48",
87
- "#6D2059",
88
- "#8F0C4B",
89
- "#310958",
90
- "#0E0943",
91
- ],
92
- qualitative1: [
93
- "#a6cee3",
94
- "#1f78b4",
95
- "#b2df8a",
96
- "#33a02c",
97
- "#fb9a99",
98
- "#e31a1c",
99
- "#6a3d9a",
100
- "#cab2d6",
101
- "#E31A90",
102
- "#15017A",
103
- "#C2C0FC",
104
- ],
4
+ yelloworangered: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'],
5
+ yelloworangebrown: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'],
6
+ pinkpurple: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'],
7
+ bluegreen: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'],
8
+ orangered: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'],
9
+ red: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'],
10
+ greenblue: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#267BA6', '#0868ac', '#084081'],
11
+ yellowpurple: ['#FFF0B0', '#F5CC76', '#EDAE4B', '#E3683C', '#BF2A48', '#6D2059', '#8F0C4B', '#310958', '#0E0943'],
12
+ qualitative1: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#6a3d9a', '#cab2d6', '#E31A90', '#15017A', '#C2C0FC'],
105
13
 
106
- qualitative2: [
107
- "#7fc97f",
108
- "#beaed4",
109
- "#ff9",
110
- "#386cb0",
111
- "#f0027f",
112
- "#bf5b17",
113
- "#666",
114
- "#fedab8",
115
- ],
14
+ qualitative2: ['#7fc97f', '#beaed4', '#ff9', '#386cb0', '#f0027f', '#bf5b17', '#666', '#fedab8'],
116
15
 
117
- qualitative3: [
118
- "#1b9e77",
119
- "#d95f02",
120
- "#7570b3",
121
- "#e7298a",
122
- "#66a61e",
123
- "#e6ab02",
124
- "#a6761d",
125
- "#666",
126
- ],
16
+ qualitative3: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666'],
127
17
 
128
- qualitative4: [
129
- "#e41a1c",
130
- "#377eb8",
131
- "#4daf4a",
132
- "#984ea3",
133
- "#ff7f00",
134
- "#ff3",
135
- "#a65628",
136
- "#f781bf",
137
- ],
18
+ qualitative4: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ff3', '#a65628', '#f781bf'],
138
19
 
139
- qualitative9: [
140
- "#497d0c",
141
- "#84BC49",
142
- "#88c3ea",
143
- "#fcad90",
144
- "#f26b4f",
145
- "#c31b1f",
146
- "#c31b1f",
147
- ],
20
+ qualitative9: ['#497d0c', '#84BC49', '#88c3ea', '#fcad90', '#f26b4f', '#c31b1f', '#c31b1f'],
148
21
 
22
+ 'sequential-blue-2(MPX)': ['#F5FEFF', '#E1FBFF', '#C0F2FD', '#94E2ED', '#5EBAD4', '#3695BE', '#2273A0', '#0E5181', '#093460'],
149
23
 
150
-
151
- 'sequential-blue-2(MPX)':[
152
- '#F5FEFF',
153
- '#E1FBFF',
154
- '#C0F2FD',
155
- '#94E2ED',
156
- '#5EBAD4',
157
- '#3695BE',
158
- '#2273A0',
159
- '#0E5181',
160
- '#093460',
161
- ],
162
-
163
- 'sequential-orange(MPX)':[
164
- '#FFFDF0',
165
- '#FFF7DC',
166
- '#FFE9C2',
167
- '#FFD097',
168
- '#F7A866',
169
- '#EB7723',
170
- '#B95117',
171
- '#853209',
172
- '#661F00'
173
- ]
174
-
175
- };
24
+ 'sequential-orange(MPX)': ['#FFFDF0', '#FFF7DC', '#FFE9C2', '#FFD097', '#F7A866', '#EB7723', '#B95117', '#853209', '#661F00']
25
+ }
176
26
 
177
27
  // * ============= Palettes for Chart project ========== * //
178
28
 
179
29
  const colorPalettes2 = {
180
- 'qualitative-bold': [
181
- '#377eb8',
182
- '#ff7f00',
183
- '#4daf4a',
184
- '#984ea3',
185
- '#e41a1c',
186
- '#ffff33',
187
- '#a65628',
188
- '#f781bf',
189
- '#3399CC',
190
- ],
30
+ 'qualitative-bold': ['#377eb8', '#ff7f00', '#4daf4a', '#984ea3', '#e41a1c', '#ffff33', '#a65628', '#f781bf', '#3399CC'],
191
31
 
192
- 'qualitative-soft': [
193
- '#A6CEE3',
194
- '#1F78B4',
195
- '#B2DF8A',
196
- '#33A02C',
197
- '#FB9A99',
198
- '#E31A1C',
199
- '#FDBF6F',
200
- '#FF7F00',
201
- '#ACA9EB',
202
- ],
203
- qualitative1: [
204
- "#a6cee3",
205
- "#1f78b4",
206
- "#b2df8a",
207
- "#33a02c",
208
- "#fb9a99",
209
- "#e31a1c",
210
- "#6a3d9a",
211
- "#cab2d6",
212
- "#E31A90",
213
- "#15017A",
214
- "#C2C0FC",
215
- ],
32
+ 'qualitative-soft': ['#A6CEE3', '#1F78B4', '#B2DF8A', '#33A02C', '#FB9A99', '#E31A1C', '#FDBF6F', '#FF7F00', '#ACA9EB'],
33
+ qualitative1: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#6a3d9a', '#cab2d6', '#E31A90', '#15017A', '#C2C0FC'],
216
34
 
217
- qualitative2: [
218
- "#7fc97f",
219
- "#beaed4",
220
- "#ff9",
221
- "#386cb0",
222
- "#f0027f",
223
- "#bf5b17",
224
- "#666",
225
- "#fedab8",
226
- ],
35
+ qualitative2: ['#7fc97f', '#beaed4', '#ff9', '#386cb0', '#f0027f', '#bf5b17', '#666', '#fedab8'],
227
36
 
228
- qualitative3: [
229
- "#1b9e77",
230
- "#d95f02",
231
- "#7570b3",
232
- "#e7298a",
233
- "#66a61e",
234
- "#e6ab02",
235
- "#a6761d",
236
- "#666",
237
- ],
37
+ qualitative3: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666'],
238
38
 
239
- qualitative4: [
240
- "#e41a1c",
241
- "#377eb8",
242
- "#4daf4a",
243
- "#984ea3",
244
- "#ff7f00",
245
- "#ff3",
246
- "#a65628",
247
- "#f781bf",
248
- ],
39
+ qualitative4: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ff3', '#a65628', '#f781bf'],
249
40
 
250
- 'sequential-blue': [
251
- '#C6DBEF',
252
- '#9ECAE1',
253
- '#6BAED6',
254
- '#4292C6',
255
- '#2171B5',
256
- '#084594',
257
- ],
258
- 'sequential-blue-2-(MPX)':[
259
- '#D5F6F9',
260
- '#99E2ED',
261
- '#5FB6D1',
262
- '#3189B0',
263
- '#116091',
264
- '#0A3E72'
265
- ],
266
- 'sequential-orange-(MPX)':[
267
- '#FFEFCF',
268
- '#FFD49C',
269
- '#F7A866',
270
- '#EB7723',
271
- '#B95117',
272
- '#862B0B'
273
- ],
274
- 'sequential-green': [
275
- '#C7E9C0',
276
- '#A1D99B',
277
- '#74C476',
278
- '#41AB5D',
279
- '#238B45',
280
- '#005A32',
281
- ]
282
- };
41
+ 'sequential-blue': ['#C6DBEF', '#9ECAE1', '#6BAED6', '#4292C6', '#2171B5', '#084594'],
42
+ 'sequential-blue-2-(MPX)': ['#D5F6F9', '#99E2ED', '#5FB6D1', '#3189B0', '#116091', '#0A3E72'],
43
+ 'sequential-orange-(MPX)': ['#FFEFCF', '#FFD49C', '#F7A866', '#EB7723', '#B95117', '#862B0B'],
44
+ 'sequential-green': ['#C7E9C0', '#A1D99B', '#74C476', '#41AB5D', '#238B45', '#005A32']
45
+ }
283
46
 
284
- export const colorPalettesChart = updatePaletteNames(colorPalettes2) // adds reverse keyword to eact palette
285
- const colorPalettes = updatePaletteNames(colorPalettesMap) // adds reverse keyword to eact palette
47
+ export const colorPalettesChart = updatePaletteNames(colorPalettes2) // adds reverse keyword to eact palette
48
+ const colorPalettes = updatePaletteNames(colorPalettesMap) // adds reverse keyword to eact palette
286
49
  export default colorPalettes