@cdc/chart 4.23.11 → 4.24.2

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 (104) hide show
  1. package/dist/cdcchart.js +35740 -35027
  2. package/examples/feature/bar/additional-column-tooltip.json +446 -0
  3. package/examples/feature/bar/tall-data.json +98 -0
  4. package/examples/feature/forest-plot/forest-plot.json +63 -19
  5. package/examples/feature/forest-plot/linear.json +52 -3
  6. package/examples/feature/forest-plot/log.json +26 -0
  7. package/examples/feature/forest-plot/logarithmic.json +0 -35
  8. package/examples/feature/line/line-chart-preliminary.json +393 -0
  9. package/examples/feature/regions/index.json +9 -5
  10. package/examples/feature/scatterplot/scatterplot.json +272 -33
  11. package/index.html +10 -8
  12. package/package.json +2 -2
  13. package/src/CdcChart.tsx +70 -234
  14. package/src/ConfigContext.tsx +6 -0
  15. package/src/_stories/ChartEditor.stories.tsx +22 -0
  16. package/src/_stories/ChartLine.preliminary.tsx +19 -0
  17. package/src/_stories/_mock/pie_config.json +192 -0
  18. package/src/_stories/_mock/pie_data.json +218 -0
  19. package/src/_stories/_mock/preliminary_mock.json +346 -0
  20. package/src/components/{AreaChart.Stacked.jsx → AreaChart/components/AreaChart.Stacked.jsx} +2 -2
  21. package/src/components/{AreaChart.jsx → AreaChart/components/AreaChart.jsx} +2 -26
  22. package/src/components/AreaChart/index.tsx +4 -0
  23. package/src/components/{BarChart.Horizontal.tsx → BarChart/components/BarChart.Horizontal.tsx} +8 -8
  24. package/src/components/{BarChart.StackedHorizontal.tsx → BarChart/components/BarChart.StackedHorizontal.tsx} +37 -7
  25. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +108 -0
  26. package/src/components/{BarChart.Vertical.tsx → BarChart/components/BarChart.Vertical.tsx} +53 -70
  27. package/src/components/BarChart/components/BarChart.jsx +39 -0
  28. package/src/components/{BarChartType.jsx → BarChart/components/BarChartType.jsx} +0 -2
  29. package/src/components/BarChart/components/context.tsx +13 -0
  30. package/src/components/BarChart/index.tsx +3 -0
  31. package/src/components/{BoxPlot.jsx → BoxPlot/BoxPlot.jsx} +10 -9
  32. package/src/components/BoxPlot/index.tsx +3 -0
  33. package/src/components/EditorPanel/EditorPanel.tsx +2776 -0
  34. package/src/components/EditorPanel/EditorPanelContext.ts +40 -0
  35. package/src/components/EditorPanel/components/PanelProps.ts +3 -0
  36. package/src/components/EditorPanel/components/Panels/Panel.BoxPlot.tsx +148 -0
  37. package/src/components/{ForestPlotSettings.jsx → EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx} +97 -167
  38. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +160 -0
  39. package/src/components/EditorPanel/components/Panels/Panel.Regions.tsx +168 -0
  40. package/src/components/{Series.jsx → EditorPanel/components/Panels/Panel.Series.tsx} +4 -4
  41. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +297 -0
  42. package/src/components/EditorPanel/components/Panels/index.tsx +17 -0
  43. package/src/components/EditorPanel/components/panels.scss +72 -0
  44. package/src/components/EditorPanel/editor-panel.scss +739 -0
  45. package/src/components/EditorPanel/index.tsx +3 -0
  46. package/src/{hooks → components/EditorPanel}/useEditorPermissions.js +34 -2
  47. package/src/components/{Forecasting.jsx → Forecasting/Forecasting.jsx} +1 -1
  48. package/src/components/Forecasting/index.tsx +3 -0
  49. package/src/components/ForestPlot/ForestPlot.tsx +254 -0
  50. package/src/components/ForestPlot/ForestPlotProps.ts +7 -0
  51. package/src/components/ForestPlot/index.tsx +1 -209
  52. package/src/components/Legend/Legend.Component.tsx +199 -0
  53. package/src/components/Legend/Legend.tsx +28 -0
  54. package/src/components/Legend/helpers/createFormatLabels.tsx +140 -0
  55. package/src/components/Legend/index.tsx +3 -0
  56. package/src/components/LineChart/LineChartProps.ts +29 -0
  57. package/src/components/LineChart/components/LineChart.Circle.tsx +147 -0
  58. package/src/components/LineChart/helpers.ts +45 -0
  59. package/src/components/LineChart/index.tsx +111 -23
  60. package/src/components/LinearChart.jsx +55 -72
  61. package/src/components/PairedBarChart.jsx +4 -2
  62. package/src/components/{PieChart.jsx → PieChart/PieChart.tsx} +93 -31
  63. package/src/components/PieChart/index.tsx +3 -0
  64. package/src/components/Regions/components/Regions.tsx +144 -0
  65. package/src/components/Regions/index.tsx +3 -0
  66. package/src/components/{ScatterPlot.jsx → ScatterPlot/ScatterPlot.jsx} +3 -3
  67. package/src/components/ScatterPlot/index.tsx +3 -0
  68. package/src/components/{SparkLine.jsx → Sparkline/SparkLine.jsx} +2 -2
  69. package/src/components/Sparkline/index.tsx +3 -0
  70. package/src/data/initial-state.js +10 -8
  71. package/src/helpers/abbreviateNumber.ts +17 -0
  72. package/src/helpers/computeMarginBottom.ts +55 -0
  73. package/src/helpers/filterData.ts +18 -0
  74. package/src/helpers/generateColorsArray.ts +8 -0
  75. package/src/helpers/getQuartiles.ts +30 -0
  76. package/src/helpers/handleChartAriaLabels.ts +19 -0
  77. package/src/helpers/handleLineType.ts +18 -0
  78. package/src/helpers/lineOptions.ts +18 -0
  79. package/src/helpers/sort.ts +7 -0
  80. package/src/helpers/tests/computeMarginBottom.test.ts +20 -0
  81. package/src/hooks/useBarChart.js +7 -6
  82. package/src/hooks/useHighlightedBars.js +1 -1
  83. package/src/hooks/useMinMax.ts +3 -3
  84. package/src/hooks/useScales.ts +19 -6
  85. package/src/hooks/{useTooltip.jsx → useTooltip.tsx} +31 -25
  86. package/src/scss/main.scss +0 -3
  87. package/src/types/ChartConfig.ts +167 -23
  88. package/src/types/ChartContext.ts +34 -12
  89. package/src/types/ForestPlot.ts +7 -14
  90. package/src/types/Label.ts +7 -0
  91. package/examples/feature/scatterplot/scatterplot-continuous.csv +0 -17
  92. package/src/ConfigContext.jsx +0 -5
  93. package/src/components/BarChart.StackedVertical.tsx +0 -91
  94. package/src/components/BarChart.jsx +0 -30
  95. package/src/components/EditorPanel.jsx +0 -3356
  96. package/src/components/ForestPlot/Readme.md +0 -0
  97. package/src/components/Legend.jsx +0 -310
  98. package/src/components/LineChart/LineChart.Circle.tsx +0 -105
  99. package/src/scss/LinearChart.scss +0 -0
  100. package/src/scss/editor-panel.scss +0 -745
  101. package/src/scss/legend.scss +0 -206
  102. package/src/scss/mixins.scss +0 -0
  103. package/src/scss/variables.scss +0 -1
  104. package/src/types/ChartProps.ts +0 -7
