sag_components 2.0.0-beta41 → 2.0.0-beta42

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.d.ts CHANGED
@@ -847,6 +847,7 @@ declare namespace TotalDoughnutChart {
847
847
  value: PropTypes.Requireable<number>;
848
848
  name: PropTypes.Requireable<string>;
849
849
  }>[]>;
850
+ const legendBelow: PropTypes.Requireable<boolean>;
850
851
  const itemsPercentagesValueAside: PropTypes.Requireable<boolean>;
851
852
  const itemsBoldedValues: PropTypes.Requireable<boolean>;
852
853
  const itemsValuesSeparateLine: PropTypes.Requireable<boolean>;
@@ -877,6 +878,8 @@ declare namespace TotalDoughnutChart {
877
878
  export { currencyType_1 as currencyType };
878
879
  const legendData_1: any[];
879
880
  export { legendData_1 as legendData };
881
+ const legendBelow_1: boolean;
882
+ export { legendBelow_1 as legendBelow };
880
883
  const itemsPercentagesValueAside_1: boolean;
881
884
  export { itemsPercentagesValueAside_1 as itemsPercentagesValueAside };
882
885
  const itemsBoldedValues_1: boolean;
package/dist/index.esm.js CHANGED
@@ -26359,7 +26359,6 @@ const scrollableStyles$5 = `
26359
26359
  const ControlsContainer$4 = styled.div`
26360
26360
  position: relative;
26361
26361
  font-family: "Poppins", sans-serif;
26362
- font-style: normal;
26363
26362
  font-size: ${props => props.rootFont};
26364
26363
  color: ${props => props.textColor};
26365
26364
  width: ${props => props.width};
@@ -26455,6 +26454,8 @@ const TextAfterValue = styled.div`
26455
26454
  `;
26456
26455
  const DoughnutChartAndLegendContainer = styled.div`
26457
26456
  display: flex;
26457
+ flex-direction: ${props => props.legendBelow ? 'column' : 'row'};
26458
+ gap: 12px;
26458
26459
  justify-content: space-between;
26459
26460
  margin-top: auto;
26460
26461
  padding: 0 20px ;
@@ -26520,6 +26521,7 @@ const TotalDoughnutChart = props => {
26520
26521
  currencySign,
26521
26522
  currencyType,
26522
26523
  legendData,
26524
+ legendBelow,
26523
26525
  itemsPercentagesValueAside,
26524
26526
  itemsBoldedValues,
26525
26527
  itemsValuesSeparateLine,
@@ -26614,7 +26616,9 @@ const TotalDoughnutChart = props => {
26614
26616
  className: "CurrencySign"
26615
26617
  }, currencySign ? getCurrencySign(currencyType, value) : ''), dotCut ? getFormattedValue(value && Math.abs(value) > 0 && value % 1 !== 0 ? value?.toFixed(2) : value) : getNumberWithCommas(value), dotCut ? getFormattedUnits(value) : ''), textAfterValue ? /*#__PURE__*/React$1.createElement(TextAfterValue, {
26616
26618
  className: "TextAfterValue"
26617
- }, textAfterValue) : '', addingBenchmark && /*#__PURE__*/React$1.createElement(Benchmark, null))), /*#__PURE__*/React$1.createElement(DoughnutChartAndLegendContainer, null, /*#__PURE__*/React$1.createElement(DoughnutChartContainer, {
26619
+ }, textAfterValue) : '', addingBenchmark && /*#__PURE__*/React$1.createElement(Benchmark, null))), /*#__PURE__*/React$1.createElement(DoughnutChartAndLegendContainer, {
26620
+ legendBelow: legendBelow
26621
+ }, /*#__PURE__*/React$1.createElement(DoughnutChartContainer, {
26618
26622
  width: width,
26619
26623
  height: height,
26620
26624
  ref: DoughnutChartContainerRef
@@ -26658,6 +26662,7 @@ TotalDoughnutChart.propTypes = {
26658
26662
  value: PropTypes.number,
26659
26663
  name: PropTypes.string
26660
26664
  })),
26665
+ legendBelow: PropTypes.bool,
26661
26666
  itemsPercentagesValueAside: PropTypes.bool,
26662
26667
  itemsBoldedValues: PropTypes.bool,
26663
26668
  itemsValuesSeparateLine: PropTypes.bool,
@@ -26680,6 +26685,7 @@ TotalDoughnutChart.defaultProps = {
26680
26685
  currencySign: false,
26681
26686
  currencyType: 'USD',
26682
26687
  legendData: [],
26688
+ legendBelow: false,
26683
26689
  itemsPercentagesValueAside: true,
26684
26690
  itemsBoldedValues: true,
26685
26691
  itemsValuesSeparateLine: true,