@carbon/charts 1.11.21 → 1.13.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 (85) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +3 -3
  3. package/dist/{angle-utils-6b17e95b.mjs → angle-utils-7844066d.mjs} +69 -57
  4. package/dist/{angle-utils-6b17e95b.mjs.map → angle-utils-7844066d.mjs.map} +1 -1
  5. package/dist/{choropleth-17b85d55.mjs → choropleth-d4b2bac9.mjs} +2 -2
  6. package/dist/{choropleth-17b85d55.mjs.map → choropleth-d4b2bac9.mjs.map} +1 -1
  7. package/dist/components/index.mjs +2 -2
  8. package/dist/demo/index.mjs +227 -244
  9. package/dist/demo/index.mjs.map +1 -1
  10. package/dist/demo/styles.css +4499 -692
  11. package/dist/demo/styles.css.map +1 -1
  12. package/dist/demo/utils/package-versions.d.ts +0 -2
  13. package/dist/{index-b0e98af9.mjs → index-0bab3ec3.mjs} +2 -2
  14. package/dist/{index-b0e98af9.mjs.map → index-0bab3ec3.mjs.map} +1 -1
  15. package/dist/index.mjs +5 -5
  16. package/dist/interfaces/charts.d.ts +6 -0
  17. package/dist/model/index.mjs +21 -13
  18. package/dist/model/index.mjs.map +1 -1
  19. package/dist/services/index.mjs +2 -2
  20. package/dist/styles.css +4249 -781
  21. package/dist/styles.css.map +1 -1
  22. package/dist/styles.min.css +1 -1
  23. package/dist/styles.min.css.map +1 -1
  24. package/dist/umd/bundle.umd.js +3 -3
  25. package/dist/umd/bundle.umd.js.map +1 -1
  26. package/package.json +21 -21
  27. package/scss/_chart-holder.scss +18 -17
  28. package/scss/_chart-wrapper.scss +6 -0
  29. package/scss/_color-palette.scss +2 -2
  30. package/scss/_colors.scss +26 -25
  31. package/scss/_globals.scss +8 -0
  32. package/scss/_tokens.scss +50 -50
  33. package/scss/_transition.scss +4 -0
  34. package/scss/_type.scss +14 -14
  35. package/scss/components/_axis.scss +12 -11
  36. package/scss/components/_callouts.scss +4 -3
  37. package/scss/components/_color-legend.scss +4 -4
  38. package/scss/components/_grid-brush.scss +7 -5
  39. package/scss/components/_grid.scss +9 -8
  40. package/scss/components/_highlights.scss +6 -3
  41. package/scss/components/_layout.scss +5 -3
  42. package/scss/components/_legend.scss +14 -11
  43. package/scss/components/_meter-title.scss +11 -9
  44. package/scss/components/_modal.scss +14 -11
  45. package/scss/components/_ruler.scss +6 -3
  46. package/scss/components/_skeleton-lines.scss +9 -6
  47. package/scss/components/_skeleton.scss +9 -6
  48. package/scss/components/_threshold.scss +12 -11
  49. package/scss/components/_title.scss +5 -5
  50. package/scss/components/_toolbar.scss +6 -6
  51. package/scss/components/_tooltip.scss +12 -11
  52. package/scss/components/_zero-line.scss +4 -3
  53. package/scss/components/_zoom-bar.scss +16 -14
  54. package/scss/components/diagrams/_card-node.scss +74 -74
  55. package/scss/components/diagrams/_edge.scss +46 -49
  56. package/scss/components/diagrams/_marker.scss +4 -5
  57. package/scss/components/diagrams/_shape-node.scss +72 -73
  58. package/scss/components/diagrams/index.scss +4 -4
  59. package/scss/components/index.scss +20 -20
  60. package/scss/demos.scss +1 -0
  61. package/scss/graphs/_alluvial.scss +7 -6
  62. package/scss/graphs/_area.scss +4 -2
  63. package/scss/graphs/_bubble.scss +6 -5
  64. package/scss/graphs/_bullet.scss +11 -13
  65. package/scss/graphs/_choropleth.scss +7 -7
  66. package/scss/graphs/_circle-pack.scss +7 -6
  67. package/scss/graphs/_donut.scss +3 -1
  68. package/scss/graphs/_gauge.scss +7 -6
  69. package/scss/graphs/_heatmap.scss +6 -6
  70. package/scss/graphs/_line.scss +6 -4
  71. package/scss/graphs/_lollipop.scss +3 -1
  72. package/scss/graphs/_meter.scss +11 -10
  73. package/scss/graphs/_pie.scss +3 -1
  74. package/scss/graphs/_radar.scss +6 -5
  75. package/scss/graphs/_scatter-stacked.scss +4 -3
  76. package/scss/graphs/_scatter.scss +6 -5
  77. package/scss/graphs/_tree.scss +11 -9
  78. package/scss/graphs/_treemap.scss +3 -1
  79. package/scss/graphs/_wordcloud.scss +3 -1
  80. package/scss/graphs/index.scss +19 -19
  81. package/scss/index.scss +10 -31
  82. package/styles.css +4249 -781
  83. package/styles.min.css +1 -1
  84. package/scss/components/_edge.scss +0 -65
  85. package/scss/components/_marker.scss +0 -7
