@carbon/charts 1.16.11 → 1.17.1

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 +22 -0
  2. package/README.md +2 -26
  3. package/dist/{angle-utils-ByrL6LVp.mjs → angle-utils-Cq7fAZ_G.mjs} +2 -2
  4. package/dist/{angle-utils-ByrL6LVp.mjs.map → angle-utils-Cq7fAZ_G.mjs.map} +1 -1
  5. package/dist/{array-6NAAybxf.mjs → array-Dp6N70oc.mjs} +2 -2
  6. package/dist/{array-6NAAybxf.mjs.map → array-Dp6N70oc.mjs.map} +1 -1
  7. package/dist/{choropleth-BAn8HIaC.mjs → choropleth-BVD28Asn.mjs} +4 -10
  8. package/dist/choropleth-BVD28Asn.mjs.map +1 -0
  9. package/dist/{color-scale-utils-CSwgszB6.mjs → color-scale-utils-BpobzRX6.mjs} +2 -2
  10. package/dist/{color-scale-utils-CSwgszB6.mjs.map → color-scale-utils-BpobzRX6.mjs.map} +1 -1
  11. package/dist/components/diagrams/buildPaths.d.ts +15 -27
  12. package/dist/components/essentials/legend.spec.d.ts +1 -0
  13. package/dist/components/essentials/title.spec.d.ts +1 -0
  14. package/dist/components/index.mjs +1 -1
  15. package/dist/{index-fFi6OCaz.mjs → index-CeYuVh-h.mjs} +3 -3
  16. package/dist/{index-fFi6OCaz.mjs.map → index-CeYuVh-h.mjs.map} +1 -1
  17. package/dist/index.mjs +7 -7
  18. package/dist/model/index.mjs +2 -2
  19. package/dist/selectedGroups.spec.d.ts +1 -0
  20. package/dist/services/index.mjs +3 -3
  21. package/dist/services/time-series.spec.d.ts +1 -0
  22. package/dist/tests/index.d.ts +2 -0
  23. package/dist/tests/test-environment.d.ts +16 -0
  24. package/dist/tests/tools.d.ts +4 -0
  25. package/dist/tools.spec.d.ts +1 -0
  26. package/dist/umd/bundle.umd.cjs +1 -1
  27. package/dist/umd/bundle.umd.cjs.map +1 -1
  28. package/dist/umd/bundle.umd.js +1 -1
  29. package/package.json +18 -26
  30. package/dist/choropleth-BAn8HIaC.mjs.map +0 -1
  31. package/dist/demo/charts/alluvial.d.ts +0 -110
  32. package/dist/demo/charts/area.d.ts +0 -225
  33. package/dist/demo/charts/bar.d.ts +0 -763
  34. package/dist/demo/charts/boxplot.d.ts +0 -35
  35. package/dist/demo/charts/bubble.d.ts +0 -142
  36. package/dist/demo/charts/bullet.d.ts +0 -25
  37. package/dist/demo/charts/chart-types.d.ts +0 -128
  38. package/dist/demo/charts/choropleth.d.ts +0 -736
  39. package/dist/demo/charts/circle-pack.d.ts +0 -91
  40. package/dist/demo/charts/combo.d.ts +0 -483
  41. package/dist/demo/charts/donut.d.ts +0 -65
  42. package/dist/demo/charts/gauge.d.ts +0 -40
  43. package/dist/demo/charts/heatmap.d.ts +0 -126
  44. package/dist/demo/charts/hightlight.d.ts +0 -41
  45. package/dist/demo/charts/histogram.d.ts +0 -64
  46. package/dist/demo/charts/index.d.ts +0 -62
  47. package/dist/demo/charts/line.d.ts +0 -362
  48. package/dist/demo/charts/lollipop.d.ts +0 -40
  49. package/dist/demo/charts/meter.d.ts +0 -95
  50. package/dist/demo/charts/pie.d.ts +0 -47
  51. package/dist/demo/charts/radar.d.ts +0 -64
  52. package/dist/demo/charts/scatter.d.ts +0 -119
  53. package/dist/demo/charts/step.d.ts +0 -96
  54. package/dist/demo/charts/time-series-axis.d.ts +0 -326
  55. package/dist/demo/charts/toolbar.d.ts +0 -12
  56. package/dist/demo/charts/topojson-110.d.ts +0 -360
  57. package/dist/demo/charts/tree.d.ts +0 -30
  58. package/dist/demo/charts/treemap.d.ts +0 -15
  59. package/dist/demo/charts/wordcloud.d.ts +0 -14
  60. package/dist/demo/charts/zoom-bar.d.ts +0 -79
  61. package/dist/demo/index.d.ts +0 -4
  62. package/dist/demo/index.mjs +0 -51456
  63. package/dist/demo/index.mjs.map +0 -1
  64. package/dist/demo/styles.css +0 -34613
  65. package/dist/demo/styles.css.map +0 -1
  66. package/dist/demo/utils/index.d.ts +0 -2
  67. package/dist/demo/utils/package-versions.d.ts +0 -18
  68. package/dist/demo/utils/stackblitz/angular.d.ts +0 -3
  69. package/dist/demo/utils/stackblitz/index.d.ts +0 -5
  70. package/dist/demo/utils/stackblitz/object-to-string.d.ts +0 -5
  71. package/dist/demo/utils/stackblitz/react.d.ts +0 -3
  72. package/dist/demo/utils/stackblitz/svelte.d.ts +0 -3
  73. package/dist/demo/utils/stackblitz/vanilla-js.d.ts +0 -3
  74. package/dist/demo/utils/stackblitz/vue.d.ts +0 -3
  75. package/dist/demo/utils/story-widgets.d.ts +0 -6
  76. package/scss/demos.scss +0 -412
