@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
@@ -1,89 +1,88 @@
1
- @use '@carbon/styles/scss/utilities/focus-outline' as *;
2
- @use '@carbon/styles/scss/spacing' as *;
3
- @use '@carbon/styles/scss/type' as *;
4
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/spacing';
2
+ @use '@carbon/styles/scss/type';
3
+ @use '@carbon/styles/scss/theme';
4
+ @use '../../globals';
5
+ @use '../../tokens';
5
6
 
6
- @include exports('cc-shape-node') {
7
- .#{$prefix}--#{$charts-prefix}--shape-node {
8
- display: flex;
9
- justify-content: center;
10
- align-items: center;
11
- background-color: $layer-01;
12
- box-sizing: border-box;
13
- font-family: var(--#{$prefix}-charts-font-family);
14
- width: 100%;
15
- height: 100%;
16
- position: relative;
17
- }
7
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node {
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ background-color: theme.$layer-01;
12
+ box-sizing: border-box;
13
+ font-family: var(--#{globals.$prefix}-charts-font-family);
14
+ width: 100%;
15
+ height: 100%;
16
+ position: relative;
17
+ }
18
18
 
19
- .#{$prefix}--#{$charts-prefix}--shape-node--circle {
20
- border-radius: 100%;
21
- }
19
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--circle {
20
+ border-radius: 100%;
21
+ }
22
22
 
23
- .#{$prefix}--#{$charts-prefix}--shape-node--square {
24
- border-radius: 0;
25
- }
23
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--square {
24
+ border-radius: 0;
25
+ }
26
26
 
27
- .#{$prefix}--#{$charts-prefix}--shape-node--rounded-square {
28
- border-radius: 0.5rem;
29
- }
27
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--rounded-square {
28
+ border-radius: 0.5rem;
29
+ }
30
30
 
31
- .#{$prefix}--#{$charts-prefix}--shape-node--a,
32
- .#{$prefix}--#{$charts-prefix}--shape-node--button {
33
- border: none;
34
- color: inherit;
35
- text-decoration: none;
36
- cursor: pointer;
37
- }
31
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--a,
32
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--button {
33
+ border: none;
34
+ color: inherit;
35
+ text-decoration: none;
36
+ cursor: pointer;
37
+ }
38
38
 
39
- .#{$prefix}--#{$charts-prefix}--shape-node--button {
40
- font-family: var(--#{$prefix}-charts-font-family);
41
- text-align: left;
42
- width: 100%;
43
- }
39
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--button {
40
+ font-family: var(--#{globals.$prefix}-charts-font-family);
41
+ text-align: left;
42
+ width: 100%;
43
+ }
44
44
 
45
- .#{$prefix}--#{$charts-prefix}--shape-node--a:focus,
46
- .#{$prefix}--#{$charts-prefix}--shape-node--a:hover,
47
- .#{$prefix}--#{$charts-prefix}--shape-node--button:focus,
48
- .#{$prefix}--#{$charts-prefix}--shape-node--button:hover {
49
- background-color: $network-diagrams-background-hover;
45
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--a:focus,
46
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--a:hover,
47
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--button:focus,
48
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--button:hover {
49
+ background-color: tokens.$network-diagrams-background-hover;
50
50
 
51
- .#{$prefix}--#{$charts-prefix}--shape-node__title,
52
- .#{$prefix}--#{$charts-prefix}--shape-node__subtitle {
53
- // TODO-V11
54
- // font-weight: font-weight('semibold');
55
- font-weight: 600;
56
- }
51
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node__title,
52
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node__subtitle {
53
+ // TODO-V11
54
+ // font-weight: font-weight('semibold');
55
+ font-weight: 600;
57
56
  }
57
+ }
58
58
 
59
- .#{$prefix}--#{$charts-prefix}--shape-node--a:focus,
60
- .#{$prefix}--#{$charts-prefix}--shape-node--button:focus {
61
- &:focus {
62
- outline: none;
63
- box-shadow: 0 0 0 2px $focus;
64
- }
59
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--a:focus,
60
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node--button:focus {
61
+ &:focus {
62
+ outline: none;
63
+ box-shadow: 0 0 0 2px theme.$focus;
65
64
  }
65
+ }
66
66
 
