@carbon/charts 1.11.21 → 1.12.0

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 (71) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +3 -3
  3. package/dist/demo/index.mjs +227 -244
  4. package/dist/demo/index.mjs.map +1 -1
  5. package/dist/demo/styles.css +4499 -692
  6. package/dist/demo/styles.css.map +1 -1
  7. package/dist/demo/utils/package-versions.d.ts +0 -2
  8. package/dist/styles.css +4249 -781
  9. package/dist/styles.css.map +1 -1
  10. package/dist/styles.min.css +1 -1
  11. package/dist/styles.min.css.map +1 -1
  12. package/package.json +21 -21
  13. package/scss/_chart-holder.scss +18 -17
  14. package/scss/_chart-wrapper.scss +6 -0
  15. package/scss/_color-palette.scss +2 -2
  16. package/scss/_colors.scss +26 -25
  17. package/scss/_globals.scss +8 -0
  18. package/scss/_tokens.scss +50 -50
  19. package/scss/_transition.scss +4 -0
  20. package/scss/_type.scss +14 -14
  21. package/scss/components/_axis.scss +12 -11
  22. package/scss/components/_callouts.scss +4 -3
  23. package/scss/components/_color-legend.scss +4 -4
  24. package/scss/components/_grid-brush.scss +7 -5
  25. package/scss/components/_grid.scss +9 -8
  26. package/scss/components/_highlights.scss +6 -3
  27. package/scss/components/_layout.scss +5 -3
  28. package/scss/components/_legend.scss +14 -11
  29. package/scss/components/_meter-title.scss +11 -9
  30. package/scss/components/_modal.scss +14 -11
  31. package/scss/components/_ruler.scss +6 -3
  32. package/scss/components/_skeleton-lines.scss +9 -6
  33. package/scss/components/_skeleton.scss +9 -6
  34. package/scss/components/_threshold.scss +12 -11
  35. package/scss/components/_title.scss +5 -5
  36. package/scss/components/_toolbar.scss +6 -6
  37. package/scss/components/_tooltip.scss +12 -11
  38. package/scss/components/_zero-line.scss +4 -3
  39. package/scss/components/_zoom-bar.scss +16 -14
  40. package/scss/components/diagrams/_card-node.scss +74 -74
  41. package/scss/components/diagrams/_edge.scss +46 -49
  42. package/scss/components/diagrams/_marker.scss +4 -5
  43. package/scss/components/diagrams/_shape-node.scss +72 -73
  44. package/scss/components/diagrams/index.scss +4 -4
  45. package/scss/components/index.scss +20 -20
  46. package/scss/demos.scss +1 -0
  47. package/scss/graphs/_alluvial.scss +7 -6
  48. package/scss/graphs/_area.scss +4 -2
  49. package/scss/graphs/_bubble.scss +6 -5
  50. package/scss/graphs/_bullet.scss +11 -13
  51. package/scss/graphs/_choropleth.scss +7 -7
  52. package/scss/graphs/_circle-pack.scss +7 -6
  53. package/scss/graphs/_donut.scss +3 -1
  54. package/scss/graphs/_gauge.scss +7 -6
  55. package/scss/graphs/_heatmap.scss +6 -6
  56. package/scss/graphs/_line.scss +6 -4
  57. package/scss/graphs/_lollipop.scss +3 -1
  58. package/scss/graphs/_meter.scss +11 -10
  59. package/scss/graphs/_pie.scss +3 -1
  60. package/scss/graphs/_radar.scss +6 -5
  61. package/scss/graphs/_scatter-stacked.scss +4 -3
  62. package/scss/graphs/_scatter.scss +6 -5
  63. package/scss/graphs/_tree.scss +11 -9
  64. package/scss/graphs/_treemap.scss +3 -1
  65. package/scss/graphs/_wordcloud.scss +3 -1
  66. package/scss/graphs/index.scss +19 -19
  67. package/scss/index.scss +10 -31
  68. package/styles.css +4249 -781
  69. package/styles.min.css +1 -1
  70. package/scss/components/_edge.scss +0 -65
  71. package/scss/components/_marker.scss +0 -7
