@carbon/charts 1.13.4 → 1.13.6
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.
- package/CHANGELOG.md +18 -0
- package/dist/{choropleth-75258a8a.mjs → choropleth-bfa2bf81.mjs} +4 -4
- package/dist/choropleth-bfa2bf81.mjs.map +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/demo/index.mjs +37 -37
- package/dist/demo/styles.css +23381 -23028
- package/dist/demo/styles.css.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/umd/bundle.umd.js +1 -1
- package/dist/umd/bundle.umd.js.map +1 -1
- package/package.json +8 -8
- package/scss/demos.scss +51 -72
- package/dist/choropleth-75258a8a.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/charts",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.6",
|
|
4
4
|
"description": "Carbon Charts component library",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/umd/bundle.umd.js",
|
|
@@ -107,18 +107,18 @@
|
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@carbon/import-once": "^10.7.0",
|
|
109
109
|
"@carbon/layout": "^11.19.0",
|
|
110
|
-
"@carbon/styles": "^1.
|
|
110
|
+
"@carbon/styles": "^1.39.0",
|
|
111
111
|
"@carbon/themes": "^11.25.0",
|
|
112
112
|
"@rollup/plugin-replace": "^5.0.2",
|
|
113
|
-
"@rushstack/eslint-patch": "^1.
|
|
113
|
+
"@rushstack/eslint-patch": "^1.5.0",
|
|
114
114
|
"@stackblitz/sdk": "^1.9.0",
|
|
115
115
|
"@types/d3": "^7.4.1",
|
|
116
116
|
"@types/d3-cloud": "^1.2.6",
|
|
117
117
|
"@types/d3-sankey": "^0.12.2",
|
|
118
118
|
"@types/lodash-es": "^4.17.9",
|
|
119
119
|
"@types/topojson": "^3.2.4",
|
|
120
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
121
|
-
"@typescript-eslint/parser": "^6.7.
|
|
120
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
121
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
122
122
|
"concurrently": "^8.2.1",
|
|
123
123
|
"downlevel-dts": "^0.11.0",
|
|
124
124
|
"eslint": "^8.50.0",
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
"typedoc": "^0.25.1",
|
|
131
131
|
"typescript": "^5.2.2",
|
|
132
132
|
"vite": "^4.4.9",
|
|
133
|
-
"vite-plugin-dts": "^3.
|
|
134
|
-
"vitest": "^0.34.
|
|
133
|
+
"vite-plugin-dts": "^3.6.0",
|
|
134
|
+
"vitest": "^0.34.6"
|
|
135
135
|
},
|
|
136
136
|
"publishConfig": {
|
|
137
137
|
"access": "public"
|
|
@@ -180,5 +180,5 @@
|
|
|
180
180
|
"url": "https://github.com/theiliad"
|
|
181
181
|
}
|
|
182
182
|
],
|
|
183
|
-
"gitHead": "
|
|
183
|
+
"gitHead": "43009e695df030a8398a256bbab6c387a3c6a24b"
|
|
184
184
|
}
|
package/scss/demos.scss
CHANGED
|
@@ -1,39 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
@use 'globals'; // Load Carbon Charts global variables
|
|
2
|
+
@use 'index'; // Load Carbon Charts styles
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
$prefix: 'cds'; // Default value
|
|
4
|
+
$css--font-face: false; // Don't load Plex
|
|
5
5
|
$css--default-type: false; // Do not include default type
|
|
6
6
|
$css--reset: false; // Do not include reset CSS
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
@use '@carbon/styles/scss/
|
|
10
|
-
$css--font-face: false
|
|
11
|
-
);
|
|
12
|
-
@use '@carbon/styles'; // primarily needed for toolbar
|
|
13
|
-
@use '@carbon/styles/scss/type' as *; // used on line 230
|
|
14
|
-
|
|
15
|
-
// Custom charting tokens
|
|
8
|
+
@use '@carbon/styles';
|
|
9
|
+
@use '@carbon/styles/scss/type';
|
|
16
10
|
@use '@carbon/styles/scss/theme';
|
|
17
|
-
@
|
|
18
|
-
@include theme.add-component-tokens($custom-charting-tokens);
|
|
19
|
-
@import '@carbon/styles/scss/components/button/tokens.scss';
|
|
20
|
-
|
|
21
|
-
@mixin default_transition { // used by colors
|
|
22
|
-
transition: all 0.1s ease-out;
|
|
23
|
-
}
|
|
24
|
-
@import '@carbon/colors';
|
|
25
|
-
@import 'colors';
|
|
26
|
-
|
|
27
|
-
@import '@carbon/import-once/scss';
|
|
28
|
-
@import 'components';
|
|
29
|
-
|
|
30
|
-
@import 'graphs';
|
|
31
|
-
@import 'type';
|
|
32
|
-
@import 'chart-holder';
|
|
11
|
+
@use '@carbon/colors';
|
|
33
12
|
|
|
34
|
-
.#{
|
|
13
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper {
|
|
35
14
|
overflow: visible;
|
|
36
|
-
font-family: var(--#{
|
|
15
|
+
font-family: var(--#{globals.$prefix}-charts-font-family-condensed);
|
|
37
16
|
}
|
|
38
17
|
|
|
39
18
|
html {
|
|
@@ -214,7 +193,7 @@ div.container {
|
|
|
214
193
|
}
|
|
215
194
|
|
|
216
195
|
.welcome__heading {
|
|
217
|
-
@include type-style('productive-heading-07');
|
|
196
|
+
@include type.type-style('productive-heading-07');
|
|
218
197
|
|
|
219
198
|
color: #fff; // theme.$text-inverse;
|
|
220
199
|
}
|
|
@@ -224,7 +203,7 @@ div.container {
|
|
|
224
203
|
}
|
|
225
204
|
|
|
226
205
|
.welcome__heading--other {
|
|
227
|
-
@include type-style('productive-heading-04');
|
|
206
|
+
@include type.type-style('productive-heading-04');
|
|
228
207
|
|
|
229
208
|
font-weight: 600;
|
|
230
209
|
color: #4587fd;
|
|
@@ -283,17 +262,17 @@ div.container {
|
|
|
283
262
|
margin-top: 30px;
|
|
284
263
|
max-width: 700px;
|
|
285
264
|
|
|
286
|
-
.#{
|
|
265
|
+
.#{globals.$prefix}--col-md-6.#{globals.$prefix}--col-lg-6 {
|
|
287
266
|
border: 1px solid theme.$background;
|
|
288
267
|
padding: 0;
|
|
289
268
|
}
|
|
290
269
|
|
|
291
|
-
.#{
|
|
270
|
+
.#{globals.$prefix}--col-lg-6 {
|
|
292
271
|
width: 100%;
|
|
293
272
|
}
|
|
294
273
|
|
|
295
274
|
@media (min-width: 42rem) {
|
|
296
|
-
.#{
|
|
275
|
+
.#{globals.$prefix}--col-md-6 {
|
|
297
276
|
display: block;
|
|
298
277
|
max-width: 75%;
|
|
299
278
|
flex: 0 0 75%;
|
|
@@ -301,7 +280,7 @@ div.container {
|
|
|
301
280
|
}
|
|
302
281
|
|
|
303
282
|
@media (min-width: 66rem) {
|
|
304
|
-
.#{
|
|
283
|
+
.#{globals.$prefix}--col-lg-6 {
|
|
305
284
|
display: block;
|
|
306
285
|
max-width: 50%;
|
|
307
286
|
flex: 0 0 50%;
|
|
@@ -309,7 +288,7 @@ div.container {
|
|
|
309
288
|
}
|
|
310
289
|
}
|
|
311
290
|
|
|
312
|
-
.#{
|
|
291
|
+
.#{globals.$prefix}--aspect-ratio--object {
|
|
313
292
|
position: absolute;
|
|
314
293
|
top: 0;
|
|
315
294
|
left: 0;
|
|
@@ -317,7 +296,7 @@ div.container {
|
|
|
317
296
|
height: 100%;
|
|
318
297
|
}
|
|
319
298
|
|
|
320
|
-
.#{
|
|
299
|
+
.#{globals.$prefix}--resource-card .#{globals.$prefix}--tile {
|
|
321
300
|
background: theme.$layer-01;
|
|
322
301
|
height: 100%;
|
|
323
302
|
padding: 1rem 25% 1rem 1rem;
|
|
@@ -326,24 +305,24 @@ div.container {
|
|
|
326
305
|
text-decoration: none;
|
|
327
306
|
}
|
|
328
307
|
|
|
329
|
-
.#{
|
|
308
|
+
.#{globals.$prefix}--resource-card .#{globals.$prefix}--tile:hover {
|
|
330
309
|
background: theme.$background-hover;
|
|
331
310
|
}
|
|
332
311
|
|
|
333
|
-
.#{
|
|
334
|
-
@include type-style('productive-heading-03');
|
|
312
|
+
.#{globals.$prefix}--resource-card__title {
|
|
313
|
+
@include type.type-style('productive-heading-03');
|
|
335
314
|
text-decoration: none;
|
|
336
315
|
color: theme.$text-primary;
|
|
337
316
|
}
|
|
338
317
|
|
|
339
|
-
.#{
|
|
340
|
-
@include type-style('heading-01');
|
|
318
|
+
.#{globals.$prefix}--resource-card__subtitle {
|
|
319
|
+
@include type.type-style('heading-01');
|
|
341
320
|
font-weight: 400;
|
|
342
321
|
text-decoration: none;
|
|
343
322
|
color: theme.$text-primary;
|
|
344
323
|
}
|
|
345
324
|
|
|
346
|
-
.#{
|
|
325
|
+
.#{globals.$prefix}--resource-card__icon--img {
|
|
347
326
|
position: absolute;
|
|
348
327
|
bottom: 1rem;
|
|
349
328
|
left: 1rem;
|
|
@@ -353,17 +332,17 @@ div.container {
|
|
|
353
332
|
align-items: flex-end;
|
|
354
333
|
}
|
|
355
334
|
|
|
356
|
-
.#{
|
|
357
|
-
.#{
|
|
358
|
-
.#{
|
|
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'] {
|
|
359
338
|
margin-bottom: 0;
|
|
360
339
|
}
|
|
361
340
|
|
|
362
|
-
.#{
|
|
341
|
+
.#{globals.$prefix}--resource-card__icon--img .gatsby-resp-image-wrapper {
|
|
363
342
|
position: static !important; //important needed to override inline style added by Gatsby
|
|
364
343
|
}
|
|
365
344
|
|
|
366
|
-
.#{
|
|
345
|
+
.#{globals.$prefix}--resource-card__icon--action {
|
|
367
346
|
position: absolute;
|
|
368
347
|
bottom: 1rem;
|
|
369
348
|
right: 1rem;
|
|
@@ -371,62 +350,62 @@ div.container {
|
|
|
371
350
|
height: 20px;
|
|
372
351
|
}
|
|
373
352
|
|
|
374
|
-
.#{
|
|
353
|
+
.#{globals.$prefix}--resource-card .#{globals.$prefix}--resource-card__icon--action svg {
|
|
375
354
|
fill: theme.$icon-primary;
|
|
376
355
|
}
|
|
377
356
|
|
|
378
357
|
// Dark
|
|
379
|
-
.#{
|
|
380
|
-
background:
|
|
358
|
+
.#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--tile {
|
|
359
|
+
background: colors.$gray-90; //$background for gray 90 theme
|
|
381
360
|
}
|
|
382
361
|
|
|
383
|
-
.#{
|
|
384
|
-
background:
|
|
362
|
+
.#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--tile:hover {
|
|
363
|
+
background: colors.$gray-80; //$background-hover for gray 90 theme
|
|
385
364
|
}
|
|
386
365
|
|
|
387
|
-
.#{
|
|
388
|
-
.#{
|
|
366
|
+
.#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--resource-card__title,
|
|
367
|
+
.#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--resource-card__subtitle {
|
|
389
368
|
color: theme.$text-on-color;
|
|
390
369
|
}
|
|
391
370
|
|
|
392
|
-
.#{
|
|
393
|
-
fill:
|
|
371
|
+
.#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--resource-card__icon--action svg {
|
|
372
|
+
fill: colors.$gray-10;
|
|
394
373
|
}
|
|
395
374
|
|
|
396
375
|
// Disabled
|
|
397
|
-
.#{
|
|
376
|
+
.#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--tile:hover {
|
|
398
377
|
background: theme.$layer-01;
|
|
399
378
|
cursor: not-allowed;
|
|
400
379
|
}
|
|
401
380
|
|
|
402
|
-
.#{
|
|
403
|
-
.#{
|
|
381
|
+
.#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--resource-card__title,
|
|
382
|
+
.#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--resource-card__subtitle {
|
|
404
383
|
color: theme.$icon-on-color-disabled;
|
|
405
384
|
}
|
|
406
385
|
|
|
407
|
-
.#{
|
|
386
|
+
.#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--resource-card__icon--action svg {
|
|
408
387
|
fill: theme.$icon-disabled;
|
|
409
388
|
}
|
|
410
389
|
|
|
411
|
-
.#{
|
|
390
|
+
.#{globals.$prefix}--resource-card--disabled .#{globals.$prefix}--resource-card__icon--img {
|
|
412
391
|
filter: grayscale(100%);
|
|
413
392
|
opacity: 0.5;
|
|
414
393
|
}
|
|
415
394
|
|
|
416
395
|
// Disabled dark
|
|
417
|
-
.#{
|
|
418
|
-
background:
|
|
396
|
+
.#{globals.$prefix}--resource-card--disabled.#{globals.$prefix}--resource-card--dark .#{globals.$prefix}--tile:hover {
|
|
397
|
+
background: colors.$gray-90; //$background for gray 90 theme
|
|
419
398
|
}
|
|
420
399
|
|
|
421
|
-
.#{
|
|
422
|
-
.#{
|
|
423
|
-
.#{
|
|
424
|
-
.#{
|
|
425
|
-
color:
|
|
400
|
+
.#{globals.$prefix}--resource-card--disabled.#{globals.$prefix}--resource-card--dark
|
|
401
|
+
.#{globals.$prefix}--resource-card__title,
|
|
402
|
+
.#{globals.$prefix}--resource-card--disabled.#{globals.$prefix}--resource-card--dark
|
|
403
|
+
.#{globals.$prefix}--resource-card__subtitle {
|
|
404
|
+
color: colors.$gray-50; //$icon-on-color-disabled for gray 90
|
|
426
405
|
}
|
|
427
406
|
|
|
428
|
-
.#{
|
|
429
|
-
.#{
|
|
407
|
+
.#{globals.$prefix}--resource-card--disabled.#{globals.$prefix}--resource-card--dark
|
|
408
|
+
.#{globals.$prefix}--resource-card__icon--action
|
|
430
409
|
svg {
|
|
431
|
-
fill:
|
|
410
|
+
fill: colors.$gray-70; //$disabled-02 for gray 90
|
|
432
411
|
}
|