@react-magma/charts 14.0.0 → 15.0.0-rc.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.
- package/dist/charts.js +1 -9
- package/dist/charts.js.map +1 -1
- package/dist/charts.modern.module.js +1 -9
- package/dist/charts.modern.module.js.map +1 -1
- package/dist/charts.umd.js +18 -24
- package/dist/charts.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/components/CarbonChart/CarbonChart.tsx +3 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-magma/charts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"identity-obj-proxy": "3.0.0",
|
|
51
51
|
"react": "18.3.1",
|
|
52
52
|
"react-dom": "18.3.1",
|
|
53
|
-
"react-magma-dom": "^5.0.
|
|
53
|
+
"react-magma-dom": "^5.1.0-rc.4",
|
|
54
54
|
"react-magma-icons": "^3.2.5",
|
|
55
55
|
"rollup": "^4.52.4",
|
|
56
56
|
"rollup-plugin-postcss": "^4.0.2"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@emotion/styled": "^11.14.0",
|
|
61
61
|
"react": "^18.3.1",
|
|
62
62
|
"react-dom": "^18.3.1",
|
|
63
|
-
"react-magma-dom": "^5.0.
|
|
63
|
+
"react-magma-dom": "^5.1.0-rc.4",
|
|
64
64
|
"react-magma-icons": "^3.2.5"
|
|
65
65
|
},
|
|
66
66
|
"engines": {
|
|
@@ -1203,15 +1203,6 @@ export const CarbonChart = React.forwardRef<HTMLDivElement, CarbonChartProps>(
|
|
|
1203
1203
|
|
|
1204
1204
|
const ChartType = allCharts[type] as any;
|
|
1205
1205
|
|
|
1206
|
-
// Adding aria-label to main SVG container
|
|
1207
|
-
React.useEffect(() => {
|
|
1208
|
-
if (ariaLabel) {
|
|
1209
|
-
document.querySelectorAll('.graph-frame ').forEach(div => {
|
|
1210
|
-
div.setAttribute('aria-label', ariaLabel);
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
});
|
|
1214
|
-
|
|
1215
1206
|
const groupsLength = Object.keys(buildColors()).length;
|
|
1216
1207
|
|
|
1217
1208
|
const showTable = chartToolbar?.showAsTable !== false;
|
|
@@ -1224,6 +1215,9 @@ export const CarbonChart = React.forwardRef<HTMLDivElement, CarbonChartProps>(
|
|
|
1224
1215
|
theme={theme}
|
|
1225
1216
|
className={`carbon-chart-wrapper${chartToolbar ? ' has-magma-toolbar' : ''}`}
|
|
1226
1217
|
groupsLength={groupsLength < 6 ? groupsLength : 14}
|
|
1218
|
+
role="region"
|
|
1219
|
+
aria-label={ariaLabel || chartTitle}
|
|
1220
|
+
aria-roledescription="chart"
|
|
1227
1221
|
{...rest}
|
|
1228
1222
|
>
|
|
1229
1223
|
<ChartContentWrapper>
|