@carbon/charts 1.11.20 → 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 (76) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +3 -3
  3. package/dist/choropleth-17b85d55.mjs.map +1 -1
  4. package/dist/color-scale-utils-faf67b75.mjs.map +1 -1
  5. package/dist/configuration-non-customizable.d.ts +1 -1
  6. package/dist/demo/index.mjs +239 -255
  7. package/dist/demo/index.mjs.map +1 -1
  8. package/dist/demo/styles.css +4499 -692
  9. package/dist/demo/styles.css.map +1 -1
  10. package/dist/demo/utils/package-versions.d.ts +0 -2
  11. package/dist/styles.css +4249 -781
  12. package/dist/styles.css.map +1 -1
  13. package/dist/styles.min.css +1 -1
  14. package/dist/styles.min.css.map +1 -1
  15. package/dist/umd/bundle.umd.js +13 -13
  16. package/dist/umd/bundle.umd.js.map +1 -1
  17. package/package.json +24 -23
  18. package/scss/_chart-holder.scss +18 -17
  19. package/scss/_chart-wrapper.scss +6 -0
  20. package/scss/_color-palette.scss +2 -2
  21. package/scss/_colors.scss +26 -25
  22. package/scss/_globals.scss +8 -0
  23. package/scss/_tokens.scss +50 -50
  24. package/scss/_transition.scss +4 -0
  25. package/scss/_type.scss +14 -14
  26. package/scss/components/_axis.scss +12 -11
  27. package/scss/components/_callouts.scss +4 -3
  28. package/scss/components/_color-legend.scss +4 -4
  29. package/scss/components/_grid-brush.scss +7 -5
  30. package/scss/components/_grid.scss +9 -8
  31. package/scss/components/_highlights.scss +6 -3
  32. package/scss/components/_layout.scss +5 -3
  33. package/scss/components/_legend.scss +14 -11
  34. package/scss/components/_meter-title.scss +11 -9
  35. package/scss/components/_modal.scss +14 -11
  36. package/scss/components/_ruler.scss +6 -3
  37. package/scss/components/_skeleton-lines.scss +9 -6
  38. package/scss/components/_skeleton.scss +9 -6
  39. package/scss/components/_threshold.scss +12 -11
  40. package/scss/components/_title.scss +5 -5
  41. package/scss/components/_toolbar.scss +6 -6
  42. package/scss/components/_tooltip.scss +12 -11
  43. package/scss/components/_zero-line.scss +4 -3
  44. package/scss/components/_zoom-bar.scss +16 -14
  45. package/scss/components/diagrams/_card-node.scss +74 -74
  46. package/scss/components/diagrams/_edge.scss +46 -49
  47. package/scss/components/diagrams/_marker.scss +4 -5
  48. package/scss/components/diagrams/_shape-node.scss +72 -73
  49. package/scss/components/diagrams/index.scss +4 -4
  50. package/scss/components/index.scss +20 -20
  51. package/scss/demos.scss +1 -0
  52. package/scss/graphs/_alluvial.scss +7 -6
  53. package/scss/graphs/_area.scss +4 -2
  54. package/scss/graphs/_bubble.scss +6 -5
  55. package/scss/graphs/_bullet.scss +11 -13
  56. package/scss/graphs/_choropleth.scss +7 -7
  57. package/scss/graphs/_circle-pack.scss +7 -6
  58. package/scss/graphs/_donut.scss +3 -1
  59. package/scss/graphs/_gauge.scss +7 -6
  60. package/scss/graphs/_heatmap.scss +6 -6
  61. package/scss/graphs/_line.scss +6 -4
  62. package/scss/graphs/_lollipop.scss +3 -1
  63. package/scss/graphs/_meter.scss +11 -10
  64. package/scss/graphs/_pie.scss +3 -1
  65. package/scss/graphs/_radar.scss +6 -5
  66. package/scss/graphs/_scatter-stacked.scss +4 -3
  67. package/scss/graphs/_scatter.scss +6 -5
  68. package/scss/graphs/_tree.scss +11 -9
  69. package/scss/graphs/_treemap.scss +3 -1
  70. package/scss/graphs/_wordcloud.scss +3 -1
  71. package/scss/graphs/index.scss +19 -19
  72. package/scss/index.scss +10 -31
  73. package/styles.css +4249 -781
  74. package/styles.min.css +1 -1
  75. package/scss/components/_edge.scss +0 -65
  76. package/scss/components/_marker.scss +0 -7
@@ -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
  }
