@react-magma/charts 16.0.0-v6-next.2 → 16.0.0-v6-next.4
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 +1738 -352
- package/dist/charts.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/components/CarbonChart/CarbonChart.test.js +1 -1
- package/src/components/CarbonChart/CarbonChart.tsx +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { Card, Datagrid, Spinner, useForceUpdate, StyledTooltip, ThemeContext, TooltipPosition, TooltipArrow, Checkbox, I18nContext, styled as styled$1, Paragraph, TabsContainer, TabPanel, useDescendants, TypographyVisualStyle, Tabs, Tab, Tooltip, IconButton, ButtonVariant, Announce, TabPanelsContainer, Table, TableHead, TableRow, TableHeaderCell, TableBody, TableCell, ButtonColor, Dropdown, DropdownButton, DropdownContent, ModalSize, Modal, Button, Heading, useIsInverse, useDeviceDetect, VisuallyHidden, InverseContext, DropdownMenuItem, DropdownDivider } from 'react-magma-dom';
|
|
4
|
-
import { KeyboardIcon,
|
|
4
|
+
import { KeyboardIcon, TableOutlinedIcon, FullscreenExitOutlinedIcon, FullscreenOutlinedIcon, MoreVertOutlinedIcon } from 'react-magma-icons';
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
6
|
import { LineSegment, Point, VictoryChart, VictoryVoronoiContainer, VictoryTooltip, VictoryAxis, VictoryLine, VictoryScatter } from 'victory';
|
|
7
7
|
import { ComboChart, ScatterChart, MeterChart, HistogramChart, GaugeChart, BulletChart, BubbleChart, BoxplotChart, RadarChart, PieChart, LollipopChart, LineChart as LineChart$1, DonutChart, StackedBarChart, GroupedBarChart, SimpleBarChart, StackedAreaChart, AreaChart } from '@carbon/charts-react';
|
|
@@ -2818,9 +2818,9 @@ function CarbonChartToolbar(_a) {
|
|
|
2818
2818
|
React.createElement(ChartTitle, { as: "h" + ((_b = config.titleLevel) !== null && _b !== void 0 ? _b : 2), isInverse: isInverse, theme: theme }, resolvedTitle),
|
|
2819
2819
|
config.titleSuffix ? (React.createElement(TitleSlot, null, config.titleSuffix)) : null),
|
|
2820
2820
|
React.createElement(ToolbarActions, { theme: theme },
|
|
2821
|
-
showTable && (React.createElement(ChartTableButton, { ariaLabel: resolvedTitle, icon: React.createElement(
|
|
2822
|
-
showFullscreen && (React.createElement(ChartFullscreenButton, { ariaLabel: (isFullscreen ? 'Exit' : 'View') + " " + resolvedTitle + " full screen", icon: React.createElement(
|
|
2823
|
-
React.createElement(ChartMoreOptionsButton, { icon: React.createElement(
|
|
2821
|
+
showTable && (React.createElement(ChartTableButton, { ariaLabel: resolvedTitle, icon: React.createElement(TableOutlinedIcon, { size: 20 }), isInverse: isInverse, isTableOpen: isTableOpen, onClick: onOpenTable })),
|
|
2822
|
+
showFullscreen && (React.createElement(ChartFullscreenButton, { ariaLabel: (isFullscreen ? 'Exit' : 'View') + " " + resolvedTitle + " full screen", icon: React.createElement(FullscreenOutlinedIcon, { size: 20 }), exitIcon: React.createElement(FullscreenExitOutlinedIcon, { size: 20 }), isInverse: isInverse, isFullscreen: isFullscreen, onClick: onToggleFullscreen })),
|
|
2823
|
+
React.createElement(ChartMoreOptionsButton, { icon: React.createElement(MoreVertOutlinedIcon, { size: 20 }), isInverse: isInverse }, moreOptionsContent))));
|
|
2824
2824
|
}
|
|
2825
2825
|
var CarbonChart = React.forwardRef(function (props, ref) {
|
|
2826
2826
|
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"]);
|