sag_components 2.0.0-beta164 → 2.0.0-beta165

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
@@ -1648,4 +1648,6 @@ declare namespace RangePicker {
1648
1648
  }
1649
1649
  }
1650
1650
 
1651
- export { AdvancedThresholds, Analytics, AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Budgets, Build, Button, Campaigns, CollapseData, CollapseHeader, ContainerTable, Coupons, CustomerSegments, Dashboard, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, Execute, FilterPanel, FilterPop, GroupBuilder, Heatmap, IconButton, 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, SingleBarLineCharts, SortPop, TabMenu, Table, ToasterMessageBox, ToggleSwitch, Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
1651
+ declare function Tag(props: any): react_jsx_runtime.JSX.Element;
1652
+
1653
+ export { AdvancedThresholds, Analytics, AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Budgets, Build, Button, Campaigns, CollapseData, CollapseHeader, ContainerTable, Coupons, CustomerSegments, Dashboard, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, DownloadProgress, DropdownNew, EventDetailsCard, EventList, Execute, FilterPanel, FilterPop, GroupBuilder, Heatmap, IconButton, 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, SingleBarLineCharts, SortPop, TabMenu, Table, Tag, ToasterMessageBox, ToggleSwitch, Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
package/dist/index.esm.js CHANGED
@@ -3149,17 +3149,17 @@ const UploadIcon = _ref => {
3149
3149
 
3150
3150
  const UploadIconV2 = _ref => {
3151
3151
  let {
3152
- color = '"#066768"',
3152
+ color = '#066768',
3153
3153
  width = '14',
3154
3154
  height = '14'
3155
3155
  } = _ref;
3156
- return /*#__PURE__*/React.createElement("svg", {
3156
+ return /*#__PURE__*/React$1.createElement("svg", {
3157
3157
  width: width,
3158
3158
  height: height,
3159
3159
  viewBox: "0 0 14 14",
3160
3160
  fill: "none",
3161
3161
  xmlns: "http://www.w3.org/2000/svg"
3162
- }, /*#__PURE__*/React.createElement("path", {
3162
+ }, /*#__PURE__*/React$1.createElement("path", {
3163
3163
  d: "M7.4175 1.75616V9.91557C7.4175 10.1447 7.23005 10.3321 7.00094 10.3321C6.77183 10.3321 6.58437 10.1447 6.58437 9.91557V1.75616L3.96263 4.3779C3.80122 4.53931 3.53566 4.53931 3.37424 4.3779C3.21282 4.21648 3.21282 3.95092 3.37424 3.7895L6.70674 0.457001C6.86816 0.295583 7.13372 0.295583 7.29513 0.457001L10.6276 3.7895C10.7891 3.95092 10.7891 4.21648 10.6276 4.3779C10.4662 4.53931 10.2007 4.53931 10.0392 4.3779L7.4175 1.75616ZM5.75125 9.49901H2.00219C1.54137 9.49901 1.16906 9.87131 1.16906 10.3321V11.9984C1.16906 12.4592 1.54137 12.8315 2.00219 12.8315H11.9997C12.4605 12.8315 12.8328 12.4592 12.8328 11.9984V10.3321C12.8328 9.87131 12.4605 9.49901 11.9997 9.49901H8.25063V8.66589H11.9997C12.9187 8.66589 13.6659 9.4131 13.6659 10.3321V11.9984C13.6659 12.9174 12.9187 13.6646 11.9997 13.6646H2.00219C1.08315 13.6646 0.335938 12.9174 0.335938 11.9984V10.3321C0.335938 9.4131 1.08315 8.66589 2.00219 8.66589H5.75125V9.49901ZM10.3334 11.1653C10.3334 10.9995 10.3993 10.8406 10.5164 10.7234C10.6336 10.6062 10.7926 10.5404 10.9583 10.5404C11.124 10.5404 11.2829 10.6062 11.4001 10.7234C11.5173 10.8406 11.5831 10.9995 11.5831 11.1653C11.5831 11.331 11.5173 11.4899 11.4001 11.6071C11.2829 11.7243 11.124 11.7901 10.9583 11.7901C10.7926 11.7901 10.6336 11.7243 10.5164 11.6071C10.3993 11.4899 10.3334 11.331 10.3334 11.1653Z",
3164
3164
  fill: color
3165
3165
  }));
@@ -38503,7 +38503,7 @@ const DisabledTrashIconWrapper$1 = styled.div`
38503
38503
  color: #d9d9d9;
38504
38504
  }
38505
38505
  `;
38506
- const StatusCell = styled.div`
38506
+ const StatusCell$1 = styled.div`
38507
38507
  font-size: 12px;
38508
38508
  font-weight: 500;
38509
38509
  display: flex;
@@ -39213,7 +39213,7 @@ const TableBody = ({
39213
39213
  case 'status':
39214
39214
  const statusObj = statuses.find(status => status.status === value) || {};
39215
39215
  const [palette0, palette1] = statusObj.palette;
39216
- return /*#__PURE__*/React$1.createElement(StatusCell, {
39216
+ return /*#__PURE__*/React$1.createElement(StatusCell$1, {
39217
39217
  color: palette1
39218
39218
  }, /*#__PURE__*/React$1.createElement(StatusCellCircle, {
39219
39219
  backgroundColor: palette0
@@ -53867,5 +53867,72 @@ const QuickFilterCards = _ref => {
53867
53867
  }));
53868
53868
  };
53869
53869
 
53870
- export { AdvancedThresholds, Analytics, AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Budgets, Build, Button$1 as Button, Campaigns, 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, SingleBarLineCharts, SortPop, TabMenu, Table, ToasterMessageBox, ToggleSwitch, Tooltip$2 as Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
53870
+ const StatusCell = styled.div`
53871
+ display: inline-flex;
53872
+ height: ${props => props.height};
53873
+ padding: 8px 12px;
53874
+ justify-content: center;
53875
+ align-items: center;
53876
+ gap: 14px;
53877
+ flex-shrink: 0;
53878
+ border-radius: ${props => props.borderRadius};
53879
+ border: 1px solid ${props => props.borderColor.toString()};
53880
+ background: ${props => props.backgroundColor.toString()};
53881
+ font-size: 14px;
53882
+ font-weight: 500;
53883
+ color: ${props => props.color.toString()};
53884
+ font-family: Poppins;
53885
+ font-style: normal;
53886
+ font-weight: 500;
53887
+ line-height: normal;
53888
+ `;
53889
+
53890
+ const tagTemplates = {
53891
+ pending: {
53892
+ backgroundColor: '#F5C9A74D',
53893
+ borderColor: '#F5C9A7',
53894
+ textColor: '#8B4513',
53895
+ text: 'Pending'
53896
+ },
53897
+ received: {
53898
+ backgroundColor: '#B9D5D54D',
53899
+ borderColor: '#B9D5D5',
53900
+ textColor: '#000000',
53901
+ text: 'Received'
53902
+ },
53903
+ approved: {
53904
+ backgroundColor: '#BFEBC64D',
53905
+ borderColor: '#BFEBC6',
53906
+ textColor: '#074310',
53907
+ text: 'Approved'
53908
+ },
53909
+ canceled: {
53910
+ backgroundColor: '#EBA6AF4D',
53911
+ borderColor: '#EBA6AF',
53912
+ textColor: '#44070F',
53913
+ text: 'Canceled'
53914
+ }
53915
+ };
53916
+ const Tag = props => {
53917
+ const {
53918
+ type = 'pending',
53919
+ size = 'small',
53920
+ backgroundColor,
53921
+ borderColor,
53922
+ textColor,
53923
+ borderRadius = "62px",
53924
+ text
53925
+ } = props;
53926
+ const template = tagTemplates[type];
53927
+ const height = size === 'small' ? '21px' : size === 'medium' ? '32px' : '35px';
53928
+ return /*#__PURE__*/React$1.createElement(StatusCell, {
53929
+ backgroundColor: backgroundColor || template.backgroundColor,
53930
+ borderColor: borderColor || template.borderColor,
53931
+ color: textColor || template.textColor,
53932
+ height: height,
53933
+ borderRadius: borderRadius
53934
+ }, /*#__PURE__*/React$1.createElement("span", null, text || template.text));
53935
+ };
53936
+
53937
+ export { AdvancedThresholds, Analytics, AreaChart, BannerEventBoxList, BarChart, BarChartTwoRows, BarChartWithAreaChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Budgets, Build, Button$1 as Button, Campaigns, 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, SingleBarLineCharts, SortPop, TabMenu, Table, Tag, ToasterMessageBox, ToggleSwitch, Tooltip$2 as Tooltip, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts, Track, TwoBarCharts, WeeksPicker };
53871
53938
  //# sourceMappingURL=index.esm.js.map