@react-magma/charts 17.0.0-next.2 → 17.0.0-next.3
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 +3 -3
- package/dist/charts.js.map +1 -1
- package/dist/charts.modern.module.js +4 -4
- package/dist/charts.modern.module.js.map +1 -1
- package/dist/charts.umd.js +288 -239
- package/dist/charts.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CarbonChart/CarbonChart.tsx +8 -8
|
@@ -2,7 +2,7 @@ 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
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
|
-
import {
|
|
5
|
+
import { TableOutlinedIcon, FullscreenExitOutlinedIcon, FullscreenOutlinedIcon, MoreVertOutlinedIcon } from 'react-magma-icons';
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1429,9 +1429,9 @@ function CarbonChartToolbar(_a) {
|
|
|
1429
1429
|
React.createElement(ChartTitle, { as: "h".concat((_b = config.titleLevel) !== null && _b !== void 0 ? _b : 2), isInverse: isInverse, theme: theme }, resolvedTitle),
|
|
1430
1430
|
config.titleSuffix ? (React.createElement(TitleSlot, null, config.titleSuffix)) : null),
|
|
1431
1431
|
React.createElement(ToolbarActions, { theme: theme },
|
|
1432
|
-
showTable && (React.createElement(ChartTableButton, { ariaLabel: resolvedTitle, icon: React.createElement(
|
|
1433
|
-
showFullscreen && (React.createElement(ChartFullscreenButton, { ariaLabel: "".concat(isFullscreen ? 'Exit' : 'View', " ").concat(resolvedTitle, " full screen"), icon: React.createElement(
|
|
1434
|
-
React.createElement(ChartMoreOptionsButton, { icon: React.createElement(
|
|
1432
|
+
showTable && (React.createElement(ChartTableButton, { ariaLabel: resolvedTitle, icon: React.createElement(TableOutlinedIcon, { size: 20 }), isInverse: isInverse, isTableOpen: isTableOpen, onClick: onOpenTable })),
|
|
1433
|
+
showFullscreen && (React.createElement(ChartFullscreenButton, { ariaLabel: "".concat(isFullscreen ? 'Exit' : 'View', " ").concat(resolvedTitle, " full screen"), icon: React.createElement(FullscreenOutlinedIcon, { size: 20 }), exitIcon: React.createElement(FullscreenExitOutlinedIcon, { size: 20 }), isInverse: isInverse, isFullscreen: isFullscreen, onClick: onToggleFullscreen })),
|
|
1434
|
+
React.createElement(ChartMoreOptionsButton, { icon: React.createElement(MoreVertOutlinedIcon, { size: 20 }), isInverse: isInverse }, moreOptionsContent))));
|
|
1435
1435
|
}
|
|
1436
1436
|
var CarbonChart = React.forwardRef(function (props, ref) {
|
|
1437
1437
|
var testId = props.testId, isInverseProp = props.isInverse, type = props.type, dataSet = props.dataSet, options = props.options, additionalContent = props.additionalContent, ariaLabel = props.ariaLabel, chartToolbar = props.chartToolbar, rest = __rest(props, ["testId", "isInverse", "type", "dataSet", "options", "additionalContent", "ariaLabel", "chartToolbar"]);
|