@react-magma/charts 14.2.0 → 15.0.0-next.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.
Files changed (89) hide show
  1. package/dist/charts.js +1625 -187
  2. package/dist/charts.js.map +1 -1
  3. package/dist/charts.modern.module.js +1627 -190
  4. package/dist/charts.modern.module.js.map +1 -1
  5. package/dist/charts.umd.js +49219 -28201
  6. package/dist/charts.umd.js.map +1 -1
  7. package/dist/components/CarbonChart/CarbonChart.d.ts +1 -1
  8. package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +310 -0
  9. package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +136 -0
  10. package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +232 -0
  11. package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +82 -0
  12. package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +234 -0
  13. package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +266 -0
  14. package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +53 -0
  15. package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +196 -0
  16. package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +35 -0
  17. package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +580 -0
  18. package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +120 -0
  19. package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +43 -0
  20. package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +89 -0
  21. package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +577 -0
  22. package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +55 -0
  23. package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +127 -0
  24. package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +101 -0
  25. package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +98 -0
  26. package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +173 -0
  27. package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +51 -0
  28. package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +38 -0
  29. package/dist/components/ChartTable/ChartTable.stories.d.ts +166 -0
  30. package/dist/components/LineChart/Chart.d.ts +27 -0
  31. package/dist/components/LineChart/ChartDataTable.d.ts +17 -0
  32. package/dist/components/LineChart/CustomAxisComponent.d.ts +3 -0
  33. package/dist/components/LineChart/CustomPointComponent.d.ts +17 -0
  34. package/dist/components/LineChart/DataTable.d.ts +5 -0
  35. package/dist/components/LineChart/GraphTooltip.d.ts +3 -0
  36. package/dist/components/LineChart/LegendButton.d.ts +6 -0
  37. package/dist/components/LineChart/LineChart.d.ts +67 -0
  38. package/dist/components/LineChart/LineChart.stories.d.ts +113 -0
  39. package/dist/components/LineChart/index.d.ts +1 -0
  40. package/dist/components/LineChart/magma-charts.d.ts +1 -0
  41. package/dist/index.d.ts +1 -0
  42. package/package.json +19 -22
  43. package/src/components/CarbonChart/CarbonChart.test.js +185 -164
  44. package/src/components/CarbonChart/CarbonChart.tsx +79 -29
  45. package/src/components/CarbonChart/CarbonChartArea.stories.tsx +5 -3
  46. package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +5 -3
  47. package/src/components/CarbonChart/CarbonChartBar.stories.tsx +5 -3
  48. package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +5 -3
  49. package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +5 -3
  50. package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +5 -3
  51. package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +5 -3
  52. package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +5 -3
  53. package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +5 -3
  54. package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +5 -3
  55. package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +5 -3
  56. package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +5 -3
  57. package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +5 -3
  58. package/src/components/CarbonChart/CarbonChartLine.stories.tsx +5 -3
  59. package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +5 -3
  60. package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +5 -3
  61. package/src/components/CarbonChart/CarbonChartPie.stories.tsx +5 -3
  62. package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +5 -3
  63. package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +5 -3
  64. package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +5 -3
  65. package/src/components/CarbonChart/CarbonChartStep.stories.tsx +5 -3
  66. package/src/components/ChartTable/ChartDataTable.tsx +0 -3
  67. package/src/components/ChartTable/ChartMoreOptionsButton.tsx +0 -1
  68. package/src/components/ChartTable/ChartTable.test.js +0 -8
  69. package/src/components/ChartTable/ChartTableButton.tsx +0 -1
  70. package/src/components/ChartTable/ChartToolbar.tsx +0 -1
  71. package/src/components/ChartTable/chartToolbarI18n.ts +1 -1
  72. package/src/components/LineChart/Chart.tsx +241 -0
  73. package/src/components/LineChart/ChartDataTable.test.js +165 -0
  74. package/src/components/LineChart/ChartDataTable.tsx +135 -0
  75. package/src/components/LineChart/CustomAxisComponent.tsx +30 -0
  76. package/src/components/LineChart/CustomPointComponent.tsx +93 -0
  77. package/src/components/LineChart/DataTable.tsx +57 -0
  78. package/src/components/LineChart/GraphTooltip.tsx +100 -0
  79. package/src/components/LineChart/LegendButton.tsx +77 -0
  80. package/src/components/LineChart/LineChart.stories.tsx +399 -0
  81. package/src/components/LineChart/LineChart.test.js +501 -0
  82. package/src/components/LineChart/LineChart.tsx +669 -0
  83. package/src/components/LineChart/index.ts +1 -0
  84. package/src/components/LineChart/magma-charts.ts +279 -0
  85. package/src/components/LineChart/test/exampleChartData.js +289 -0
  86. package/src/hooks/useCarbonModalFocusManagement.ts +0 -12
  87. package/src/index.ts +1 -0
  88. package/dist/components/ChartTable/ChartTable.test.d.ts +0 -1
  89. package/src/components/ChartTable/ChartTable.test.tsx +0 -452
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  titleLevel: {
22
24
  control: { type: 'select' },
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { StoryFn, Meta } from '@storybook/react-webpack5';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -15,8 +15,10 @@ export default {
15
15
  },
16
16
  },
