@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,4 +1,6 @@
1
- .#{$prefix}--#{$charts-prefix}--wordcloud {
1
+ @use '../globals';
2
+
3
+ .#{globals.$prefix}--#{globals.$charts-prefix}--wordcloud {
2
4
  text.word {
3
5
  &.light {
4
6
  // TODO-V11
@@ -1,19 +1,19 @@
1
- @import './area';
2
- @import './bubble';
3
- @import './bullet';
4
- @import './donut';
5
- @import './line';
6
- @import './scatter';
7
- @import './meter';
8
- @import './scatter-stacked';
9
- @import './radar';
10
- @import './tree';
11
- @import './treemap';
12
- @import './gauge';
13
- @import './pie';
14
- @import './lollipop';
15
- @import './circle-pack';
16
- @import './wordcloud';
17
- @import './alluvial';
18
- @import './heatmap';
19
- @import './choropleth';
1
+ @use 'alluvial';
2
+ @use 'area';
3
+ @use 'bubble';
4
+ @use 'bullet';
5
+ @use 'choropleth';
6
+ @use 'circle-pack';
7
+ @use 'donut';
8
+ @use 'gauge';
9
+ @use 'heatmap';
10
+ @use 'line';
11
+ @use 'lollipop';
12
+ @use 'meter';
13
+ @use 'pie';
14
+ @use 'radar';
15
+ @use 'scatter';
16
+ @use 'scatter-stacked';
17
+ @use 'tree';
18
+ @use 'treemap';
19
+ @use 'wordcloud';
package/scss/index.scss CHANGED
@@ -1,31 +1,10 @@
1
- $charts-prefix: 'cc';
2
-
3
- // Variables picked up by @carbon/styles/scss/config in imports
4
- $prefix: 'cds'; // Default value
5
- $css--body: false; // Do not emit styles for body element
6
- $css--default-type: false; // Do not include default type
7
- $css--font-face: false; // Do not include font face mixins from scss/fonts
8
- $css--reset: false; // Do not include reset CSS
9
-
10
- // Custom charting tokens
11
- @use '@carbon/styles/scss/theme' as theme;
12
- @import 'tokens';
13
- @include theme.add-component-tokens($custom-charting-tokens);
14
- @import '@carbon/styles/scss/components/button/tokens';
15
-
16
- @mixin default_transition { // used by ./colors
17
- transition: all 0.1s ease-out;
18
- }
19
- @import '@carbon/colors';
20
- @import 'colors'; // mixins, color palette, color maps, tooltip and legend color settings
21
-
22
- @import '@carbon/import-once/scss'; // exports mixin
23
- @import 'components'; // use exports mixin to ensure component modules only loaded once
24
-
25
- @import 'graphs'; // chart-specific
26
- @import 'type'; // font size, fill, color, weight (but not family)
27
- @import 'chart-holder'; // container settings
28
-
29
- .#{$prefix}--#{$charts-prefix}--chart-wrapper {
30
- overflow: visible;
31
- }
1
+ @use 'colors';
2
+ @use 'tokens';
3
+ @use 'components';
4
+ @use 'graphs';
5
+ @use 'type';
6
+ @use 'chart-holder';
7
+ @use 'chart-wrapper';
8
+
9
+ @use '@carbon/styles/scss/theme';
10
+ @include theme.add-component-tokens(tokens.$custom-charting-tokens);