sag_components 2.0.0-beta15 → 2.0.0-beta16

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
@@ -27698,9 +27698,9 @@ const LegendColorRectangle$1 = dt.div`
27698
27698
  `;
27699
27699
 
27700
27700
  /* eslint-disable no-nested-ternary */
27701
- const ICON_TYPE_SQUARE$2 = 'Square';
27702
- const ICON_TYPE_LEGEND_UNION_ICON$2 = 'LegendUnionIcon';
27703
- const ICON_TYPE_LEGEND_LINE_ICON$2 = 'LegendLineIcon';
27701
+ const ICON_TYPE_SQUARE$1 = 'Square';
27702
+ const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
27703
+ const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
27704
27704
  const PerformanceAnalyticsLegend = props => {
27705
27705
  const {
27706
27706
  className,
@@ -27719,13 +27719,13 @@ const PerformanceAnalyticsLegend = props => {
27719
27719
  id: "LegendDataContainer"
27720
27720
  }, legendData?.map((item, i) => /*#__PURE__*/React__default["default"].createElement(TitleAndIconContainer, {
27721
27721
  key: `${item.title + i}`
27722
- }, item.iconType === ICON_TYPE_SQUARE$2 ? /*#__PURE__*/React__default["default"].createElement(LegendColorRectangle$1, {
27722
+ }, item.iconType === ICON_TYPE_SQUARE$1 ? /*#__PURE__*/React__default["default"].createElement(LegendColorRectangle$1, {
27723
27723
  color: item.iconColor
27724
- }) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$2 ? /*#__PURE__*/React__default["default"].createElement(LegendUnionIcon, {
27724
+ }) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$1 ? /*#__PURE__*/React__default["default"].createElement(LegendUnionIcon, {
27725
27725
  width: 30,
27726
27726
  height: 30,
27727
27727
  color: item.iconColor
27728
- }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$2 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
27728
+ }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$1 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
27729
27729
  color: item.iconColor
27730
27730
  }) : '', /*#__PURE__*/React__default["default"].createElement(Title$7, {
27731
27731
  id: "Title",
@@ -27738,7 +27738,7 @@ PerformanceAnalyticsLegend.propTypes = {
27738
27738
  height: PropTypes.string,
27739
27739
  legendData: PropTypes.arrayOf(PropTypes.shape({
27740
27740
  title: PropTypes.string.isRequired,
27741
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$2, ICON_TYPE_LEGEND_UNION_ICON$2, ICON_TYPE_LEGEND_LINE_ICON$2]).isRequired,
27741
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
27742
27742
  iconColor: PropTypes.string.isRequired
27743
27743
  }))
27744
27744
  };
@@ -27748,15 +27748,15 @@ PerformanceAnalyticsLegend.defaultProps = {
27748
27748
  height: '',
27749
27749
  legendData: [{
27750
27750
  title: '',
27751
- iconType: ICON_TYPE_SQUARE$2,
27751
+ iconType: ICON_TYPE_SQUARE$1,
27752
27752
  iconColor: '#1F7677'
27753
27753
  }]
27754
27754
  };
27755
27755
 
27756
27756
  /* eslint-disable no-nested-ternary */
27757
- const ICON_TYPE_SQUARE$1 = 'Square';
27758
- const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
27759
- const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
27757
+ const ICON_TYPE_SQUARE = 'Square';
27758
+ const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
27759
+ const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
27760
27760
  const BarChartsByWeeks = props => {
27761
27761
  const {
27762
27762
  className,
@@ -27997,7 +27997,7 @@ BarChartsByWeeks.propTypes = {
27997
27997
  showLegend: PropTypes.bool,
27998
27998
  legendData: PropTypes.arrayOf(PropTypes.shape({
27999
27999
  title: PropTypes.string.isRequired,
28000
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
28000
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
28001
28001
  iconColor: PropTypes.string.isRequired
28002
28002
  })),
28003
28003
  showTwoBars: PropTypes.bool,
@@ -28061,11 +28061,11 @@ BarChartsByWeeks.defaultProps = {
28061
28061
  isTitleOriganal: false,
28062
28062
  legendData: [{
28063
28063
  title: 'Sales',
28064
- iconType: ICON_TYPE_SQUARE$1,
28064
+ iconType: ICON_TYPE_SQUARE,
28065
28065
  iconColor: '#90CE9C'
28066
28066
  }, {
28067
28067
  title: 'Category Average',
28068
- iconType: ICON_TYPE_LEGEND_LINE_ICON$1,
28068
+ iconType: ICON_TYPE_LEGEND_LINE_ICON,
28069
28069
  iconColor: '#C906FD'
28070
28070
  }],
28071
28071
  showTwoBars: false,
@@ -30277,9 +30277,6 @@ const LabelText = dt.tspan`
30277
30277
  `;
30278
30278
 
30279
30279
  /* eslint-disable react/prop-types */
30280
- const ICON_TYPE_SQUARE = 'Square';
30281
- const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
30282
- const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
30283
30280
 
30284
30281
  /* BarCharts */
30285
30282
  const BarChart = props => {
@@ -30475,78 +30472,76 @@ const BarChart = props => {
30475
30472
  legendData: legendData
30476
30473
  })));
30477
30474
  };
30478
- BarChart.propTypes = {
30479
- title: PropTypes.string,
30480
- barChartData: PropTypes.arrayOf(PropTypes.shape({
30481
- title: PropTypes.string,
30482
- date: PropTypes.string,
30483
- value: PropTypes.number
30484
- })),
30485
- width: PropTypes.string,
30486
- height: PropTypes.string,
30487
- barSize: PropTypes.number,
30488
- barFontSizeValue: PropTypes.string,
30489
- barChartColor: PropTypes.string,
30490
- showDollarSign: PropTypes.bool,
30491
- isDollar: PropTypes.bool,
30492
- showLegend: PropTypes.bool,
30493
- legendData: PropTypes.arrayOf(PropTypes.shape({
30494
- title: PropTypes.string.isRequired,
30495
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
30496
- iconColor: PropTypes.string.isRequired
30497
- })),
30498
- showReferenceLine: PropTypes.bool,
30499
- referenceLinePoint: PropTypes.number,
30500
- referenceLineColor: PropTypes.string,
30501
- referenceLineDashed: PropTypes.string,
30502
- showCurrentCampaignStyle: PropTypes.bool,
30503
- currentBarColor: PropTypes.string,
30504
- isPercent: PropTypes.bool
30505
- };
30506
- BarChart.defaultProps = {
30507
- title: 'String',
30508
- barChartData: [{
30509
- title: 'Food Lion',
30510
- date: '15.01.24-31.01.24',
30511
- value: 542366
30512
- }, {
30513
- title: 'Hannaford',
30514
- date: '15.01.24-31.01.24',
30515
- value: 699511
30516
- }, {
30517
- title: 'The Giant Company',
30518
- date: '15.01.24-31.01.24',
30519
- value: 403092
30520
- }, {
30521
- title: 'Giant Food',
30522
- date: '15.01.24-31.01.24',
30523
- value: 396184
30524
- }, {
30525
- title: 'Stop&Shop',
30526
- date: '15.01.24-31.01.24',
30527
- value: 415317
30528
- }],
30529
- width: '100%',
30530
- height: '100%',
30531
- barSize: 60,
30532
- barFontSizeValue: '0.6em',
30533
- barChartColor: '#BD9EFF',
30534
- showDollarSign: true,
30535
- isDollar: true,
30536
- showLegend: true,
30537
- legendData: [{
30538
- title: 'Incremental Sales',
30539
- iconType: ICON_TYPE_SQUARE,
30540
- iconColor: '#BD9EFF'
30541
- }],
30542
- showReferenceLine: false,
30543
- referenceLinePoint: 0,
30544
- referenceLineColor: '#212121',
30545
- referenceLineDashed: '5',
30546
- showCurrentCampaignStyle: false,
30547
- currentBarColor: '#90CE9C',
30548
- isPercent: false
30549
- };
30475
+
30476
+ // BarChart.propTypes = {
30477
+ // title: PropTypes.string,
30478
+ // barChartData: PropTypes.arrayOf(
30479
+ // PropTypes.shape({
30480
+ // title: PropTypes.string,
30481
+ // date: PropTypes.string,
30482
+ // value: PropTypes.number,
30483
+ // }),
30484
+ // ),
30485
+ // width: PropTypes.string,
30486
+ // height: PropTypes.string,
30487
+ // barSize: PropTypes.number,
30488
+ // barFontSizeValue: PropTypes.string,
30489
+ // barChartColor: PropTypes.string,
30490
+ // showDollarSign: PropTypes.bool,
30491
+ // isDollar: PropTypes.bool,
30492
+ // showLegend: PropTypes.bool,
30493
+ // legendData: PropTypes.arrayOf(
30494
+ // PropTypes.shape({
30495
+ // title: PropTypes.string.isRequired,
30496
+ // iconType: PropTypes.oneOf([
30497
+ // ICON_TYPE_SQUARE,
30498
+ // ICON_TYPE_LEGEND_UNION_ICON,
30499
+ // ICON_TYPE_LEGEND_LINE_ICON,
30500
+ // ]).isRequired,
30501
+ // iconColor: PropTypes.string.isRequired,
30502
+ // }),
30503
+ // ),
30504
+ // showReferenceLine: PropTypes.bool,
30505
+ // referenceLinePoint: PropTypes.number,
30506
+ // referenceLineColor: PropTypes.string,
30507
+ // referenceLineDashed: PropTypes.string,
30508
+ // showCurrentCampaignStyle: PropTypes.bool,
30509
+ // currentBarColor: PropTypes.string,
30510
+ // isPercent: PropTypes.bool,
30511
+ // };
30512
+
30513
+ // BarChart.defaultProps = {
30514
+ // title: 'String',
30515
+ // barChartData: [
30516
+ // { title: 'Food Lion', date: '15.01.24-31.01.24', value: 542366 },
30517
+ // { title: 'Hannaford', date: '15.01.24-31.01.24', value: 699511 },
30518
+ // { title: 'The Giant Company', date: '15.01.24-31.01.24', value: 403092 },
30519
+ // { title: 'Giant Food', date: '15.01.24-31.01.24', value: 396184 },
30520
+ // { title: 'Stop&Shop', date: '15.01.24-31.01.24', value: 415317 },
30521
+ // ],
30522
+ // width: '100%',
30523
+ // height: '100%',
30524
+ // barSize: 60,
30525
+ // barFontSizeValue: '0.6em',
30526
+ // barChartColor: '#BD9EFF',
30527
+ // showDollarSign: true,
30528
+ // isDollar: true,
30529
+ // showLegend: true,
30530
+ // legendData: [
30531
+ // {
30532
+ // title: 'Incremental Sales',
30533
+ // iconType: ICON_TYPE_SQUARE,
30534
+ // iconColor: '#BD9EFF',
30535
+ // },
30536
+ // ],
30537
+ // showReferenceLine: false,
30538
+ // referenceLinePoint: 0,
30539
+ // referenceLineColor: '#212121',
30540
+ // referenceLineDashed: '5',
30541
+ // showCurrentCampaignStyle: false,
30542
+ // currentBarColor: '#90CE9C',
30543
+ // isPercent: false,
30544
+ // };
30550
30545
 
30551
30546
  exports.BannerEventBoxList = BannerEventBoxList;
30552
30547
  exports.BarChart = BarChart;