sag_components 2.0.0-beta160 → 2.0.0-beta162

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
@@ -356,21 +356,24 @@ const PlusIcon = ({
356
356
  fill: color
357
357
  }));
358
358
 
359
- const ArrowLeftIcon = ({
360
- width = '16',
361
- height = '16',
362
- color = '#212121',
363
- ...props
364
- }) => /*#__PURE__*/React$1.createElement("svg", _extends$1({
365
- width: width,
366
- height: height,
367
- viewBox: "0 0 16 16",
368
- fill: "none",
369
- xmlns: "http://www.w3.org/2000/svg"
370
- }, props), /*#__PURE__*/React$1.createElement("path", {
371
- d: "M1.21875 8.54703C1.0625 8.39078 1 8.20328 1 7.98453C1 7.79703 1.0625 7.60953 1.21875 7.45328L6.71875 2.20328C7.03125 1.92203 7.5 1.92203 7.78125 2.23453C8.0625 2.51578 8.0625 3.01578 7.75 3.29703L3.59375 7.23453H14.25C14.6562 7.23453 15 7.57828 15 7.98453C15 8.42203 14.6562 8.73453 14.25 8.73453H3.59375L7.75 12.7033C8.0625 12.9845 8.0625 13.4533 7.78125 13.7658C7.5 14.0783 7.03125 14.0783 6.71875 13.797L1.21875 8.54703Z",
372
- fill: color
373
- }));
359
+ const ArrowLeftIcon = _ref => {
360
+ let {
361
+ width = '16',
362
+ height = '16',
363
+ color = '#212121',
364
+ ...props
365
+ } = _ref;
366
+ return /*#__PURE__*/React$1.createElement("svg", _extends$1({
367
+ width: width,
368
+ height: height,
369
+ viewBox: "0 0 16 16",
370
+ fill: "none",
371
+ xmlns: "http://www.w3.org/2000/svg"
372
+ }, props), /*#__PURE__*/React$1.createElement("path", {
373
+ d: "M1.21875 8.54703C1.0625 8.39078 1 8.20328 1 7.98453C1 7.79703 1.0625 7.60953 1.21875 7.45328L6.71875 2.20328C7.03125 1.92203 7.5 1.92203 7.78125 2.23453C8.0625 2.51578 8.0625 3.01578 7.75 3.29703L3.59375 7.23453H14.25C14.6562 7.23453 15 7.57828 15 7.98453C15 8.42203 14.6562 8.73453 14.25 8.73453H3.59375L7.75 12.7033C8.0625 12.9845 8.0625 13.4533 7.78125 13.7658C7.5 14.0783 7.03125 14.0783 6.71875 13.797L1.21875 8.54703Z",
374
+ fill: color
375
+ }));
376
+ };
374
377
 
375
378
  const Plus = ({
376
379
  width = 17,
@@ -3144,6 +3147,24 @@ const UploadIcon = _ref => {
3144
3147
  }));
3145
3148
  };
3146
3149
 
3150
+ const UploadIconV2 = _ref => {
3151
+ let {
3152
+ color = '"#066768"',
3153
+ width = '14',
3154
+ height = '14'
3155
+ } = _ref;
3156
+ return /*#__PURE__*/React.createElement("svg", {
3157
+ width: width,
3158
+ height: height,
3159
+ viewBox: "0 0 14 14",
3160
+ fill: "none",
3161
+ xmlns: "http://www.w3.org/2000/svg"
3162
+ }, /*#__PURE__*/React.createElement("path", {
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
+ fill: color
3165
+ }));
3166
+ };
3167
+
3147
3168
  const LinkButton = _ref => {
3148
3169
  let {
3149
3170
  text = '',
@@ -3305,6 +3326,14 @@ const LinkButton = _ref => {
3305
3326
  width: iconWidth,
3306
3327
  color: color
3307
3328
  }));
3329
+ case 'uploadv2':
3330
+ return /*#__PURE__*/React$1.createElement(IconWrapper$4, {
3331
+ className: "UploadIconV2"
3332
+ }, /*#__PURE__*/React$1.createElement(UploadIconV2, {
3333
+ height: iconHeight,
3334
+ width: iconWidth,
3335
+ color: color
3336
+ }));
3308
3337
  default:
3309
3338
  return '';
3310
3339
  }