17
17
  type: {
18
- control: { type: 'select' },
19
- options: Object.values(CarbonChartType),
18
+ control: {
19
+ type: 'select',
20
+ options: CarbonChartType,
21
+ },
20
22
  },
21
23
  },
22
24
  } as Meta;
@@ -32,7 +32,6 @@ function deriveColumns(
32
32
  dataSet: Array<Record<string, React.ReactNode>>
33
33
  ): ChartDataTableColumn[] {
34
34
  if (!dataSet.length) return [];
35
-
36
35
  return Object.keys(dataSet[0]).map(key => ({
37
36
  header: key.charAt(0).toUpperCase() + key.slice(1),
38
37
  key,
@@ -45,7 +44,6 @@ export function ChartDataTable({
45
44
  isInverse,
46
45
  }: ChartDataTableProps) {
47
46
  const resolvedColumns = columns || deriveColumns(dataSet);
48
-
49
47
  return (
50
48
  <Table isInverse={isInverse}>
51
49
  <TableHead>
@@ -60,7 +58,6 @@ export function ChartDataTable({
60
58
  const rowKey = resolvedColumns
61
59
  .map(col => String(row[col.key] ?? ''))
62
60
  .join('-');
63
-
64
61
  return (
65
62
  <TableRow key={`${rowKey}-${index}`}>
66
63
  {resolvedColumns.map(col => (
@@ -34,7 +34,6 @@ export function ChartMoreOptionsButton({
34
34
  }: ChartMoreOptionsButtonProps) {
35
35
  const t = useChartToolbarI18n();
36
36
  const resolvedAriaLabel = ariaLabel ?? t.moreOptionsAriaLabel;
37
-
38
37
  return (
39
38
  <Dropdown isInverse={isInverse}>
40
39
  <DropdownButton
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
 
3
- import '@testing-library/jest-dom';
4
3
  import {
5
4
  act,
6
5
  render,
@@ -63,7 +62,6 @@ describe('ChartDataTable', () => {
63
62
  { header: 'Category', key: 'group' },
64
63
  { header: 'Count', key: 'value' },
65
64
  ];
66
-
67
65
  render(<ChartDataTable columns={columns} dataSet={dataSet} />);
68
66
 
69
67
  expect(
@@ -168,7 +166,6 @@ describe('ChartTableModal', () => {
168
166
  it('calls onClose when close button is activated', async () => {
169
167
  jest.useFakeTimers();
170
168
  const onClose = jest.fn();
171
-
172
169
  render(
173
170
  <ChartTableModal
174
171
  dataSet={dataSet}
@@ -220,7 +217,6 @@ describe('ChartTableButton', () => {
220
217
  );
221
218
 
222
219
  const button = screen.getByRole('button', { name: 'Overall Performance' });
223
-
224
220
  expect(button).toHaveAttribute('aria-haspopup', 'dialog');
225
221
  });
226
222
 
@@ -256,7 +252,6 @@ describe('ChartTableButton', () => {
256
252
 
257
253
  it('calls onClick when activated', () => {
258
254
  const onClick = jest.fn();
259
-
260
255
  render(
261
256
  <ChartTableButton
262
257
  ariaLabel="Overall Performance"
@@ -284,7 +279,6 @@ describe('ChartTableButton', () => {
284
279
  );
285
280
 
286
281
  const button = screen.getByRole('button', { name: 'Overall Performance' });
287
-
288
282
  fireEvent.mouseEnter(button);
289
283
 
290
284
  await waitFor(() => {
@@ -310,13 +304,11 @@ describe('ChartFullscreenButton', () => {
310
304
  const button = screen.getByRole('button', {
311
305
  name: 'View chart in full screen',
312
306
  });
313
-
314
307
  expect(button).not.toHaveAttribute('aria-haspopup');
315
308
  });
316
309
 
317
310
  it('calls onClick when activated', () => {
318
311
  const onClick = jest.fn();
319
-
320
312
  render(
321
313
  <ChartFullscreenButton
322
314
  ariaLabel="View chart in full screen"
@@ -38,7 +38,6 @@ export function ChartTableButton({
38
38
  }: ChartTableButtonProps) {
39
39
  const t = useChartToolbarI18n();
40
40
  const resolvedTooltip = tooltipContent ?? t.showAsTableTooltip;
41
-
42
41
  return (
43
42
  <Tooltip content={resolvedTooltip} isInverse={isInverse}>
44
43
  <IconButton
@@ -39,7 +39,6 @@ export function ChartToolbar({
39
39
  title,
40
40
  }: ChartToolbarProps) {
41
41
  const theme = React.useContext(ThemeContext);
42
-
43
42
  return (
44
43
  <ToolbarWrapper>
45
44
  <Heading level={headingLevel} noMargins visualStyle={headingVisualStyle}>
@@ -32,7 +32,7 @@ const defaults: ChartToolbarI18n = {
32
32
  * Reads chart toolbar i18n strings from the I18nContext if available,
33
33
  * falling back to English defaults.
34
34
  */
35
-
35
+ // eslint-disable-next-line complexity
36
36
  export function useChartToolbarI18n(): ChartToolbarI18n {
37
37
  const i18n = React.useContext(I18nContext);
38
38
  const toolbar = (i18n.charts as { toolbar?: Partial<ChartToolbarI18n> })