@carbon/charts 1.9.0-rc.5 → 1.10.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.
- package/CHANGELOG.md +31 -0
- package/LICENSE.md +201 -0
- package/README.md +9 -19
- package/dist/_baseEach-603421de.mjs.map +1 -1
- package/dist/_baseEach-cdac417f.js.map +1 -1
- package/dist/angle-utils-6f166b40.js.map +1 -1
- package/dist/angle-utils-8b6ce998.mjs.map +1 -1
- package/dist/axis-chart.d.ts +13 -13
- package/dist/chart.d.ts +18 -18
- package/dist/charts/alluvial.d.ts +10 -10
- package/dist/charts/area-stacked.d.ts +8 -8
- package/dist/charts/area.d.ts +8 -8
- package/dist/charts/bar-grouped.d.ts +8 -8
- package/dist/charts/bar-simple.d.ts +8 -8
- package/dist/charts/bar-stacked.d.ts +8 -8
- package/dist/charts/boxplot.d.ts +10 -10
- package/dist/charts/bubble.d.ts +8 -8
- package/dist/charts/bullet.d.ts +10 -10
- package/dist/charts/choropleth.d.ts +14 -14
- package/dist/charts/circle-pack.d.ts +10 -10
- package/dist/charts/combo.d.ts +9 -9
- package/dist/charts/donut.d.ts +8 -8
- package/dist/charts/gauge.d.ts +10 -10
- package/dist/charts/heatmap.d.ts +14 -14
- package/dist/charts/histogram.d.ts +10 -10
- package/dist/charts/index.d.ts +27 -27
- package/dist/charts/line.d.ts +8 -8
- package/dist/charts/lollipop.d.ts +8 -8
- package/dist/charts/meter.d.ts +10 -10
- package/dist/charts/pie.d.ts +10 -10
- package/dist/charts/radar.d.ts +10 -10
- package/dist/charts/scatter.d.ts +8 -8
- package/dist/charts/tree.d.ts +10 -10
- package/dist/charts/treemap.d.ts +10 -10
- package/dist/charts/wordcloud.d.ts +10 -10
- package/dist/choropleth-4ac6ac20.js.map +1 -1
- package/dist/choropleth-f473ea0d.mjs.map +1 -1
- package/dist/color-scale-utils-5eb3eeaa.mjs.map +1 -1
- package/dist/color-scale-utils-7d463811.js.map +1 -1
- package/dist/components/axes/axis.d.ts +24 -24
- package/dist/components/axes/chart-clip.d.ts +13 -13
- package/dist/components/axes/grid-brush.d.ts +10 -10
- package/dist/components/axes/grid.d.ts +22 -22
- package/dist/components/axes/hover-axis.d.ts +10 -10
- package/dist/components/axes/index.d.ts +12 -12
- package/dist/components/axes/ruler-binned.d.ts +10 -7
- package/dist/components/axes/ruler-stacked.d.ts +4 -4
- package/dist/components/axes/ruler.d.ts +30 -27
- package/dist/components/axes/toolbar.d.ts +40 -40
- package/dist/components/axes/two-dimensional-axes.d.ts +16 -16
- package/dist/components/axes/zero-line.d.ts +7 -7
- package/dist/components/axes/zoom-bar.d.ts +31 -28
- package/dist/components/component.d.ts +30 -30
- package/dist/components/diagrams/buildPaths.d.ts +40 -40
- package/dist/components/diagrams/index.d.ts +2 -2
- package/dist/components/diagrams/markerDefinitions.d.ts +37 -37
- package/dist/components/essentials/canvas-chart-clip.d.ts +6 -6
- package/dist/components/essentials/color-scale-legend.d.ts +20 -20
- package/dist/components/essentials/geo-projection.d.ts +16 -16
- package/dist/components/essentials/highlights.d.ts +13 -13
- package/dist/components/essentials/index.d.ts +11 -11
- package/dist/components/essentials/legend.d.ts +11 -11
- package/dist/components/essentials/modal.d.ts +14 -14
- package/dist/components/essentials/threshold.d.ts +20 -20
- package/dist/components/essentials/title-meter.d.ts +30 -30
- package/dist/components/essentials/title.d.ts +20 -20
- package/dist/components/essentials/tooltip-axis.d.ts +4 -4
- package/dist/components/essentials/tooltip.d.ts +22 -22
- package/dist/components/graphs/alluvial.d.ts +14 -14
- package/dist/components/graphs/area-stacked.d.ts +11 -11
- package/dist/components/graphs/area.d.ts +12 -12
- package/dist/components/graphs/bar-grouped.d.ts +22 -22
- package/dist/components/graphs/bar-simple.d.ts +12 -12
- package/dist/components/graphs/bar-stacked.d.ts +13 -13
- package/dist/components/graphs/bar.d.ts +5 -5
- package/dist/components/graphs/boxplot.d.ts +9 -9
- package/dist/components/graphs/bubble.d.ts +13 -13
- package/dist/components/graphs/bullet.d.ts +12 -12
- package/dist/components/graphs/choropleth.d.ts +6 -6
- package/dist/components/graphs/circle-pack.d.ts +19 -19
- package/dist/components/graphs/donut.d.ts +9 -9
- package/dist/components/graphs/gauge.d.ts +27 -27
- package/dist/components/graphs/heatmap.d.ts +25 -25
- package/dist/components/graphs/histogram.d.ts +12 -12
- package/dist/components/graphs/index.d.ts +28 -28
- package/dist/components/graphs/line.d.ts +11 -11
- package/dist/components/graphs/lollipop.d.ts +14 -14
- package/dist/components/graphs/meter.d.ts +10 -10
- package/dist/components/graphs/pie.d.ts +16 -16
- package/dist/components/graphs/radar.d.ts +25 -25
- package/dist/components/graphs/scatter-stacked.d.ts +8 -8
- package/dist/components/graphs/scatter.d.ts +21 -21
- package/dist/components/graphs/skeleton-lines.d.ts +12 -12
- package/dist/components/graphs/skeleton.d.ts +23 -23
- package/dist/components/graphs/tree.d.ts +9 -9
- package/dist/components/graphs/treemap.d.ts +11 -11
- package/dist/components/graphs/wordcloud.d.ts +12 -12
- package/dist/components/index.d.ts +6 -6
- package/dist/components/layout/index.d.ts +2 -2
- package/dist/components/layout/layout.d.ts +18 -18
- package/dist/components/layout/spacer.d.ts +5 -5
- package/dist/configuration-non-customizable.d.ts +263 -263
- package/dist/configuration.d.ts +48 -48
- package/dist/demo/charts/alluvial.d.ts +109 -109
- package/dist/demo/charts/area.d.ts +224 -224
- package/dist/demo/charts/bar.d.ts +681 -681
- package/dist/demo/charts/boxplot.d.ts +34 -34
- package/dist/demo/charts/bubble.d.ts +141 -141
- package/dist/demo/charts/bullet.d.ts +24 -24
- package/dist/demo/charts/chart-types.d.ts +128 -128
- package/dist/demo/charts/choropleth.d.ts +738 -738
- package/dist/demo/charts/circle-pack.d.ts +91 -91
- package/dist/demo/charts/combo.d.ts +482 -482
- package/dist/demo/charts/donut.d.ts +64 -64
- package/dist/demo/charts/gauge.d.ts +40 -40
- package/dist/demo/charts/heatmap.d.ts +125 -125
- package/dist/demo/charts/hightlight.d.ts +40 -40
- package/dist/demo/charts/histogram.d.ts +63 -63
- package/dist/demo/charts/index.d.ts +55 -62
- package/dist/demo/charts/line.d.ts +361 -361
- package/dist/demo/charts/lollipop.d.ts +39 -39
- package/dist/demo/charts/meter.d.ts +95 -95
- package/dist/demo/charts/pie.d.ts +46 -46
- package/dist/demo/charts/radar.d.ts +63 -63
- package/dist/demo/charts/scatter.d.ts +118 -118
- package/dist/demo/charts/step.d.ts +96 -96
- package/dist/demo/charts/time-series-axis.d.ts +293 -293
- package/dist/demo/charts/toolbar.d.ts +12 -12
- package/dist/demo/charts/topojson-110.d.ts +360 -360
- package/dist/demo/charts/tree.d.ts +30 -30
- package/dist/demo/charts/treemap.d.ts +15 -15
- package/dist/demo/charts/wordcloud.d.ts +14 -14
- package/dist/demo/charts/zoom-bar.d.ts +79 -79
- package/dist/demo/index.d.ts +4 -4
- package/dist/demo/index.js +153 -166
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/index.mjs +1645 -1834
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +567 -262
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/index.d.ts +2 -2
- package/dist/demo/utils/sandbox.d.ts +38 -39
- package/dist/demo/utils/story-widgets.d.ts +7 -7
- package/dist/index-a266373c.mjs.map +1 -1
- package/dist/index-becfb567.mjs.map +1 -1
- package/dist/index-d865d500.js.map +1 -1
- package/dist/index-f23685eb.js.map +1 -1
- package/dist/index.d.ts +13 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/a11y.d.ts +12 -12
- package/dist/interfaces/axis-scales.d.ts +201 -201
- package/dist/interfaces/charts.d.ts +520 -517
- package/dist/interfaces/components.d.ts +231 -231
- package/dist/interfaces/enums.d.ts +261 -261
- package/dist/interfaces/events.d.ts +239 -239
- package/dist/interfaces/index.d.ts +12 -11
- package/dist/interfaces/layout.d.ts +21 -21
- package/dist/interfaces/model.d.ts +35 -35
- package/dist/interfaces/services.d.ts +20 -20
- package/dist/interfaces/truncation.d.ts +17 -17
- package/dist/model/alluvial.d.ts +8 -8
- package/dist/model/binned-charts.d.ts +7 -7
- package/dist/model/boxplot.d.ts +14 -14
- package/dist/model/bullet.d.ts +14 -14
- package/dist/model/cartesian-charts.d.ts +24 -24
- package/dist/model/choropleth.d.ts +29 -29
- package/dist/model/circle-pack.d.ts +36 -36
- package/dist/model/gauge.d.ts +9 -9
- package/dist/model/heatmap.d.ts +57 -57
- package/dist/model/index.d.ts +16 -16
- package/dist/model/index.js.map +1 -1
- package/dist/model/index.mjs.map +1 -1
- package/dist/model/meter.d.ts +20 -20
- package/dist/model/model.d.ts +110 -110
- package/dist/model/pie.d.ts +9 -9
- package/dist/model/radar.d.ts +7 -7
- package/dist/model/tree.d.ts +14 -14
- package/dist/model/treemap.d.ts +8 -8
- package/dist/model/wordcloud.d.ts +7 -7
- package/dist/services/angle-utils.d.ts +15 -15
- package/dist/services/canvas-zoom.d.ts +11 -11
- package/dist/services/color-scale-utils.d.ts +2 -2
- package/dist/services/curves.d.ts +24 -24
- package/dist/services/essentials/dom-utils.d.ts +45 -45
- package/dist/services/essentials/events.d.ts +8 -8
- package/dist/services/essentials/files.d.ts +7 -7
- package/dist/services/essentials/gradient-utils.d.ts +6 -6
- package/dist/services/essentials/index.d.ts +5 -5
- package/dist/services/essentials/transitions.d.ts +13 -13
- package/dist/services/index.d.ts +9 -9
- package/dist/services/scales-cartesian.d.ts +89 -89
- package/dist/services/service.d.ts +11 -11
- package/dist/services/time-series.d.ts +13 -13
- package/dist/services/zoom.d.ts +21 -21
- package/dist/styles.css +0 -21919
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/tools.d.ts +150 -144
- package/package.json +48 -33
- package/{dist/styles/colors.scss → scss/_colors.scss} +1 -1
- package/{dist/styles/tokens.scss → scss/_tokens.scss} +6 -15
- package/scss/demos.scss +427 -0
- package/scss/index.scss +31 -0
- package/dist/styles/styles.scss +0 -40
- /package/{dist/styles → scss}/_chart-holder.scss +0 -0
- /package/{dist/styles/color-palatte.scss → scss/_color-palette.scss} +0 -0
- /package/{dist/styles → scss}/_type.scss +0 -0
- /package/{dist/styles → scss}/components/_axis.scss +0 -0
- /package/{dist/styles → scss}/components/_callouts.scss +0 -0
- /package/{dist/styles → scss}/components/_color-legend.scss +0 -0
- /package/{dist/styles → scss}/components/_edge.scss +0 -0
- /package/{dist/styles → scss}/components/_grid-brush.scss +0 -0
- /package/{dist/styles → scss}/components/_grid.scss +0 -0
- /package/{dist/styles → scss}/components/_highlights.scss +0 -0
- /package/{dist/styles → scss}/components/_layout.scss +0 -0
- /package/{dist/styles → scss}/components/_legend.scss +0 -0
- /package/{dist/styles → scss}/components/_marker.scss +0 -0
- /package/{dist/styles → scss}/components/_meter-title.scss +0 -0
- /package/{dist/styles → scss}/components/_modal.scss +0 -0
- /package/{dist/styles → scss}/components/_ruler.scss +0 -0
- /package/{dist/styles → scss}/components/_skeleton-lines.scss +0 -0
- /package/{dist/styles → scss}/components/_skeleton.scss +0 -0
- /package/{dist/styles → scss}/components/_threshold.scss +0 -0
- /package/{dist/styles → scss}/components/_title.scss +0 -0
- /package/{dist/styles → scss}/components/_toolbar.scss +0 -0
- /package/{dist/styles → scss}/components/_tooltip.scss +0 -0
- /package/{dist/styles → scss}/components/_zero-line.scss +0 -0
- /package/{dist/styles → scss}/components/_zoom-bar.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_card-node.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_edge.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_marker.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_shape-node.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/index.scss +0 -0
- /package/{dist/styles → scss}/components/index.scss +0 -0
- /package/{dist/styles → scss}/graphs/_alluvial.scss +0 -0
- /package/{dist/styles → scss}/graphs/_area.scss +0 -0
- /package/{dist/styles → scss}/graphs/_bubble.scss +0 -0
- /package/{dist/styles → scss}/graphs/_bullet.scss +0 -0
- /package/{dist/styles → scss}/graphs/_choropleth.scss +0 -0
- /package/{dist/styles → scss}/graphs/_circle-pack.scss +0 -0
- /package/{dist/styles → scss}/graphs/_donut.scss +0 -0
- /package/{dist/styles → scss}/graphs/_gauge.scss +0 -0
- /package/{dist/styles → scss}/graphs/_heatmap.scss +0 -0
- /package/{dist/styles → scss}/graphs/_line.scss +0 -0
- /package/{dist/styles → scss}/graphs/_lollipop.scss +0 -0
- /package/{dist/styles → scss}/graphs/_meter.scss +0 -0
- /package/{dist/styles → scss}/graphs/_pie.scss +0 -0
- /package/{dist/styles → scss}/graphs/_radar.scss +0 -0
- /package/{dist/styles → scss}/graphs/_scatter-stacked.scss +0 -0
- /package/{dist/styles → scss}/graphs/_scatter.scss +0 -0
- /package/{dist/styles → scss}/graphs/_tree.scss +0 -0
- /package/{dist/styles → scss}/graphs/_treemap.scss +0 -0
- /package/{dist/styles → scss}/graphs/_wordcloud.scss +0 -0
- /package/{dist/styles → scss}/graphs/index.scss +0 -0
package/scss/demos.scss
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
$charts-prefix: 'cc';
|
|
2
|
+
|
|
3
|
+
// Variables picked up by @carbon/styles/scss/config in imports
|
|
4
|
+
$prefix: 'cds'; // Default value
|
|
5
|
+
$css--default-type: false; // Do not include default type
|
|
6
|
+
$css--reset: false; // Do not include reset CSS
|
|
7
|
+
|
|
8
|
+
// IBM Plex font for demo is loaded in .storybook/preview-head.html - don't include here
|
|
9
|
+
@use '@carbon/styles/scss/config' with (
|
|
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
|
|
16
|
+
@use '@carbon/styles/scss/theme';
|
|
17
|
+
@import 'tokens';
|
|
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';
|
|
33
|
+
|
|
34
|
+
.#{$prefix}--#{$charts-prefix}--chart-wrapper {
|
|
35
|
+
overflow: visible;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
html {
|
|
39
|
+
@include styles.theme(styles.$white);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
html[data-carbon-theme='g10'] {
|
|
43
|
+
@include styles.theme(styles.$g10);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
html[data-carbon-theme='g90'] {
|
|
47
|
+
@include styles.theme(styles.$g90);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
html[data-carbon-theme='g100'] {
|
|
51
|
+
@include styles.theme(styles.$g100);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
div.container {
|
|
55
|
+
color: theme.$text-primary;
|
|
56
|
+
background-color: theme.$background;
|
|
57
|
+
font-family: 'IBM Plex Sans', Arial, sans-serif;
|
|
58
|
+
padding: 30px;
|
|
59
|
+
|
|
60
|
+
div#color-palette-picker,
|
|
61
|
+
div#projection-picker {
|
|
62
|
+
max-width: 18rem;
|
|
63
|
+
margin-top: 2rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#chart-demo {
|
|
67
|
+
max-width: 700px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.cds--grid {
|
|
71
|
+
padding: 0;
|
|
72
|
+
|
|
73
|
+
.cds--row .chart-demo {
|
|
74
|
+
margin-bottom: 60px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
h3 {
|
|
79
|
+
margin: 0;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
|
|
82
|
+
b.component {
|
|
83
|
+
margin-right: 10px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
span.cds--tag.component-name {
|
|
87
|
+
font-size: 0.55em;
|
|
88
|
+
vertical-align: middle;
|
|
89
|
+
padding: 0.25em 1em;
|
|
90
|
+
border-radius: 1em;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
div.theme-picker {
|
|
96
|
+
margin-top: 15px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
p.props {
|
|
100
|
+
b {
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Replace with Carbon .scss imports
|
|
106
|
+
div.cds--snippet--multi {
|
|
107
|
+
background-color: black;
|
|
108
|
+
color: white;
|
|
109
|
+
|
|
110
|
+
pre {
|
|
111
|
+
padding: 2em !important;
|
|
112
|
+
-moz-tab-size: 4;
|
|
113
|
+
tab-size: 4;
|
|
114
|
+
line-height: 1.4;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.cds--snippet-container pre::after {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.token.tag {
|
|
122
|
+
color: #6ea6ff;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.token.attr-name {
|
|
126
|
+
color: #92eeee;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.token.attr-value {
|
|
130
|
+
color: #bb8eff;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.cds--snippet--multi .cds--snippet-container pre code {
|
|
135
|
+
font-size: 14px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.cds--snippet--multi.cds--snippet--expand .cds--snippet-container,
|
|
139
|
+
.cds--snippet--multi.cds--snippet--expand .cds--snippet-container pre {
|
|
140
|
+
padding-bottom: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
div.demo-desktop-only {
|
|
144
|
+
@media screen and (max-width: 768px) {
|
|
145
|
+
position: relative;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
|
|
148
|
+
&:before {
|
|
149
|
+
content: ' ';
|
|
150
|
+
display: block;
|
|
151
|
+
position: absolute;
|
|
152
|
+
z-index: 2;
|
|
153
|
+
top: 0;
|
|
154
|
+
left: 0;
|
|
155
|
+
background: #f4f4f4;
|
|
156
|
+
width: 100%;
|
|
157
|
+
height: 100%;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
div.cp-message {
|
|
162
|
+
display: none;
|
|
163
|
+
|
|
164
|
+
@media screen and (max-width: 768px) {
|
|
165
|
+
position: absolute;
|
|
166
|
+
z-index: 2;
|
|
167
|
+
top: 50%;
|
|
168
|
+
left: 50%;
|
|
169
|
+
transform: translate(-50%, -50%);
|
|
170
|
+
display: block;
|
|
171
|
+
font-weight: bold;
|
|
172
|
+
text-align: center;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&.intro {
|
|
178
|
+
padding: 0;
|
|
179
|
+
|
|
180
|
+
.container-welcome {
|
|
181
|
+
padding: 0 !important;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.welcome__container {
|
|
185
|
+
width: 100vw;
|
|
186
|
+
min-height: 100vh;
|
|
187
|
+
padding: 3rem;
|
|
188
|
+
padding-bottom: 5rem;
|
|
189
|
+
background-color: #000;
|
|
190
|
+
|
|
191
|
+
@media screen and (max-width: 768px) {
|
|
192
|
+
&:before {
|
|
193
|
+
position: absolute;
|
|
194
|
+
display: block;
|
|
195
|
+
top: 0;
|
|
196
|
+
left: 0;
|
|
197
|
+
width: 100%;
|
|
198
|
+
height: 100%;
|
|
199
|
+
background: rgba(0, 0, 0, 0.45);
|
|
200
|
+
content: ' ';
|
|
201
|
+
z-index: 1;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.welcome__content {
|
|
207
|
+
position: relative;
|
|
208
|
+
z-index: 2;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.welcome__heading {
|
|
212
|
+
@include type-style('productive-heading-07');
|
|
213
|
+
|
|
214
|
+
color: theme.$text-inverse;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.welcome__heading--subtitle {
|
|
218
|
+
font-weight: 600;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.welcome__heading--other {
|
|
222
|
+
@include type-style('productive-heading-04');
|
|
223
|
+
|
|
224
|
+
font-weight: 600;
|
|
225
|
+
color: #4587fd;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
h5 {
|
|
229
|
+
margin-top: 2em;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
span.netlify {
|
|
233
|
+
position: fixed;
|
|
234
|
+
left: 0;
|
|
235
|
+
bottom: 0;
|
|
236
|
+
padding: 1em 1.5em;
|
|
237
|
+
padding-left: 3rem;
|
|
238
|
+
border-top-right-radius: 2em;
|
|
239
|
+
font-size: 13px;
|
|
240
|
+
vertical-align: middle;
|
|
241
|
+
background-color: #292929;
|
|
242
|
+
color: #bcbcbc;
|
|
243
|
+
|
|
244
|
+
a {
|
|
245
|
+
color: #fff;
|
|
246
|
+
font-weight: 700;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.marginTop {
|
|
252
|
+
margin-top: 10px;
|
|
253
|
+
|
|
254
|
+
&-15 {
|
|
255
|
+
margin-top: 15px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&-30 {
|
|
259
|
+
margin-top: 30px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&-45 {
|
|
263
|
+
margin-top: 45px;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
hr {
|
|
268
|
+
margin-bottom: 75px;
|
|
269
|
+
margin-top: 25px;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.resource-card-group {
|
|
274
|
+
display: flex;
|
|
275
|
+
flex-wrap: wrap;
|
|
276
|
+
margin-left: 0;
|
|
277
|
+
margin-right: 0;
|
|
278
|
+
margin-top: 30px;
|
|
279
|
+
max-width: 700px;
|
|
280
|
+
|
|
281
|
+
.#{$prefix}--col-md-6.#{$prefix}--col-lg-6 {
|
|
282
|
+
border: 1px solid theme.$background;
|
|
283
|
+
padding: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.#{$prefix}--col-lg-6 {
|
|
287
|
+
width: 100%;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@media (min-width: 42rem) {
|
|
291
|
+
.#{$prefix}--col-md-6 {
|
|
292
|
+
display: block;
|
|
293
|
+
max-width: 75%;
|
|
294
|
+
flex: 0 0 75%;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@media (min-width: 66rem) {
|
|
299
|
+
.#{$prefix}--col-lg-6 {
|
|
300
|
+
display: block;
|
|
301
|
+
max-width: 50%;
|
|
302
|
+
flex: 0 0 50%;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.#{$prefix}--aspect-ratio--object {
|
|
308
|
+
position: absolute;
|
|
309
|
+
top: 0;
|
|
310
|
+
left: 0;
|
|
311
|
+
width: 100%;
|
|
312
|
+
height: 100%;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.#{$prefix}--resource-card .#{$prefix}--tile {
|
|
316
|
+
background: theme.$layer-01;
|
|
317
|
+
height: 100%;
|
|
318
|
+
padding: 1rem 25% 1rem 1rem;
|
|
319
|
+
position: relative;
|
|
320
|
+
transition: background 70ms;
|
|
321
|
+
text-decoration: none;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.#{$prefix}--resource-card .#{$prefix}--tile:hover {
|
|
325
|
+
background: theme.$background-hover;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.#{$prefix}--resource-card__title {
|
|
329
|
+
@include type-style('productive-heading-03');
|
|
330
|
+
text-decoration: none;
|
|
331
|
+
color: theme.$text-primary;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.#{$prefix}--resource-card__subtitle {
|
|
335
|
+
@include type-style('heading-01');
|
|
336
|
+
font-weight: 400;
|
|
337
|
+
text-decoration: none;
|
|
338
|
+
color: theme.$text-primary;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.#{$prefix}--resource-card__icon--img {
|
|
342
|
+
position: absolute;
|
|
343
|
+
bottom: 1rem;
|
|
344
|
+
left: 1rem;
|
|
345
|
+
min-width: 32px;
|
|
346
|
+
min-height: 32px;
|
|
347
|
+
display: flex;
|
|
348
|
+
align-items: flex-end;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.#{$prefix}--resource-card__icon--img .gatsby-resp-image-wrapper,
|
|
352
|
+
.#{$prefix}--resource-card__icon--img img[src*='gif'],
|
|
353
|
+
.#{$prefix}--resource-card__icon--img img[src*='svg'] {
|
|
354
|
+
margin-bottom: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.#{$prefix}--resource-card__icon--img .gatsby-resp-image-wrapper {
|
|
358
|
+
position: static !important; //important needed to override inline style added by Gatsby
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.#{$prefix}--resource-card__icon--action {
|
|
362
|
+
position: absolute;
|
|
363
|
+
bottom: 1rem;
|
|
364
|
+
right: 1rem;
|
|
365
|
+
width: 20px;
|
|
366
|
+
height: 20px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.#{$prefix}--resource-card .#{$prefix}--resource-card__icon--action svg {
|
|
370
|
+
fill: theme.$icon-primary;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// Dark
|
|
374
|
+
.#{$prefix}--resource-card--dark .#{$prefix}--tile {
|
|
375
|
+
background: $gray-90; //$background for gray 90 theme
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.#{$prefix}--resource-card--dark .#{$prefix}--tile:hover {
|
|
379
|
+
background: $gray-80; //$background-hover for gray 90 theme
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.#{$prefix}--resource-card--dark .#{$prefix}--resource-card__title,
|
|
383
|
+
.#{$prefix}--resource-card--dark .#{$prefix}--resource-card__subtitle {
|
|
384
|
+
color: theme.$text-on-color;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.#{$prefix}--resource-card--dark .#{$prefix}--resource-card__icon--action svg {
|
|
388
|
+
fill: $gray-10;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// Disabled
|
|
392
|
+
.#{$prefix}--resource-card--disabled .#{$prefix}--tile:hover {
|
|
393
|
+
background: theme.$layer-01;
|
|
394
|
+
cursor: not-allowed;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.#{$prefix}--resource-card--disabled .#{$prefix}--resource-card__title,
|
|
398
|
+
.#{$prefix}--resource-card--disabled .#{$prefix}--resource-card__subtitle {
|
|
399
|
+
color: theme.$icon-on-color-disabled;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.#{$prefix}--resource-card--disabled .#{$prefix}--resource-card__icon--action svg {
|
|
403
|
+
fill: theme.$icon-disabled;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.#{$prefix}--resource-card--disabled .#{$prefix}--resource-card__icon--img {
|
|
407
|
+
filter: grayscale(100%);
|
|
408
|
+
opacity: 0.5;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// Disabled dark
|
|
412
|
+
.#{$prefix}--resource-card--disabled.#{$prefix}--resource-card--dark .#{$prefix}--tile:hover {
|
|
413
|
+
background: $gray-90; //$background for gray 90 theme
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.#{$prefix}--resource-card--disabled.#{$prefix}--resource-card--dark
|
|
417
|
+
.#{$prefix}--resource-card__title,
|
|
418
|
+
.#{$prefix}--resource-card--disabled.#{$prefix}--resource-card--dark
|
|
419
|
+
.#{$prefix}--resource-card__subtitle {
|
|
420
|
+
color: $gray-50; //$icon-on-color-disabled for gray 90
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.#{$prefix}--resource-card--disabled.#{$prefix}--resource-card--dark
|
|
424
|
+
.#{$prefix}--resource-card__icon--action
|
|
425
|
+
svg {
|
|
426
|
+
fill: $gray-70; //$disabled-02 for gray 90
|
|
427
|
+
}
|
package/scss/index.scss
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
package/dist/styles/styles.scss
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
$charts-prefix: 'cc';
|
|
2
|
-
|
|
3
|
-
$css--reset: false;
|
|
4
|
-
$css--default-type: false;
|
|
5
|
-
|
|
6
|
-
$prefix: 'cds';
|
|
7
|
-
|
|
8
|
-
// Carbon Charts expects the user to load IBM Plex on their own per the storybooks
|
|
9
|
-
@use '@carbon/styles/scss/config' with (
|
|
10
|
-
$css--font-face: false
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
@use '@carbon/styles';
|
|
14
|
-
@use '@carbon/styles/scss/type';
|
|
15
|
-
@use '@carbon/styles/scss/theme';
|
|
16
|
-
|
|
17
|
-
// Custom charting tokens
|
|
18
|
-
@import './tokens';
|
|
19
|
-
@include theme.add-component-tokens($custom-charting-tokens);
|
|
20
|
-
|
|
21
|
-
@import '@carbon/import-once/scss/import-once';
|
|
22
|
-
|
|
23
|
-
// Carbon imports
|
|
24
|
-
@import '@carbon/colors/index.scss';
|
|
25
|
-
@import '@carbon/styles/scss/components/button/_tokens.scss';
|
|
26
|
-
|
|
27
|
-
@mixin default_transition {
|
|
28
|
-
transition: all 0.1s ease-out;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Internal
|
|
32
|
-
@import './colors.scss';
|
|
33
|
-
@import './components/index.scss';
|
|
34
|
-
@import './graphs/index.scss';
|
|
35
|
-
@import './type';
|
|
36
|
-
@import './chart-holder';
|
|
37
|
-
|
|
38
|
-
.#{$prefix}--#{$charts-prefix}--chart-wrapper {
|
|
39
|
-
overflow: visible;
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|