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.js CHANGED
@@ -3159,17 +3159,17 @@ const UploadIcon = _ref => {
3159
3159
 
3160
3160
  const UploadIconV2 = _ref => {
3161
3161
  let {
3162
- color = '"#066768"',
3162
+ color = '#066768',
3163
3163
  width = '14',
3164
3164
  height = '14'
3165
3165
  } = _ref;
3166
- return /*#__PURE__*/React.createElement("svg", {
3166
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3167
3167
  width: width,
3168
3168
  height: height,
3169
3169
  viewBox: "0 0 14 14",
3170
3170
  fill: "none",
3171
3171
  xmlns: "http://www.w3.org/2000/svg"
3172
- }, /*#__PURE__*/React.createElement("path", {
3172
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3173
3173
  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",
3174
3174
  fill: color
3175
3175
  }));
@@ -38513,7 +38513,7 @@ const DisabledTrashIconWrapper$1 = styled__default["default"].div`
38513
38513
  color: #d9d9d9;
38514
38514
  }
38515
38515
  `;
38516
- const StatusCell = styled__default["default"].div`
38516
+ const StatusCell$1 = styled__default["default"].div`
38517
38517
  font-size: 12px;
38518
38518
  font-weight: 500;
38519
38519
  display: flex;
@@ -39223,7 +39223,7 @@ const TableBody = ({
39223
39223
  case 'status':
39224
39224
  const statusObj = statuses.find(status => status.status === value) || {};
39225
39225
  const [palette0, palette1] = statusObj.palette;
39226
- return /*#__PURE__*/React__default["default"].createElement(StatusCell, {
39226
+ return /*#__PURE__*/React__default["default"].createElement(StatusCell$1, {
39227
39227
  color: palette1
39228
39228
  }, /*#__PURE__*/React__default["default"].createElement(StatusCellCircle, {
39229
39229
  backgroundColor: palette0
@@ -53877,6 +53877,73 @@ const QuickFilterCards = _ref => {
53877
53877
  }));
53878
53878
  };
53879
53879
 
53880
+ const StatusCell = styled__default["default"].div`
53881
+ display: inline-flex;
53882
+ height: ${props => props.height};
53883
+ padding: 8px 12px;
53884
+ justify-content: center;
53885
+ align-items: center;
53886
+ gap: 14px;
53887
+ flex-shrink: 0;
53888
+ border-radius: ${props => props.borderRadius};
53889
+ border: 1px solid ${props => props.borderColor.toString()};
53890
+ background: ${props => props.backgroundColor.toString()};
53891
+ font-size: 14px;
53892
+ font-weight: 500;
53893
+ color: ${props => props.color.toString()};
53894
+ font-family: Poppins;
53895
+ font-style: normal;
53896
+ font-weight: 500;
53897
+ line-height: normal;
53898
+ `;
53899
+
53900
+ const tagTemplates = {
53901
+ pending: {
53902
+ backgroundColor: '#F5C9A74D',
53903
+ borderColor: '#F5C9A7',
53904
+ textColor: '#8B4513',
53905
+ text: 'Pending'
53906
+ },
53907
+ received: {
53908
+ backgroundColor: '#B9D5D54D',
53909
+ borderColor: '#B9D5D5',
53910
+ textColor: '#000000',
53911
+ text: 'Received'
53912
+ },
53913
+ approved: {
53914
+ backgroundColor: '#BFEBC64D',
53915
+ borderColor: '#BFEBC6',
53916
+ textColor: '#074310',
53917
+ text: 'Approved'
53918
+ },
53919
+ canceled: {
53920
+ backgroundColor: '#EBA6AF4D',
53921
+ borderColor: '#EBA6AF',
53922
+ textColor: '#44070F',
53923
+ text: 'Canceled'
53924
+ }
53925
+ };
53926
+ const Tag = props => {
53927
+ const {
53928
+ type = 'pending',
53929
+ size = 'small',
53930
+ backgroundColor,
53931
+ borderColor,
53932
+ textColor,
53933
+ borderRadius = "62px",
53934
+ text
53935
+ } = props;
53936
+ const template = tagTemplates[type];
53937
+ const height = size === 'small' ? '21px' : size === 'medium' ? '32px' : '35px';
53938
+ return /*#__PURE__*/React__default["default"].createElement(StatusCell, {
53939
+ backgroundColor: backgroundColor || template.backgroundColor,
53940
+ borderColor: borderColor || template.borderColor,
53941
+ color: textColor || template.textColor,
53942
+ height: height,
53943
+ borderRadius: borderRadius
53944
+ }, /*#__PURE__*/React__default["default"].createElement("span", null, text || template.text));
53945
+ };
53946
+
53880
53947
  exports.AdvancedThresholds = AdvancedThresholds;
53881
53948
  exports.Analytics = Analytics;
53882
53949
  exports.AreaChart = AreaChart;
@@ -53941,6 +54008,7 @@ exports.SingleBarLineCharts = SingleBarLineCharts;
53941
54008
  exports.SortPop = SortPop;
53942
54009
  exports.TabMenu = TabMenu;
53943
54010
  exports.Table = Table;
54011
+ exports.Tag = Tag;
53944
54012
  exports.ToasterMessageBox = ToasterMessageBox;
53945
54013
  exports.ToggleSwitch = ToggleSwitch;
53946
54014
  exports.Tooltip = Tooltip$2;