@@ -1,7 +1,10 @@
1
- .#{$prefix}--#{$charts-prefix}--ruler,
2
- .#{$prefix}--#{$charts-prefix}--ruler-binned {
1
+ @use '../globals';
2
+ @use '../tokens';
3
+
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--ruler,
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--ruler-binned {
3
6
  line.ruler-line {
4
- stroke: $layer-inverse-absolute;
7
+ stroke: tokens.$layer-inverse-absolute;
5
8
  stroke-width: 1px;
6
9
  stroke-dasharray: 2;
7
10
  pointer-events: none;
@@ -1,14 +1,17 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '@carbon/colors';
3
+ @use '../globals';
4
+ @use '../tokens';
2
5
 
3
- $lines-bg-color: $layer-accent-01;
4
- $lines-shimmer-color: $white-0;
6
+ $lines-bg-color: theme.$layer-accent-01;
7
+ $lines-shimmer-color: colors.$white-0;
5
8
  $areas-bg-color: rgba(127, 127, 127, 0.1);
6
- $areas-shimmer-color: rgba($white-0, 0.15);
9
+ $areas-shimmer-color: rgba(colors.$white-0, 0.15);
7
10
 
8
- .#{$prefix}--#{$charts-prefix}--skeleton-lines {
11
+ .#{globals.$prefix}--#{globals.$charts-prefix}--skeleton-lines {
9
12
  // lines
10
13
  rect.chart-skeleton-backdrop {
11
- fill: $grid-bg;
14
+ fill: tokens.$grid-bg;
12
15
  }
13
16
 
14
17
  .shimmer-effect-lines {
@@ -1,14 +1,17 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '@carbon/colors';
3
+ @use '../globals';
4
+ @use '../tokens';
2
5
 
3
- $lines-bg-color: $layer-accent-01;
4
- $lines-shimmer-color: $white-0;
6
+ $lines-bg-color: theme.$layer-accent-01;
7
+ $lines-shimmer-color: colors.$white-0;
5
8
  $areas-bg-color: rgba(127, 127, 127, 0.1);
6
- $areas-shimmer-color: rgba($white-0, 0.15);
9
+ $areas-shimmer-color: rgba(colors.$white-0, 0.15);
7
10
 
8
- .#{$prefix}--#{$charts-prefix}--skeleton {
11
+ .#{globals.$prefix}--#{globals.$charts-prefix}--skeleton {
9
12
  // lines
10
13
  rect.chart-skeleton-backdrop {
11
- fill: $grid-bg;
14
+ fill: tokens.$grid-bg;
12
15
  }
13
16
 
14
17
  .shimmer-effect-lines {
@@ -1,10 +1,11 @@
1
- @use '@carbon/styles/scss/type' as *;
2
- @use '@carbon/styles/scss/motion' as *;
3
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/motion';
2
+ @use '@carbon/styles/scss/theme';
3
+ @use '@carbon/colors';
4
+ @use '../globals';
4
5
 
5
- .#{$prefix}--#{$charts-prefix}--threshold {
6
+ .#{globals.$prefix}--#{globals.$charts-prefix}--threshold {
6
7
  line.threshold-line {
7
- stroke: $red-50;
8
+ stroke: colors.$red-50;
8
9
  stroke-width: 1;
9
10
  stroke-dasharray: 4;
10
11
  cursor: pointer;
@@ -27,19 +28,19 @@
27
28
  }
28
29
  }
29
30
 
30
- .#{$prefix}--#{$charts-prefix}--threshold--label {
31
- background-color: $red-50;
31
+ .#{globals.$prefix}--#{globals.$charts-prefix}--threshold--label {
32
+ background-color: colors.$red-50;
32
33
  pointer-events: none;
33
34
  transition: opacity 0.1s;
34
- @include motion(standard, expressive);
35
+ @include motion.motion(standard, expressive);
35
36
  display: inline;
36
37
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
37
38
  position: absolute;
38
39
  word-wrap: break-word;
39
40
  z-index: 1059;
40
- font-family: var(--#{$prefix}-charts-font-family-condensed);
41
+ font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
41
42
 
42
- color: $text-primary;
43
+ color: theme.$text-primary;
43
44
  line-height: 16px;
44
45
  font-size: 12px;
45
46
  padding: 4px;
@@ -48,6 +49,6 @@
48
49
  &.hidden {
49
50
  opacity: 0;
50
51
  transition: opacity 0.1s;
51
- @include motion(standard, expressive);
52
+ @include motion.motion(standard, expressive);
52
53
  }
53
54
  }
@@ -1,11 +1,11 @@
1
- @use '@carbon/styles/scss/type' as *;
2
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../globals';
3
3
 
4
- .#{$prefix}--#{$charts-prefix}--title {
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--title {
5
5
  p.title {
6
- color: $text-primary;
6
+ color: theme.$text-primary;
7
7
  font-size: 16px;
8
- font-family: var(--#{$prefix}-charts-font-family);
8
+ font-family: var(--#{globals.$prefix}-charts-font-family);
9
9
  // TODO-V11
10
10
  // font-weight: font-weight('semibold');
11
11
  font-weight: 600;
@@ -1,15 +1,15 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '@carbon/styles/scss/components/overflow-menu';
3
+ @use '../globals';
2
4
 
3
- $css--reset: false;
4
-
5
- .#{$prefix}--chart-holder {
5
+ .#{globals.$prefix}--chart-holder {
6
6
  .cds--overflow-menu,
7
7
  .cds--overflow-menu__trigger {
8
8
  width: 2rem;
9
9
  height: 2rem;
10
10
  }
11
11
 
12
- .#{$prefix}--#{$charts-prefix}--toolbar {
12
+ .#{globals.$prefix}--#{globals.$charts-prefix}--toolbar {
13
13
  display: flex;
14
14
 
15
15
  div.toolbar-control {
@@ -29,7 +29,7 @@ $css--reset: false;
29
29
  }
30
30
 
31
31
  svg {
32
- fill: $icon-on-color-disabled;
32
+ fill: theme.$icon-on-color-disabled;
33
33
  }
34
34
  }
35
35
  }
@@ -1,29 +1,30 @@
1
- @use '@carbon/styles/scss/type' as *;
2
- @use '@carbon/styles/scss/motion' as *;
3
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/motion';
2
+ @use '@carbon/styles/scss/theme';
3
+ @use '../globals';
4
+ @use '../tokens';
4
5
 
5
- .#{$prefix}--#{$charts-prefix}--tooltip {
6
- background-color: $layer-02;
6
+ .#{globals.$prefix}--#{globals.$charts-prefix}--tooltip {
7
+ background-color: theme.$layer-02;
7
8
  pointer-events: none;
8
- @include motion(standard, expressive);
9
+ @include motion.motion(standard, expressive);
9
10
  display: inline;
10
11
  visibility: visible;
11
12
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
12
13
  position: absolute;
13
14
  word-wrap: break-word;
14
15
  z-index: 1059;
15
- font-family: var(--#{$prefix}-charts-font-family-condensed);
16
+ font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
16
17
  transition: visibility 0s linear 0.1s, opacity 0.1s;
17
18
 
18
19
  &.hidden {
19
20
  opacity: 0;
20
21
  visibility: hidden;
21
22
  transition: visibility 0s linear 0s, opacity 0.1s;
22
- @include motion(standard, expressive);
23
+ @include motion.motion(standard, expressive);
23
24
  }
24
25
 
25
26
  .content-box {
26
- color: $text-primary;
27
+ color: theme.$text-primary;
27
28
 
28
29
  .title-tooltip {
29
30
  width: auto;
@@ -62,7 +63,7 @@
62
63
  vertical-align: top;
63
64
  padding-left: 4px;
64
65
  width: auto;
65
- fill: $layer-inverse-absolute;
66
+ fill: tokens.$layer-inverse-absolute;
66
67
  }
67
68
  }
68
69
 
@@ -102,7 +103,7 @@
102
103
  position: relative;
103
104
 
104
105
  &:not(:last-child) {
105
- border-bottom: 1px solid $tooltip-line-border;
106
+ border-bottom: 1px solid tokens.$tooltip-line-border;
106
107
  }
107
108
  }
108
109
  }
@@ -1,5 +1,6 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../globals';
2
3
 
3
- .#{$prefix}--#{$charts-prefix}--zero-line line.domain {
4
- stroke: $border-strong-01;
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--zero-line line.domain {
5
+ stroke: theme.$border-strong-01;
5
6
  }
@@ -1,42 +1,44 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '@carbon/colors';
3
+ @use '../globals';
2
4
 
3
- .#{$prefix}--#{$charts-prefix}--zoom-bar {
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--zoom-bar {
4
6
  rect.zoom-bg {
5
- fill: $background;
6
- stroke: $layer-01;
7
+ fill: theme.$background;
8
+ stroke: theme.$layer-01;
7
9
  }
8
10
 
9
11
  rect.zoom-slider-bg {
10
- fill: $layer-01;
12
+ fill: theme.$layer-01;
11
13
  }
12
14
 
13
15
  rect.zoom-slider-selected-area {
14
- fill: $icon-secondary;
16
+ fill: theme.$icon-secondary;
15
17
  }
16
18
 
17
19
  path.zoom-bg-baseline {
18
- stroke: $border-strong-01;
20
+ stroke: theme.$border-strong-01;
19
21
  stroke-width: 2;
20
22
  }
21
23
 
22
24
  path.zoom-graph-area {
23
- fill: $layer-accent-01;
24
- stroke: $border-strong-01;
25
+ fill: theme.$layer-accent-01;
26
+ stroke: theme.$border-strong-01;
25
27
  stroke-width: 1;
26
28
  }
27
29
 
28
30
  path.zoom-graph-area-unselected {
29
- fill: $layer-01;
31
+ fill: theme.$layer-01;
30
32
  stroke: none;
31
33
  }
32
34
 
33
35
  g.zoom-bar-brush {
34
36
  rect.handle {
35
- fill: $icon-secondary;
37
+ fill: theme.$icon-secondary;
36
38
  }
37
39
 
38
40
  rect.handle-bar {
39
- fill: $layer-02;
41
+ fill: theme.$layer-02;
40
42
  }
41
43
 
42
44
  // clear d3.brush selection style
@@ -47,7 +49,7 @@
47
49
  }
48
50
 
49
51
  rect[class^='highlight-'] {
50
- fill: $magenta-50;
51
- stroke: $magenta-50;
52
+ fill: colors.$magenta-50;
53
+ stroke: colors.$magenta-50;
52
54
  }
53
55
  }