@@ -8610,6 +8639,7 @@ const DropdownWrapper$2 = styled.div`
8610
8639
  justify-content: center;
8611
8640
  align-items: flex-start;
8612
8641
  width: ${props => props.width || '300px'};
8642
+ height: ${props => props.height || '40px'};
8613
8643
  font-family: "Poppins", sans-serif;
8614
8644
  font-weight: 400;
8615
8645
  font-size: 14px;
@@ -8635,7 +8665,10 @@ const Label$8 = styled.label`
8635
8665
  color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
8636
8666
  background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
8637
8667
  position: absolute;
8638
- top: ${props => props.isFocused || props.hasValue ? '0px' : '28px'};
8668
+ top: ${props => {
8669
+ const height = parseInt(props.height.replace('px', ''), 10);
8670
+ return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
8671
+ }};
8639
8672
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
8640
8673
  transform: translateY(-50%);
8641
8674
  transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
@@ -8777,6 +8810,7 @@ const DropdownSingleNew = ({
8777
8810
  required,
8778
8811
  disabled,
8779
8812
  width,
8813
+ height,
8780
8814
  withMarginBottom = true,
8781
8815
  error,
8782
8816
  errorMessage,
@@ -8932,6 +8966,7 @@ const DropdownSingleNew = ({
8932
8966
  return /*#__PURE__*/React$1.createElement(DropdownWrapper$2, {
8933
8967
  className: "DropdownWrapper",
8934
8968
  width: width,
8969
+ height: height,
8935
8970
  onMouseEnter: () => setHoverInputContainer(true),
8936
8971
  onMouseLeave: () => setHoverInputContainer(false)
8937
8972
  }, /*#__PURE__*/React$1.createElement(InputContainer$8, {
@@ -8953,6 +8988,7 @@ const DropdownSingleNew = ({
8953
8988
  labelColor: labelColor,
8954
8989
  hasValue: selectedOptions?.length > 0 || inputValue,
8955
8990
  disabled: disabled,
8991
+ height: height,
8956
8992
  error: error,
8957
8993
  errorMessage: errorMessage,
8958
8994
  onClick: handleLabelClick,
@@ -9069,6 +9105,7 @@ const DropdownWrapper$1 = styled.div`
9069
9105
  justify-content: center;
9070
9106
  align-items: flex-start;
9071
9107
  width: ${props => props.width || '300px'};
9108
+ height: ${props => props.height || '50px'};
9072
9109
  font-family: "Poppins", sans-serif;
9073
9110
  font-weight: 400;
9074
9111
  font-size: 14px;
@@ -9094,7 +9131,10 @@ const Label$7 = styled.label`
9094
9131
  color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
9095
9132
  background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
9096
9133
  position: absolute;
9097
- top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
9134
+ top: ${props => {
9135
+ const height = parseInt(props.height.replace('px', ''), 10);
9136
+ return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
9137
+ }};
9098
9138
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
9099
9139
  font-family: Poppins;
9100
9140
  transform: translateY(-50%);
@@ -9439,6 +9479,7 @@ const DropdownMultiNew = ({
9439
9479
  return /*#__PURE__*/React$1.createElement(DropdownWrapper$1, {
9440
9480
  className: "DropdownWrapper",
9441
9481
  width: width,
9482
+ height: height,
9442
9483
  onMouseEnter: () => setHoverInputContainer(true),
9443
9484
  onMouseLeave: () => setHoverInputContainer(false)
9444
9485
  }, /*#__PURE__*/React$1.createElement(InputContainer$7, {
@@ -9461,6 +9502,7 @@ const DropdownMultiNew = ({
9461
9502
  labelColor: labelColor,
9462
9503
  hasValue: selectedOptions?.length > 0 || inputValue,
9463
9504
  disabled: disabled,
9505
+ height: height,
9464
9506
  error: error,
9465
9507
  errorMessage: errorMessage,
9466
9508
  onClick: handleLabelClick,
@@ -9535,6 +9577,7 @@ const DropdownMain = styled.div`
9535
9577
  justify-content: center;
9536
9578
  align-items: flex-start;
9537
9579
  width: ${props => props.width || '300px'};
9580
+ height: ${props => props.height || '50px'};
9538
9581
  font-family: "Poppins", sans-serif;
9539
9582
  font-weight: 400;
9540
9583
  font-size: 14px;
@@ -9555,6 +9598,7 @@ const DropdownNew = props => {
9555
9598
  required = false,
9556
9599
  disabled = false,
9557
9600
  width = "300px",
9601
+ height = "52px",
9558
9602
  withMarginBottom = true,
9559
9603
  error = false,
9560
9604
  showLabelOnTop = true,
@@ -9573,7 +9617,8 @@ const DropdownNew = props => {
9573
9617
  };
9574
9618
  return /*#__PURE__*/React$1.createElement(DropdownMain, {
9575
9619
  className: "DropdownMain",
9576
- width: width
9620
+ width: width,
9621
+ height: height
9577
9622
  }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9578
9623
  className: "DropdownMultiNew",
9579
9624
  placeHolder: placeHolder,
@@ -9584,6 +9629,7 @@ const DropdownNew = props => {
9584
9629
  required: required,
9585
9630
  options: options,
9586
9631
  width: width,
9632
+ height: height,
9587
9633
  withMarginBottom: withMarginBottom,
9588
9634
  disabled: disabled,
9589
9635
  error: error,
@@ -9604,6 +9650,7 @@ const DropdownNew = props => {
9604
9650
  required: required,
9605
9651
  options: options,
9606
9652
  width: width,
9653
+ height: height,
9607
9654
  withMarginBottom: withMarginBottom,
9608
9655
  disabled: disabled,
9609
9656
  error: error,
@@ -28140,6 +28187,12 @@ const IconButton$1 = props => {
28140
28187
  width: iconWidth,
28141
28188
  color: contentColor
28142
28189
  });
28190
+ case 'arrowleft':
28191
+ return /*#__PURE__*/React$1.createElement(ArrowLeftIcon, {
28192
+ height: iconHeight,
28193
+ width: iconWidth,
28194
+ color: contentColor
28195
+ });
28143
28196
  default:
28144
28197
  return '';
28145
28198
  }
@@ -35556,9 +35609,12 @@ const ToggleSwitchLabel = styled.label`
35556
35609
  position: relative;
35557
35610
  cursor: pointer;
35558
35611
  user-select: none;
35559
- opacity: ${({
35560
- disabled
35561
- }) => disabled ? 0.5 : 1};
35612
+ opacity: ${_ref => {
35613
+ let {
35614
+ disabled
35615
+ } = _ref;
35616
+ return disabled ? 0.5 : 1;
35617
+ }};
35562
35618
  `;
35563
35619
  const ToggleInput = styled.input`
35564
35620
  display: none;
@@ -35566,15 +35622,19 @@ const ToggleInput = styled.input`
35566
35622
  const ToggleSlider = styled.span`
35567
35623
  display: block;
35568
35624
  position: relative;
35569
- background: ${({
35570
- checked,
35571
- disabled
35572
- }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
35625
+ background: ${_ref2 => {
35626
+ let {
35627
+ checked,
35628
+ disabled
35629
+ } = _ref2;
35630
+ return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
35631
+ }};
35573
35632
  border-radius: 999px;
35574
35633
  transition: background 0.2s;
35575
- ${({
35576
- size
35577
- }) => {
35634
+ ${_ref3 => {
35635
+ let {
35636
+ size
35637
+ } = _ref3;
35578
35638
  switch (size) {
35579
35639
  case "s":
35580
35640
  return css`width: 40px; height: 20px;`;
@@ -35593,9 +35653,10 @@ const ToggleSlider = styled.span`
35593
35653
  background: #fff;
35594
35654
  border-radius: 50%;
35595
35655
  transition: left 0.2s, width 0.2s, height 0.2s;
35596
- ${({
35597
- size
35598
- }) => {
35656
+ ${_ref4 => {
35657
+ let {
35658
+ size
35659
+ } = _ref4;
35599
35660
  switch (size) {
35600
35661
  case "s":
35601
35662
  return css`width: 14px; height: 14px;`;
@@ -35605,10 +35666,11 @@ const ToggleSlider = styled.span`
35605
35666
  return css`width: 20px; height: 20px;`;
35606
35667
  }
35607
35668
  }}
35608
- left: ${({
35609
- checked,
35610
- size
35611
- }) => {
35669
+ left: ${_ref5 => {
35670
+ let {
35671
+ checked,
35672
+ size
35673
+ } = _ref5;
35612
35674
  if (!checked) return "3px";
35613
35675
  switch (size) {
35614
35676
  case "s":