@@ -1,7 +1,9 @@
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/utilities/focus-outline' as focus;
2
+ @use '@carbon/styles/scss/spacing';
3
+ @use '@carbon/styles/scss/type';
4
+ @use '@carbon/styles/scss/theme';
5
+ @use '../../globals';
6
+ @use '../../tokens';
5
7
 
6
8
  @mixin stacked-card-node {
7
9
  content: '';
@@ -9,89 +11,87 @@
9
11
  width: 100%;
10
12
  position: absolute;
11
13
  z-index: 0;
12
- border-top: 0.125rem solid $layer-accent-01;
13
- border-right: 0.125rem solid $layer-accent-01;
14
+ border-top: 0.125rem solid theme.$layer-accent-01;
15
+ border-right: 0.125rem solid theme.$layer-accent-01;
14
16
  pointer-events: none;
15
17
  }
16
18
 
17
- @include exports('cc-card-node') {
18
- .#{$prefix}--#{$charts-prefix}--card-node {
19
- display: flex;
20
- position: relative;
21
- background-color: $layer-01;
22
- z-index: 1;
23
- box-sizing: border-box;
24
- font-family: var(--#{$prefix}-charts-font-family);
25
- width: 100%;
26
- height: 100%;
27
- padding: $spacing-05 $spacing-03;
28
- border-left: 0.25rem solid $border-inverse;
29
- }
30
-
31
- .#{$prefix}--#{$charts-prefix}--card-node--a,
32
- .#{$prefix}--#{$charts-prefix}--card-node--button {
33
- border-top: none;
34
- border-right: none;
35
- border-bottom: none;
36
- color: inherit;
37
- text-decoration: none;
38
- cursor: pointer;
39
- }
19
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node {
20
+ display: flex;
21
+ position: relative;
22
+ background-color: theme.$layer-01;
23
+ z-index: 1;
24
+ box-sizing: border-box;
25
+ font-family: var(--#{globals.$prefix}-charts-font-family);
26
+ width: 100%;
27
+ height: 100%;
28
+ padding: spacing.$spacing-05 spacing.$spacing-03;
29
+ border-left: 0.25rem solid theme.$border-inverse;
30
+ }
40
31
 
41
- .#{$prefix}--#{$charts-prefix}--card-node--button {
42
- font-family: var(--#{$prefix}-charts-font-family);
43
- text-align: left;
44
- width: 100%;
45
- }
32
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--a,
33
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--button {
34
+ border-top: none;
35
+ border-right: none;
36
+ border-bottom: none;
37
+ color: inherit;
38
+ text-decoration: none;
39
+ cursor: pointer;
40
+ }
46
41
 
47
- .#{$prefix}--#{$charts-prefix}--card-node--a:focus,
48
- .#{$prefix}--#{$charts-prefix}--card-node--a:hover,
49
- .#{$prefix}--#{$charts-prefix}--card-node--button:focus,
50
- .#{$prefix}--#{$charts-prefix}--card-node--button:hover {
51
- background-color: $network-diagrams-background-hover;
52
- }
42
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--button {
43
+ font-family: var(--#{globals.$prefix}-charts-font-family);
44
+ text-align: left;
45
+ width: 100%;
46
+ }
53
47
 
54
- .#{$prefix}--#{$charts-prefix}--card-node--a:focus,
55
- .#{$prefix}--#{$charts-prefix}--card-node--button:focus {
56
- @include focus-outline($type: outline);
57
- }
48
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--a:focus,
49
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--a:hover,
50
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--button:focus,
51
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--button:hover {
52
+ background-color: tokens.$network-diagrams-background-hover;
53
+ }
58
54
 