67
- .#{$prefix}--#{$charts-prefix}--shape-node__body {
68
- position: absolute;
69
- top: calc(100% + #{$spacing-01});
70
- text-align: center;
71
- }
67
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node__body {
68
+ position: absolute;
69
+ top: calc(100% + #{spacing.$spacing-01});
70
+ text-align: center;
71
+ }
72
72
 
73
- .#{$prefix}--#{$charts-prefix}--shape-node__subtitle {
74
- padding-bottom: $spacing-01;
75
- @include type-style($name: body-short-01);
76
- color: $text-primary;
77
- }
73
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node__subtitle {
74
+ padding-bottom: spacing.$spacing-01;
75
+ @include type.type-style($name: body-short-01);
76
+ color: theme.$text-primary;
77
+ }
78
78
 
79
- .#{$prefix}--#{$charts-prefix}--shape-node__icon {
80
- display: flex;
81
- }
79
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node__icon {
80
+ display: flex;
81
+ }
82
82
 
83
- .#{$prefix}--#{$charts-prefix}--shape-node__title {
84
- @include type-style($name: body-short-01);
85
- color: $text-primary;
86
- padding-top: $spacing-01;
87
- margin-bottom: 1px;
88
- }
83
+ .#{globals.$prefix}--#{globals.$charts-prefix}--shape-node__title {
84
+ @include type.type-style($name: body-short-01);
85
+ color: theme.$text-primary;
86
+ padding-top: spacing.$spacing-01;
87
+ margin-bottom: 1px;
89
88
  }
@@ -1,4 +1,4 @@
1
- @import './card-node';
2
- @import './shape-node';
3
- @import './edge';
4
- @import './marker';
1
+ @use 'card-node';
2
+ @use 'shape-node';
3
+ @use 'edge';
4
+ @use 'marker';
@@ -1,20 +1,20 @@
1
- @import './axis';
2
- @import './callouts';
3
- @import './grid-brush';
4
- @import './grid';
5
- @import './ruler';
6
- @import './skeleton';
7
- @import './skeleton-lines';
8
- @import './zero-line';
9
- @import './layout';
10
- @import './legend';
11
- @import './modal';
12
- @import './title';
13
- @import './meter-title';
14
- @import './toolbar';
15
- @import './tooltip';
16
- @import './threshold';
17
- @import './zoom-bar';
18
- @import './highlights';
19
- @import './diagrams/index.scss';
20
- @import './color-legend';
1
+ @use 'axis';
2
+ @use 'callouts';
3
+ @use 'color-legend';
4
+ @use 'diagrams';
5
+ @use 'grid';
6
+ @use 'grid-brush';
7
+ @use 'highlights';
8
+ @use 'layout';
9
+ @use 'legend';
10
+ @use 'meter-title';
11
+ @use 'modal';
12
+ @use 'ruler';
13
+ @use 'skeleton';
14
+ @use 'skeleton-lines';
15
+ @use 'threshold';
16
+ @use 'title';
17
+ @use 'toolbar';
18
+ @use 'tooltip';
19
+ @use 'zero-line';
20
+ @use 'zoom-bar';
package/scss/demos.scss CHANGED
@@ -33,6 +33,7 @@ $css--reset: false; // Do not include reset CSS
33
33
 
34
34
  .#{$prefix}--#{$charts-prefix}--chart-wrapper {
35
35
  overflow: visible;
36
+ font-family: var(--#{$prefix}-charts-font-family-condensed);
36
37
  }
37
38
 