package/scss/_tokens.scss CHANGED
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '@carbon/styles/scss/themes';
3
+ @use '@carbon/colors';
3
4
  @use '@carbon/styles/scss/utilities/component-tokens';
4
- @use '@carbon/colors' as *;
5
5
 
6
6
  // THEMES
7
7
  $color-scheme: (
@@ -28,15 +28,15 @@ $color-scheme: (
28
28
 
29
29
  // ELEMENTS
30
30
  $alert-stroke: (
31
- fallback: $yellow-50,
31
+ fallback: colors.$yellow-50,
32
32
  values: (
33
33
  (
34
34
  theme: themes.$white,
35
- value: $yellow-50
35
+ value: colors.$yellow-50
36
36
  ),
37
37
  (
38
38
  theme: themes.$g10,
39
- value: $yellow-50
39
+ value: colors.$yellow-50
40
40
  ),
41
41
  (
42
42
  theme: themes.$g90,
@@ -50,45 +50,45 @@ $alert-stroke: (
50
50
  ) !default;
51
51
 
52
52
  $layer-01-absolute: (
53
- fallback: $white-0,
53
+ fallback: colors.$white-0,
54
54
  values: (
55
55
  (
56
56
  theme: themes.$white,
57
- value: $white-0
57
+ value: colors.$white-0
58
58
  ),
59
59
  (
60
60
  theme: themes.$g10,
61
- value: $white-0
61
+ value: colors.$white-0
62
62
  ),
63
63
  (
64
64
  theme: themes.$g90,
65
- value: $black-100
65
+ value: colors.$black-100
66
66
  ),
67
67
  (
68
68
  theme: themes.$g100,
69
- value: $black-100
69
+ value: colors.$black-100
70
70
  )
71
71
  )
72
72
  ) !default;
73
73
 
74
74
  $layer-inverse-absolute: (
75
- fallback: $black-100,
75
+ fallback: colors.$black-100,
76
76
  values: (
77
77
  (
78
78
  theme: themes.$white,
79
- value: $black-100
79
+ value: colors.$black-100
80
80
  ),
81
81
  (
82
82
  theme: themes.$g10,
83
- value: $black-100
83
+ value: colors.$black-100
84
84
  ),
85
85
  (
86
86
  theme: themes.$g90,
87
- value: $white-0
87
+ value: colors.$white-0
88
88
  ),
89
89
  (
90
90
  theme: themes.$g100,
91
- value: $white-0
91
+ value: colors.$white-0
92
92
  )
93
93
  )
94
94
  ) !default;
@@ -129,7 +129,7 @@ $grid-bg: (
129
129
  ),
130
130
  (
131
131
  theme: themes.$g90,
132
- value: $gray-100
132
+ value: colors.$gray-100
133
133
  ),
134
134
  (
135
135
  theme: themes.$g100,
@@ -140,23 +140,23 @@ $grid-bg: (
140
140
 
141
141
  // METER
142
142
  $meter-range-indicator: (
143
- fallback: $gray-40,
143
+ fallback: colors.$gray-40,
144
144
  values: (
145
145
  (
146
146
  theme: themes.$white,
147
- value: $gray-40
147
+ value: colors.$gray-40
148
148
  ),
149
149
  (
150
150
  theme: themes.$g10,
151
- value: $gray-40
151
+ value: colors.$gray-40
152
152
  ),
153
153
  (
154
154
  theme: themes.$g90,
155
- value: $gray-60
155
+ value: colors.$gray-60
156
156
  ),
157
157
  (
158
158
  theme: themes.$g100,
159
- value: $gray-60
159
+ value: colors.$gray-60
160
160
  )
161
161
  )
162
162
  ) !default;
@@ -209,130 +209,130 @@ $tooltip-line-border: (
209
209
 
210
210
  // ZONES
211
211
  $zone-fill-01: (
212
- fallback: $gray-10,
212
+ fallback: colors.$gray-10,
213
213
  values: (
214
214
  (
215
215
  theme: themes.$white,
216
- value: $gray-10
216
+ value: colors.$gray-10
217
217
  ),
218
218
  (
219
219
  theme: themes.$g10,
220
- value: $gray-10
220
+ value: colors.$gray-10
221
221
  ),
222
222
  (
223
223
  theme: themes.$g90,
224
- value: $gray-90
224
+ value: colors.$gray-90
225
225
  ),
226
226
  (
227
227
  theme: themes.$g100,
228
- value: $gray-90
228
+ value: colors.$gray-90
229
229
  )
230
230
  )
231
231
  ) !default;
232
232
  $zone-stroke-01: (
233
- fallback: $gray-50,
233
+ fallback: colors.$gray-50,
234
234
  values: (
235
235
  (
236
236
  theme: themes.$white,
237
- value: $gray-50
237
+ value: colors.$gray-50
238
238
  ),
239
239
  (
240
240
  theme: themes.$g10,
241
- value: $gray-50
241
+ value: colors.$gray-50
242
242
  ),
243
243
  (
244
244
  theme: themes.$g90,
245
- value: $gray-60
245
+ value: colors.$gray-60
246
246
  ),
247
247
  (
248
248
  theme: themes.$g100,
249
- value: $gray-60
249
+ value: colors.$gray-60
250
250
  )
251
251
  )
252
252
  ) !default;
253
253
 
254
254
  $zone-fill-02: (
255
- fallback: $gray-20,
255
+ fallback: colors.$gray-20,
256
256
  values: (
257
257
  (
258
258
  theme: themes.$white,
259
- value: $gray-20
259
+ value: colors.$gray-20
260
260
  ),
261
261
  (
262
262
  theme: themes.$g10,
263
- value: $gray-20
263
+ value: colors.$gray-20
264
264
  ),
265
265
  (
266
266
  theme: themes.$g90,
267
- value: $gray-80
267
+ value: colors.$gray-80
268
268
  ),
269
269
  (
270
270
  theme: themes.$g100,
271
- value: $gray-80
271
+ value: colors.$gray-80
272
272
  )
273
273
  )
274
274
  ) !default;
275
275
  $zone-stroke-02: (
276
- fallback: $gray-50,
276
+ fallback: colors.$gray-50,
277
277
  values: (
278
278
  (
279
279
  theme: themes.$white,
280
- value: $gray-50
280
+ value: colors.$gray-50
281
281
  ),
282
282
  (
283
283
  theme: themes.$g10,
284
- value: $gray-50
284
+ value: colors.$gray-50
285
285
  ),
286
286
  (
287
287
  theme: themes.$g90,
288
- value: $gray-60
288
+ value: colors.$gray-60
289
289
  ),
290
290
  (
291
291
  theme: themes.$g100,
292
- value: $gray-60
292
+ value: colors.$gray-60
293
293
  )
294
294
  )
295
295
  ) !default;
296
296
 
297
297
  $zone-fill-03: (
298
- fallback: $gray-30,
298
+ fallback: colors.$gray-30,
299
299
  values: (
300
300
  (
301
301
  theme: themes.$white,
302
- value: $gray-30
302
+ value: colors.$gray-30
303
303
  ),
304
304
  (
305
305
  theme: themes.$g10,
306
- value: $gray-30
306
+ value: colors.$gray-30
307
307
  ),
308
308
  (
309
309
  theme: themes.$g90,
310
- value: $gray-70
310
+ value: colors.$gray-70
311
311
  ),
312
312
  (
313
313
  theme: themes.$g100,
314
- value: $gray-70
314
+ value: colors.$gray-70
315
315
  )
316
316
  )
317
317
  ) !default;
318
318
  $zone-stroke-03: (
319
- fallback: $gray-50,
319
+ fallback: colors.$gray-50,
320
320
  values: (
321
321
  (
322
322
  theme: themes.$white,
323
- value: $gray-50
323
+ value: colors.$gray-50
324
324
  ),
325
325
  (
326
326
  theme: themes.$g10,
327
- value: $gray-50
327
+ value: colors.$gray-50
328
328
  ),
329
329
  (
330
330
  theme: themes.$g90,
331
- value: $gray-60
331
+ value: colors.$gray-60
332
332
  ),
333
333
  (
334
334
  theme: themes.$g100,
335
- value: $gray-60
335
+ value: colors.$gray-60
336
336
  )
337
337
  )
338
338
  ) !default;
@@ -0,0 +1,4 @@
1
+ // Used by ./colors and ./components/tree
2
+ @mixin default_transition {
3
+ transition: all 0.1s ease-out;
4
+ }
package/scss/_type.scss CHANGED
@@ -1,14 +1,14 @@
1
- @use '@carbon/styles/scss/type' as *;
2
- @use '@carbon/styles/scss/theme' as *;
3
- @use '@carbon/layout' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '@carbon/layout';
3
+ @use 'globals';
4
4
 
5
- .#{$prefix}--#{$charts-prefix}--chart-wrapper {
6
- // Set CSS custom properties using font-family mixin then reuse them
7
- --#{$prefix}-charts-font-family: #{font-family('sans')};
8
- --#{$prefix}-charts-font-family-condensed: #{font-family('sans-condensed')};
9
-
10
- font-family: var(--#{$prefix}-charts-font-family-condensed);
5
+ .#{globals.$prefix}--chart-holder {
6
+ --#{globals.$prefix}-charts-font-family: #{globals.$font-family};
7
+ --#{globals.$prefix}-charts-font-family-condensed: #{globals.$font-family-condensed};
8
+ font-family: var(--#{globals.$prefix}-charts-font-family);
9
+ }
11
10
 
11
+ .#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper {
12
12
  p {
13
13
  padding: 0;
14
14
  margin: 0;
@@ -16,7 +16,7 @@
16
16
  // TODO-V11
17
17
  // font-weight: font-weight('regular');
18
18
  font-weight: 400;
19
- color: $text-secondary;
19
+ color: theme.$text-secondary;
20
20
  }
21
21
 
22
22
  text {
@@ -24,11 +24,11 @@
24
24
  // TODO-V11
25
25
  // font-weight: font-weight('regular');
26
26
  font-weight: 400;
27
- fill: $text-secondary;
27
+ fill: theme.$text-secondary;
28
28
  }
29
29
 
30
30
  g.gauge-numbers text.gauge-value-number {
31
- font-family: var(--#{$prefix}-charts-font-family);
31
+ font-family: var(--#{globals.$prefix}-charts-font-family);
32
32
  // TODO-V11
33
33
  // font-weight: font-weight('light');
34
34
  font-weight: 300;
@@ -36,8 +36,8 @@
36
36
 
37
37
  text.meter-title,
38
38
  text.percent-value {
39
- font-size: $base-font-size;
40
- font-family: var(--#{$prefix}-charts-font-family);
39
+ font-size: layout.$base-font-size;
40
+ font-family: var(--#{globals.$prefix}-charts-font-family);
41
41
  }
42
42
 
43
43
  text.meter-title {
@@ -1,7 +1,8 @@
1
- @use '@carbon/styles/scss/type' as *;
2
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '../globals';
2
+ @use '@carbon/styles/scss/theme';
3
3
 
4
- .#{$prefix}--#{$charts-prefix}--axes {
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--axes {
5
+ font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
5
6
  overflow: visible;
6
7
 
7
8
  g.axis {
@@ -18,19 +19,19 @@
18
19
  g.tick-hover:hover,
19
20
  g.tick-hover:focus {
20
21
  rect.axis-holder {
21
- fill: $layer-selected-inverse;
22
- stroke: $layer-selected-inverse;
22
+ fill: theme.$layer-selected-inverse;
23
+ stroke: theme.$layer-selected-inverse;
23
24
  stroke-width: 2px;
24
25
  }
25
26
 
26
27
  text {
27
- fill: $layer-selected;
28
+ fill: theme.$layer-selected;
28
29
  }
29
30
  }
30
31
 
31
32
  g.tick text {
32
- fill: $text-secondary;
33
- font-family: var(--#{$prefix}-charts-font-family-condensed);
33
+ fill: theme.$text-secondary;
34
+ font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
34
35
  }
35
36
 
36
37
  g.tick line {
@@ -38,15 +39,15 @@
38
39
  }
39
40
 
40
41
  path.domain {
41
- stroke: $border-strong-01;
42
+ stroke: theme.$border-strong-01;
42
43
  }
43
44
 
44
45
  .axis-title {
45
- font-family: var(--#{$prefix}-charts-font-family);
46
+ font-family: var(--#{globals.$prefix}-charts-font-family);
46
47
  // TODO-V11
47
48
  // font-weight: font-weight('semibold');
48
49
  font-weight: 600;
49
- fill: $text-primary;
50
+ fill: theme.$text-primary;
50
51
  }
51
52
  }
52
53
  }
@@ -1,5 +1,6 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '../globals';
2
+ @use '@carbon/styles/scss/theme';
2
3
 
3
- .#{$prefix}--#{$charts-prefix}--chart-wrapper g.callouts {
4
- stroke: $text-secondary;
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper g.callouts {
5
+ stroke: theme.$text-secondary;
5
6
  }
@@ -1,11 +1,11 @@
1
- @use '@carbon/styles/scss/themes';
2
- @use '@carbon/styles/scss/theme';
1
+ @use '../globals';
2
+ @use '../tokens';
3
3
 
4
- svg.#{$prefix}--#{$charts-prefix}--color-legend {
4
+ svg.#{globals.$prefix}--#{globals.$charts-prefix}--color-legend {
5
5
  display: flex;
6
6
  user-select: none;
7
7
 
8
8
  g.legend-title text {
9
- fill: $layer-inverse-absolute;
9
+ fill: tokens.$layer-inverse-absolute;
10
10
  }
11
11
  }
@@ -1,6 +1,8 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '@carbon/styles/scss/components/button';
3
+ @use '../globals';
2
4
 
3
- .#{$prefix}--#{$charts-prefix}--grid-brush {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--grid-brush {
4
6
  // disable default d3 brush selection
5
7
  g.grid-brush {
6
8
  rect.selection {
@@ -11,10 +13,10 @@
11
13
  }
12
14
  }
13
15
 
14
- .#{$prefix}--#{$charts-prefix}--grid-brush {
16
+ .#{globals.$prefix}--#{globals.$charts-prefix}--grid-brush {
15
17
  rect.frontSelection {
16
- fill: $layer-accent-01;
18
+ fill: theme.$layer-accent-01;
17
19
  fill-opacity: 0.3;
18
- stroke: $button-tertiary;
20
+ stroke: button.$button-tertiary;
19
21
  }
20
22
  }
@@ -1,17 +1,18 @@
1
- @use '@carbon/styles/scss/themes';
2
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../globals';
3
+ @use '../tokens';
3
4
 
4
- .#{$prefix}--#{$charts-prefix}--grid {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--grid {
5
6
  rect.chart-grid-backdrop {
6
- fill: $grid-bg;
7
+ fill: tokens.$grid-bg;
7
8
  }
8
9
 
9
10
  rect.chart-grid-backdrop.stroked {
10
- stroke: $layer-accent-01;
11
+ stroke: theme.$layer-accent-01;
11
12
  }
12
13
 
13
14
  rect.stroke {
14
- stroke: $layer-accent-01;
15
+ stroke: theme.$layer-accent-01;
15
16
  }
16
17
 
17
18
  g.x.grid g.tick,
@@ -19,12 +20,12 @@
19
20
  line {
20
21
  pointer-events: none;
21
22
  stroke-width: 1px;
22
- stroke: $layer-accent-01;
23
+ stroke: theme.$layer-accent-01;
23
24
  }
24
25
 
25
26
  &.active line {
26
27
  stroke-dasharray: 2px;
27
- stroke: $focus;
28
+ stroke: theme.$focus;
28
29
  }
29
30
  }
30
31
  }
@@ -1,7 +1,10 @@
1
- .#{$prefix}--#{$charts-prefix}--highlight {
1
+ @use '../globals';
2
+ @use '@carbon/colors';
3
+
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--highlight {
2
5
  rect.highlight-bar {
3
6
  pointer-events: none;
4
- fill: $magenta-50;
5
- stroke: $magenta-50;
7
+ fill: colors.$magenta-50;
8
+ stroke: colors.$magenta-50;
6
9
  }
7
10
  }
@@ -1,4 +1,6 @@
1
- .#{$prefix}--#{$charts-prefix}--layout {
1
+ @use '../globals';
2
+
3
+ .#{globals.$prefix}--#{globals.$charts-prefix}--layout {
2
4
  &-row {
3
5
  display: flex;
4
6
  flex-direction: row;
@@ -24,11 +26,11 @@
24
26
  }
25
27
  }
26
28
 
27
- .#{$prefix}--#{$charts-prefix}--chart-wrapper .layout-child {
29
+ .#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper .layout-child {
28
30
  overflow: visible;
29
31
  }
30
32
 
31
- .#{$prefix}--#{$charts-prefix}--chart-wrapper svg.layout-svg-wrapper {
33
+ .#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper svg.layout-svg-wrapper {
32
34
  height: inherit;
33
35
  width: inherit;
34
36
  overflow: visible;
@@ -1,6 +1,9 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '@carbon/colors';
3
+ @use '../globals';
2
4
 
3
- div.#{$prefix}--#{$charts-prefix}--legend {
5
+ div.#{globals.$prefix}--#{globals.$charts-prefix}--legend {
6
+ font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
4
7
  display: flex;
5
8
  user-select: none;
6
9
  -webkit-flex-wrap: wrap;
@@ -21,7 +24,7 @@ div.#{$prefix}--#{$charts-prefix}--legend {
21
24
  height: 13px;
22
25
  margin-right: 4px;
23
26
  border-radius: 2px;
24
- border: solid 1px $background;
27
+ border: solid 1px theme.$background;
25
28
  box-shadow: 0 0 0 2px transparent;
26
29
 
27
30
  @media (forced-colors: active) {
@@ -29,15 +32,15 @@ div.#{$prefix}--#{$charts-prefix}--legend {
29
32
  }
30
33
 
31
34
  &:not(.active) {
32
- border-color: $text-secondary;
33
- background: $background;
35
+ border-color: theme.$text-secondary;
36
+ background: theme.$background;
34
37
  }
35
38
 
36
39
  svg {
37
40
  display: none;
38
41
  vertical-align: text-top;
39
- fill: $background;
40
- stroke: $background;
42
+ fill: theme.$background;
43
+ stroke: theme.$background;
41
44
  }
42
45
  }
43
46
 
@@ -49,7 +52,7 @@ div.#{$prefix}--#{$charts-prefix}--legend {
49
52
 
50
53
  p {
51
54
  font-size: 12px;
52
- fill: $text-secondary;
55
+ fill: theme.$text-secondary;
53
56
  line-height: 1rem;
54
57
  }
55
58
  }
@@ -86,11 +89,11 @@ div.#{$prefix}--#{$charts-prefix}--legend {
86
89
  cursor: pointer;
87
90
 
88
91
  div.checkbox {
89
- border: solid 1px $background;
90
- box-shadow: 0 0 0 2px $blue-60;
92
+ border: solid 1px theme.$background;
93
+ box-shadow: 0 0 0 2px colors.$blue-60;
91
94
 
92
95
  &:not(.active) {
93
- border-color: $text-secondary;
96
+ border-color: theme.$text-secondary;
94
97
  }
95
98
  }
96
99
  }
@@ -1,37 +1,39 @@
1
- @use '@carbon/styles/scss/themes';
2
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/colors';
2
+ @use '@carbon/styles/scss/theme';
3
+ @use '../globals';
4
+ @use '../tokens';
3
5
 
4
- .#{$prefix}--#{$charts-prefix}--meter-title {
6
+ .#{globals.$prefix}--#{globals.$charts-prefix}--meter-title {
5
7
  overflow: visible;
6
8
 
7
9
  text.meter-title,
8
10
  text.proportional-meter-title,
9
11
  text.proportional-meter-total,
10
12
  text.percent-value {
11
- fill: $text-primary;
13
+ fill: theme.$text-primary;
12
14
  }
13
15
 
14
16
  g.status-indicator {
15
17
  &.status--danger circle.status {
16
- fill: $support-error;
18
+ fill: theme.$support-error;
17
19
  }
18
20
 
19
21
  &.status--warning {
20
22
  circle.status {
21
- fill: $support-warning;
23
+ fill: theme.$support-warning;
22
24
  }
23
25
 
24
26
  path.innerFill {
25
- fill: $black-100;
27
+ fill: colors.$black-100;
26
28
  }
27
29
  }
28
30
 
29
31
  &.status--success circle.status {
30
- fill: $support-success;
32
+ fill: theme.$support-success;
31
33
  }
32
34
 
33
35
  path.innerFill {
34
- fill: $layer-01-absolute;
36
+ fill: tokens.$layer-01-absolute;
35
37
  }
36
38
  }
37
39
  }
@@ -1,14 +1,17 @@
1
- @use '@carbon/styles/scss/themes';
2
- @use '@carbon/styles/scss/theme';
3
-
4
- .#{$prefix}--chart-holder {
5
- .#{$prefix}--modal {
1
+ @use '@carbon/styles/scss/components/modal';
2
+ @use '@carbon/styles/scss/components/data-table';
3
+ @use '@carbon/styles/scss/components/button';
4
+ @use '../globals';
5
+ @use '../tokens';
6
+
7
+ .#{globals.$prefix}--chart-holder {
8
+ .#{globals.$prefix}--modal {
6
9
  &.is-visible {
7
10
  z-index: 99999;
8
11
  }
9
12
 
10
- .#{$prefix}--modal-container {
11
- .#{$prefix}--modal-header {
13
+ .#{globals.$prefix}--modal-container {
14
+ .#{globals.$prefix}--modal-header {
12
15
  &__label {
13
16
  margin-top: 0;
14
17
  margin-bottom: 0;
@@ -20,10 +23,10 @@
20
23
  }
21
24
  }
22
25
 
23
- .#{$prefix}--modal-content {
26
+ .#{globals.$prefix}--modal-content {
24
27
  padding: 0;
25
28
  margin-bottom: 0;
26
- color-scheme: $color-scheme;
29
+ color-scheme: tokens.$color-scheme;
27
30
 
28
31
  table {
29
32
  position: relative;
@@ -36,10 +39,10 @@
36
39
  }
37
40
  }
38
41
 
39
- .#{$prefix}--modal-footer {
42
+ .#{globals.$prefix}--modal-footer {
40
43
  background-color: transparent;
41
44
 
42
- .#{$prefix}--#{$charts-prefix}-modal-footer-spacer {
45
+ .#{globals.$prefix}--#{globals.$charts-prefix}-modal-footer-spacer {
43
46
  width: 50%;
44
47
  }
45
48
  }