@cdc/data-bite 1.1.4 → 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.
@@ -9,7 +9,7 @@
9
9
  .editor-panel {
10
10
  //TODO: Remove after COVE refactor
11
11
  &.cove {
12
- @import "@cdc/core/styles/v2/layout/tooltip.scss";
12
+ @import '@cdc/core/styles/v2/layout/tooltip.scss';
13
13
  }
14
14
 
15
15
  .text-center {
@@ -24,7 +24,7 @@
24
24
  justify-content: space-between;
25
25
  > label {
26
26
  width: 48%;
27
- margin-top: 0 !important
27
+ margin-top: 0 !important;
28
28
  }
29
29
  }
30
30
  .divider-heading {
@@ -36,19 +36,19 @@
36
36
  list-style: none;
37
37
  border: $lightGray 1px solid;
38
38
  &:empty {
39
- border: none !important
39
+ border: none !important;
40
40
  }
41
41
  li {
42
- padding: .3em .5em;
42
+ padding: 0.3em 0.5em;
43
43
  display: flex;
44
44
  align-items: center;
45
45
  justify-content: space-between;
46
- font-size: .9em;
46
+ font-size: 0.9em;
47
47
  &:hover {
48
48
  background-color: $lightestGray;
49
49
  }
50
50
  span {
51
- font-size: .8em;
51
+ font-size: 0.8em;
52
52
  color: #f00;
53
53
  cursor: pointer;
54
54
  }
@@ -76,7 +76,7 @@
76
76
  }
77
77
  .number-narrow {
78
78
  min-width: auto;
79
- width: 75px
79
+ width: 75px;
80
80
  }
81
81
  }
82
82
  .accordion__divider {
@@ -91,7 +91,7 @@
91
91
  }
92
92
  .guidance-link {
93
93
  margin: 2em 1em 0;
94
- padding: .75em 1em;
94
+ padding: 0.75em 1em;
95
95
  svg {
96
96
  width: 60px;
97
97
  color: $blue;
@@ -103,13 +103,13 @@
103
103
  }
104
104
  }
105
105
  .warning {
106
- color: #D8000C;
107
- background-color: #FFD2D2;
108
- padding: .75em 1em;
106
+ color: #d8000c;
107
+ background-color: #ffd2d2;
108
+ padding: 0.75em 1em;
109
109
  margin: 1em 0;
110
- font-size: .8em;
111
- border: #D8000C 1px solid;
112
- border-radius: .4em;
110
+ font-size: 0.8em;
111
+ border: #d8000c 1px solid;
112
+ border-radius: 0.4em;
113
113
  strong {
114
114
  font-weight: 600;
115
115
  display: block;
@@ -118,13 +118,15 @@
118
118
  .accordion__button {
119
119
  cursor: pointer;
120
120
  font-size: 1em;
121
- padding: .3em 1em;
121
+ padding: 0.3em 1em;
122
122
  width: 100%;
123
123
  text-align: left;
124
124
  position: relative;
125
125
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
126
126
  }
127
- .accordion__panel:first-child { margin-top: 0; }
127
+ .accordion__panel:first-child {
128
+ margin-top: 0;
129
+ }
128
130
  .accordion__button:before {
129
131
  display: inline-block;
130
132
  content: '';
@@ -138,14 +140,14 @@
138
140
  position: absolute;
139
141
  top: 50%;
140
142
  transform: rotate(-45deg) translateY(-50%);
141
- transition: .1s all;
143
+ transition: 0.1s all;
142
144
  }
143
145
 
144
146
  .accordion__button[aria-expanded='true']::before,
145
147
  .accordion__button[aria-selected='true']::before {
146
148
  transform: rotate(45deg) translateY(-50%);
147
149
  margin-right: 1.3em;
148
- transition: .1s all;
150
+ transition: 0.1s all;
149
151
  }
150
152
 
151
153
  .accordion__panel {
@@ -153,7 +155,7 @@
153
155
  padding: 1em 1.25em 2em;
154
156
  animation: fadein 0.2s ease-in;
155
157
  h5 {
156
- font-size: .8em;
158
+ font-size: 0.8em;
157
159
  }
158
160
 
159
161
  .accordion__panel-row {
@@ -161,7 +163,7 @@
161
163
  justify-content: flex-start;
162
164
  margin-left: -4px;
163
165
  margin-right: -4px;
164
- margin-bottom: 0.75em
166
+ margin-bottom: 0.75em;
165
167
  }
166
168
 
167
169
  .accordion__panel-col {
@@ -191,23 +193,28 @@
191
193
  justify-content: flex-end;
192
194
  }
193
195
 
194
- .flex-grow { flex-grow: 1; }
195
- .flex-shrink { flex-shrink: 1; }
196
- .flex-auto { flex-basis: auto; }
196
+ .flex-grow {
197
+ flex-grow: 1;
198
+ }
199
+ .flex-shrink {
200
+ flex-shrink: 1;
201
+ }
202
+ .flex-auto {
203
+ flex-basis: auto;
204
+ }
197
205
  }
198
206
 
199
207
  .advanced {
200
208
  padding: 0 1em 1em;
201
209
  text-align: left;
202
210
  p {
203
- font-size: .8rem;
211
+ font-size: 0.8rem;
204
212
  }
205
213
  .advanced-toggle-link {
206
214
  padding-top: 1em;
207
215
  display: block;
208
216
  text-align: left;
209
217
  cursor: pointer;
210
- color: rgba(0,0,0,.5);
211
218
  text-decoration: underline;
212
219
  span {
213
220
  text-decoration: none;
@@ -216,16 +223,16 @@
216
223
  padding-right: 5px;
217
224
  }
218
225
  &:hover {
219
- color: rgba(0,0,0,.7);
226
+ color: rgba(0, 0, 0, 0.7);
220
227
  }
221
228
  }
222
229
  textarea {
223
230
  height: 400px;
224
231
  width: 100%;
225
- font-size: .9em;
226
- padding: .5em;
232
+ font-size: 0.9em;
233
+ padding: 0.5em;
227
234
  font-family: monospace;
228
- box-sizing: border-box
235
+ box-sizing: border-box;
229
236
  }
230
237
  }
231
238
 
@@ -243,22 +250,22 @@
243
250
  background: #565656;
244
251
  color: #fff;
245
252
  font-size: 1.1em;
246
- padding: .6em 1em;
253
+ padding: 0.6em 1em;
247
254
  position: relative;
248
- border-bottom:#565656 3px solid;
255
+ border-bottom: #565656 3px solid;
249
256
  z-index: 3;
250
257
  }
251
258
 
252
259
  label {
253
260
  text-transform: uppercase;
254
261
  display: block;
255
- font-size: .8em;
262
+ font-size: 0.8em;
256
263
  font-weight: 600;
257
264
  &:not(:first-child) {
258
265
  margin-top: 1em;
259
266
  }
260
267
  span.edit-label {
261
- margin-bottom: .3em;
268
+ margin-bottom: 0.3em;
262
269
  display: block;
263
270
  }
264
271
  span.column-heading {
@@ -276,7 +283,10 @@
276
283
  }
277
284
  }
278
285
  }
279
- input[type="text"], input[role="combobox"], input[type="number"], textarea {
286
+ input[type='text'],
287
+ input[role='combobox'],
288
+ input[type='number'],
289
+ textarea {
280
290
  min-width: 100%;
281
291
  max-width: 100%; // Doing this prevents width of textarea from being changed
282
292
  }
@@ -293,7 +303,7 @@
293
303
  display: flex;
294
304
  max-width: 100%;
295
305
  padding: 0;
296
- margin: .5em 0 0 0;
306
+ margin: 0.5em 0 0 0;
297
307
  list-style: none;
298
308
  flex-wrap: wrap;
299
309
  li {
@@ -314,7 +324,7 @@
314
324
  bottom: 0;
315
325
  }
316
326
  &.selected {
317
- border: rgba(0,0,0, .8) 2px solid;
327
+ border: rgba(0, 0, 0, 0.8) 2px solid;
318
328
  }
319
329
  span {
320
330
  width: 33.3%;
@@ -337,13 +347,15 @@
337
347
  li {
338
348
  margin-top: 1em;
339
349
  }
340
- .three-col, .two-col {
350
+ .three-col,
351
+ .two-col {
341
352
  display: flex;
342
353
  justify-content: space-between;
343
354
  > label {
344
355
  margin-top: 0;
345
356
  display: inline-block;
346
- input[type="text"], input[type="number"] {
357
+ input[type='text'],
358
+ input[type='number'] {
347
359
  width: 50px;
348
360
  }
349
361
  }
@@ -368,12 +380,12 @@
368
380
  .remove-column {
369
381
  float: right;
370
382
  text-transform: uppercase;
371
- color: #C32B2B;
372
- font-size: .7em;
383
+ color: #c32b2b;
384
+ font-size: 0.7em;
373
385
  line-height: 1.6em;
374
386
  border-radius: 5px;
375
387
  margin: 0 auto;
376
- transition: .1s all;
388
+ transition: 0.1s all;
377
389
  border: 0;
378
390
  text-decoration: underline;
379
391
  outline: 0;
@@ -384,11 +396,12 @@
384
396
  .edit-block {
385
397
  padding-left: 1em;
386
398
  border-left: rgba(0, 0, 0, 0.2) 4px solid;
387
- transition: .2s all;
399
+ transition: 0.2s all;
388
400
  &:not(:first-child) {
389
401
  margin-top: 2em;
390
402
  }
391
- input[type="text"], input[type="number"] {
403
+ input[type='text'],
404
+ input[type='number'] {
392
405
  font-size: 1em;
393
406
  }
394
407
  label {
@@ -399,13 +412,13 @@
399
412
  }
400
413
  &:hover {
401
414
  border-left: rgba(0, 0, 0, 0.7) 4px solid;
402
- transition: .2s all;
415
+ transition: 0.2s all;
403
416
  }
404
417
  }
405
418
 
406
419
  span.subtext {
407
420
  display: block;
408
- color: rgba(0,0,0,.5);
421
+ color: rgba(0, 0, 0, 0.5);
409
422
  text-transform: none;
410
423
  font-weight: normal;
411
424
  }
@@ -416,24 +429,24 @@
416
429
  .sort-list {
417
430
  list-style: none;
418
431
  > li {
419
- margin-right: .3em;
420
- margin-bottom: .3em;
432
+ margin-right: 0.3em;
433
+ margin-bottom: 0.3em;
421
434
  }
422
435
  }
423
436
  .sort-list li > div {
424
437
  display: block;
425
438
  box-sizing: border-box;
426
- border: 1px solid #D1D1D1;
439
+ border: 1px solid #d1d1d1;
427
440
  border-radius: 2px;
428
- background: #F1F1F1;
429
- padding: .4em .6em;
430
- font-size: .8em;
431
- margin-bottom: .3em;
441
+ background: #f1f1f1;
442
+ padding: 0.4em 0.6em;
443
+ font-size: 0.8em;
444
+ margin-bottom: 0.3em;
432
445
  cursor: move;
433
446
  }
434
447
 
435
448
  .info {
436
- font-size: .8em;
449
+ font-size: 0.8em;
437
450
  line-height: 1.4em;
438
451
  font-style: italic;
439
452
  padding-top: 10px;
@@ -446,12 +459,12 @@
446
459
  .react-tags {
447
460
  position: relative;
448
461
  input.react-tags__search-input {
449
- font-size: .8rem;
462
+ font-size: 0.8rem;
450
463
  }
451
464
  /* clicking anywhere will focus the input */
452
465
  cursor: text;
453
466
  span {
454
- display: inline
467
+ display: inline;
455
468
  }
456
469
  }
457
470
 
@@ -466,24 +479,24 @@
466
479
  .react-tags__selected-tag {
467
480
  display: inline-block;
468
481
  box-sizing: border-box;
469
- border: 1px solid #D1D1D1;
482
+ border: 1px solid #d1d1d1;
470
483
  border-radius: 2px;
471
- background: #F1F1F1;
472
- padding: .4em .6em;
473
- font-size: .8em;
474
- margin-right: .3em;
475
- margin-bottom: .3em;
484
+ background: #f1f1f1;
485
+ padding: 0.4em 0.6em;
486
+ font-size: 0.8em;
487
+ margin-right: 0.3em;
488
+ margin-bottom: 0.3em;
476
489
  }
477
490
 
478
491
  .react-tags__selected-tag:after {
479
492
  content: '\2715';
480
- color: #AAA;
493
+ color: #aaa;
481
494
  margin-left: 8px;
482
495
  }
483
496
 
484
497
  .react-tags__selected-tag:hover,
485
498
  .react-tags__selected-tag:focus {
486
- border-color: #B1B1B1;
499
+ border-color: #b1b1b1;
487
500
  }
488
501
 
489
502
  .react-tags__search {
@@ -498,7 +511,7 @@
498
511
  padding: 0;
499
512
  list-style: none;
500
513
  background: white;
501
- border: 1px solid #D1D1D1;
514
+ border: 1px solid #d1d1d1;
502
515
  border-radius: 2px;
503
516
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
504
517
  }
@@ -527,38 +540,37 @@
527
540
  opacity: 0.5;
528
541
  cursor: auto;
529
542
  }
530
-
531
543
  }
532
544
  .editor-toggle {
533
- background: #F2F2F2;
545
+ background: #f2f2f2;
534
546
  border-radius: 60px;
535
547
  color: #000;
536
548
  font-size: 1em;
537
549
  border: 0;
538
550
  position: fixed;
539
551
  z-index: 100;
540
- transition: .1s background;
552
+ transition: 0.1s background;
541
553
  cursor: pointer;
542
554
  width: 25px;
543
555
  height: 25px;
544
556
  left: 307px;
545
557
  top: 10px;
546
- box-shadow: rgba(0,0,0,.5) 0 1px 2px;
558
+ box-shadow: rgba(0, 0, 0, 0.5) 0 1px 2px;
547
559
  &:before {
548
560
  top: 43%;
549
561
  left: 50%;
550
562
  transform: translate(-50%, -50%);
551
563
  position: absolute;
552
- content: "\00ab";
564
+ content: '\00ab';
553
565
  }
554
566
  &.collapsed {
555
567
  left: 1em;
556
568
  margin-left: 0;
557
569
  &:before {
558
- content: "\00bb";
570
+ content: '\00bb';
559
571
  }
560
572
  }
561
573
  &:hover {
562
- background: rgba(255,255,255,1)
574
+ background: rgba(255, 255, 255, 1);
563
575
  }
564
576
  }
@@ -1,6 +1,6 @@
1
1
  @import '~@cdc/core/styles/base';
2
- @import "~@cdc/core/styles/heading-colors";
3
- @import "~@cdc/core/styles/v2/themes/color-definitions";
2
+ @import '~@cdc/core/styles/heading-colors';
3
+ @import '~@cdc/core/styles/v2/themes/color-definitions';
4
4
  @import 'variables';
5
5
 
6
6
  .cdc-open-viz-module.type-data-bite {
@@ -11,6 +11,14 @@
11
11
  left: -10000px;
12
12
  }
13
13
 
14
+ .checkbox-group {
15
+ padding: 16px;
16
+ border: 1px solid #c4c4c4;
17
+ border-radius: 8px;
18
+ margin-top: 8px;
19
+ margin-bottom: 24px;
20
+ }
21
+
14
22
  .loader {
15
23
  width: 100%;
16
24
  text-align: center;
@@ -26,10 +34,10 @@
26
34
  background: #005eaa;
27
35
  color: #fff;
28
36
  border: 0;
29
- padding: .4em .8em;
37
+ padding: 0.4em 0.8em;
30
38
  display: block;
31
39
  border-radius: 5px;
32
- transition: .1s all;
40
+ transition: 0.1s all;
33
41
  cursor: pointer;
34
42
 
35
43
  &[disabled] {
@@ -53,8 +61,8 @@
53
61
 
54
62
  .tooltip {
55
63
  background-color: #fff;
56
- border: rgba(0,0,0,0.3) 1px solid !important;
57
- box-shadow: rgba(0,0,0,.1) 3px 3px 7px;
64
+ border: rgba(0, 0, 0, 0.3) 1px solid !important;
65
+ box-shadow: rgba(0, 0, 0, 0.1) 3px 3px 7px;
58
66
  line-height: 1.4em;
59
67
  font-size: 1em !important;
60
68
  border-radius: 4px !important;
@@ -62,10 +70,10 @@
62
70
  opacity: 1;
63
71
  }
64
72
 
65
- &.font-small .cdc-data-bite-inner-container .bite-content-container {
66
- font-size: .9em !important;
73
+ &.font-small .bite-content-container {
74
+ font-size: 0.9em !important;
67
75
  }
68
- &.font-large .cdc-data-bite-inner-container .bite-content-container {
76
+ &.font-large .bite-content-container {
69
77
  font-size: 1.1em !important;
70
78
  }
71
79
  // Medium is just the default
@@ -1 +1 @@
1
- $editorWidth: 350px;
1
+ $editorWidth: 350px;