59
- .#{$prefix}--#{$charts-prefix}--card-node--stacked {
60
- &::before {
61
- @include stacked-card-node();
62
- left: 0.3125rem;
63
- bottom: 0.3125rem;
64
- }
55
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--a:focus,
56
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--button:focus {
57
+ @include focus.focus-outline($type: outline);
58
+ }
65
59
 
66
- &::after {
67
- @include stacked-card-node();
68
- left: 0.6875rem;
69
- bottom: 0.6875rem;
70
- }
60
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node--stacked {
61
+ &::before {
62
+ @include stacked-card-node();
63
+ left: 0.3125rem;
64
+ bottom: 0.3125rem;
71
65
  }
72
66
 
73
- .#{$prefix}--#{$charts-prefix}--card-node__column {
74
- padding: 0 $spacing-03;
67
+ &::after {
68
+ @include stacked-card-node();
69
+ left: 0.6875rem;
70
+ bottom: 0.6875rem;
75
71
  }
72
+ }
76
73
 
77
- .#{$prefix}--#{$charts-prefix}--card-node__column--farside {
78
- margin-left: auto;
79
- }
74
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node__column {
75
+ padding: 0 spacing.$spacing-03;
76
+ }
80
77
 
81
- .#{$prefix}--#{$charts-prefix}--card-node__title {
82
- @include type-style($name: productive-heading-01);
83
- margin: 0;
84
- }
78
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node__column--farside {
79
+ margin-left: auto;
80
+ }
85
81
 
86
- .#{$prefix}--#{$charts-prefix}--card-node__subtitle {
87
- @include type-style($name: body-short-01);
88
- margin: 0;
89
- }
82
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node__title {
83
+ @include type.type-style($name: productive-heading-01);
84
+ margin: 0;
85
+ }
90
86
 
91
- .#{$prefix}--#{$charts-prefix}--card-node__label {
92
- display: block;
93
- @include type-style($name: label-01);
94
- color: $text-secondary;
95
- padding-top: $spacing-06;
96
- }
87
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node__subtitle {
88
+ @include type.type-style($name: body-short-01);
89
+ margin: 0;
90
+ }
91
+
92
+ .#{globals.$prefix}--#{globals.$charts-prefix}--card-node__label {
93
+ display: block;
94
+ @include type.type-style($name: label-01);
95
+ color: theme.$text-secondary;
96
+ padding-top: spacing.$spacing-06;
97
97
  }
@@ -1,66 +1,63 @@
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/theme';
3
+ @use '../../globals';
5
4
 
6
- @include exports('cc-edge') {
7
- .#{$prefix}--#{$charts-prefix}--edge {
8
- fill: transparent;
9
- }
5
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge {
6
+ fill: transparent;
7
+ }
10
8
 