@@ -0,0 +1,739 @@
1
+ @import '@cdc/core/styles/base';
2
+ @import '@cdc/core/styles/v2/themes/color-definitions';
3
+
4
+ //TODO: Remove after COVE refactor
5
+ .cove {
6
+ @import '@cdc/core/styles/v2/layout/tooltip.scss';
7
+ }
8
+
9
+ .cdc-open-viz-module.type-chart {
10
+ .editor-panel {
11
+ &.hidden {
12
+ display: none;
13
+ }
14
+
15
+ .two-col-inputs {
16
+ display: flex;
17
+ margin-top: 1em;
18
+ justify-content: space-between;
19
+
20
+ > label {
21
+ width: 48%;
22
+ margin-top: 0 !important;
23
+ }
24
+ }
25
+
26
+ .helper-tooltip {
27
+ padding: 5px;
28
+ max-width: 300px;
29
+ }
30
+
31
+ .helper {
32
+ position: relative;
33
+ opacity: 0.7;
34
+ cursor: pointer;
35
+ width: 17px;
36
+ height: 17px;
37
+ align-self: center;
38
+ margin-left: 0.3rem;
39
+ margin-top: -0.3rem;
40
+ border: none !important;
41
+ box-shadow: none !important;
42
+
43
+ svg {
44
+ position: absolute;
45
+ top: 0;
46
+ left: 0;
47
+ width: 100%;
48
+ height: 100%;
49
+ }
50
+ }
51
+
52
+ .divider-heading {
53
+ display: block;
54
+ font-size: 1em;
55
+ margin-top: 1em;
56
+ }
57
+
58
+ .series-list {
59
+ list-style: none;
60
+ border: $lightGray 1px solid;
61
+
62
+ &:empty {
63
+ border: none !important;
64
+ }
65
+
66
+ li {
67
+ padding: 0.3em 0.5em;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: space-between;
71
+ font-size: 0.9em;
72
+ position: relative;
73
+
74
+ &:hover {
75
+ background-color: $lightestGray;
76
+ }
77
+
78
+ div {
79
+ width: 100%;
80
+ }
81
+
82
+ .series-list__name {
83
+ position: relative;
84
+ user-select: none;
85
+
86
+ &.series-list__name--truncate {
87
+ &[data-title] {
88
+ $bgColor: rgb(34 34 34 / 90%);
89
+ position: relative;
90
+
91
+ &::before,
92
+ &::after {
93
+ opacity: 0;
94
+ pointer-events: none;
95
+ position: absolute;
96
+ transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
97
+ z-index: 1;
98
+ }
99
+
100
+ &::before {
101
+ content: attr(data-title);
102
+ bottom: -39px;
103
+ padding: 6px 10px;
104
+ background: $bgColor;
105
+ color: #fff;
106
+ font-size: 14px;
107
+ white-space: nowrap;
108
+ border-radius: 4px;
109
+ }
110
+
111
+ &::after {
112
+ content: '';
113
+ bottom: -8px;
114
+ left: 10px;
115
+ border: 7px solid transparent;
116
+ border-bottom: 6px solid $bgColor;
117
+ }
118
+
119
+ &:hover {
120
+ &::before,
121
+ &::after {
122
+ opacity: 1;
123
+ }
124
+ }
125
+ }
126
+
127
+ .series-list__name-text {
128
+ cursor: pointer;
129
+ }
130
+ }
131
+ }
132
+
133
+ .series-list__dropdown {
134
+ width: 100%;
135
+ display: block;
136
+ font-size: 0.8em;
137
+ margin-bottom: 10px;
138
+ select {
139
+ width: 100%;
140
+ }
141
+ }
142
+
143
+ .series-list__remove {
144
+ padding: 0 4px;
145
+ font-size: 1.125rem;
146
+ color: #f00;
147
+ cursor: pointer;
148
+ position: absolute;
149
+ top: 5px;
150
+ right: 5px;
151
+ }
152
+
153
+ + li {
154
+ border-top: $lightGray 1px solid;
155
+ }
156
+ }
157
+ }
158
+
159
+ .series-list__name-text {
160
+ max-width: 150px;
161
+ margin-bottom: 10px;
162
+ white-space: nowrap;
163
+ text-overflow: ellipsis;
164
+ overflow: hidden;
165
+ }
166
+
167
+ .accordion__heading {
168
+ background: $lightestGray;
169
+ }
170
+
171
+ .accordion__item {
172
+ select {
173
+ text-transform: capitalize;
174
+ outline: none;
175
+ }
176
+
177
+ .number-narrow {
178
+ min-width: auto;
179
+ width: 75px;
180
+ }
181
+ }
182
+
183
+ .form-container {
184
+ border-right: $lightGray 1px solid;
185
+ flex-grow: 1;
186
+ }
187
+
188
+ .guidance-link {
189
+ margin: 2em 1em 0;
190
+ padding: 0.75em 1em;
191
+
192
+ svg {
193
+ width: 60px;
194
+ color: $blue;
195
+ margin-right: 1rem;
196
+ height: 60px; // IE11
197
+ path {
198
+ fill: currentColor;
199
+ }
200
+ }
201
+ }
202
+
203
+ .warning {
204
+ color: #d8000c;
205
+ background-color: #ffd2d2;
206
+ padding: 0.75em 1em;
207
+ margin: 1em 0;
208
+ font-size: 0.8em;
209
+ border: #d8000c 1px solid;
210
+ border-radius: 0.4em;
211
+
212
+ strong {
213
+ font-weight: 600;
214
+ display: block;
215
+ }
216
+ }
217
+
218
+ .accordion__button {
219
+ cursor: pointer;
220
+ font-size: 1em;
221
+ padding: 0.3em 1em;
222
+ width: 100%;
223
+ text-align: left;
224
+ position: relative;
225
+ border-bottom: 1px solid rgba(0, 0, 0, 0.2);
226
+
227
+ &::before {
228
+ display: inline-block;
229
+ content: '';
230
+ height: 7px;
231
+ width: 7px;
232
+ margin-right: 1em;
233
+ border-bottom: 2px solid currentColor;
234
+ border-right: 2px solid currentColor;
235
+ right: 0;
236
+ position: absolute;
237
+ top: 50%;
238
+ transform: rotate(-45deg) translateY(-50%);
239
+ transition: 0.1s all;
240
+ }
241
+
242
+ &[aria-expanded='true']::before {
243
+ transform: rotate(45deg) translateY(-50%);
244
+ transform-origin: right;
245
+ margin-right: 1.3em;
246
+ transition: 0.1s all;
247
+ }
248
+ }
249
+
250
+ .accordion__panel {
251
+ border-bottom: 1px solid rgba(0, 0, 0, 0.2);
252
+ padding: 1em 1.25em 2em;
253
+ animation: fadein 0.2s ease-in;
254
+
255
+ &:first-child {
256
+ margin-top: 0;
257
+ }
258
+
259
+ h5 {
260
+ font-size: 0.8em;
261
+ }
262
+ }
263
+
264
+ .advanced {
265
+ padding: 0 1em 1em;
266
+ text-align: left;
267
+
268
+ p {
269
+ font-size: 0.8rem;
270
+ }
271
+
272
+ .advanced-toggle-link {
273
+ padding-top: 1em;
274
+ display: block;
275
+ text-align: left;
276
+ cursor: pointer;
277
+ text-decoration: underline;
278
+
279
+ span {
280
+ text-decoration: none;
281
+ display: inline-block;
282
+ font-family: monospace;
283
+ padding-right: 5px;
284
+ }
285
+
286
+ &:hover {
287
+ color: rgba(0, 0, 0, 0.7);
288
+ }
289
+ }
290
+
291
+ textarea {
292
+ height: 400px;
293
+ width: 100%;
294
+ font-size: 0.9em;
295
+ padding: 0.5em;
296
+ font-family: monospace;
297
+ box-sizing: border-box;
298
+ }
299
+ }
300
+
301
+ @keyframes fadein {
302
+ 0% {
303
+ opacity: 0;
304
+ }
305
+
306
+ 100% {
307
+ opacity: 1;
308
+ }
309
+ }
310
+
311
+ .heading-2 {
312
+ background: #565656;
313
+ color: #fff;
314
+ font-size: 1.1em;
315
+ padding: 0.6em 1em;
316
+ position: relative;
317
+ border-bottom: #565656 3px solid;
318
+ z-index: 3;
319
+ }
320
+
321
+ legend,
322
+ label {
323
+ text-transform: uppercase;
324
+ display: block;
325
+ font-size: 0.8em;
326
+ font-weight: 600;
327
+ user-select: none;
328
+
329
+ &:not(:first-child) {
330
+ margin-top: 1em;
331
+ }
332
+
333
+ span.edit-label {
334
+ margin-bottom: 0.3em;
335
+ display: block;
336
+ }
337
+
338
+ span.column-heading {
339
+ font-size: 1em;
340
+ }
341
+
342
+ &.checkbox {
343
+ display: flex;
344
+
345
+ input {
346
+ margin-left: 0;
347
+ width: inherit;
348
+ display: inline;
349
+ }
350
+ }
351
+ }
352
+
353
+ legend {
354
+ font-weight: normal;
355
+ margin-bottom: 0.3em;
356
+ }
357
+
358
+ legend + span {
359
+ float: left;
360
+ }
361
+
362
+ .radio-label {
363
+ font-weight: normal;
364
+ }
365
+
366
+ .accordion__panel fieldset:not(:first-child) {
367
+ margin-top: 1em;
368
+ }
369
+
370
+ .accordion__panel fieldset {
371
+ label:not(:first-child) {
372
+ margin-top: 0rem;
373
+ }
374
+ }
375
+
376
+ input[type='text'],
377
+ input[role='combobox'],
378
+ input[type='number'],
379
+ textarea {
380
+ min-width: 100%;
381
+ max-width: 100%; // Doing this prevents width of textarea from being changed
382
+ }
383
+
384
+ textarea {
385
+ min-height: 140px;
386
+ }
387
+
388
+ .header .color-palette button {
389
+ width: 21px;
390
+ height: 21px;
391
+ border-radius: 40px;
392
+ margin-right: 2.8px;
393
+ }
394
+
395
+ .color-palette {
396
+ display: flex;
397
+ max-width: 100%;
398
+ padding: 0;
399
+ margin: 0.5em 0 0 0;
400
+ list-style: none;
401
+ flex-wrap: wrap;
402
+
403
+ button {
404
+ width: 45px;
405
+ height: 23px;
406
+ margin-right: 4px;
407
+ margin-bottom: 10px;
408
+ display: flex;
409
+ border-radius: 5px;
410
+ overflow: hidden;
411
+ cursor: pointer;
412
+ position: relative;
413
+ padding: 0;
414
+
415
+ .click-target {
416
+ position: absolute;
417
+ top: 0;
418
+ left: 0;
419
+ right: 0;
420
+ bottom: 0;
421
+ }
422
+
423
+ &.selected {
424
+ border: rgba(0, 0, 0, 0.8) 2px solid;
425
+ }
426
+
427
+ span {
428
+ width: 33.3%;
429
+ height: 100%;
430
+ }
431
+
432
+ span.two-color {
433
+ width: 50%;
434
+ height: 100%;
435
+ }
436
+ }
437
+ }
438
+
439
+ fieldset {
440
+ display: block;
441
+
442
+ .float-left {
443
+ float: left;
444
+ }
445
+ }
446
+
447
+ .primary-fieldset {
448
+ padding: 0;
449
+ margin: 0;
450
+ border: 0;
451
+ }
452
+
453
+ ul.column-edit {
454
+ list-style: none;
455
+
456
+ li {
457
+ margin-top: 1em;
458
+ }
459
+
460
+ .three-col {
461
+ display: flex;
462
+ justify-content: space-between;
463
+
464
+ > label {
465
+ margin-top: 0;
466
+ width: 30%;
467
+ display: inline-block;
468
+
469
+ input[type='text'],
470
+ input[type='number'] {
471
+ width: 50px;
472
+ }
473
+ }
474
+ }
475
+ }
476
+
477
+ .emove-column {
478
+ float: right;
479
+ text-transform: uppercase;
480
+ color: #c32b2b;
481
+ font-size: 0.7em;
482
+ line-height: 1.6em;
483
+ border-radius: 5px;
484
+ margin: 0 auto;
485
+ transition: 0.1s all;
486
+ border: 0;
487
+ text-decoration: underline;
488
+ outline: 0;
489
+ cursor: pointer;
490
+ font-weight: bold;
491
+ }
492
+
493
+ .edit-block {
494
+ padding-left: 1em;
495
+ border-left: rgba(0, 0, 0, 0.2) 4px solid;
496
+ transition: 0.2s all;
497
+
498
+ &:not(:first-child) {
499
+ margin-top: 2em;
500
+ }
501
+
502
+ input[type='text'],
503
+ input[type='number'] {
504
+ font-size: 1em;
505
+ }
506
+
507
+ label {
508
+ margin-top: 0;
509
+ }
510
+
511
+ label + label {
512
+ margin-top: 1em;
513
+ }
514
+
515
+ &:hover {
516
+ border-left: rgba(0, 0, 0, 0.7) 4px solid;
517
+ transition: 0.2s all;
518
+ }
519
+ }
520
+
521
+ span.subtext {
522
+ display: block;
523
+ color: rgba(0, 0, 0, 0.5);
524
+ text-transform: none;
525
+ font-weight: normal;
526
+ }
527
+
528
+ .btn {
529
+ margin-top: 1em;
530
+ }
531
+
532
+ .sort-list {
533
+ list-style: none;
534
+
535
+ > li {
536
+ margin-right: 0.3em;
537
+ margin-bottom: 0.3em;
538
+ }
539
+ }
540
+
541
+ .sort-list li > div {
542
+ display: block;
543
+ box-sizing: border-box;
544
+ border: 1px solid #d1d1d1;
545
+ border-radius: 2px;
546
+ background: #f1f1f1;
547
+ padding: 0.4em 0.6em;
548
+ font-size: 0.8em;
549
+ margin-bottom: 0.3em;
550
+ cursor: move;
551
+ }
552
+
553
+ .info {
554
+ font-size: 0.8em;
555
+ line-height: 1.4em;
556
+ font-style: italic;
557
+ padding-top: 10px;
558
+ }
559
+
560
+ .react-tags__search {
561
+ width: 100%;
562
+ }
563
+
564
+ .react-tags {
565
+ position: relative;
566
+
567
+ input.react-tags__search-input {
568
+ font-size: 0.8rem;
569
+ }
570
+
571
+ /* clicking anywhere will focus the input */
572
+ cursor: text;
573
+
574
+ span {
575
+ display: inline;
576
+ }
577
+ }
578
+
579
+ .react-tags.is-focused {
580
+ border-color: rgba(0, 0, 0, 0.7);
581
+ }
582
+
583
+ .react-tags__selected {
584
+ display: inline;
585
+ }
586
+
587
+ .react-tags__selected-tag {
588
+ display: inline-block;
589
+ box-sizing: border-box;
590
+ border: 1px solid #d1d1d1;
591
+ border-radius: 2px;
592
+ background: #f1f1f1;
593
+ padding: 0.4em 0.6em;
594
+ font-size: 0.8em;
595
+ margin-right: 0.3em;
596
+ margin-bottom: 0.3em;
597
+ }
598
+
599
+ .react-tags__selected-tag:after {
600
+ content: '\2715';
601
+ color: #aaa;
602
+ margin-left: 8px;
603
+ }
604
+
605
+ .react-tags__selected-tag:hover,
606
+ .react-tags__selected-tag:focus {
607
+ border-color: #b1b1b1;
608
+ }
609
+
610
+ .react-tags__search {
611
+ display: inline-block;
612
+
613
+ /* prevent autoresize overflowing the container */
614
+ max-width: 100%;
615
+ }
616
+
617
+ @media screen and (min-width: 30em) {
618
+ .react-tags__search {
619
+ /* this will become the offsetParent for suggestions */
620
+ position: relative;
621
+ }
622
+ }
623
+
624
+ .react-tags__search input {
625
+ /* prevent autoresize overflowing the container */
626
+ max-width: 100%;
627
+
628
+ /* emove styles and layout from this element */
629
+ margin: 0;
630
+ outline: none;
631
+ padding: 0.5em 0.3em;
632
+
633
+ /* match the font styles */
634
+ font-size: inherit;
635
+ line-height: inherit;
636
+ }
637
+
638
+ .react-tags__search input::-ms-clear {
639
+ display: none;
640
+ }
641
+
642
+ .react-tags__suggestions {
643
+ position: absolute;
644
+ top: 100%;
645
+ left: 0;
646
+ width: 100%;
647
+ }
648
+
649
+ @media screen and (min-width: 30em) {
650
+ .react-tags__suggestions {
651
+ width: 240px;
652
+ }
653
+ }
654
+
655
+ .react-tags__suggestions ul {
656
+ margin: 4px -1px;
657
+ padding: 0;
658
+ list-style: none;
659
+ background: white;
660
+ border: 1px solid #d1d1d1;
661
+ border-radius: 2px;
662
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
663
+ }
664
+
665
+ .react-tags__suggestions li {
666
+ border-bottom: 1px solid #ddd;
667
+ padding: 6px 8px;
668
+ }
669
+
670
+ .react-tags__suggestions li mark {
671
+ text-decoration: underline;
672
+ background: none;
673
+ font-weight: 600;
674
+ }
675
+
676
+ .react-tags__suggestions li:hover {
677
+ cursor: pointer;
678
+ background: #eee;
679
+ }
680
+
681
+ .react-tags__suggestions li.is-active {
682
+ background: #b7cfe0;
683
+ }
684
+
685
+ .react-tags__suggestions li.is-disabled {
686
+ opacity: 0.5;
687
+ cursor: auto;
688
+ }
689
+
690
+ input[type='radio'] {
691
+ border: 1px solid #8c8f94;
692
+ border-radius: 50%;
693
+ margin-right: 5px;
694
+ }
695
+ }
696
+
697
+ .editor-toggle {
698
+ background: #f2f2f2;
699
+ border-radius: 60px;
700
+ color: #000;
701
+ font-size: 1em;
702
+ border: 0;
703
+ position: absolute;
704
+ z-index: 100;
705
+ transition: 0.1s background;
706
+ cursor: pointer;
707
+ width: 25px;
708
+ height: 25px;
709
+ left: 307px;
710
+ box-shadow: rgba(0, 0, 0, 0.5) 0 1px 2px;
711
+
712
+ &:before {
713
+ top: 43%;
714
+ left: 50%;
715
+ transform: translate(-50%, -50%);
716
+ position: absolute;
717
+ content: '\00ab';
718
+ }
719
+
720
+ &.collapsed {
721
+ left: 1em;
722
+ margin-left: 0;
723
+
724
+ &:before {
725
+ content: '\00bb';
726
+ }
727
+ }
728
+
729
+ &:hover {
730
+ background: rgba(255, 255, 255, 1);
731
+ }
732
+ }
733
+
734
+ @include breakpointClass(md) {
735
+ .editor-panel:not(.hidden) + .cdc-chart-inner-container {
736
+ padding-left: 350px;
737
+ }
738
+ }
739
+ }
@@ -0,0 +1,3 @@
1
+ import EditorPanel from './EditorPanel'
2
+
3
+ export default EditorPanel