@react-magma/charts 16.0.0 → 16.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 { TableIcon, FullscreenExitIcon, FullscreenIcon, MoreVertIcon } from 'react-magma-icons';
5
+ import { TableOutlinedIcon, FullscreenExitOutlinedIcon, FullscreenOutlinedIcon, MoreVertOutlinedIcon } from 'react-magma-icons';
6
6
 
7
7
  /******************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -1027,7 +1027,8 @@ 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, color: ButtonColor.subtle, icon: icon, variant: ButtonVariant.link, testId: "chart-more-options-button" }),
1030
+ React.createElement(Tooltip, { content: resolvedAriaLabel, isInverse: isInverse },
1031
+ React.createElement(DropdownButton, { "aria-label": resolvedAriaLabel, color: ButtonColor.subtle, icon: icon, variant: ButtonVariant.link, testId: "chart-more-options-button" })),
1031
1032
  React.createElement(DropdownContent, null, children)));
1032
1033
  }
1033
1034
 
@@ -1429,9 +1430,9 @@ function CarbonChartToolbar(_a) {
1429
1430
  React.createElement(ChartTitle, { as: "h".concat((_b = config.titleLevel) !== null && _b !== void 0 ? _b : 2), isInverse: isInverse, theme: theme }, resolvedTitle),
1430
1431
  config.titleSuffix ? (React.createElement(TitleSlot, null, config.titleSuffix)) : null),
1431
1432
  React.createElement(ToolbarActions, { theme: theme },
1432
- showTable && (React.createElement(ChartTableButton, { ariaLabel: resolvedTitle, icon: React.createElement(TableIcon, { 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(FullscreenIcon, { size: 20 }), exitIcon: React.createElement(FullscreenExitIcon, { size: 20 }), isInverse: isInverse, isFullscreen: isFullscreen, onClick: onToggleFullscreen })),
1434
- React.createElement(ChartMoreOptionsButton, { icon: React.createElement(MoreVertIcon, { size: 20 }), isInverse: isInverse }, moreOptionsContent))));
1433
+ showTable && (React.createElement(ChartTableButton, { ariaLabel: resolvedTitle, icon: React.createElement(TableOutlinedIcon, { size: 20 }), isInverse: isInverse, isTableOpen: isTableOpen, onClick: onOpenTable })),
1434
+ 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 })),
1435
+ React.createElement(ChartMoreOptionsButton, { icon: React.createElement(MoreVertOutlinedIcon, { size: 20 }), isInverse: isInverse }, moreOptionsContent))));
1435
1436
  }
1436
1437
  var CarbonChart = React.forwardRef(function (props, ref) {
1437
1438
  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"]);