sag_components 2.0.0-beta203 → 2.0.0-beta205

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.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React$1, { useState, useRef, useEffect, useMemo, useCallback, forwardRef, useImperativeHandle } from 'react';
2
2
  import styled, { keyframes, css, styled as styled$1 } from 'styled-components';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
- import { ResponsiveContainer, PieChart as PieChart$1, Pie, Cell, Tooltip as Tooltip$4, BarChart as BarChart$1, CartesianGrid, XAxis, YAxis, Bar, LabelList, ReferenceLine, LineChart, Line, AreaChart as AreaChart$1, Legend, Area, ScatterChart, ZAxis, Scatter, Brush, ComposedChart } from 'recharts';
4
+ import { ResponsiveContainer, PieChart as PieChart$1, Pie, Cell, Tooltip as Tooltip$3, BarChart as BarChart$1, CartesianGrid, XAxis, YAxis, Bar, LabelList, ReferenceLine, LineChart, Line, AreaChart as AreaChart$1, Legend, Area, ScatterChart, ZAxis, Scatter, Brush, ComposedChart } from 'recharts';
5
5
  import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
6
6
  import { motion, AnimatePresence } from 'framer-motion';
7
7
  import { createPortal } from 'react-dom';
@@ -2387,7 +2387,7 @@ const TooltipTip$1 = styled.div`
2387
2387
  }
2388
2388
  `;
2389
2389
 
