@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.
- package/CHANGELOG.md +13 -0
- package/README.md +3 -3
- package/dist/demo/index.mjs +227 -244
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +4499 -692
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/package-versions.d.ts +0 -2
- package/dist/styles.css +4249 -781
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/package.json +21 -21
- package/scss/_chart-holder.scss +18 -17
- package/scss/_chart-wrapper.scss +6 -0
- package/scss/_color-palette.scss +2 -2
- package/scss/_colors.scss +26 -25
- package/scss/_globals.scss +8 -0
- package/scss/_tokens.scss +50 -50
- package/scss/_transition.scss +4 -0
- package/scss/_type.scss +14 -14
- package/scss/components/_axis.scss +12 -11
- package/scss/components/_callouts.scss +4 -3
- package/scss/components/_color-legend.scss +4 -4
- package/scss/components/_grid-brush.scss +7 -5
- package/scss/components/_grid.scss +9 -8
- package/scss/components/_highlights.scss +6 -3
- package/scss/components/_layout.scss +5 -3
- package/scss/components/_legend.scss +14 -11
- package/scss/components/_meter-title.scss +11 -9
- package/scss/components/_modal.scss +14 -11
- package/scss/components/_ruler.scss +6 -3
- package/scss/components/_skeleton-lines.scss +9 -6
- package/scss/components/_skeleton.scss +9 -6
- package/scss/components/_threshold.scss +12 -11
- package/scss/components/_title.scss +5 -5
- package/scss/components/_toolbar.scss +6 -6
- package/scss/components/_tooltip.scss +12 -11
- package/scss/components/_zero-line.scss +4 -3
- package/scss/components/_zoom-bar.scss +16 -14
- package/scss/components/diagrams/_card-node.scss +74 -74
- package/scss/components/diagrams/_edge.scss +46 -49
- package/scss/components/diagrams/_marker.scss +4 -5
- package/scss/components/diagrams/_shape-node.scss +72 -73
- package/scss/components/diagrams/index.scss +4 -4
- package/scss/components/index.scss +20 -20
- package/scss/demos.scss +1 -0
- package/scss/graphs/_alluvial.scss +7 -6
- package/scss/graphs/_area.scss +4 -2
- package/scss/graphs/_bubble.scss +6 -5
- package/scss/graphs/_bullet.scss +11 -13
- package/scss/graphs/_choropleth.scss +7 -7
- package/scss/graphs/_circle-pack.scss +7 -6
- package/scss/graphs/_donut.scss +3 -1
- package/scss/graphs/_gauge.scss +7 -6
- package/scss/graphs/_heatmap.scss +6 -6
- package/scss/graphs/_line.scss +6 -4
- package/scss/graphs/_lollipop.scss +3 -1
- package/scss/graphs/_meter.scss +11 -10
- package/scss/graphs/_pie.scss +3 -1
- package/scss/graphs/_radar.scss +6 -5
- package/scss/graphs/_scatter-stacked.scss +4 -3
- package/scss/graphs/_scatter.scss +6 -5
- package/scss/graphs/_tree.scss +11 -9
- package/scss/graphs/_treemap.scss +3 -1
- package/scss/graphs/_wordcloud.scss +3 -1
- package/scss/graphs/index.scss +19 -19
- package/scss/index.scss +10 -31
- package/styles.css +4249 -781
- package/styles.min.css +1 -1
- package/scss/components/_edge.scss +0 -65
- package/scss/components/_marker.scss +0 -7
package/scss/_tokens.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@carbon/styles/scss/themes';
|
|
3
|
+
@use '@carbon/colors';
|
|
3
4
|
@use '@carbon/styles/scss/utilities/component-tokens';
|
|
4
|
-
@use '@carbon/colors' as *;
|
|
5
5
|
|
|
6
6
|
// THEMES
|
|
7
7
|
$color-scheme: (
|
|
@@ -28,15 +28,15 @@ $color-scheme: (
|
|
|
28
28
|
|
|
29
29
|
// ELEMENTS
|
|
30
30
|
$alert-stroke: (
|
|
31
|
-
fallback:
|
|
31
|
+
fallback: colors.$yellow-50,
|
|
32
32
|
values: (
|
|
33
33
|
(
|
|
34
34
|
theme: themes.$white,
|
|
35
|
-
value:
|
|
35
|
+
value: colors.$yellow-50
|
|
36
36
|
),
|
|
37
37
|
(
|
|
38
38
|
theme: themes.$g10,
|
|
39
|
-
value:
|
|
39
|
+
value: colors.$yellow-50
|
|
40
40
|
),
|
|
41
41
|
(
|
|
42
42
|
theme: themes.$g90,
|
|
@@ -50,45 +50,45 @@ $alert-stroke: (
|
|
|
50
50
|
) !default;
|
|
51
51
|
|
|
52
52
|
$layer-01-absolute: (
|
|
53
|
-
fallback:
|
|
53
|
+
fallback: colors.$white-0,
|
|
54
54
|
values: (
|
|
55
55
|
(
|
|
56
56
|
theme: themes.$white,
|
|
57
|
-
value:
|
|
57
|
+
value: colors.$white-0
|
|
58
58
|
),
|
|
59
59
|
(
|
|
60
60
|
theme: themes.$g10,
|
|
61
|
-
value:
|
|
61
|
+
value: colors.$white-0
|
|
62
62
|
),
|
|
63
63
|
(
|
|
64
64
|
theme: themes.$g90,
|
|
65
|
-
value:
|
|
65
|
+
value: colors.$black-100
|
|
66
66
|
),
|
|
67
67
|
(
|
|
68
68
|
theme: themes.$g100,
|
|
69
|
-
value:
|
|
69
|
+
value: colors.$black-100
|
|
70
70
|
)
|
|
71
71
|
)
|
|
72
72
|
) !default;
|
|
73
73
|
|
|
74
74
|
$layer-inverse-absolute: (
|
|
75
|
-
fallback:
|
|
75
|
+
fallback: colors.$black-100,
|
|
76
76
|
values: (
|
|
77
77
|
(
|
|
78
78
|
theme: themes.$white,
|
|
79
|
-
value:
|
|
79
|
+
value: colors.$black-100
|
|
80
80
|
),
|
|
81
81
|
(
|
|
82
82
|
theme: themes.$g10,
|
|
83
|
-
value:
|
|
83
|
+
value: colors.$black-100
|
|
84
84
|
),
|
|
85
85
|
(
|
|
86
86
|
theme: themes.$g90,
|
|
87
|
-
value:
|
|
87
|
+
value: colors.$white-0
|
|
88
88
|
),
|
|
89
89
|
(
|
|
90
90
|
theme: themes.$g100,
|
|
91
|
-
value:
|
|
91
|
+
value: colors.$white-0
|
|
92
92
|
)
|
|
93
93
|
)
|
|
94
94
|
) !default;
|
|
@@ -129,7 +129,7 @@ $grid-bg: (
|
|
|
129
129
|
),
|
|
130
130
|
(
|
|
131
131
|
theme: themes.$g90,
|
|
132
|
-
value:
|
|
132
|
+
value: colors.$gray-100
|
|
133
133
|
),
|
|
134
134
|
(
|
|
135
135
|
theme: themes.$g100,
|
|
@@ -140,23 +140,23 @@ $grid-bg: (
|
|
|
140
140
|
|
|
141
141
|
// METER
|
|
142
142
|
$meter-range-indicator: (
|
|
143
|
-
fallback:
|
|
143
|
+
fallback: colors.$gray-40,
|
|
144
144
|
values: (
|
|
145
145
|
(
|
|
146
146
|
theme: themes.$white,
|
|
147
|
-
value:
|
|
147
|
+
value: colors.$gray-40
|
|
148
148
|
),
|
|
149
149
|
(
|
|
150
150
|
theme: themes.$g10,
|
|
151
|
-
value:
|
|
151
|
+
value: colors.$gray-40
|
|
152
152
|
),
|
|
153
153
|
(
|
|
154
154
|
theme: themes.$g90,
|
|
155
|
-
value:
|
|
155
|
+
value: colors.$gray-60
|
|
156
156
|
),
|
|
157
157
|
(
|
|
158
158
|
theme: themes.$g100,
|
|
159
|
-
value:
|
|
159
|
+
value: colors.$gray-60
|
|
160
160
|
)
|
|
161
161
|
)
|
|
162
162
|
) !default;
|
|
@@ -209,130 +209,130 @@ $tooltip-line-border: (
|
|
|
209
209
|
|
|
210
210
|
// ZONES
|
|
211
211
|
$zone-fill-01: (
|
|
212
|
-
fallback:
|
|
212
|
+
fallback: colors.$gray-10,
|
|
213
213
|
values: (
|
|
214
214
|
(
|
|
215
215
|
theme: themes.$white,
|
|
216
|
-
value:
|
|
216
|
+
value: colors.$gray-10
|
|
217
217
|
),
|
|
218
218
|
(
|
|
219
219
|
theme: themes.$g10,
|
|
220
|
-
value:
|
|
220
|
+
value: colors.$gray-10
|
|
221
221
|
),
|
|
222
222
|
(
|
|
223
223
|
theme: themes.$g90,
|
|
224
|
-
value:
|
|
224
|
+
value: colors.$gray-90
|
|
225
225
|
),
|
|
226
226
|
(
|
|
227
227
|
theme: themes.$g100,
|
|
228
|
-
value:
|
|
228
|
+
value: colors.$gray-90
|
|
229
229
|
)
|
|
230
230
|
)
|
|
231
231
|
) !default;
|
|
232
232
|
$zone-stroke-01: (
|
|
233
|
-
fallback:
|
|
233
|
+
fallback: colors.$gray-50,
|
|
234
234
|
values: (
|
|
235
235
|
(
|
|
236
236
|
theme: themes.$white,
|
|
237
|
-
value:
|
|
237
|
+
value: colors.$gray-50
|
|
238
238
|
),
|
|
239
239
|
(
|
|
240
240
|
theme: themes.$g10,
|
|
241
|
-
value:
|
|
241
|
+
value: colors.$gray-50
|
|
242
242
|
),
|
|
243
243
|
(
|
|
244
244
|
theme: themes.$g90,
|
|
245
|
-
value:
|
|
245
|
+
value: colors.$gray-60
|
|
246
246
|
),
|
|
247
247
|
(
|
|
248
248
|
theme: themes.$g100,
|
|
249
|
-
value:
|
|
249
|
+
value: colors.$gray-60
|
|
250
250
|
)
|
|
251
251
|
)
|
|
252
252
|
) !default;
|
|
253
253
|
|
|
254
254
|
$zone-fill-02: (
|
|
255
|
-
fallback:
|
|
255
|
+
fallback: colors.$gray-20,
|
|
256
256
|
values: (
|
|
257
257
|
(
|
|
258
258
|
theme: themes.$white,
|
|
259
|
-
value:
|
|
259
|
+
value: colors.$gray-20
|
|
260
260
|
),
|
|
261
261
|
(
|
|
262
262
|
theme: themes.$g10,
|
|
263
|
-
value:
|
|
263
|
+
value: colors.$gray-20
|
|
264
264
|
),
|
|
265
265
|
(
|
|
266
266
|
theme: themes.$g90,
|
|
267
|
-
value:
|
|
267
|
+
value: colors.$gray-80
|
|
268
268
|
),
|
|
269
269
|
(
|
|
270
270
|
theme: themes.$g100,
|
|
271
|
-
value:
|
|
271
|
+
value: colors.$gray-80
|
|
272
272
|
)
|
|
273
273
|
)
|
|
274
274
|
) !default;
|
|
275
275
|
$zone-stroke-02: (
|
|
276
|
-
fallback:
|
|
276
|
+
fallback: colors.$gray-50,
|
|
277
277
|
values: (
|
|
278
278
|
(
|
|
279
279
|
theme: themes.$white,
|
|
280
|
-
value:
|
|
280
|
+
value: colors.$gray-50
|
|
281
281
|
),
|
|
282
282
|
(
|
|
283
283
|
theme: themes.$g10,
|
|
284
|
-
value:
|
|
284
|
+
value: colors.$gray-50
|
|
285
285
|
),
|
|
286
286
|
(
|
|
287
287
|
theme: themes.$g90,
|
|
288
|
-
value:
|
|
288
|
+
value: colors.$gray-60
|
|
289
289
|
),
|
|
290
290
|
(
|
|
291
291
|
theme: themes.$g100,
|
|
292
|
-
value:
|
|
292
|
+
value: colors.$gray-60
|
|
293
293
|
)
|
|
294
294
|
)
|
|
295
295
|
) !default;
|
|
296
296
|
|
|
297
297
|
$zone-fill-03: (
|
|
298
|
-
fallback:
|
|
298
|
+
fallback: colors.$gray-30,
|
|
299
299
|
values: (
|
|
300
300
|
(
|
|
301
301
|
theme: themes.$white,
|
|
302
|
-
value:
|
|
302
|
+
value: colors.$gray-30
|
|
303
303
|
),
|
|
304
304
|
(
|
|
305
305
|
theme: themes.$g10,
|
|
306
|
-
value:
|
|
306
|
+
value: colors.$gray-30
|
|
307
307
|
),
|
|
308
308
|
(
|
|
309
309
|
theme: themes.$g90,
|
|
310
|
-
value:
|
|
310
|
+
value: colors.$gray-70
|
|
311
311
|
),
|
|
312
312
|
(
|
|
313
313
|
theme: themes.$g100,
|
|
314
|
-
value:
|
|
314
|
+
value: colors.$gray-70
|
|
315
315
|
)
|
|
316
316
|
)
|
|
317
317
|
) !default;
|
|
318
318
|
$zone-stroke-03: (
|
|
319
|
-
fallback:
|
|
319
|
+
fallback: colors.$gray-50,
|
|
320
320
|
values: (
|
|
321
321
|
(
|
|
322
322
|
theme: themes.$white,
|
|
323
|
-
value:
|
|
323
|
+
value: colors.$gray-50
|
|
324
324
|
),
|
|
325
325
|
(
|
|
326
326
|
theme: themes.$g10,
|
|
327
|
-
value:
|
|
327
|
+
value: colors.$gray-50
|
|
328
328
|
),
|
|
329
329
|
(
|
|
330
330
|
theme: themes.$g90,
|
|
331
|
-
value:
|
|
331
|
+
value: colors.$gray-60
|
|
332
332
|
),
|
|
333
333
|
(
|
|
334
334
|
theme: themes.$g100,
|
|
335
|
-
value:
|
|
335
|
+
value: colors.$gray-60
|
|
336
336
|
)
|
|
337
337
|
)
|
|
338
338
|
) !default;
|
package/scss/_type.scss
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/
|
|
2
|
-
@use '@carbon/
|
|
3
|
-
@use '
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/layout';
|
|
3
|
+
@use 'globals';
|
|
4
4
|
|
|
5
|
-
.#{
|
|
6
|
-
|
|
7
|
-
--#{
|
|
8
|
-
--#{
|
|
9
|
-
|
|
10
|
-
font-family: var(--#{$prefix}-charts-font-family-condensed);
|
|
5
|
+
.#{globals.$prefix}--chart-holder {
|
|
6
|
+
--#{globals.$prefix}-charts-font-family: #{globals.$font-family};
|
|
7
|
+
--#{globals.$prefix}-charts-font-family-condensed: #{globals.$font-family-condensed};
|
|
8
|
+
font-family: var(--#{globals.$prefix}-charts-font-family);
|
|
9
|
+
}
|
|
11
10
|
|
|
11
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper {
|
|
12
12
|
p {
|
|
13
13
|
padding: 0;
|
|
14
14
|
margin: 0;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// TODO-V11
|
|
17
17
|
// font-weight: font-weight('regular');
|
|
18
18
|
font-weight: 400;
|
|
19
|
-
color:
|
|
19
|
+
color: theme.$text-secondary;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
text {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
// TODO-V11
|
|
25
25
|
// font-weight: font-weight('regular');
|
|
26
26
|
font-weight: 400;
|
|
27
|
-
fill:
|
|
27
|
+
fill: theme.$text-secondary;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
g.gauge-numbers text.gauge-value-number {
|
|
31
|
-
font-family: var(--#{
|
|
31
|
+
font-family: var(--#{globals.$prefix}-charts-font-family);
|
|
32
32
|
// TODO-V11
|
|
33
33
|
// font-weight: font-weight('light');
|
|
34
34
|
font-weight: 300;
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
|
|
37
37
|
text.meter-title,
|
|
38
38
|
text.percent-value {
|
|
39
|
-
font-size:
|
|
40
|
-
font-family: var(--#{
|
|
39
|
+
font-size: layout.$base-font-size;
|
|
40
|
+
font-family: var(--#{globals.$prefix}-charts-font-family);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
text.meter-title {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '../globals';
|
|
2
|
+
@use '@carbon/styles/scss/theme';
|
|
3
3
|
|
|
4
|
-
.#{
|
|
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:
|
|
22
|
-
stroke:
|
|
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:
|
|
28
|
+
fill: theme.$layer-selected;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
g.tick text {
|
|
32
|
-
fill:
|
|
33
|
-
font-family: var(--#{
|
|
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:
|
|
42
|
+
stroke: theme.$border-strong-01;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.axis-title {
|
|
45
|
-
font-family: var(--#{
|
|
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:
|
|
50
|
+
fill: theme.$text-primary;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../globals';
|
|
2
|
+
@use '@carbon/styles/scss/theme';
|
|
2
3
|
|
|
3
|
-
.#{
|
|
4
|
-
stroke:
|
|
4
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper g.callouts {
|
|
5
|
+
stroke: theme.$text-secondary;
|
|
5
6
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
1
|
+
@use '../globals';
|
|
2
|
+
@use '../tokens';
|
|
3
3
|
|
|
4
|
-
svg.#{
|
|
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:
|
|
9
|
+
fill: tokens.$layer-inverse-absolute;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/styles/scss/components/button';
|
|
3
|
+
@use '../globals';
|
|
2
4
|
|
|
3
|
-
.#{
|
|
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
|
-
.#{
|
|
16
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--grid-brush {
|
|
15
17
|
rect.frontSelection {
|
|
16
|
-
fill:
|
|
18
|
+
fill: theme.$layer-accent-01;
|
|
17
19
|
fill-opacity: 0.3;
|
|
18
|
-
stroke:
|
|
20
|
+
stroke: button.$button-tertiary;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/
|
|
2
|
-
@use '
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '../globals';
|
|
3
|
+
@use '../tokens';
|
|
3
4
|
|
|
4
|
-
.#{
|
|
5
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--grid {
|
|
5
6
|
rect.chart-grid-backdrop {
|
|
6
|
-
fill:
|
|
7
|
+
fill: tokens.$grid-bg;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
rect.chart-grid-backdrop.stroked {
|
|
10
|
-
stroke:
|
|
11
|
+
stroke: theme.$layer-accent-01;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
rect.stroke {
|
|
14
|
-
stroke:
|
|
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:
|
|
23
|
+
stroke: theme.$layer-accent-01;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
&.active line {
|
|
26
27
|
stroke-dasharray: 2px;
|
|
27
|
-
stroke:
|
|
28
|
+
stroke: theme.$focus;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
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:
|
|
5
|
-
stroke:
|
|
7
|
+
fill: colors.$magenta-50;
|
|
8
|
+
stroke: colors.$magenta-50;
|
|
6
9
|
}
|
|
7
10
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
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
|
-
.#{
|
|
29
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}--chart-wrapper .layout-child {
|
|
28
30
|
overflow: visible;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
.#{
|
|
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'
|
|
1
|
+
@use '@carbon/styles/scss/theme';
|
|
2
|
+
@use '@carbon/colors';
|
|
3
|
+
@use '../globals';
|
|
2
4
|
|
|
3
|
-
div.#{
|
|
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
|
|
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:
|
|
33
|
-
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:
|
|
40
|
-
stroke:
|
|
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:
|
|
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
|
|
90
|
-
box-shadow: 0 0 0 2px
|
|
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:
|
|
96
|
+
border-color: theme.$text-secondary;
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
}
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
@use '@carbon/
|
|
2
|
-
@use '@carbon/styles/scss/theme'
|
|
1
|
+
@use '@carbon/colors';
|
|
2
|
+
@use '@carbon/styles/scss/theme';
|
|
3
|
+
@use '../globals';
|
|
4
|
+
@use '../tokens';
|
|
3
5
|
|
|
4
|
-
.#{
|
|
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:
|
|
13
|
+
fill: theme.$text-primary;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
g.status-indicator {
|
|
15
17
|
&.status--danger circle.status {
|
|
16
|
-
fill:
|
|
18
|
+
fill: theme.$support-error;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
&.status--warning {
|
|
20
22
|
circle.status {
|
|
21
|
-
fill:
|
|
23
|
+
fill: theme.$support-warning;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
path.innerFill {
|
|
25
|
-
fill:
|
|
27
|
+
fill: colors.$black-100;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
&.status--success circle.status {
|
|
30
|
-
fill:
|
|
32
|
+
fill: theme.$support-success;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
path.innerFill {
|
|
34
|
-
fill:
|
|
36
|
+
fill: tokens.$layer-01-absolute;
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
@use '@carbon/styles/scss/
|
|
2
|
-
@use '@carbon/styles/scss/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
.#{
|
|
11
|
-
.#{
|
|
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
|
-
.#{
|
|
26
|
+
.#{globals.$prefix}--modal-content {
|
|
24
27
|
padding: 0;
|
|
25
28
|
margin-bottom: 0;
|
|
26
|
-
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
|
-
.#{
|
|
42
|
+
.#{globals.$prefix}--modal-footer {
|
|
40
43
|
background-color: transparent;
|
|
41
44
|
|
|
42
|
-
.#{
|
|
45
|
+
.#{globals.$prefix}--#{globals.$charts-prefix}-modal-footer-spacer {
|
|
43
46
|
width: 50%;
|
|
44
47
|
}
|
|
45
48
|
}
|