38
39
  html {
@@ -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}--alluvial {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--alluvial {
5
6
  rect.node,
6
7
  rect.node-text-bg {
7
- fill: $layer-inverse-absolute;
8
+ fill: tokens.$layer-inverse-absolute;
8
9
  }
9
10
 
10
11
  text.node-text {
11
- fill: $layer-01-absolute;
12
+ fill: tokens.$layer-01-absolute;
12
13
  }
13
14
 
14
15
  polygon.arrow-down {
15
- fill: $layer-01;
16
+ fill: theme.$layer-01;
16
17
  }
17
18
  }
@@ -1,4 +1,6 @@
1
- .#{$prefix}--#{$charts-prefix}--area path.area,
2
- .#{$prefix}--#{$charts-prefix}--area-stacked path.area {
1
+ @use '../globals';
2
+
3
+ .#{globals.$prefix}--#{globals.$charts-prefix}--area path.area,
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--area-stacked path.area {
3
5
  pointer-events: none;
4
6
  }
@@ -1,15 +1,16 @@
1
- @use '@carbon/styles/scss/motion' as *;
2
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/motion';
2
+ @use '@carbon/styles/scss/theme';
3
+ @use '../globals';
3
4
 
4
- .#{$prefix}--#{$charts-prefix}--bubble {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--bubble {
5
6
  circle.dot.hovered {
6
7
  fill-opacity: 1;
7
8
  transition: all 0.1s;
8
- @include motion(standard, expressive);
9
+ @include motion.motion(standard, expressive);
9
10
  }
10
11
 
11
12
  circle.dot.unfilled {
12
- fill: $layer-01;
13
+ fill: theme.$layer-01;
13
14
  }
14
15
 
15
16
  g.lines path.line {
@@ -1,25 +1,23 @@
1
- @use '@carbon/styles/scss/themes';
2
- @use '@carbon/styles/scss/theme';
1
+ @use '../globals';
2
+ @use '../tokens';
3
3
 
4
- @use '@carbon/styles/scss/motion' as *;
5
-
6
- .#{$prefix}--#{$charts-prefix}--bullet {
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--bullet {
7
5
  path.range-box {
8
6
  pointer-events: none;
9
7
 
10
8
  &.order-1 {
11
- fill: $zone-fill-01;
12
- stroke: $zone-stroke-01;
9
+ fill: tokens.$zone-fill-01;
10
+ stroke: tokens.$zone-stroke-01;
13
11
  }
14
12
 
15
13
  &.order-2 {
16
- fill: $zone-fill-02;
17
- stroke: $zone-stroke-02;
14
+ fill: tokens.$zone-fill-02;
15
+ stroke: tokens.$zone-stroke-02;
18
16
  }
19
17
 
20
18
  &.order-3 {
21
- fill: $zone-fill-03;
22
- stroke: $zone-stroke-03;
19
+ fill: tokens.$zone-fill-03;
20
+ stroke: tokens.$zone-stroke-03;
23
21
  }
24
22
  }
25
23
 
@@ -27,10 +25,10 @@
27
25
  path.quartile {
28
26
  pointer-events: none;
29
27
  stroke-width: 1.5px;
30
- stroke: $layer-inverse-absolute;
28
+ stroke: tokens.$layer-inverse-absolute;
31
29
  }
32
30
 
33
31
  path.quartile.over-bar {
34
- stroke: $layer-01-absolute;
32
+ stroke: tokens.$layer-01-absolute;
35
33
  }
36
34
  }
@@ -1,18 +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
3
 
4
- .#{$prefix}--#{$charts-prefix}--choropleth {
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--choropleth {
5
5
  path.border {
6
- stroke: $border-subtle-selected-01;
6
+ stroke: theme.$border-subtle-selected-01;
7
7
  }
8
8
 
9
9
  g.missing-data path {
10
- stroke: $border-subtle-selected-01;
11
- fill: $background;
10
+ stroke: theme.$border-subtle-selected-01;
11
+ fill: theme.$background;
12
12
  }
13
13
 
14
14
  pattern path.pattern-fill {
15
- stroke: $border-strong-01;
15
+ stroke: theme.$border-strong-01;
16
16
  stroke-width: 0.5px;
17
17
  }
18
18
  }
@@ -1,6 +1,7 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../globals';
2
3
 
3
- .#{$prefix}--#{$charts-prefix}--circle-pack {
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--circle-pack {
4
5
  circle.node {
5
6
  stroke-width: 1.5px;
6
7
 
@@ -9,9 +10,9 @@
9
10
  }
10
11
 
11
12
  &.non-focal {
12
- fill: $icon-disabled;
13
+ fill: theme.$icon-disabled;
13
14
  fill-opacity: 30%;
14
- stroke: $icon-disabled;
15
+ stroke: theme.$icon-disabled;
15
16
  }
16
17
 
17
18
  &.clickable {
@@ -20,9 +21,9 @@
20
21
  }
21
22
  }
22
23
 
23
- .#{$prefix}--#{$charts-prefix}--chart-wrapper.zoomed-in {
24
+ .#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper.zoomed-in {
24
25
  cursor: zoom-out;
25
- .#{$prefix}--#{$charts-prefix}--circle-pack {
26
+ .#{globals.$prefix}--#{globals.$charts-prefix}--circle-pack {
26
27
  circle.node {
27
28
  &.hovered-child {
28
29
  stroke: 1.5px solid initial;
@@ -1,3 +1,5 @@
1
- .#{$prefix}--#{$charts-prefix}--donut {
1
+ @use '../globals';
2
+
3
+ .#{globals.$prefix}--#{globals.$charts-prefix}--donut {
2
4
  overflow: visible;
3
5
  }
@@ -1,23 +1,24 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../globals';
2
3
 
3
- .#{$prefix}--#{$charts-prefix}--gauge {
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--gauge {
4
5
  overflow: visible;
5
6
 
6
7
  path.arc-background {
7
- fill: $layer-01;
8
+ fill: theme.$layer-01;
8
9
  }
9
10
 
10
11
  .gauge-delta-arrow {
11
12
  &.status--danger {
12
- fill: $support-error;
13
+ fill: theme.$support-error;
13
14
  }
14
15
 
15
16
  &.status--warning {
16
- fill: $support-warning;
17
+ fill: theme.$support-warning;
17
18
  }
18
19
 
19
20
  &.status--success {
20
- fill: $support-success;
21
+ fill: theme.$support-success;
21
22
  }
22
23
  }
23
24
  }
@@ -1,7 +1,7 @@
1
- @use '@carbon/styles/scss/themes';
2
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../globals';
3
3
 
4
- .#{$prefix}--#{$charts-prefix}--heatmap {
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--heatmap {
5
5
  g.highlighter-hidden {
6
6
  visibility: hidden;
7
7
  }
@@ -28,7 +28,7 @@
28
28
  }
29
29
 
30
30
  rect.pattern-fill {
31
- fill: $border-strong-01;
31
+ fill: theme.$border-strong-01;
32
32
  }
33
33
 
34
34
  g.shadows {
@@ -51,10 +51,10 @@
51
51
 
52
52
  rect.heat {
53
53
  stroke-width: 0px;
54
- stroke: $background;
54
+ stroke: theme.$background;
55
55
  }
56
56
 
57
57
  rect.null-state {
58
- fill: $icon-inverse;
58
+ fill: theme.$icon-inverse;
59
59
  }
60
60
  }
@@ -1,9 +1,11 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '@carbon/colors';
3
+ @use '../globals';
2
4
 
3
- $lines-bg-color: $layer-accent-01;
4
- $lines-shimmer-color: $white-0;
5
+ $lines-bg-color: theme.$layer-accent-01;
6
+ $lines-shimmer-color: colors.$white-0;
5
7
 
6
- .#{$prefix}--#{$charts-prefix}--line {
8
+ .#{globals.$prefix}--#{globals.$charts-prefix}--line {
7
9
  path.line {
8
10
  pointer-events: none;
9
11
  fill: none;
@@ -1,4 +1,6 @@
1
- .#{$prefix}--#{$charts-prefix}--lollipop {
1
+ @use '../globals';
2
+
3
+ .#{globals.$prefix}--#{globals.$charts-prefix}--lollipop {
2
4
  line.line {
3
5
  pointer-events: none;
4
6
  }
@@ -1,34 +1,35 @@
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}--meter {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--meter {
5
6
  rect.container {
6
- fill: $layer-01;
7
+ fill: theme.$layer-01;
7
8
  }
8
9
 
9
10
  line.rangeIndicator {
10
- stroke: $meter-range-indicator;
11
+ stroke: tokens.$meter-range-indicator;
11
12
  stroke-width: 1px;
12
13
  }
13
14
 
14
15
  rect.value {
15
16
  &.status--danger {
16
- fill: $support-error;
17
+ fill: theme.$support-error;
17
18
  }
18
19
 
19
20
  &.status--warning {
20
- fill: $support-warning;
21
+ fill: theme.$support-warning;
21
22
  stroke-width: 1px;
22
- stroke: $alert-stroke;
23
+ stroke: tokens.$alert-stroke;
23
24
  }
24
25
 
25
26
  &.status--success {
26
- fill: $support-success;
27
+ fill: theme.$support-success;
27
28
  }
28
29
  }
29
30
 
30
31
  line.peak {
31
- stroke: $border-inverse;
32
+ stroke: theme.$border-inverse;
32
33
  stroke-width: 2px;
33
34
  }
34
35
  }
@@ -1,3 +1,5 @@
1
- .#{$prefix}--#{$charts-prefix}--pie {
1
+ @use '../globals';
2
+
3
+ .#{globals.$prefix}--#{globals.$charts-prefix}--pie {
2
4
  overflow: visible;
3
5
  }
@@ -1,7 +1,8 @@
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}--radar {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--radar {
5
6
  .blobs path {
6
7
  stroke-width: 1.5px;
7
8
  }
@@ -9,10 +10,10 @@
9
10
  .y-axes path,
10
11
  .x-axes line {
11
12
  stroke-width: 1px;
12
- stroke: $layer-accent-01;
13
+ stroke: theme.$layer-accent-01;
13
14
  }
14
15
 
15
16
  .x-axes line.hovered {
16
- stroke: $layer-inverse-absolute;
17
+ stroke: tokens.$layer-inverse-absolute;
17
18
  }
18
19
  }
@@ -1,8 +1,9 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../globals';
2
3
 
3
- .#{$prefix}--#{$charts-prefix}--scatter-stacked {
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--scatter-stacked {
4
5
  circle.dot.unfilled {
5
- fill: $layer-01;
6
+ fill: theme.$layer-01;
6
7
  stroke-width: 1.5;
7
8
  }
8
9
 
@@ -1,15 +1,16 @@
1
- @use '@carbon/styles/scss/motion' as *;
2
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/motion' as motion;
2
+ @use '@carbon/styles/scss/theme';
3
+ @use '../globals';
3
4
 
4
- .#{$prefix}--#{$charts-prefix}--scatter {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--scatter {
5
6
  circle.dot.hovered {
6
7
  fill-opacity: 1;
7
8
  transition: all 0.1s;
8
- @include motion(standard, expressive);
9
+ @include motion.motion(standard, expressive);
9
10
  }
10
11
 
11
12
  circle.dot.unfilled {
12
- fill: $layer-01;
13
+ fill: theme.$layer-01;
13
14
  stroke-width: 1.5;
14
15
  }
15
16
 
@@ -1,9 +1,11 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../globals';
3
+ @use '../transition';
2
4
 
3
- .#{$prefix}--#{$charts-prefix}--chart-wrapper .#{$prefix}--#{$charts-prefix}--tree {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper .#{globals.$prefix}--#{globals.$charts-prefix}--tree {
4
6
  g.links {
5
7
  fill: none;
6
- stroke: $border-strong-01;
8
+ stroke: theme.$border-strong-01;
7
9
  stroke-opacity: 0.4;
8
10
  stroke-width: 1.5;
9
11
  }
@@ -19,27 +21,27 @@
19
21
  }
20
22
 
21
23
  circle {
22
- fill: $text-primary;
23
- @include default_transition;
24
+ fill: theme.$text-primary;
25
+ @include transition.default_transition;
24
26
  }
25
27
  }
26
28
  }
27
29
 
28
30
  circle {
29
31
  &.parent {
30
- fill: $text-secondary;
32
+ fill: theme.$text-secondary;
31
33
  }
32
34
 
33
35
  &.child {
34
- fill: $border-strong-01;
36
+ fill: theme.$border-strong-01;
35
37
  }
36
38
  }
37
39
 
38
40
  text {
39
- fill: $text-primary;
41
+ fill: theme.$text-primary;
40
42
 
41
43
  &.text-stroke {
42
- stroke: $text-inverse;
44
+ stroke: theme.$text-inverse;
43
45
  stroke-width: 2px;
44
46
  }
45
47
  }
@@ -1,4 +1,6 @@
1
- .#{$prefix}--#{$charts-prefix}--treemap {
1
+ @use '../globals';
2
+
3
+ .#{globals.$prefix}--#{globals.$charts-prefix}--treemap {
2
4
  text {
3
5
  pointer-events: none;
4
6
  }