@apia/charts 0.3.5 → 0.3.6

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/index.js CHANGED
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import React, { useCallback, createContext, useState, useRef, useContext, useMemo, useLayoutEffect, createElement, useEffect } from 'react';
3
3
  import { Box, useThemeUI, Heading, Select, spacing, makeStyledComponent, responsive, getVariant } from '@apia/theme';
4
4
  import { uniqueId } from 'lodash';
5
- import { useImperativeComponentContext, makeImperativeComponent, arrayOrArray, useImperativeComponentEvents, getValueByPath, usePanAndZoom, animate, addBoundary, usePrevious, getIndex, noNaN } from '@apia/util';
5
+ import { useImperativeComponentContext, makeImperativeComponent, arrayOrArray, useImperativeComponentEvents, getValueByPath, usePanAndZoom, getLabel, animate, addBoundary, usePrevious, getIndex, noNaN } from '@apia/util';
6
6
  import { scaleBand, scaleLog, scaleLinear, scaleOrdinal } from '@visx/scale';
7
7
  import { Grid } from '@visx/visx';
8
8
  import { Group } from '@visx/group';
@@ -780,7 +780,7 @@ const HorizontalBars = ({
780
780
  }
781
781
  ),
782
782
  /* @__PURE__ */ jsx(Box, { className: "chartLegend__Wrapper", children: chart.showLegend && colorReference.length !== 0 && /* @__PURE__ */ jsxs(Box, { className: "chart__legend__wrapper", children: [
783
- /* @__PURE__ */ jsx(Heading, { as: "h6", children: "Legend" }),
783
+ /* @__PURE__ */ jsx(Heading, { as: "h6", children: getLabel("mnuLeyends").text }),
784
784
  /* @__PURE__ */ jsx(
785
785
  LegendContainer,
786
786
  {
@@ -1214,7 +1214,7 @@ const PieChart = ({
1214
1214
  ),
1215
1215
  /* @__PURE__ */ jsxs(Box, { className: "chartLegend__Wrapper", children: [
1216
1216
  !chart.hideSelector && charts.length > 1 && /* @__PURE__ */ jsxs(Box, { className: "chart__combo__wrapper", children: [
1217
- /* @__PURE__ */ jsx(Heading, { as: "h6", children: "Chart Selector" }),
1217
+ /* @__PURE__ */ jsx(Heading, { as: "h6", children: getLabel("lblChartSel").text }),
1218
1218
  /* @__PURE__ */ jsx(
1219
1219
  ChartSelector,
1220
1220
  {
@@ -1227,7 +1227,7 @@ const PieChart = ({
1227
1227
  )
1228
1228
  ] }),
1229
1229
  chart.showLegend && colorReference.length > 1 && /* @__PURE__ */ jsxs(Box, { className: "chart__legend__wrapper", children: [
1230
- /* @__PURE__ */ jsx(Heading, { as: "h6", children: "Legend" }),
1230
+ /* @__PURE__ */ jsx(Heading, { as: "h6", children: getLabel("mnuLeyends").text }),
1231
1231
  /* @__PURE__ */ jsx(LegendContainer, { id: chartId, references: colorReference })
1232
1232
  ] })
1233
1233
  ] })
@@ -1825,7 +1825,7 @@ const VerticalBars = ({
1825
1825
  }
1826
1826
  ),
1827
1827
  /* @__PURE__ */ jsx(Box, { className: "chartLegend__Wrapper", children: chart.showLegend && colorReference.length !== 0 && /* @__PURE__ */ jsxs(Box, { className: "chart__legend__wrapper", children: [
1828
- /* @__PURE__ */ jsx(Heading, { as: "h6", children: "Legend" }),
1828
+ /* @__PURE__ */ jsx(Heading, { as: "h6", children: getLabel("mnuLeyends").text }),
1829
1829
  /* @__PURE__ */ jsx(
1830
1830
  LegendContainer,
1831
1831
  {
@@ -2354,7 +2354,7 @@ const LineChart = ({
2354
2354
  }
2355
2355
  ) }),
2356
2356
  /* @__PURE__ */ jsx(Box, { className: "chartLegend__Wrapper", children: chart.showLegend && colorReference.length !== 0 && /* @__PURE__ */ jsxs(Box, { className: "chart__legend__wrapper", children: [
2357
- /* @__PURE__ */ jsx(Heading, { as: "h6", children: "Legend" }),
2357
+ /* @__PURE__ */ jsx(Heading, { as: "h6", children: getLabel("mnuLeyends").text }),
2358
2358
  /* @__PURE__ */ jsx(LegendContainer, { id: chartId, references: colorReference })
2359
2359
  ] }) })
2360
2360
  ] });
@@ -2694,7 +2694,7 @@ const WaterfallBars = (_a) => {
2694
2694
  }
2695
2695
  ),
2696
2696
  /* @__PURE__ */ jsx(Box, { className: "chartLegend__Wrapper", children: !chart.hideSelector && charts.length > 1 && /* @__PURE__ */ jsxs(Box, { className: "chart__combo__wrapper", children: [
2697
- /* @__PURE__ */ jsx(Heading, { as: "h6", children: "Chart Selector" }),
2697
+ /* @__PURE__ */ jsx(Heading, { as: "h6", children: getLabel("lblChartSel").text }),
2698
2698
  /* @__PURE__ */ jsx(
2699
2699
  ChartSelector,
2700
2700
  {