@react-magma/charts 16.0.0-next.0 → 16.0.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/dist/charts.js +49 -41
- package/dist/charts.js.map +1 -1
- package/dist/charts.modern.module.js +50 -42
- package/dist/charts.modern.module.js.map +1 -1
- package/dist/charts.umd.js +2012 -1348
- package/dist/charts.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CarbonChart/CarbonChart.test.js +60 -16
- package/src/components/CarbonChart/CarbonChart.tsx +50 -45
- package/src/components/ChartTable/ChartFullscreenButton.tsx +7 -1
- package/src/components/ChartTable/ChartMoreOptionsButton.tsx +2 -0
- package/src/components/ChartTable/ChartTable.test.js +3 -1
- package/src/components/ChartTable/ChartTableButton.tsx +7 -1
- package/src/components/ChartTable/ChartTableModal.tsx +1 -1
package/dist/charts.js
CHANGED
|
@@ -1040,7 +1040,7 @@ function ChartFullscreenButton(_a) {
|
|
|
1040
1040
|
var resolvedTooltip = tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : (isFullscreen ? t.exitFullScreen : t.makeFullScreen);
|
|
1041
1041
|
var resolvedIcon = isFullscreen && exitIcon ? exitIcon : icon;
|
|
1042
1042
|
return (React__namespace.createElement(reactMagmaDom.Tooltip, { content: resolvedTooltip, isInverse: isInverse },
|
|
1043
|
-
React__namespace.createElement(reactMagmaDom.IconButton, { "aria-label": ariaLabel, icon: resolvedIcon, isInverse: isInverse, onClick: onClick, ref: buttonRef, variant: reactMagmaDom.ButtonVariant.link })));
|
|
1043
|
+
React__namespace.createElement(reactMagmaDom.IconButton, { "aria-label": ariaLabel, color: reactMagmaDom.ButtonColor.subtle, icon: resolvedIcon, isInverse: isInverse, onClick: onClick, ref: buttonRef, variant: reactMagmaDom.ButtonVariant.link })));
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
1046
|
function ChartMoreOptionsButton(_a) {
|
|
@@ -1048,7 +1048,7 @@ function ChartMoreOptionsButton(_a) {
|
|
|
1048
1048
|
var t = useChartToolbarI18n();
|
|
1049
1049
|
var resolvedAriaLabel = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : t.moreOptionsAriaLabel;
|
|
1050
1050
|
return (React__namespace.createElement(reactMagmaDom.Dropdown, { isInverse: isInverse },
|
|
1051
|
-
React__namespace.createElement(reactMagmaDom.DropdownButton, { "aria-label": resolvedAriaLabel, icon: icon, variant: reactMagmaDom.ButtonVariant.link, testId: "chart-more-options-button" }),
|
|
1051
|
+
React__namespace.createElement(reactMagmaDom.DropdownButton, { "aria-label": resolvedAriaLabel, color: reactMagmaDom.ButtonColor.subtle, icon: icon, variant: reactMagmaDom.ButtonVariant.link, testId: "chart-more-options-button" }),
|
|
1052
1052
|
React__namespace.createElement(reactMagmaDom.DropdownContent, null, children)));
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
@@ -1057,14 +1057,14 @@ function ChartTableButton(_a) {
|
|
|
1057
1057
|
var t = useChartToolbarI18n();
|
|
1058
1058
|
var resolvedTooltip = tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : t.showAsTableTooltip;
|
|
1059
1059
|
return (React__namespace.createElement(reactMagmaDom.Tooltip, { content: resolvedTooltip, isInverse: isInverse },
|
|
1060
|
-
React__namespace.createElement(reactMagmaDom.IconButton, { "aria-expanded": isTableOpen, "aria-haspopup": "dialog", "aria-label": ariaLabel, icon: icon, isInverse: isInverse, onClick: onClick, ref: buttonRef, variant: reactMagmaDom.ButtonVariant.link })));
|
|
1060
|
+
React__namespace.createElement(reactMagmaDom.IconButton, { "aria-expanded": isTableOpen, "aria-haspopup": "dialog", "aria-label": ariaLabel, color: reactMagmaDom.ButtonColor.subtle, icon: icon, isInverse: isInverse, onClick: onClick, ref: buttonRef, variant: reactMagmaDom.ButtonVariant.link })));
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
1063
|
var ModalFooter = styled.div(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n padding-top: ", ";\n"], ["\n display: flex;\n justify-content: flex-end;\n padding-top: ", ";\n"])), function (props) { return props.theme.spaceScale.spacing05; });
|
|
1064
1064
|
var HeaderLabel = styled.span(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: block;\n font-size: ", ";\n font-weight: normal;\n color: ", ";\n line-height: ", ";\n"], ["\n display: block;\n font-size: ", ";\n font-weight: normal;\n color: ", ";\n line-height: ", ";\n"])), function (props) { return props.theme.typeScale.size02.fontSize; }, function (props) {
|
|
1065
1065
|
return props.isInverse
|
|
1066
1066
|
? props.theme.colors.neutral100
|
|
1067
|
-
: props.theme.colors.
|
|
1067
|
+
: props.theme.colors.brand.navy;
|
|
1068
1068
|
}, function (props) { return props.theme.typeScale.size02.lineHeight; });
|
|
1069
1069
|
var containerStyle = {
|
|
1070
1070
|
display: 'flex',
|
|
@@ -1126,31 +1126,35 @@ exports.CarbonChartType = void 0;
|
|
|
1126
1126
|
var ChartContentWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n position: relative;\n"], ["\n height: 100%;\n position: relative;\n"])));
|
|
1127
1127
|
var FullscreenRoot = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n\n &:fullscreen,\n &:-webkit-full-screen {\n background: ", ";\n\n ", "\n }\n"], ["\n height: 100%;\n width: 100%;\n\n &:fullscreen,\n &:-webkit-full-screen {\n background: ", ";\n\n ", "\n }\n"])), function (props) {
|
|
1128
1128
|
return props.isInverse
|
|
1129
|
-
? props.theme.colors.
|
|
1129
|
+
? props.theme.colors.indigo700
|
|
1130
1130
|
: props.theme.colors.neutral100;
|
|
1131
1131
|
}, function (props) {
|
|
1132
1132
|
return props.isFlowLayout
|
|
1133
1133
|
? "\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n padding: 2em;\n\n .carbon-chart-wrapper,\n .carbon-chart-content {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n min-height: 0;\n }\n\n .cds--chart-holder {\n flex: 1 1 auto;\n height: auto !important;\n min-height: 0;\n }\n "
|
|
1134
1134
|
: "\n .cds--chart-holder {\n height: 100vh !important;\n }\n ";
|
|
1135
1135
|
});
|
|
1136
|
-
var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n .cds--cc--legend-fieldset {\n border: 0;\n margin: 0;\n min-inline-size: 0;\n padding: 0;\n }\n\n .cds--cc--legend-fieldset > legend {\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n position: absolute;\n top: auto;\n white-space: nowrap;\n width: 1px;\n }\n\n &:fullscreen,\n &:-webkit-full-screen {\n background: ", ";\n\n .cds--chart-holder {\n height: 100vh !important;\n }\n }\n\n .cds--chart-holder.filled,\n .cds--chart-holder.filled .cds--cc--chart-wrapper {\n background-color: ", ";\n }\n\n .cds--data-table thead tr th {\n background: ", " !important;\n }\n .cds--data-table td,\n .cds--data-table tbody th {\n color: ", ";\n }\n .cds--data-table tbody tr,\n .cds--data-table tbody tr td,\n .cds--data-table tbody tr th {\n color: ", ";\n }\n .cds--data-table tr {\n block-size: 2.5rem;\n }\n\n .cds--cc--tooltip .content-box .datapoint-tooltip p {\n font-size: ", ";\n padding: ", ";\n color: ", ";\n max-width: 142px;\n white-space: normal;\n }\n\n .cds--modal-container {\n clip-path: inset(0% 0% 0% 0% round ", ");\n background: ", ";\n .cds--data-table th {\n background: ", ";\n }\n .cds--data-table td {\n border-top: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n background: ", ";\n }\n .cds--data-table tr:hover td {\n background: ", ";\n }\n }\n\n .chart-holder p,\n .chart-holder div,\n .chart-holder text,\n .cds--cc--axes g.axis .axis-title,\n .cds--cc--title p.title,\n .cds--cc--axes g.axis g.tick text {\n font-family: ", " !important;\n color: ", ";\n }\n\n .cds--cc--axes {\n overflow: visible;\n }\n\n div.cds--cc--legend {\n div.legend-item {\n div.checkbox {\n background: ", ";\n border: none;\n width: ", ";\n height: ", ";\n svg {\n left: 2px;\n position: relative;\n }\n }\n p {\n font-size: ", ";\n margin: 0 ", " 0 0;\n }\n }\n }\n div.cds--cc--legend.has-deactivated-items {\n div.legend-item {\n div.checkbox {\n border: 1px solid\n ", ";\n }\n div.checkbox.active {\n border: 1px solid transparent;\n }\n }\n }\n .chart-holder {\n .cds--cc--axes g.axis g.tick text {\n fill: ", ";\n }\n .cds--cc--axes g.axis path.domain {\n stroke: ", ";\n }\n .cds--cc--grid g.x.grid g.tick line,\n .cds--cc--grid g.y.grid g.tick line {\n stroke: ", ";\n }\n .cds--cc--grid rect.chart-grid-backdrop.stroked {\n stroke: ", ";\n }\n .cds--cc--skeleton .shimmer-effect-lines {\n filter: ", ";\n }\n /* .chart-holder.cds--chart-holder.filled,\n .cds--cc--skeleton rect.chart-skeleton-backdrop,\n .cds--cc--grid rect.chart-grid-backdrop {\n } */\n\n .cds--cc--grid rect.chart-grid-backdrop {\n fill: transparent;\n }\n .cds--cc--scatter circle.dot,\n .cds--cc--scatter circle.dot.hovered {\n padding: 10px;\n }\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled {\n stroke-width: 6px;\n transition: 0.1s all linear;\n }\n .cds--cc--scatter circle.dot {\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--scatter circle.dot.hovered {\n stroke-width: 0.5em;\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--lollipop circle.dot,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot.hovered {\n stroke-width: 15px;\n }\n .cds--cc--scatter-stacked circle.dot,\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot,\n .cds--cc--lollipop circle.dot.hovered {\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--lollipop .cds--cc--scatter circle.dot.hovered {\n transition: 0.1s all linear;\n stroke-width: 1.1em;\n }\n\n .cds--cc--tooltip {\n ", "\n }\n\n .cds--overflow-menu-options__btn:focus {\n outline-color: ", ";\n }\n\n .cds--btn {\n min-height: auto;\n display: flex;\n flex: 0 auto;\n align-items: center;\n text-align: center;\n padding: 20px;\n margin: 0;\n line-height: ", ";\n margin: 0;\n min-width: ", ";\n overflow: hidden;\n position: relative;\n right: ", ";\n text-align: center;\n height: 40px;\n font-family: ", ";\n font-size: ", ";\n border-radius: ", ";\n font-weight: 500;\n }\n\n .cds--btn--primary {\n background: ", ";\n color: ", ";\n }\n\n *:focus {\n outline: 2px solid\n ", " !important;\n outline-offset: 0;\n }\n circle.dot:focus {\n outline: none !important;\n }\n .cds--overflow-menu-options__btn:focus,\n .cds--overflow-menu:focus,\n .cds--overflow-menu__trigger:focus,\n .toolbar-control:focus {\n outline: 2px solid\n ", " !important;\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):focus\n div.checkbox,\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n border: ", ";\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n box-shadow: 0 0 0 2px\n ", " !important;\n }\n\n .cds--btn--primary {\n &:focus {\n outline: 2px solid\n ", ";\n }\n outline-offset: 2px;\n border: none;\n box-shadow: none;\n }\n .cds--modal-header {\n background: ", ";\n margin-bottom: 0;\n border-bottom: 1px solid\n ", ";\n }\n .cds--modal-header__heading {\n font-weight: 600;\n }\n\n .cds--modal-close {\n position: absolute;\n top: 0;\n right: 0;\n &:focus {\n outline: 2px solid\n ", ";\n border-color: none;\n }\n outline-offset: 0;\n border: none;\n }\n }\n\n .cds--modal-footer.cds--modal-footer {\n display: flex;\n align-items: center;\n border-top: 1px solid\n ", ";\n background: ", " !important;\n }\n .layout-child.header {\n height: auto !important;\n p {\n text-overflow: inherit;\n overflow: auto;\n white-space: normal;\n }\n }\n\n &.has-magma-toolbar .cds--cc--title p.title {\n visibility: hidden;\n }\n\n svg:not(:root) {\n overflow: visible;\n }\n\n circle.dot:focus {\n outline: none;\n stroke: ", " !important;\n stroke-width: 6px !important;\n stroke-opacity: 1 !important;\n paint-order: stroke fill;\n }\n\n .cds--cc--chart-wrapper text {\n font-size: ", ";\n }\n\n g.center text,\n .pie-label {\n fill: ", ";\n }\n\n // Zoom responsive tweaks\n\n @media screen and (max-width: 760px) {\n .cds--modal-container {\n overflow-y: auto;\n }\n .cds--chart-holder .cds--modal .cds--modal-container .cds--modal-content {\n overflow: visible;\n }\n .cds--chart-holder\n .cds--modal\n .cds--modal-container\n .cds--modal-content\n table\n th {\n position: relative;\n }\n }\n"], ["\n .cds--cc--legend-fieldset {\n border: 0;\n margin: 0;\n min-inline-size: 0;\n padding: 0;\n }\n\n .cds--cc--legend-fieldset > legend {\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n position: absolute;\n top: auto;\n white-space: nowrap;\n width: 1px;\n }\n\n &:fullscreen,\n &:-webkit-full-screen {\n background: ", ";\n\n .cds--chart-holder {\n height: 100vh !important;\n }\n }\n\n .cds--chart-holder.filled,\n .cds--chart-holder.filled .cds--cc--chart-wrapper {\n background-color: ", ";\n }\n\n .cds--data-table thead tr th {\n background: ", " !important;\n }\n .cds--data-table td,\n .cds--data-table tbody th {\n color: ", ";\n }\n .cds--data-table tbody tr,\n .cds--data-table tbody tr td,\n .cds--data-table tbody tr th {\n color: ", ";\n }\n .cds--data-table tr {\n block-size: 2.5rem;\n }\n\n .cds--cc--tooltip .content-box .datapoint-tooltip p {\n font-size: ", ";\n padding: ", ";\n color: ", ";\n max-width: 142px;\n white-space: normal;\n }\n\n .cds--modal-container {\n clip-path: inset(0% 0% 0% 0% round ", ");\n background: ", ";\n .cds--data-table th {\n background: ", ";\n }\n .cds--data-table td {\n border-top: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n background: ", ";\n }\n .cds--data-table tr:hover td {\n background: ", ";\n }\n }\n\n .chart-holder p,\n .chart-holder div,\n .chart-holder text,\n .cds--cc--axes g.axis .axis-title,\n .cds--cc--title p.title,\n .cds--cc--axes g.axis g.tick text {\n font-family: ", " !important;\n color: ", ";\n }\n\n .cds--cc--axes {\n overflow: visible;\n }\n\n div.cds--cc--legend {\n div.legend-item {\n div.checkbox {\n background: ", ";\n border: none;\n width: ", ";\n height: ", ";\n svg {\n left: 2px;\n position: relative;\n }\n }\n p {\n font-size: ", ";\n margin: 0 ", " 0 0;\n }\n }\n }\n div.cds--cc--legend.has-deactivated-items {\n div.legend-item {\n div.checkbox {\n border: 1px solid\n ", ";\n }\n div.checkbox.active {\n border: 1px solid transparent;\n }\n }\n }\n .chart-holder {\n .cds--cc--axes g.axis g.tick text {\n fill: ", ";\n }\n .cds--cc--axes g.axis path.domain {\n stroke: ", ";\n }\n .cds--cc--grid g.x.grid g.tick line,\n .cds--cc--grid g.y.grid g.tick line {\n stroke: ", ";\n }\n .cds--cc--grid rect.chart-grid-backdrop.stroked {\n stroke: ", ";\n }\n .cds--cc--skeleton .shimmer-effect-lines {\n filter: ", ";\n }\n /* .chart-holder.cds--chart-holder.filled,\n .cds--cc--skeleton rect.chart-skeleton-backdrop,\n .cds--cc--grid rect.chart-grid-backdrop {\n } */\n\n .cds--cc--grid rect.chart-grid-backdrop {\n fill: transparent;\n }\n .cds--cc--scatter circle.dot,\n .cds--cc--scatter circle.dot.hovered {\n padding: 10px;\n }\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled {\n stroke-width: 6px;\n transition: 0.1s all linear;\n }\n .cds--cc--scatter circle.dot {\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--scatter circle.dot.hovered {\n stroke-width: 0.5em;\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--lollipop circle.dot,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot.hovered {\n stroke-width: 15px;\n }\n .cds--cc--scatter-stacked circle.dot,\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot,\n .cds--cc--lollipop circle.dot.hovered {\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--lollipop .cds--cc--scatter circle.dot.hovered {\n transition: 0.1s all linear;\n stroke-width: 1.1em;\n }\n\n .cds--cc--tooltip {\n ", "\n }\n\n .cds--overflow-menu-options__btn:focus {\n outline-color: ", ";\n }\n\n .cds--btn {\n min-height: auto;\n display: flex;\n flex: 0 auto;\n align-items: center;\n text-align: center;\n padding: 20px;\n margin: 0;\n line-height: ", ";\n margin: 0;\n min-width: ", ";\n overflow: hidden;\n position: relative;\n right: ", ";\n text-align: center;\n height: 40px;\n font-family: ", ";\n font-size: ", ";\n border-radius: ", ";\n font-weight: 500;\n }\n\n .cds--btn--primary {\n background: ", ";\n color: ", ";\n }\n\n *:focus {\n outline: 2px solid\n ", " !important;\n outline-offset: 0;\n }\n circle.dot:focus {\n outline: none !important;\n }\n .cds--overflow-menu-options__btn:focus,\n .cds--overflow-menu:focus,\n .cds--overflow-menu__trigger:focus,\n .toolbar-control:focus {\n outline: 2px solid\n ", " !important;\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):focus\n div.checkbox,\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n border: ", ";\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n box-shadow: 0 0 0 2px\n ", " !important;\n }\n\n .cds--btn--primary {\n &:focus {\n outline: 2px solid\n ", ";\n }\n outline-offset: 2px;\n border: none;\n box-shadow: none;\n }\n .cds--modal-header {\n background: ", ";\n margin-bottom: 0;\n border-bottom: 1px solid\n ", ";\n }\n .cds--modal-header__heading {\n font-weight: 600;\n }\n\n .cds--modal-close {\n position: absolute;\n top: 0;\n right: 0;\n &:focus {\n outline: 2px solid\n ", ";\n border-color: none;\n }\n outline-offset: 0;\n border: none;\n }\n }\n\n .cds--modal-footer.cds--modal-footer {\n display: flex;\n align-items: center;\n border-top: 1px solid\n ", ";\n background: ", " !important;\n }\n .layout-child.header {\n height: auto !important;\n p {\n text-overflow: inherit;\n overflow: auto;\n white-space: normal;\n }\n }\n\n &.has-magma-toolbar .cds--cc--title p.title {\n visibility: hidden;\n }\n\n svg:not(:root) {\n overflow: visible;\n }\n\n circle.dot:focus {\n outline: none;\n stroke: ", " !important;\n stroke-width: 6px !important;\n stroke-opacity: 1 !important;\n paint-order: stroke fill;\n }\n\n .cds--cc--chart-wrapper text {\n font-size: ", ";\n }\n\n g.center text,\n .pie-label {\n fill: ", ";\n }\n\n // Zoom responsive tweaks\n\n @media screen and (max-width: 760px) {\n .cds--modal-container {\n overflow-y: auto;\n }\n .cds--chart-holder .cds--modal .cds--modal-container .cds--modal-content {\n overflow: visible;\n }\n .cds--chart-holder\n .cds--modal\n .cds--modal-container\n .cds--modal-content\n table\n th {\n position: relative;\n }\n }\n"])), function (props) {
|
|
1136
|
+
var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n .cds--cc--legend-fieldset {\n border: 0;\n margin: 0;\n min-inline-size: 0;\n padding: 0;\n }\n\n .cds--cc--legend-fieldset > legend {\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n position: absolute;\n top: auto;\n white-space: nowrap;\n width: 1px;\n }\n\n &:fullscreen,\n &:-webkit-full-screen {\n background: ", ";\n\n .cds--chart-holder {\n height: 100vh !important;\n }\n }\n\n .cds--chart-holder.filled,\n .cds--chart-holder.filled .cds--cc--chart-wrapper {\n background-color: ", ";\n }\n\n .cds--data-table thead tr th {\n background: ", " !important;\n }\n .cds--data-table td,\n .cds--data-table th {\n color: ", ";\n }\n .cds--data-table tbody tr,\n .cds--data-table tbody tr td,\n .cds--data-table tbody tr th {\n color: ", ";\n }\n .cds--data-table tr {\n block-size: 2.5rem;\n }\n\n .cds--cc--tooltip .content-box .datapoint-tooltip p {\n font-size: ", ";\n padding: ", ";\n color: ", ";\n max-width: 142px;\n white-space: normal;\n }\n\n .cds--modal-container {\n clip-path: inset(0% 0% 0% 0% round ", ");\n background: ", ";\n .cds--data-table th {\n background: ", ";\n }\n .cds--data-table td {\n border-top: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n background: ", ";\n }\n .cds--data-table tr:hover td {\n background: ", ";\n }\n }\n\n .chart-holder p,\n .chart-holder div,\n .chart-holder text,\n .cds--cc--axes g.axis .axis-title,\n .cds--cc--axes g.axis g.tick text {\n font-family: ", " !important;\n color: ", ";\n }\n\n .chart-holder text,\n .cds--cc--axes g.axis .axis-title,\n .cds--cc--axes g.axis g.tick text {\n fill: ", " !important;\n }\n\n .cds--cc--title p.title {\n color: ", " !important;\n }\n\n .cds--cc--axes {\n overflow: visible;\n }\n\n div.cds--cc--legend {\n div.legend-item {\n div.checkbox {\n background: ", ";\n border: none;\n width: ", ";\n height: ", ";\n svg {\n left: 2px;\n position: relative;\n }\n }\n p {\n font-size: ", ";\n margin: 0 ", " 0 0;\n }\n }\n }\n div.cds--cc--legend.has-deactivated-items {\n div.legend-item {\n div.checkbox {\n border: 1px solid\n ", ";\n }\n div.checkbox.active {\n border: 1px solid transparent;\n }\n }\n }\n .chart-holder {\n .cds--cc--axes g.axis g.tick text {\n fill: ", ";\n }\n .cds--cc--axes g.axis path.domain {\n stroke: ", ";\n }\n .cds--cc--grid g.x.grid g.tick line,\n .cds--cc--grid g.y.grid g.tick line {\n stroke: ", ";\n }\n .cds--cc--grid rect.chart-grid-backdrop.stroked {\n stroke: ", ";\n }\n .cds--cc--skeleton .shimmer-effect-lines {\n filter: ", ";\n }\n /* .chart-holder.cds--chart-holder.filled,\n .cds--cc--skeleton rect.chart-skeleton-backdrop,\n .cds--cc--grid rect.chart-grid-backdrop {\n } */\n\n .cds--cc--grid rect.chart-grid-backdrop {\n fill: transparent;\n }\n .cds--cc--scatter circle.dot,\n .cds--cc--scatter circle.dot.hovered {\n padding: 10px;\n }\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled {\n stroke-width: 6px;\n transition: 0.1s all linear;\n }\n .cds--cc--scatter circle.dot {\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--scatter circle.dot.hovered {\n stroke-width: 0.5em;\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--lollipop circle.dot,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot.hovered {\n stroke-width: 15px;\n }\n .cds--cc--scatter-stacked circle.dot,\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot,\n .cds--cc--lollipop circle.dot.hovered {\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--lollipop .cds--cc--scatter circle.dot.hovered {\n transition: 0.1s all linear;\n stroke-width: 1.1em;\n }\n\n .cds--cc--tooltip {\n ", "\n }\n\n .cds--overflow-menu-options__btn:focus {\n outline-color: ", ";\n }\n\n .cds--btn {\n min-height: auto;\n display: flex;\n flex: 0 auto;\n align-items: center;\n text-align: center;\n padding: 20px;\n margin: 0;\n line-height: ", ";\n margin: 0;\n min-width: ", ";\n overflow: hidden;\n position: relative;\n right: ", ";\n text-align: center;\n height: 40px;\n font-family: ", ";\n font-size: ", ";\n border-radius: ", ";\n font-weight: 500;\n }\n\n .cds--btn--primary {\n background: ", ";\n color: ", ";\n }\n\n *:focus {\n outline: 2px solid\n ", " !important;\n outline-offset: 0;\n }\n circle.dot:focus {\n outline: none !important;\n }\n .cds--overflow-menu-options__btn:focus,\n .cds--overflow-menu:focus,\n .cds--overflow-menu__trigger:focus,\n .toolbar-control:focus {\n outline: 2px solid\n ", " !important;\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):focus\n div.checkbox,\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n border: ", ";\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n box-shadow: 0 0 0 2px\n ", " !important;\n }\n\n .cds--btn--primary {\n &:focus {\n outline: 2px solid\n ", ";\n }\n outline-offset: 2px;\n border: none;\n box-shadow: none;\n }\n .cds--modal-header {\n background: ", ";\n margin-bottom: 0;\n border-bottom: 1px solid\n ", ";\n }\n .cds--modal-header__heading {\n font-weight: 600;\n }\n\n .cds--modal-close {\n position: absolute;\n top: 0;\n right: 0;\n &:focus {\n outline: 2px solid\n ", ";\n border-color: none;\n }\n outline-offset: 0;\n border: none;\n }\n }\n\n .cds--modal-footer.cds--modal-footer {\n display: flex;\n align-items: center;\n border-top: 1px solid\n ", ";\n background: ", " !important;\n }\n .layout-child.header {\n height: auto !important;\n p {\n text-overflow: inherit;\n overflow: auto;\n white-space: normal;\n }\n }\n\n &.has-magma-toolbar .cds--cc--title p.title {\n visibility: hidden;\n }\n\n svg:not(:root) {\n overflow: visible;\n }\n\n circle.dot:focus {\n outline: none;\n stroke: ", " !important;\n stroke-width: 6px !important;\n stroke-opacity: 1 !important;\n paint-order: stroke fill;\n }\n\n .cds--cc--chart-wrapper text {\n font-size: ", ";\n }\n\n g.center text,\n .pie-label {\n fill: ", ";\n }\n\n // Zoom responsive tweaks\n\n @media screen and (max-width: 760px) {\n .cds--modal-container {\n overflow-y: auto;\n }\n .cds--chart-holder .cds--modal .cds--modal-container .cds--modal-content {\n overflow: visible;\n }\n .cds--chart-holder\n .cds--modal\n .cds--modal-container\n .cds--modal-content\n table\n th {\n position: relative;\n }\n }\n"], ["\n .cds--cc--legend-fieldset {\n border: 0;\n margin: 0;\n min-inline-size: 0;\n padding: 0;\n }\n\n .cds--cc--legend-fieldset > legend {\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n position: absolute;\n top: auto;\n white-space: nowrap;\n width: 1px;\n }\n\n &:fullscreen,\n &:-webkit-full-screen {\n background: ", ";\n\n .cds--chart-holder {\n height: 100vh !important;\n }\n }\n\n .cds--chart-holder.filled,\n .cds--chart-holder.filled .cds--cc--chart-wrapper {\n background-color: ", ";\n }\n\n .cds--data-table thead tr th {\n background: ", " !important;\n }\n .cds--data-table td,\n .cds--data-table th {\n color: ", ";\n }\n .cds--data-table tbody tr,\n .cds--data-table tbody tr td,\n .cds--data-table tbody tr th {\n color: ", ";\n }\n .cds--data-table tr {\n block-size: 2.5rem;\n }\n\n .cds--cc--tooltip .content-box .datapoint-tooltip p {\n font-size: ", ";\n padding: ", ";\n color: ", ";\n max-width: 142px;\n white-space: normal;\n }\n\n .cds--modal-container {\n clip-path: inset(0% 0% 0% 0% round ", ");\n background: ", ";\n .cds--data-table th {\n background: ", ";\n }\n .cds--data-table td {\n border-top: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n background: ", ";\n }\n .cds--data-table tr:hover td {\n background: ", ";\n }\n }\n\n .chart-holder p,\n .chart-holder div,\n .chart-holder text,\n .cds--cc--axes g.axis .axis-title,\n .cds--cc--axes g.axis g.tick text {\n font-family: ", " !important;\n color: ", ";\n }\n\n .chart-holder text,\n .cds--cc--axes g.axis .axis-title,\n .cds--cc--axes g.axis g.tick text {\n fill: ", " !important;\n }\n\n .cds--cc--title p.title {\n color: ", " !important;\n }\n\n .cds--cc--axes {\n overflow: visible;\n }\n\n div.cds--cc--legend {\n div.legend-item {\n div.checkbox {\n background: ", ";\n border: none;\n width: ", ";\n height: ", ";\n svg {\n left: 2px;\n position: relative;\n }\n }\n p {\n font-size: ", ";\n margin: 0 ", " 0 0;\n }\n }\n }\n div.cds--cc--legend.has-deactivated-items {\n div.legend-item {\n div.checkbox {\n border: 1px solid\n ", ";\n }\n div.checkbox.active {\n border: 1px solid transparent;\n }\n }\n }\n .chart-holder {\n .cds--cc--axes g.axis g.tick text {\n fill: ", ";\n }\n .cds--cc--axes g.axis path.domain {\n stroke: ", ";\n }\n .cds--cc--grid g.x.grid g.tick line,\n .cds--cc--grid g.y.grid g.tick line {\n stroke: ", ";\n }\n .cds--cc--grid rect.chart-grid-backdrop.stroked {\n stroke: ", ";\n }\n .cds--cc--skeleton .shimmer-effect-lines {\n filter: ", ";\n }\n /* .chart-holder.cds--chart-holder.filled,\n .cds--cc--skeleton rect.chart-skeleton-backdrop,\n .cds--cc--grid rect.chart-grid-backdrop {\n } */\n\n .cds--cc--grid rect.chart-grid-backdrop {\n fill: transparent;\n }\n .cds--cc--scatter circle.dot,\n .cds--cc--scatter circle.dot.hovered {\n padding: 10px;\n }\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled {\n stroke-width: 6px;\n transition: 0.1s all linear;\n }\n .cds--cc--scatter circle.dot {\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--scatter circle.dot.hovered {\n stroke-width: 0.5em;\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--lollipop circle.dot,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot.hovered {\n stroke-width: 15px;\n }\n .cds--cc--scatter-stacked circle.dot,\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot,\n .cds--cc--lollipop circle.dot.hovered {\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ", "\n )\n drop-shadow(\n -1px 0px 0px\n ", "\n )\n drop-shadow(\n 0px 1px 0px\n ", "\n )\n drop-shadow(\n 0px -1px 0px\n ", "\n );\n }\n .cds--cc--lollipop .cds--cc--scatter circle.dot.hovered {\n transition: 0.1s all linear;\n stroke-width: 1.1em;\n }\n\n .cds--cc--tooltip {\n ", "\n }\n\n .cds--overflow-menu-options__btn:focus {\n outline-color: ", ";\n }\n\n .cds--btn {\n min-height: auto;\n display: flex;\n flex: 0 auto;\n align-items: center;\n text-align: center;\n padding: 20px;\n margin: 0;\n line-height: ", ";\n margin: 0;\n min-width: ", ";\n overflow: hidden;\n position: relative;\n right: ", ";\n text-align: center;\n height: 40px;\n font-family: ", ";\n font-size: ", ";\n border-radius: ", ";\n font-weight: 500;\n }\n\n .cds--btn--primary {\n background: ", ";\n color: ", ";\n }\n\n *:focus {\n outline: 2px solid\n ", " !important;\n outline-offset: 0;\n }\n circle.dot:focus {\n outline: none !important;\n }\n .cds--overflow-menu-options__btn:focus,\n .cds--overflow-menu:focus,\n .cds--overflow-menu__trigger:focus,\n .toolbar-control:focus {\n outline: 2px solid\n ", " !important;\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):focus\n div.checkbox,\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n border: ", ";\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n box-shadow: 0 0 0 2px\n ", " !important;\n }\n\n .cds--btn--primary {\n &:focus {\n outline: 2px solid\n ", ";\n }\n outline-offset: 2px;\n border: none;\n box-shadow: none;\n }\n .cds--modal-header {\n background: ", ";\n margin-bottom: 0;\n border-bottom: 1px solid\n ", ";\n }\n .cds--modal-header__heading {\n font-weight: 600;\n }\n\n .cds--modal-close {\n position: absolute;\n top: 0;\n right: 0;\n &:focus {\n outline: 2px solid\n ", ";\n border-color: none;\n }\n outline-offset: 0;\n border: none;\n }\n }\n\n .cds--modal-footer.cds--modal-footer {\n display: flex;\n align-items: center;\n border-top: 1px solid\n ", ";\n background: ", " !important;\n }\n .layout-child.header {\n height: auto !important;\n p {\n text-overflow: inherit;\n overflow: auto;\n white-space: normal;\n }\n }\n\n &.has-magma-toolbar .cds--cc--title p.title {\n visibility: hidden;\n }\n\n svg:not(:root) {\n overflow: visible;\n }\n\n circle.dot:focus {\n outline: none;\n stroke: ", " !important;\n stroke-width: 6px !important;\n stroke-opacity: 1 !important;\n paint-order: stroke fill;\n }\n\n .cds--cc--chart-wrapper text {\n font-size: ", ";\n }\n\n g.center text,\n .pie-label {\n fill: ", ";\n }\n\n // Zoom responsive tweaks\n\n @media screen and (max-width: 760px) {\n .cds--modal-container {\n overflow-y: auto;\n }\n .cds--chart-holder .cds--modal .cds--modal-container .cds--modal-content {\n overflow: visible;\n }\n .cds--chart-holder\n .cds--modal\n .cds--modal-container\n .cds--modal-content\n table\n th {\n position: relative;\n }\n }\n"])), function (props) {
|
|
1137
1137
|
return props.isInverse
|
|
1138
|
-
? props.theme.colors.
|
|
1138
|
+
? props.theme.colors.indigo700
|
|
1139
1139
|
: props.theme.colors.neutral100;
|
|
1140
1140
|
}, function (props) {
|
|
1141
1141
|
return props.isInverse
|
|
1142
|
-
? props.theme.colors.
|
|
1142
|
+
? props.theme.colors.indigo600
|
|
1143
1143
|
: props.theme.colors.neutral100;
|
|
1144
1144
|
}, function (props) {
|
|
1145
|
-
return props.isInverse ? props.theme.colors.
|
|
1146
|
-
}, function (props) {
|
|
1145
|
+
return props.isInverse ? props.theme.colors.indigo700 : '';
|
|
1146
|
+
}, function (props) {
|
|
1147
|
+
return props.isInverse
|
|
1148
|
+
? props.theme.colors.neutral100
|
|
1149
|
+
: props.theme.colors.brand.navy;
|
|
1150
|
+
}, function (props) { return (props.isInverse ? props.theme.colors.neutral100 : ''); }, function (props) { return props.theme.typeScale.size02.fontSize; }, function (props) { return props.theme.spaceScale.spacing02; }, function (props) {
|
|
1147
1151
|
return props.isInverse
|
|
1148
1152
|
? props.theme.colors.neutral100
|
|
1149
|
-
: props.theme.colors.
|
|
1153
|
+
: props.theme.colors.brand.navy;
|
|
1150
1154
|
}, function (props) { return props.theme.borderRadius; }, function (props) {
|
|
1151
|
-
return props.isInverse ? props.theme.colors.
|
|
1155
|
+
return props.isInverse ? props.theme.colors.indigo700 : '';
|
|
1152
1156
|
}, function (props) {
|
|
1153
|
-
return props.isInverse ? props.theme.colors.
|
|
1157
|
+
return props.isInverse ? props.theme.colors.indigo600 : '';
|
|
1154
1158
|
}, function (props) {
|
|
1155
1159
|
return props.isInverse
|
|
1156
1160
|
? curriedTransparentize(0.8, props.theme.colors.neutral100)
|
|
@@ -1160,11 +1164,19 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1160
1164
|
? curriedTransparentize(0.8, props.theme.colors.neutral100)
|
|
1161
1165
|
: 'inherit';
|
|
1162
1166
|
}, function (props) { return (props.isInverse ? '#202565' : ''); }, function (props) {
|
|
1163
|
-
return props.isInverse ? props.theme.colors.
|
|
1167
|
+
return props.isInverse ? props.theme.colors.indigo600 : '';
|
|
1164
1168
|
}, function (props) { return props.theme.bodyFont; }, function (props) {
|
|
1165
1169
|
return props.isInverse
|
|
1166
1170
|
? props.theme.colors.neutral100
|
|
1167
|
-
: props.theme.colors.
|
|
1171
|
+
: props.theme.colors.brand.navy;
|
|
1172
|
+
}, function (props) {
|
|
1173
|
+
return props.isInverse
|
|
1174
|
+
? props.theme.colors.neutral100
|
|
1175
|
+
: props.theme.colors.brand.navy;
|
|
1176
|
+
}, function (props) {
|
|
1177
|
+
return props.isInverse
|
|
1178
|
+
? props.theme.colors.neutral100
|
|
1179
|
+
: props.theme.colors.brand.navy;
|
|
1168
1180
|
}, function (props) {
|
|
1169
1181
|
return props.isInverse
|
|
1170
1182
|
? props.theme.colors.neutral900
|
|
@@ -1183,51 +1195,51 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1183
1195
|
return props.isInverse ? props.theme.colors.neutral100 : '';
|
|
1184
1196
|
}, function (props) { return (props.isInverse ? 'invert(1)' : ''); }, function (props) {
|
|
1185
1197
|
return props.isInverse
|
|
1186
|
-
? props.theme.colors.
|
|
1198
|
+
? props.theme.colors.indigo600
|
|
1187
1199
|
: props.theme.colors.neutral100;
|
|
1188
1200
|
}, function (props) {
|
|
1189
1201
|
return props.isInverse
|
|
1190
|
-
? props.theme.colors.
|
|
1202
|
+
? props.theme.colors.indigo600
|
|
1191
1203
|
: props.theme.colors.neutral100;
|
|
1192
1204
|
}, function (props) {
|
|
1193
1205
|
return props.isInverse
|
|
1194
|
-
? props.theme.colors.
|
|
1206
|
+
? props.theme.colors.indigo600
|
|
1195
1207
|
: props.theme.colors.neutral100;
|
|
1196
1208
|
}, function (props) {
|
|
1197
1209
|
return props.isInverse
|
|
1198
|
-
? props.theme.colors.
|
|
1210
|
+
? props.theme.colors.indigo600
|
|
1199
1211
|
: props.theme.colors.neutral100;
|
|
1200
1212
|
}, function (props) {
|
|
1201
1213
|
return props.isInverse
|
|
1202
|
-
? props.theme.colors.
|
|
1214
|
+
? props.theme.colors.indigo600
|
|
1203
1215
|
: props.theme.colors.neutral100;
|
|
1204
1216
|
}, function (props) {
|
|
1205
1217
|
return props.isInverse
|
|
1206
|
-
? props.theme.colors.
|
|
1218
|
+
? props.theme.colors.indigo600
|
|
1207
1219
|
: props.theme.colors.neutral100;
|
|
1208
1220
|
}, function (props) {
|
|
1209
1221
|
return props.isInverse
|
|
1210
|
-
? props.theme.colors.
|
|
1222
|
+
? props.theme.colors.indigo600
|
|
1211
1223
|
: props.theme.colors.neutral100;
|
|
1212
1224
|
}, function (props) {
|
|
1213
1225
|
return props.isInverse
|
|
1214
|
-
? props.theme.colors.
|
|
1226
|
+
? props.theme.colors.indigo600
|
|
1215
1227
|
: props.theme.colors.neutral100;
|
|
1216
1228
|
}, function (props) {
|
|
1217
1229
|
return props.isInverse
|
|
1218
|
-
? props.theme.colors.
|
|
1230
|
+
? props.theme.colors.indigo600
|
|
1219
1231
|
: props.theme.colors.neutral100;
|
|
1220
1232
|
}, function (props) {
|
|
1221
1233
|
return props.isInverse
|
|
1222
|
-
? props.theme.colors.
|
|
1234
|
+
? props.theme.colors.indigo600
|
|
1223
1235
|
: props.theme.colors.neutral100;
|
|
1224
1236
|
}, function (props) {
|
|
1225
1237
|
return props.isInverse
|
|
1226
|
-
? props.theme.colors.
|
|
1238
|
+
? props.theme.colors.indigo600
|
|
1227
1239
|
: props.theme.colors.neutral100;
|
|
1228
1240
|
}, function (props) {
|
|
1229
1241
|
return props.isInverse
|
|
1230
|
-
? props.theme.colors.
|
|
1242
|
+
? props.theme.colors.indigo600
|
|
1231
1243
|
: props.theme.colors.neutral100;
|
|
1232
1244
|
}, function (props) {
|
|
1233
1245
|
var chartColors = (props.isInverse
|
|
@@ -1243,7 +1255,7 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1243
1255
|
return props.isInverse ? props.theme.colors.focusInverse : '';
|
|
1244
1256
|
}, function (props) { return props.theme.typeScale.size03.lineHeight; }, function (props) { return props.theme.spaceScale.spacing13; }, function (props) { return props.theme.spaceScale.spacing04; }, function (props) { return props.theme.bodyFont; }, function (props) { return props.theme.typeScale.size03.fontSize; }, function (props) { return props.theme.borderRadius; }, function (props) {
|
|
1245
1257
|
return props.isInverse
|
|
1246
|
-
? props.theme.colors.
|
|
1258
|
+
? props.theme.colors.cyan500
|
|
1247
1259
|
: props.theme.colors.primary;
|
|
1248
1260
|
}, function (props) { return (props.isInverse ? props.theme.colors.neutral900 : ''); }, function (props) {
|
|
1249
1261
|
return props.isInverse
|
|
@@ -1265,7 +1277,7 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1265
1277
|
: props.theme.colors.focus;
|
|
1266
1278
|
}, function (props) {
|
|
1267
1279
|
return props.isInverse
|
|
1268
|
-
? props.theme.colors.
|
|
1280
|
+
? props.theme.colors.indigo600
|
|
1269
1281
|
: props.theme.colors.neutral100;
|
|
1270
1282
|
}, function (props) {
|
|
1271
1283
|
return props.isInverse
|
|
@@ -1281,13 +1293,17 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1281
1293
|
: props.theme.colors.neutral300;
|
|
1282
1294
|
}, function (props) {
|
|
1283
1295
|
return props.isInverse
|
|
1284
|
-
? props.theme.colors.
|
|
1296
|
+
? props.theme.colors.indigo600
|
|
1285
1297
|
: props.theme.colors.neutral100;
|
|
1286
1298
|
}, function (props) {
|
|
1287
1299
|
return props.isInverse
|
|
1288
1300
|
? props.theme.colors.focusInverse
|
|
1289
1301
|
: props.theme.colors.focus;
|
|
1290
|
-
}, function (props) { return props.theme.typeScale.size02.fontSize; }, function (props) {
|
|
1302
|
+
}, function (props) { return props.theme.typeScale.size02.fontSize; }, function (props) {
|
|
1303
|
+
return props.isInverse
|
|
1304
|
+
? props.theme.colors.neutral100
|
|
1305
|
+
: props.theme.colors.brand.navy;
|
|
1306
|
+
});
|
|
1291
1307
|
/* Carbon themes
|
|
1292
1308
|
https://github.com/carbon-design-system/carbon-charts/blob/master/packages/core/src/interfaces/enums.ts#L12)
|
|
1293
1309
|
*/
|
|
@@ -1298,23 +1314,15 @@ var ChartTheme;
|
|
|
1298
1314
|
ChartTheme["G90"] = "g90";
|
|
1299
1315
|
ChartTheme["G10"] = "g10";
|
|
1300
1316
|
})(ChartTheme || (ChartTheme = {}));
|
|
1301
|
-
var ToolbarWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n z-index: 2;\n\n ", "\n
|
|
1317
|
+
var ToolbarWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n z-index: 2;\n\n ", "\n"], ["\n align-items: center;\n display: flex;\n justify-content: space-between;\n z-index: 2;\n\n ", "\n"])), function (props) {
|
|
1302
1318
|
return props.isFlowLayout
|
|
1303
1319
|
? "\n position: relative;\n "
|
|
1304
1320
|
: "\n left: ".concat(props.isFullscreen ? '2em' : '0', ";\n position: absolute;\n right: ").concat(props.isFullscreen ? '2em' : '0', ";\n top: ").concat(props.isFullscreen ? '2em' : '0', ";\n ");
|
|
1305
|
-
}, function (props) {
|
|
1306
|
-
return props.isInverse
|
|
1307
|
-
? props.theme.colors.neutral100
|
|
1308
|
-
: props.theme.colors.primary500;
|
|
1309
|
-
}, function (props) {
|
|
1310
|
-
return props.isInverse
|
|
1311
|
-
? props.theme.colors.focusInverse
|
|
1312
|
-
: props.theme.colors.focus;
|
|
1313
1321
|
});
|
|
1314
1322
|
var ChartTitle = styled.h2(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", " !important;\n font-size: 16px !important;\n font-weight: 700 !important;\n letter-spacing: normal !important;\n line-height: 1.25 !important;\n margin: 0 !important;\n color: ", " !important;\n"], ["\n font-family: ", " !important;\n font-size: 16px !important;\n font-weight: 700 !important;\n letter-spacing: normal !important;\n line-height: 1.25 !important;\n margin: 0 !important;\n color: ", " !important;\n"])), function (props) { return props.theme.bodyFont; }, function (props) {
|
|
1315
1323
|
return props.isInverse
|
|
1316
1324
|
? props.theme.colors.neutral100
|
|
1317
|
-
: props.theme.colors.
|
|
1325
|
+
: props.theme.colors.brand.navy;
|
|
1318
1326
|
});
|
|
1319
1327
|
var TitleGroup = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n gap: ", ";\n min-width: 0;\n"], ["\n align-items: center;\n display: flex;\n gap: ", ";\n min-width: 0;\n"])), function (props) { return props.theme.spaceScale.spacing02; });
|
|
1320
1328
|
var TitleSlot = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
|