@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComboChart, ScatterChart, MeterChart, HistogramChart, GaugeChart, BulletChart, BubbleChart, BoxplotChart, RadarChart, PieChart, LollipopChart, LineChart, DonutChart, StackedBarChart, GroupedBarChart, SimpleBarChart, StackedAreaChart, AreaChart } from '@carbon/charts-react';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import { Table, TableHead, TableRow, TableHeaderCell, TableBody, TableCell, I18nContext, Tooltip, IconButton, ButtonVariant, Dropdown, DropdownButton, DropdownContent, ModalSize, ThemeContext, Modal, Button, TypographyVisualStyle, Heading, useIsInverse, useDeviceDetect, VisuallyHidden, Announce, InverseContext, DropdownMenuItem, DropdownDivider } from 'react-magma-dom';
|
|
4
|
+
import { Table, TableHead, TableRow, TableHeaderCell, TableBody, TableCell, I18nContext, Tooltip, IconButton, ButtonVariant, ButtonColor, Dropdown, DropdownButton, DropdownContent, ModalSize, ThemeContext, Modal, Button, TypographyVisualStyle, Heading, useIsInverse, useDeviceDetect, VisuallyHidden, Announce, InverseContext, DropdownMenuItem, DropdownDivider } from 'react-magma-dom';
|
|
5
5
|
import { TableIcon, FullscreenExitIcon, FullscreenIcon, MoreVertIcon } from 'react-magma-icons';
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
@@ -1019,7 +1019,7 @@ function ChartFullscreenButton(_a) {
|
|
|
1019
1019
|
var resolvedTooltip = tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : (isFullscreen ? t.exitFullScreen : t.makeFullScreen);
|
|
1020
1020
|
var resolvedIcon = isFullscreen && exitIcon ? exitIcon : icon;
|
|
1021
1021
|
return (React.createElement(Tooltip, { content: resolvedTooltip, isInverse: isInverse },
|
|
1022
|
-
React.createElement(IconButton, { "aria-label": ariaLabel, icon: resolvedIcon, isInverse: isInverse, onClick: onClick, ref: buttonRef, variant: ButtonVariant.link })));
|
|
1022
|
+
React.createElement(IconButton, { "aria-label": ariaLabel, color: ButtonColor.subtle, icon: resolvedIcon, isInverse: isInverse, onClick: onClick, ref: buttonRef, variant: ButtonVariant.link })));
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
function ChartMoreOptionsButton(_a) {
|
|
@@ -1027,7 +1027,7 @@ function ChartMoreOptionsButton(_a) {
|
|
|
1027
1027
|
var t = useChartToolbarI18n();
|
|
1028
1028
|
var resolvedAriaLabel = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : t.moreOptionsAriaLabel;
|
|
1029
1029
|
return (React.createElement(Dropdown, { isInverse: isInverse },
|
|
1030
|
-
React.createElement(DropdownButton, { "aria-label": resolvedAriaLabel, icon: icon, variant: ButtonVariant.link, testId: "chart-more-options-button" }),
|
|
1030
|
+
React.createElement(DropdownButton, { "aria-label": resolvedAriaLabel, color: ButtonColor.subtle, icon: icon, variant: ButtonVariant.link, testId: "chart-more-options-button" }),
|
|
1031
1031
|
React.createElement(DropdownContent, null, children)));
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
@@ -1036,14 +1036,14 @@ function ChartTableButton(_a) {
|
|
|
1036
1036
|
var t = useChartToolbarI18n();
|
|
1037
1037
|
var resolvedTooltip = tooltipContent !== null && tooltipContent !== void 0 ? tooltipContent : t.showAsTableTooltip;
|
|
1038
1038
|
return (React.createElement(Tooltip, { content: resolvedTooltip, isInverse: isInverse },
|
|
1039
|
-
React.createElement(IconButton, { "aria-expanded": isTableOpen, "aria-haspopup": "dialog", "aria-label": ariaLabel, icon: icon, isInverse: isInverse, onClick: onClick, ref: buttonRef, variant: ButtonVariant.link })));
|
|
1039
|
+
React.createElement(IconButton, { "aria-expanded": isTableOpen, "aria-haspopup": "dialog", "aria-label": ariaLabel, color: ButtonColor.subtle, icon: icon, isInverse: isInverse, onClick: onClick, ref: buttonRef, variant: ButtonVariant.link })));
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
1042
|
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; });
|
|
1043
1043
|
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) {
|
|
1044
1044
|
return props.isInverse
|
|
1045
1045
|
? props.theme.colors.neutral100
|
|
1046
|
-
: props.theme.colors.
|
|
1046
|
+
: props.theme.colors.brand.navy;
|
|
1047
1047
|
}, function (props) { return props.theme.typeScale.size02.lineHeight; });
|
|
1048
1048
|
var containerStyle = {
|
|
1049
1049
|
display: 'flex',
|
|
@@ -1105,31 +1105,35 @@ var CarbonChartType;
|
|
|
1105
1105
|
var ChartContentWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n position: relative;\n"], ["\n height: 100%;\n position: relative;\n"])));
|
|
1106
1106
|
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) {
|
|
1107
1107
|
return props.isInverse
|
|
1108
|
-
? props.theme.colors.
|
|
1108
|
+
? props.theme.colors.indigo700
|
|
1109
1109
|
: props.theme.colors.neutral100;
|
|
1110
1110
|
}, function (props) {
|
|
1111
1111
|
return props.isFlowLayout
|
|
1112
1112
|
? "\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 "
|
|
1113
1113
|
: "\n .cds--chart-holder {\n height: 100vh !important;\n }\n ";
|
|
1114
1114
|
});
|
|
1115
|
-
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) {
|
|
1115
|
+
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) {
|
|
1116
1116
|
return props.isInverse
|
|
1117
|
-
? props.theme.colors.
|
|
1117
|
+
? props.theme.colors.indigo700
|
|
1118
1118
|
: props.theme.colors.neutral100;
|
|
1119
1119
|
}, function (props) {
|
|
1120
1120
|
return props.isInverse
|
|
1121
|
-
? props.theme.colors.
|
|
1121
|
+
? props.theme.colors.indigo600
|
|
1122
1122
|
: props.theme.colors.neutral100;
|
|
1123
1123
|
}, function (props) {
|
|
1124
|
-
return props.isInverse ? props.theme.colors.
|
|
1125
|
-
}, function (props) {
|
|
1124
|
+
return props.isInverse ? props.theme.colors.indigo700 : '';
|
|
1125
|
+
}, function (props) {
|
|
1126
|
+
return props.isInverse
|
|
1127
|
+
? props.theme.colors.neutral100
|
|
1128
|
+
: props.theme.colors.brand.navy;
|
|
1129
|
+
}, 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) {
|
|
1126
1130
|
return props.isInverse
|
|
1127
1131
|
? props.theme.colors.neutral100
|
|
1128
|
-
: props.theme.colors.
|
|
1132
|
+
: props.theme.colors.brand.navy;
|
|
1129
1133
|
}, function (props) { return props.theme.borderRadius; }, function (props) {
|
|
1130
|
-
return props.isInverse ? props.theme.colors.
|
|
1134
|
+
return props.isInverse ? props.theme.colors.indigo700 : '';
|
|
1131
1135
|
}, function (props) {
|
|
1132
|
-
return props.isInverse ? props.theme.colors.
|
|
1136
|
+
return props.isInverse ? props.theme.colors.indigo600 : '';
|
|
1133
1137
|
}, function (props) {
|
|
1134
1138
|
return props.isInverse
|
|
1135
1139
|
? curriedTransparentize(0.8, props.theme.colors.neutral100)
|
|
@@ -1139,11 +1143,19 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1139
1143
|
? curriedTransparentize(0.8, props.theme.colors.neutral100)
|
|
1140
1144
|
: 'inherit';
|
|
1141
1145
|
}, function (props) { return (props.isInverse ? '#202565' : ''); }, function (props) {
|
|
1142
|
-
return props.isInverse ? props.theme.colors.
|
|
1146
|
+
return props.isInverse ? props.theme.colors.indigo600 : '';
|
|
1143
1147
|
}, function (props) { return props.theme.bodyFont; }, function (props) {
|
|
1144
1148
|
return props.isInverse
|
|
1145
1149
|
? props.theme.colors.neutral100
|
|
1146
|
-
: props.theme.colors.
|
|
1150
|
+
: props.theme.colors.brand.navy;
|
|
1151
|
+
}, function (props) {
|
|
1152
|
+
return props.isInverse
|
|
1153
|
+
? props.theme.colors.neutral100
|
|
1154
|
+
: props.theme.colors.brand.navy;
|
|
1155
|
+
}, function (props) {
|
|
1156
|
+
return props.isInverse
|
|
1157
|
+
? props.theme.colors.neutral100
|
|
1158
|
+
: props.theme.colors.brand.navy;
|
|
1147
1159
|
}, function (props) {
|
|
1148
1160
|
return props.isInverse
|
|
1149
1161
|
? props.theme.colors.neutral900
|
|
@@ -1162,51 +1174,51 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1162
1174
|
return props.isInverse ? props.theme.colors.neutral100 : '';
|
|
1163
1175
|
}, function (props) { return (props.isInverse ? 'invert(1)' : ''); }, function (props) {
|
|
1164
1176
|
return props.isInverse
|
|
1165
|
-
? props.theme.colors.
|
|
1177
|
+
? props.theme.colors.indigo600
|
|
1166
1178
|
: props.theme.colors.neutral100;
|
|
1167
1179
|
}, function (props) {
|
|
1168
1180
|
return props.isInverse
|
|
1169
|
-
? props.theme.colors.
|
|
1181
|
+
? props.theme.colors.indigo600
|
|
1170
1182
|
: props.theme.colors.neutral100;
|
|
1171
1183
|
}, function (props) {
|
|
1172
1184
|
return props.isInverse
|
|
1173
|
-
? props.theme.colors.
|
|
1185
|
+
? props.theme.colors.indigo600
|
|
1174
1186
|
: props.theme.colors.neutral100;
|
|
1175
1187
|
}, function (props) {
|
|
1176
1188
|
return props.isInverse
|
|
1177
|
-
? props.theme.colors.
|
|
1189
|
+
? props.theme.colors.indigo600
|
|
1178
1190
|
: props.theme.colors.neutral100;
|
|
1179
1191
|
}, function (props) {
|
|
1180
1192
|
return props.isInverse
|
|
1181
|
-
? props.theme.colors.
|
|
1193
|
+
? props.theme.colors.indigo600
|
|
1182
1194
|
: props.theme.colors.neutral100;
|
|
1183
1195
|
}, function (props) {
|
|
1184
1196
|
return props.isInverse
|
|
1185
|
-
? props.theme.colors.
|
|
1197
|
+
? props.theme.colors.indigo600
|
|
1186
1198
|
: props.theme.colors.neutral100;
|
|
1187
1199
|
}, function (props) {
|
|
1188
1200
|
return props.isInverse
|
|
1189
|
-
? props.theme.colors.
|
|
1201
|
+
? props.theme.colors.indigo600
|
|
1190
1202
|
: props.theme.colors.neutral100;
|
|
1191
1203
|
}, function (props) {
|
|
1192
1204
|
return props.isInverse
|
|
1193
|
-
? props.theme.colors.
|
|
1205
|
+
? props.theme.colors.indigo600
|
|
1194
1206
|
: props.theme.colors.neutral100;
|
|
1195
1207
|
}, function (props) {
|
|
1196
1208
|
return props.isInverse
|
|
1197
|
-
? props.theme.colors.
|
|
1209
|
+
? props.theme.colors.indigo600
|
|
1198
1210
|
: props.theme.colors.neutral100;
|
|
1199
1211
|
}, function (props) {
|
|
1200
1212
|
return props.isInverse
|
|
1201
|
-
? props.theme.colors.
|
|
1213
|
+
? props.theme.colors.indigo600
|
|
1202
1214
|
: props.theme.colors.neutral100;
|
|
1203
1215
|
}, function (props) {
|
|
1204
1216
|
return props.isInverse
|
|
1205
|
-
? props.theme.colors.
|
|
1217
|
+
? props.theme.colors.indigo600
|
|
1206
1218
|
: props.theme.colors.neutral100;
|
|
1207
1219
|
}, function (props) {
|
|
1208
1220
|
return props.isInverse
|
|
1209
|
-
? props.theme.colors.
|
|
1221
|
+
? props.theme.colors.indigo600
|
|
1210
1222
|
: props.theme.colors.neutral100;
|
|
1211
1223
|
}, function (props) {
|
|
1212
1224
|
var chartColors = (props.isInverse
|
|
@@ -1222,7 +1234,7 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1222
1234
|
return props.isInverse ? props.theme.colors.focusInverse : '';
|
|
1223
1235
|
}, 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) {
|
|
1224
1236
|
return props.isInverse
|
|
1225
|
-
? props.theme.colors.
|
|
1237
|
+
? props.theme.colors.cyan500
|
|
1226
1238
|
: props.theme.colors.primary;
|
|
1227
1239
|
}, function (props) { return (props.isInverse ? props.theme.colors.neutral900 : ''); }, function (props) {
|
|
1228
1240
|
return props.isInverse
|
|
@@ -1244,7 +1256,7 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1244
1256
|
: props.theme.colors.focus;
|
|
1245
1257
|
}, function (props) {
|
|
1246
1258
|
return props.isInverse
|
|
1247
|
-
? props.theme.colors.
|
|
1259
|
+
? props.theme.colors.indigo600
|
|
1248
1260
|
: props.theme.colors.neutral100;
|
|
1249
1261
|
}, function (props) {
|
|
1250
1262
|
return props.isInverse
|
|
@@ -1260,13 +1272,17 @@ var CarbonChartWrapper = styled.div(templateObject_3 || (templateObject_3 = __ma
|
|
|
1260
1272
|
: props.theme.colors.neutral300;
|
|
1261
1273
|
}, function (props) {
|
|
1262
1274
|
return props.isInverse
|
|
1263
|
-
? props.theme.colors.
|
|
1275
|
+
? props.theme.colors.indigo600
|
|
1264
1276
|
: props.theme.colors.neutral100;
|
|
1265
1277
|
}, function (props) {
|
|
1266
1278
|
return props.isInverse
|
|
1267
1279
|
? props.theme.colors.focusInverse
|
|
1268
1280
|
: props.theme.colors.focus;
|
|
1269
|
-
}, function (props) { return props.theme.typeScale.size02.fontSize; }, function (props) {
|
|
1281
|
+
}, function (props) { return props.theme.typeScale.size02.fontSize; }, function (props) {
|
|
1282
|
+
return props.isInverse
|
|
1283
|
+
? props.theme.colors.neutral100
|
|
1284
|
+
: props.theme.colors.brand.navy;
|
|
1285
|
+
});
|
|
1270
1286
|
/* Carbon themes
|
|
1271
1287
|
https://github.com/carbon-design-system/carbon-charts/blob/master/packages/core/src/interfaces/enums.ts#L12)
|
|
1272
1288
|
*/
|
|
@@ -1277,23 +1293,15 @@ var ChartTheme;
|
|
|
1277
1293
|
ChartTheme["G90"] = "g90";
|
|
1278
1294
|
ChartTheme["G10"] = "g10";
|
|
1279
1295
|
})(ChartTheme || (ChartTheme = {}));
|
|
1280
|
-
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
|
|
1296
|
+
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) {
|
|
1281
1297
|
return props.isFlowLayout
|
|
1282
1298
|
? "\n position: relative;\n "
|
|
1283
1299
|
: "\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 ");
|
|
1284
|
-
}, function (props) {
|
|
1285
|
-
return props.isInverse
|
|
1286
|
-
? props.theme.colors.neutral100
|
|
1287
|
-
: props.theme.colors.primary500;
|
|
1288
|
-
}, function (props) {
|
|
1289
|
-
return props.isInverse
|
|
1290
|
-
? props.theme.colors.focusInverse
|
|
1291
|
-
: props.theme.colors.focus;
|
|
1292
1300
|
});
|
|
1293
1301
|
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) {
|
|
1294
1302
|
return props.isInverse
|
|
1295
1303
|
? props.theme.colors.neutral100
|
|
1296
|
-
: props.theme.colors.
|
|
1304
|
+
: props.theme.colors.brand.navy;
|
|
1297
1305
|
});
|
|
1298
1306
|
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; });
|
|
1299
1307
|
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"])));
|