@redsift/charts 10.6.2 → 10.6.3

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 (3) hide show
  1. package/index.js +12 -30
  2. package/index.js.map +1 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -1133,8 +1133,11 @@ const BarChartLegendVariant = {
1133
1133
  * Component props.
1134
1134
  */
1135
1135
 
1136
+ var interactive$1 = "Interactive";
1136
1137
  var reset$1 = "Reset";
1137
1138
  var enUS$4 = {
1139
+ interactive: interactive$1,
1140
+ "static": "Static",
1138
1141
  "static-chart": "Static chart.",
1139
1142
  "interactive-chart": "Interactive chart.",
1140
1143
  "view-as-data-table": "View as data table",
@@ -1142,8 +1145,11 @@ var enUS$4 = {
1142
1145
  reset: reset$1
1143
1146
  };
1144
1147
 
1148
+ var interactive = "Interactif";
1145
1149
  var reset = "Réinitialiser";
1146
1150
  var frFR$4 = {
1151
+ interactive: interactive,
1152
+ "static": "Statique",
1147
1153
  "static-chart": "Graphique statique.",
1148
1154
  "interactive-chart": "Graphique intéractif.",
1149
1155
  "view-as-data-table": "Voir au format table de données",
@@ -1269,7 +1275,7 @@ const ChartContainer = /*#__PURE__*/forwardRef((props, ref) => {
1269
1275
  role: "region",
1270
1276
  "aria-hidden": "false"
1271
1277
  }, ariaLabel ? {
1272
- 'aria-label': `${ariaLabel}. ${mode}`
1278
+ 'aria-label': `${ariaLabel}. ${format(mode)}.`
1273
1279
  } : {}, ariaLabelledby ? {
1274
1280
  'aria-labelledby': `${ariaLabelledby} id${id}__interactive-or-not`
1275
1281
  } : {}, forwardedProps, {
@@ -1515,10 +1521,7 @@ const LoadingBarChart = /*#__PURE__*/forwardRef((props, ref) => {
1515
1521
  }), "Loading...");
1516
1522
  });
1517
1523
 
1518
- var interactive$7 = "interactive";
1519
1524
  var enUS$3 = {
1520
- interactive: interactive$7,
1521
- "static": "static",
1522
1525
  "interactive-chart": "Interactive Bar Chart",
1523
1526
  "static-chart": "Static Bar Chart",
1524
1527
  "definition-linear": "Linear Bar Chart with {barLength} bars.",
@@ -1533,10 +1536,7 @@ var enUS$3 = {
1533
1536
  "series-legend": "{category}, category {categoryIndex} of {categoryLength} with {barLength} bars"
1534
1537
  };
1535
1538
 
1536
- var interactive$6 = "interactif";
1537
1539
  var frFR$3 = {
1538
- interactive: interactive$6,
1539
- "static": "statique",
1540
1540
  "interactive-chart": "Diagrammes à bandes interactif",
1541
1541
  "static-chart": "Diagrammes à bandes statique",
1542
1542
  "definition-linear": "Diagrammes à bandes contenant {barLength} bandes réparties sur un axe linéraire.",
@@ -1638,7 +1638,7 @@ const RenderedOrdinalBarChart = /*#__PURE__*/forwardRef((props, ref) => {
1638
1638
  const scaleCategory = useMemo(() => scaleBand().domain(data.filter(datum => datum.value).map(datum => datum.key)).range([0, isHorizontal ? chartHeight : chartWidth]), [size]);
1639
1639
  const bars = data.filter(datum => datum.value);
1640
1640
  return /*#__PURE__*/React__default.createElement(StyledBarChart, _extends({
1641
- mode: typeof onBarClick === 'function' || typeof getBarAnchorProps === 'function' ? format('interactive') : format('static'),
1641
+ mode: typeof onBarClick === 'function' || typeof getBarAnchorProps === 'function' ? 'interactive' : 'static',
1642
1642
  definition: format('definition-ordinal', {
1643
1643
  barLength: bars.length
1644
1644
  }),
@@ -2163,7 +2163,7 @@ const RenderedLinearBarChart = /*#__PURE__*/forwardRef((props, ref) => {
2163
2163
  } = _ref9,
2164
2164
  forwardedLegendProps = _objectWithoutProperties(_ref9, _excluded2$3);
2165
2165
  return /*#__PURE__*/React__default.createElement(StyledBarChart, _extends({
2166
- mode: typeof onBarClick === 'function' || typeof getBarAnchorProps === 'function' ? format('interactive') : format('static'),
2166
+ mode: typeof onBarClick === 'function' || typeof getBarAnchorProps === 'function' ? 'interactive' : 'static',
2167
2167
  definition: hasCategory ? format('definition-linear-with-categories', {
2168
2168
  categoryLength: categories.length,
2169
2169
  barLength: bars.length
@@ -2768,10 +2768,7 @@ const EmptyLineChart = /*#__PURE__*/forwardRef((props, ref) => {
2768
2768
  })))));
2769
2769
  });
2770
2770
 
2771
- var interactive$5 = "interactive";
2772
2771
  var enUS$2 = {
2773
- interactive: interactive$5,
2774
- "static": "static",
2775
2772
  "interactive-chart": "Interactive Line Chart",
2776
2773
  "static-chart": "Static Line Chart",
2777
2774
  "definition-linear": "Linear Line Chart with {circleLength} circles.",
@@ -2786,10 +2783,7 @@ var enUS$2 = {
2786
2783
  "series-legend": "{category}, line {categoryIndex} of {categoryLength} with {circleLength} circles"
2787
2784
  };
2788
2785
 
2789
- var interactive$4 = "interactif";
2790
2786
  var frFR$2 = {
2791
- interactive: interactive$4,
2792
- "static": "statique",
2793
2787
  "interactive-chart": "Graphique en courbe interactif",
2794
2788
  "static-chart": "Graphique en courbe statique",
2795
2789
  "definition-linear": "Graphique en courbe contenant {circleLength} points répartis sur un axe linéraire.",
@@ -2983,7 +2977,7 @@ const RenderedLineChart = /*#__PURE__*/forwardRef((props, ref) => {
2983
2977
  } = _ref11,
2984
2978
  forwardedLegendProps = _objectWithoutProperties(_ref11, _excluded2$2);
2985
2979
  return /*#__PURE__*/React__default.createElement(StyledLineChart, _extends({
2986
- mode: typeof onDotClick === 'function' || typeof getDotAnchorProps === 'function' ? format('interactive') : format('static'),
2980
+ mode: typeof onDotClick === 'function' || typeof getDotAnchorProps === 'function' ? 'interactive' : 'static',
2987
2981
  definition: hasCategory ? format('definition-linear-with-categories', {
2988
2982
  categoryLength: categories.length,
2989
2983
  circleLength: circles.length
@@ -3529,21 +3523,15 @@ const EmptyPieChart = /*#__PURE__*/forwardRef((props, ref) => {
3529
3523
  }))));
3530
3524
  });
3531
3525
 
3532
- var interactive$3 = "interactive";
3533
3526
  var definition$2 = "Pie Chart with {sliceLength} slices.";
3534
3527
  var enUS$1 = {
3535
- interactive: interactive$3,
3536
- "static": "static",
3537
3528
  "interactive-chart": "Interactive Line Chart",
3538
3529
  "static-chart": "Static Line Chart",
3539
3530
  definition: definition$2
3540
3531
  };
3541
3532
 
3542
- var interactive$2 = "interactif";
3543
3533
  var definition$1 = "Diagramme circulaire contenant {sliceLength} secteurs.";
3544
3534
  var frFR$1 = {
3545
- interactive: interactive$2,
3546
- "static": "statique",
3547
3535
  "interactive-chart": "Diagramme circulaire interactif",
3548
3536
  "static-chart": "Diagramme circulaire statique",
3549
3537
  definition: definition$1
@@ -3650,7 +3638,7 @@ const RenderedPieChart = /*#__PURE__*/forwardRef((props, ref) => {
3650
3638
  } = _ref,
3651
3639
  forwardedLegendProps = _objectWithoutProperties(_ref, _excluded2$1);
3652
3640
  return /*#__PURE__*/React__default.createElement(StyledPieChart, _extends({
3653
- mode: typeof onSliceClick === 'function' || typeof getSliceAnchorProps === 'function' ? format('interactive') : format('static'),
3641
+ mode: typeof onSliceClick === 'function' || typeof getSliceAnchorProps === 'function' ? 'interactive' : 'static',
3654
3642
  definition: format('definition', {
3655
3643
  sliceLength: filteredPieData.length
3656
3644
  }),
@@ -4011,11 +3999,8 @@ const EmptyScatterPlot = /*#__PURE__*/forwardRef((props, ref) => {
4011
3999
  })))));
4012
4000
  });
4013
4001
 
4014
- var interactive$1 = "interactive";
4015
4002
  var definition = "Linear Scatter Plot with {circleLength} circles.";
4016
4003
  var enUS = {
4017
- interactive: interactive$1,
4018
- "static": "static",
4019
4004
  "interactive-chart": "Interactive Scatter Plot",
4020
4005
  "static-chart": "Static Scatter Plot",
4021
4006
  definition: definition,
@@ -4024,10 +4009,7 @@ var enUS = {
4024
4009
  "y-axis-definition": "The chart has {numAxis, plural, =0 {0 Y axis} =1 {1 Y axis} other {# Y axes}} displaying numbers from {start, number} to {end, number}."
4025
4010
  };
4026
4011
 
4027
- var interactive = "interactif";
4028
4012
  var frFR = {
4029
- interactive: interactive,
4030
- "static": "statique",
4031
4013
  "interactive-chart": "Graphique en courbe interactif",
4032
4014
  "static-chart": "Graphique en courbe statique",
4033
4015
  "definition-linear": "Graphique en courbe contenant {circleLength} points répartis sur un axe linéraire.",
@@ -4217,7 +4199,7 @@ const RenderedScatterPlot = /*#__PURE__*/forwardRef((props, ref) => {
4217
4199
  } = _ref,
4218
4200
  forwardedLegendProps = _objectWithoutProperties(_ref, _excluded2);
4219
4201
  return /*#__PURE__*/React__default.createElement(StyledScatterPlot, _extends({
4220
- mode: typeof onDotClick === 'function' || typeof getDotAnchorProps === 'function' ? format('interactive') : format('static'),
4202
+ mode: typeof onDotClick === 'function' || typeof getDotAnchorProps === 'function' ? 'interactive' : 'static',
4221
4203
  definition: hasCategory ? format('definition-with-categories', {
4222
4204
  categoryLength: categories.length,
4223
4205
  circleLength: circles.length