11
- .#{$prefix}--#{$charts-prefix}--edge__container {
12
- stroke-width: $spacing-06;
13
- stroke: transparent;
14
- stroke-dasharray: none;
15
- }
9
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge__container {
10
+ stroke-width: spacing.$spacing-06;
11
+ stroke: transparent;
12
+ stroke-dasharray: none;
13
+ }
16
14
 
17
- .#{$prefix}--#{$charts-prefix}--edge__inner {
18
- stroke-width: 0.0625rem;
19
- stroke: $border-strong-01;
20
- }
15
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge__inner {
16
+ stroke-width: 0.0625rem;
17
+ stroke: theme.$border-strong-01;
18
+ }
19
+
20
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge__outer {
21
+ stroke-width: 0.15625rem;
22
+ stroke: transparent;
23
+ }
21
24
 
22
- .#{$prefix}--#{$charts-prefix}--edge__outer {
25
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge:hover {
26
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge__inner {
23
27
  stroke-width: 0.15625rem;
24
- stroke: transparent;
25
28
  }
29
+ }
26
30
 
27
- .#{$prefix}--#{$charts-prefix}--edge:hover {
28
- .#{$prefix}--#{$charts-prefix}--edge__inner {
29
- stroke-width: 0.15625rem;
30
- }
31
- }
31
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge--dash-sm {
32
+ stroke-dasharray: 2 4;
33
+ }
32
34
 
33
- .#{$prefix}--#{$charts-prefix}--edge--dash-sm {
34
- stroke-dasharray: 2 4;
35
- }
35
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge--dash-md {
36
+ stroke-dasharray: 4 4;
37
+ }
36
38
 
37
- .#{$prefix}--#{$charts-prefix}--edge--dash-md {
38
- stroke-dasharray: 4 4;
39
- }
39
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge--dash-lg {
40
+ stroke-dasharray: 8 4;
41
+ }
40
42
 
41
- .#{$prefix}--#{$charts-prefix}--edge--dash-lg {
42
- stroke-dasharray: 8 4;
43
- }
43
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge--dash-xl {
44
+ stroke-dasharray: 16 4;
45
+ }
44
46
 
45
- .#{$prefix}--#{$charts-prefix}--edge--dash-xl {
46
- stroke-dasharray: 16 4;
47
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge--tunnel {
48
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge__outer {
49
+ stroke: theme.$layer-accent-01;
50
+ stroke-width: 0.375rem;
47
51
  }
52
+ }
48
53
 
49
- .#{$prefix}--#{$charts-prefix}--edge--tunnel {
50
- .#{$prefix}--#{$charts-prefix}--edge__outer {
51
- stroke: $layer-accent-01;
52
- stroke-width: 0.375rem;
53
- }
54
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge--double {
55
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge__inner {
56
+ stroke: theme.$background;
54
57
  }
55
58
 
56
- .#{$prefix}--#{$charts-prefix}--edge--double {
57
- .#{$prefix}--#{$charts-prefix}--edge__inner {
58
- stroke: $background;
59
- }
60
-
61
- .#{$prefix}--#{$charts-prefix}--edge__outer {
62
- stroke: $border-inverse;
63
- stroke-width: 0.28125rem;
64
- }
59
+ .#{globals.$prefix}--#{globals.$charts-prefix}--edge__outer {
60
+ stroke: theme.$border-inverse;
61
+ stroke-width: 0.28125rem;
65
62
  }
66
63
  }
@@ -1,7 +1,6 @@
1
- @use '@carbon/styles/scss/theme' as *;
1
+ @use '@carbon/styles/scss/theme';
2
+ @use '../../globals';
2
3
 
3
- @include exports('cc-marker') {
4
- .#{$prefix}--#{$charts-prefix}--marker {
5
- fill: $border-inverse;
6
- }
4
+ .#{globals.$prefix}--#{globals.$charts-prefix}--marker {
5
+ fill: theme.$border-inverse;
7
6
  }
@@ -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
  }