2390
- const Tooltip$3 = props => {
2390
+ const Tooltip$2 = props => {
2391
2391
  const {
2392
2392
  children,
2393
2393
  content = "Tooltip content",
@@ -2399,7 +2399,7 @@ const Tooltip$3 = props => {
2399
2399
  className
2400
2400
  } = props;
2401
2401
  let timeout;
2402
- const [active, setActive] = useState(showTooltip);
2402
+ const [active, setActive] = useState(false);
2403
2403
  const showTip = () => {
2404
2404
  timeout = setTimeout(() => {
2405
2405
  setActive(true);
@@ -2498,7 +2498,7 @@ const Benchmark = props => {
2498
2498
  id: "ControlsContainer",
2499
2499
  height: height,
2500
2500
  width: width
2501
- }, /*#__PURE__*/React$1.createElement(Tooltip$3, {
2501
+ }, /*#__PURE__*/React$1.createElement(Tooltip$2, {
2502
2502
  id: "Tooltip",
2503
2503
  content: getTooltipText(),
2504
2504
  direction: tooltipDirection
@@ -2656,7 +2656,7 @@ const PieChart = props => {
2656
2656
  }, legendData.map(row => /*#__PURE__*/React$1.createElement(Cell, {
2657
2657
  key: `cell-${row.name}`,
2658
2658
  fill: row.color
2659
- }))), /*#__PURE__*/React$1.createElement(Tooltip$4, {
2659
+ }))), /*#__PURE__*/React$1.createElement(Tooltip$3, {
2660
2660
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
2661
2661
  })))), /*#__PURE__*/React$1.createElement(LegendContainer$5, null, legendData.map(row => /*#__PURE__*/React$1.createElement(LegendControlsContainer$1, {
2662
2662
  key: row.name
@@ -11654,7 +11654,7 @@ const FilterPanel = props => {
11654
11654
  });
11655
11655
  break;
11656
11656
  default:
11657
- content = /*#__PURE__*/React$1.createElement(Tooltip$3, {
11657
+ content = /*#__PURE__*/React$1.createElement(Tooltip$2, {
11658
11658
  className: "Tooltip",
11659
11659
  content: getTooltipTextDates(),
11660
11660
  direction: "top",
@@ -11798,7 +11798,7 @@ const FilterPanel = props => {
11798
11798
  const displayGoButton = () => {
11799
11799
  let content;
11800
11800
  if (tooltipTextGoButton) {
11801
- content = /*#__PURE__*/React$1.createElement(Tooltip$3, {
11801
+ content = /*#__PURE__*/React$1.createElement(Tooltip$2, {
11802
11802
  className: "Tooltip",
11803
11803
  content: getTooltipTextGoButton(),
11804
11804
  direction: "top",
@@ -12562,7 +12562,7 @@ const ReportTable = props => {
12562
12562
  }, displaySelectButton(rowData)) : /*#__PURE__*/React$1.createElement(Td$1, {
12563
12563
  className: "cell",
12564
12564
  key: dataIndex
12565
- }, value && value.length > 30 ? /*#__PURE__*/React$1.createElement(Tooltip$3, {
12565
+ }, value && value.length > 30 ? /*#__PURE__*/React$1.createElement(Tooltip$2, {
12566
12566
  content: getTooltipText(value),
12567
12567
  direction: "top",
12568
12568
  topFactor: value !== null ? -getTopFactor(Math.ceil(value.length / 50)) : -getTopFactor(1)
@@ -25941,9 +25941,9 @@ const BarChartsByWeeks = props => {
25941
25941
  fontSize: "12px",
25942
25942
  tickLine: false,
25943
25943
  tickFormatter: value => `${displayFormattedValue(value)}`
25944
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
25944
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
25945
25945
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
25946
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, null), !showTwoBars ? /*#__PURE__*/React$1.createElement(Bar, {
25946
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, null), !showTwoBars ? /*#__PURE__*/React$1.createElement(Bar, {
25947
25947
  dataKey: "value",
25948
25948
  name: "title",
25949
25949
  maxBarSize: 30,
@@ -26367,12 +26367,12 @@ const TotalDoughnutChart = props => {
26367
26367
  }, legendData.map(row => /*#__PURE__*/React$1.createElement(Cell, {
26368
26368
  key: `cell-${row.name}`,
26369
26369
  fill: row.color
26370
- }))), /*#__PURE__*/React$1.createElement(Tooltip$4, {
26370
+ }))), /*#__PURE__*/React$1.createElement(Tooltip$3, {
26371
26371
  content: /*#__PURE__*/React$1.createElement(CustomTooltip$2, {
26372
26372
  value: value,
26373
26373
  isPercent: isPercent
26374
26374
  })
26375
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, null)))), /*#__PURE__*/React$1.createElement(LegendContainer$4, null, legendData.map(row => /*#__PURE__*/React$1.createElement(LegendControlsContainer, {
26375
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, null)))), /*#__PURE__*/React$1.createElement(LegendContainer$4, null, legendData.map(row => /*#__PURE__*/React$1.createElement(LegendControlsContainer, {
26376
26376
  key: row.name
26377
26377
  }, /*#__PURE__*/React$1.createElement(LegendColorRectangle, {
26378
26378
  color: row.color
@@ -26565,7 +26565,7 @@ const TooltipTip = styled.div`
26565
26565
  }
26566
26566
  `;
26567
26567
 
26568
- const Tooltip$2 = props => {
26568
+ const Tooltip$1 = props => {
26569
26569
  const {
26570
26570
  className,
26571
26571
  top,
@@ -26581,14 +26581,14 @@ const Tooltip$2 = props => {
26581
26581
  className: `controls ${direction || 'top'}`
26582
26582
  }, content)));
26583
26583
  };
26584
- Tooltip$2.propTypes = {
26584
+ Tooltip$1.propTypes = {
26585
26585
  className: PropTypes.string,
26586
26586
  top: PropTypes.number,
26587
26587
  left: PropTypes.number,
26588
26588
  direction: PropTypes.string,
26589
26589
  content: PropTypes.string
26590
26590
  };
26591
- Tooltip$2.defaultProps = {
26591
+ Tooltip$1.defaultProps = {
26592
26592
  className: '',
26593
26593
  top: 0,
26594
26594
  left: 0,
@@ -26862,7 +26862,7 @@ const TotalHorizontalCharts = props => {
26862
26862
  React$1.createElement(Cell, {
26863
26863
  key: `cell-${index}`,
26864
26864
  fill: barBackgrounds[index % 20]
26865
- }))), showLegendTooltip && /*#__PURE__*/React$1.createElement(Tooltip$2, {
26865
+ }))), showLegendTooltip && /*#__PURE__*/React$1.createElement(Tooltip$1, {
26866
26866
  direction: "top",
26867
26867
  content: tooltipText.content,
26868
26868
  top: tooltipText.clientY,
@@ -28815,9 +28815,9 @@ const BarChart = props => {
28815
28815
  stroke: "#D0D0D0",
28816
28816
  domain: [0, 'auto'],
28817
28817
  interval: 0
28818
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
28818
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
28819
28819
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
28820
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, null), /*#__PURE__*/React$1.createElement(Bar, {
28820
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, null), /*#__PURE__*/React$1.createElement(Bar, {
28821
28821
  dataKey: "value",
28822
28822
  fill: barChartColor,
28823
28823
  minPointSize: 5,
@@ -29265,7 +29265,7 @@ const DoubleBarSingleLine = props => {
29265
29265
  ...syncCharts.margin,
29266
29266
  bottom: 120
29267
29267
  }
29268
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
29268
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
29269
29269
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
29270
29270
  }), showBackgroundGrid && /*#__PURE__*/React$1.createElement(CartesianGrid, {
29271
29271
  vertical: false,
@@ -29716,7 +29716,7 @@ const AreaChart = props => {
29716
29716
  strokeDasharray: "4 3",
29717
29717
  vertical: false,
29718
29718
  horizontal: true
29719
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
29719
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
29720
29720
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
29721
29721
  }), /*#__PURE__*/React$1.createElement(Legend, {
29722
29722
  layout: "horizontal",
@@ -31163,7 +31163,7 @@ const BubbleChart = _ref => {
31163
31163
  direction: "right"
31164
31164
  });
31165
31165
  }
31166
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
31166
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
31167
31167
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null),
31168
31168
  cursor: false,
31169
31169
  wrapperStyle: {
@@ -31959,7 +31959,7 @@ const BarLine = props => {
31959
31959
  type: "number",
31960
31960
  domain: [0, dataMax => dataMax * 1.3],
31961
31961
  hide: true
31962
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
31962
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
31963
31963
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null),
31964
31964
  cursor: brushAreaBarData.length > 80
31965
31965
  }), /*#__PURE__*/React$1.createElement(Bar, {
@@ -32123,7 +32123,7 @@ const SingleChart = props => {
32123
32123
  type: "number",
32124
32124
  domain: [0, dataMax => dataMax * 1.3],
32125
32125
  hide: true
32126
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
32126
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
32127
32127
  cursor: barData.length > 80,
32128
32128
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
32129
32129
  }), /*#__PURE__*/React$1.createElement(Bar, {
@@ -32319,7 +32319,7 @@ const InnerBar = props => {
32319
32319
  type: "number",
32320
32320
  domain: [0, dataMax => dataMax * 1.3],
32321
32321
  hide: true
32322
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
32322
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
32323
32323
  cursor: brushInnerBarData.length > 80,
32324
32324
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
32325
32325
  }), /*#__PURE__*/React$1.createElement(Bar, {
@@ -32727,7 +32727,7 @@ const SingleBarLineCharts = _ref => {
32727
32727
  stroke: legendData.find(item => item.iconType === 'LegendUnionIcon')?.iconColor
32728
32728
  }, /*#__PURE__*/React$1.createElement(LabelList, {
32729
32729
  content: /*#__PURE__*/React$1.createElement(CustomizedLabelROI, null)
32730
- })), setLineChartTooltip && /*#__PURE__*/React$1.createElement(Tooltip$4, {
32730
+ })), setLineChartTooltip && /*#__PURE__*/React$1.createElement(Tooltip$3, {
32731
32731
  content: CustomTooltipLineChart
32732
32732
  }))), /*#__PURE__*/React$1.createElement(BarsGapper, {
32733
32733
  margin: !showLineChart ? lineChartHeight : 'inherit'
@@ -32766,9 +32766,9 @@ const SingleBarLineCharts = _ref => {
32766
32766
  }), /*#__PURE__*/React$1.createElement(ReferenceLine, {
32767
32767
  y: 0,
32768
32768
  stroke: "#D0D0D0"
32769
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
32769
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
32770
32770
  content: CustomTooltipBarChart
32771
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, null), /*#__PURE__*/React$1.createElement(Bar, {
32771
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, null), /*#__PURE__*/React$1.createElement(Bar, {
32772
32772
  dataKey: "barValue",
32773
32773
  barSize: barSize ?? 60,
32774
32774
  fill: legendData.filter(item => item.iconType === 'Square')[0]?.iconColor,
@@ -33189,9 +33189,9 @@ const BarChartWithAreaChart = props => {
33189
33189
  allowDataOverflow: true,
33190
33190
  width: 700,
33191
33191
  interval: 0
33192
- }), isAreaChartDisplayed && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Tooltip$4, {
33192
+ }), isAreaChartDisplayed && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Tooltip$3, {
33193
33193
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
33194
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, null)), /*#__PURE__*/React$1.createElement(Bar, {
33194
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, null)), /*#__PURE__*/React$1.createElement(Bar, {
33195
33195
  dataKey: "value",
33196
33196
  fill: barChartColor,
33197
33197
  minPointSize: 0,
@@ -33416,9 +33416,9 @@ const BarChartTwoRows = props => {
33416
33416
  height: 80,
33417
33417
  interval: 0,
33418
33418
  stroke: "#D0D0D0"
33419
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, {
33419
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, {
33420
33420
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
33421
- }), /*#__PURE__*/React$1.createElement(Tooltip$4, null), /*#__PURE__*/React$1.createElement(Bar, {
33421
+ }), /*#__PURE__*/React$1.createElement(Tooltip$3, null), /*#__PURE__*/React$1.createElement(Bar, {
33422
33422
  dataKey: "lowerValue",
33423
33423
  fill: barChartColorFirst,
33424
33424
  minPointSize: 5,
@@ -33618,7 +33618,7 @@ const TwoBarCharts = props => {
33618
33618
  interval: 0,
33619
33619
  height: 120,
33620
33620
  stroke: "#D0D0D0"
33621
- }), showTooltip && /*#__PURE__*/React$1.createElement(Tooltip$4, {
33621
+ }), showTooltip && /*#__PURE__*/React$1.createElement(Tooltip$3, {
33622
33622
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
33623
33623
  }), /*#__PURE__*/React$1.createElement(Bar, {
33624
33624
  dataKey: "valueOne",
@@ -34688,7 +34688,7 @@ const ModalWithOverlay = props => {
34688
34688
  hoverTextColor: "#212121",
34689
34689
  hoverBackgroundColor: "#E6F0F0",
34690
34690
  hoverBorderColor: "#D3D3D3"
34691
- }), showOkButton && (disableOkButton && tooltipContent !== '' ? /*#__PURE__*/React$1.createElement(Tooltip$3, {
34691
+ }), showOkButton && (disableOkButton && tooltipContent !== '' ? /*#__PURE__*/React$1.createElement(Tooltip$2, {
34692
34692
  direction: "top",
34693
34693
  topFactor: -0.85,
34694
34694
  content: /*#__PURE__*/React$1.createElement(TooltipContent$1, {
@@ -39634,7 +39634,7 @@ const MessageBox = _ref => {
39634
39634
  width: "auto",
39635
39635
  minWidth: "60px",
39636
39636
  onClick: onClose
39637
- }), tooltipContent !== "" && /*#__PURE__*/React$1.createElement(Tooltip, {
39637
+ }), tooltipContent !== "" && /*#__PURE__*/React$1.createElement(Tooltip$2, {
39638
39638
  direction: "top",
39639
39639
  showTooltip: isDisabled,
39640
39640
  topFactor: -0.85,
@@ -44521,7 +44521,7 @@ const ButtonContainer = styled$1.div`
44521
44521
  }
44522
44522
  }
44523
44523
  `;
44524
- const CustomTooltip$1 = styled$1(Tooltip$3)`
44524
+ const CustomTooltip$1 = styled$1(Tooltip$2)`
44525
44525
  .controls {
44526
44526
  padding: 12px 16px;
44527
44527
  font-size: 14px;
@@ -45016,7 +45016,7 @@ styled.div`
45016
45016
  }
45017
45017
  }
45018
45018
  `;
45019
- const CustomTooltip = styled(Tooltip$3)`
45019
+ const CustomTooltip = styled(Tooltip$2)`
45020
45020
  .controls {
45021
45021
  padding: 12px 16px;
45022
45022
  font-size: 14px;
@@ -45688,7 +45688,7 @@ const DividerLine = styled.div`
45688
45688
  background: #BEE3C7;
45689
45689
  margin: 0 auto;
45690
45690
  `;
45691
- const Tooltip$1 = styled.div`
45691
+ const Tooltip = styled.div`
45692
45692
  visibility: hidden;
45693
45693
  background: #ffffff;
45694
45694
  color: #212121;
@@ -45725,8 +45725,8 @@ const ExpandButtonWrapper = styled.div`
45725
45725
  display: flex;
45726
45726
  justify-content: center;
45727
45727
  align-items: center;
45728
- &:hover ${Tooltip$1},
45729
- &:focus-within ${Tooltip$1} {
45728
+ &:hover ${Tooltip},
45729
+ &:focus-within ${Tooltip} {
45730
45730
  visibility: visible;
45731
45731
  opacity: 1;
45732
45732
  }
@@ -54113,7 +54113,7 @@ const SuccessScreen = ({
54113
54113
  key: idx
54114
54114
  }, vendor))), hiddenVendors.length > 0 && /*#__PURE__*/React$1.createElement(ExpandButtonWrapper, null, /*#__PURE__*/React$1.createElement(ExpandButton, {
54115
54115
  tabIndex: 0
54116
- }, "\u2022\u2022\u2022"), /*#__PURE__*/React$1.createElement(Tooltip$1, null, vendors.map((vendor, idx) => /*#__PURE__*/React$1.createElement(React$1.Fragment, {
54116
+ }, "\u2022\u2022\u2022"), /*#__PURE__*/React$1.createElement(Tooltip, null, vendors.map((vendor, idx) => /*#__PURE__*/React$1.createElement(React$1.Fragment, {
54117
54117
  key: idx
54118
54118
  }, vendor, /*#__PURE__*/React$1.createElement("br", null)))))));
54119
54119
  };
@@ -55561,5 +55561,5 @@ const Tag = props => {
55561
55561
  }, /*#__PURE__*/React$1.createElement("span", null, text || template?.text));
55562
55562
  };
55563
55563
 
55564
- export { AdvancedThresholds, Analytics, AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Budgets, Build, Button$1 as Button, Campaigns, CheckBox, CollapseData, CollapseHeader, ContainerTable, Coupons, CustomerSegments, Dashboard, DialogOverlay$1 as DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, Execute, FilterPanel, FilterPop, GroupBuilder, Heatmap, IconButton$1 as IconButton, Input$2 as Input, InsightsCarousel, ItemManagerPanel, ItemsStores, LinkButton, LinnerDataBox, MarketShareDescription, MenuRoute, MessageBox, ModalDrawer, ModalWithOverlay, OneColumnContainer, OverlayDropdown, PerformanceAnalyticsLegend, PieChart, PopupCharts, PreTestWhatIf, QuickFilter, QuickFilterCards, RangePicker, RangePop, ReportTable, RulesEngine, SampleRunEngine, SearchInput$1 as SearchInput, SingleBarLineCharts, SortPop, TabMenu, Table, Tag, ToasterMessageBox, ToggleSwitch, Tooltip$3 as Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
55564
+ export { AdvancedThresholds, Analytics, AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Budgets, Build, Button$1 as Button, Campaigns, CheckBox, CollapseData, CollapseHeader, ContainerTable, Coupons, CustomerSegments, Dashboard, DialogOverlay$1 as DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, Execute, FilterPanel, FilterPop, GroupBuilder, Heatmap, IconButton$1 as IconButton, Input$2 as Input, InsightsCarousel, ItemManagerPanel, ItemsStores, LinkButton, LinnerDataBox, MarketShareDescription, MenuRoute, MessageBox, ModalDrawer, ModalWithOverlay, OneColumnContainer, OverlayDropdown, PerformanceAnalyticsLegend, PieChart, PopupCharts, PreTestWhatIf, QuickFilter, QuickFilterCards, RangePicker, RangePop, ReportTable, RulesEngine, SampleRunEngine, SearchInput$1 as SearchInput, SingleBarLineCharts, SortPop, TabMenu, Table, Tag, ToasterMessageBox, ToggleSwitch, Tooltip$2 as Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
55565
55565
  //# sourceMappingURL=index.esm.js.map