package/scss/demos.scss DELETED
@@ -1,412 +0,0 @@
1
- @use '@carbon/styles/scss/config' with (
2
- $css--font-face: false // Don't load Plex from ~@ibm/plex
3
- );
4
-
5
- @use 'globals'; // Load Carbon Charts global variables
6
- @use 'index'; // Load Carbon Charts styles
7
- @use '@carbon/styles';
8
- @use '@carbon/styles/scss/type';
9
- @use '@carbon/styles/scss/theme';
10
- @use '@carbon/colors';
11
-
12
- .#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper {
13
- overflow: visible;
14
- font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
15
- }
16
-
17
- html {
18
- @include styles.theme(styles.$g100);
19
- padding-bottom: 200px;
20
- }
21
-
22
- html[data-carbon-theme='white'] {
23
- @include styles.theme(styles.$white);
24
- }
25
-
26
- html[data-carbon-theme='g10'] {
27
- @include styles.theme(styles.$g10);
28
- }
29
-
30
- html[data-carbon-theme='g90'] {
31
- @include styles.theme(styles.$g90);
32
- }
33
-
34
- html[data-carbon-theme='g100'] {
35
- @include styles.theme(styles.$g100);
36
- }
37
-
38
- div.container {
39
- color: theme.$text-primary;
40
- background-color: theme.$background;
41
- font-family: 'IBM Plex Sans', Arial, sans-serif;
42
- padding: 30px;
43
-
44
- div#color-palette-picker,
45
- div#projection-picker {
46
- max-width: 18rem;
47
- margin-top: 2rem;
48
- }
49
-
50
- #chart-demo {
51
- max-width: 700px;
52
- }
53
-
54
- .cds--grid {
55
- padding: 0;
56
-
57
- .cds--row .chart-demo {
58
- margin-bottom: 60px;
59
- }
60
- }
61
-
62
- h3 {
63
- margin: 0;
64
- font-weight: 700;
65
-
66
- b.component {
67
- margin-right: 10px;
68
- }
69
-
70
- span.cds--tag.component-name {
71
- font-size: 0.55em;
72
- vertical-align: middle;
73
- padding: 0.25em 1em;
74
- border-radius: 1em;
75
- font-weight: 600;
76
- }
77
- }
78
-
79
- div.theme-picker {
80
- margin-top: 15px;
81
- }
82
-
83
- p.props {
84
- b {
85
- font-weight: 700;
86
- }
87
- }
88
-
89
- // Replace with Carbon .scss imports
90
- div.cds--snippet--multi {
91
- background-color: black;
92
- color: white;
93
-
94
- pre {
95
- padding: 2em !important;
96
- -moz-tab-size: 4;
97
- tab-size: 4;
98
- line-height: 1.4;
99
- }
100
-
101
- .cds--snippet-container pre::after {
102
- display: none;
103
- }
104
-
105
- .token.tag {
106
- color: #6ea6ff;
107
- }
108
-
109
- .token.attr-name {
110
- color: #92eeee;
111
- }
112
-
113
- .token.attr-value {
114
- color: #bb8eff;
115
- }
116
- }
117
-
118
- .cds--snippet--multi .cds--snippet-container pre code {
119
- font-size: 14px;
120
- }
121
-
122
- .cds--snippet--multi.cds--snippet--expand .cds--snippet-container,
123
- .cds--snippet--multi.cds--snippet--expand .cds--snippet-container pre {
124
- padding-bottom: 0;
125
- }
126
-
127
- div.demo-desktop-only {
128
- @media screen and (max-width: 768px) {
129
- position: relative;
130
- overflow: hidden;
131
-
132
- &:before {
133
- content: ' ';
134
- display: block;
135
- position: absolute;
136
- z-index: 2;
137
- top: 0;
138
- left: 0;
139
- background: #f4f4f4;
140
- width: 100%;
141
- height: 100%;
142
- }
143
- }
144
-
145
- div.cp-message {
146
- display: none;
147
-
148
- @media screen and (max-width: 768px) {
149
- position: absolute;
150
- z-index: 2;
151
- top: 50%;
152
- left: 50%;
153
- transform: translate(-50%, -50%);
154
- display: block;
155
- font-weight: bold;
156
- text-align: center;
157
- }
158
- }
159
- }
160
-
161
- &.intro {
162
- padding: 0;
163
-
164
- .container-welcome {
165
- padding: 0 !important;
166
- }
167
-
168
- .welcome__container {
169
- width: 100vw;
170
- min-height: 100vh;
171
- padding: 3rem;
172
- padding-bottom: 5rem;
173
- background-color: #000;
174
-
175
- @media screen and (max-width: 768px) {
176
- &:before {
177
- position: absolute;
178
- display: block;
179
- top: 0;
180
- left: 0;
181
- width: 100%;
182
- height: 100%;
183
- background: rgba(0, 0, 0, 0.45);
184
- content: ' ';
185
- z-index: 1;
186
- }
187
- }
188
- }
189
-
190
- .welcome__content {
191
- position: relative;
192
- z-index: 2;
193
- }
194
-
195
- .welcome__heading {
196
- @include type.type-style('productive-heading-07');
197
-
198
- color: #fff; // theme.$text-inverse;
199
- }
200
-
201
- .welcome__heading--subtitle {
202
- font-weight: 600;
203
- }
204
-
205
- .welcome__heading--other {
206
- @include type.type-style('productive-heading-04');
207
-
208
- font-weight: 600;
209
- color: #4587fd;
210
- }
211
-
212
- h5 {
213
- margin-top: 2em;
214
- }
215
-
216
- span.netlify {
217
- position: fixed;
218
- left: 0;
219
- bottom: 0;
220
- padding: 1em 1.5em;
221
- padding-left: 3rem;
222
- border-top-right-radius: 2em;
223
- font-size: 13px;
224
- vertical-align: middle;
225
- background-color: #292929;
226
- color: #bcbcbc;
227
-
228
- a {
229
- color: #fff;
230
- font-weight: 700;
231
- }
232
- }
233
- }
234
-
235
- .marginTop {
236
- margin-top: 10px;
237
-
238
- &-15 {
239
- margin-top: 15px;
240
- }
241
-
242
- &-30 {
243
- margin-top: 30px;
244
- }
245
-
246
- &-45 {
247
- margin-top: 45px;
248
- }
249
- }
250
-
251
- hr {
252
- margin-bottom: 75px;
253
- margin-top: 25px;
254
- }
255
- }
256
-
257
- .resource-card-group {
258
- display: flex;
259
- flex-wrap: wrap;
260
- margin-left: 0;
261
- margin-right: 0;
262
- margin-top: 30px;
263
- max-width: 700px;
264
-
265
- .#{globals.$prefix}--col-md-6.#{globals.$prefix}--col-lg-6 {
266
- border: 1px solid theme.$background;
267
- padding: 0;
268
- }
269
-
270
- .#{globals.$prefix}--col-lg-6 {
271
- width: 100%;
272
- }
273
-
274
- @media (min-width: 42rem) {
275
- .#{globals.$prefix}--col-md-6 {
276
- display: block;
277
- max-width: 75%;
278
- flex: 0 0 75%;
279
- }
280
- }
281
-
282
- @media (min-width: 66rem) {
283
- .#{globals.$prefix}--col-lg-6 {
284
- display: block;
285
- max-width: 50%;
286
- flex: 0 0 50%;
287
- }
288
- }
289
- }
290
-
291
- .#{globals.$prefix}--aspect-ratio--object {
292
- position: absolute;
293
- top: 0;
294
- left: 0;
295
- width: 100%;
296
- height: 100%;
297
- }
298
-
299
- .#{globals.$prefix}--resource-card .#{globals.$prefix}--tile {
300
- background: theme.$layer-01;
301
- height: 100%;
302
- padding: 1rem 25% 1rem 1rem;
303
- position: relative;
304
- transition: background 70ms;
305
- text-decoration: none;
306
- }
307
-
308
- .#{globals.$prefix}--resource-card .#{globals.$prefix}--tile:hover {
309
- background: theme.$background-hover;
310
- }
311
-
312
- .#{globals.$prefix}--resource-card__title {
313
- @include type.type-style('productive-heading-03');
314
- text-decoration: none;
315
- color: theme.$text-primary;
316
- }
317
-
318
- .#{globals.$prefix}--resource-card__subtitle {
319
- @include type.type-style('heading-01');
320
- font-weight: 400;
321
- text-decoration: none;
322
- color: theme.$text-primary;
323
- }
324
-
325
- .#{globals.$prefix}--resource-card__icon--img {
326
- position: absolute;
327
- bottom: 1rem;
328
- left: 1rem;
329
- min-width: 32px;
330
- min-height: 32px;
331
- display: flex;
332
- align-items: flex-end;
333
- }
334
-
335
- .#{globals.$prefix}--resource-card__icon--img .gatsby-resp-image-wrapper,
336
- .#{globals.$prefix}--resource-card__icon--img img[src*='gif'],
337
- .#{globals.$prefix}--resource-card__icon--img img[src*='svg'] {
338
- margin-bottom: 0;
339
- }
340
-
341
- .#{globals.$prefix}--resource-card__icon--img .gatsby-resp-image-wrapper {
342
- position: static !important; //important needed to override inline style added by Gatsby
343
- }
344
-
345
- .#{globals.$prefix}--resource-card__icon--action {
346
- position: absolute;
347
- bottom: 1rem;
348
- right: 1rem;
349
- width: 20px;
350
- height: 20px;
351
- }
352
-
353
- .#{globals.$prefix}--resource-card .#{globals.$prefix}--resource-card__icon--action svg {
354
- fill: theme.$icon-primary;
355
- }
356
-
357
- // Dark
358
- .#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--tile {
359
- background: colors.$gray-90; //$background for gray 90 theme
360
- }
361
-
362
- .#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--tile:hover {
363
- background: colors.$gray-80; //$background-hover for gray 90 theme
364
- }
365
-
366
- .#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--resource-card__title,
367
- .#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--resource-card__subtitle {
368
- color: theme.$text-on-color;
369
- }
370
-
371
- .#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--resource-card__icon--action svg {
372
- fill: colors.$gray-10;
373
- }
374
-
375
- // Disabled
376
- .#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--tile:hover {
377
- background: theme.$layer-01;
378
- cursor: not-allowed;
379
- }
380
-
381
- .#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--resource-card__title,
382
- .#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--resource-card__subtitle {
383
- color: theme.$icon-on-color-disabled;
384
- }
385
-
386
- .#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--resource-card__icon--action svg {
387
- fill: theme.$icon-disabled;
388
- }
389
-
390
- .#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--resource-card__icon--img {
391
- filter: grayscale(100%);
392
- opacity: 0.5;
393
- }
394
-
395
- // Disabled dark
396
- .#{globals.$prefix}--resource-card--disabled.#{globals.$prefix}--resource-card--dark
397
- .#{globals.$prefix}--tile:hover {
398
- background: colors.$gray-90; //$background for gray 90 theme
399
- }
400
-
401
- .#{globals.$prefix}--resource-card--disabled.#{globals.$prefix}--resource-card--dark
402
- .#{globals.$prefix}--resource-card__title,
403
- .#{globals.$prefix}--resource-card--disabled.#{globals.$prefix}--resource-card--dark
404
- .#{globals.$prefix}--resource-card__subtitle {
405
- color: colors.$gray-50; //$icon-on-color-disabled for gray 90
406
- }
407
-
408
- .#{globals.$prefix}--resource-card--disabled.#{globals.$prefix}--resource-card--dark
409
- .#{globals.$prefix}--resource-card__icon--action
410
- svg {
411
- fill: colors.$gray-70; //$disabled-02 for gray 90
412
- }