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.js CHANGED
@@ -366,21 +366,24 @@ const PlusIcon = ({
366
366
  fill: color
367
367
  }));
368
368
 
369
- const ArrowLeftIcon = ({
370
- width = '16',
371
- height = '16',
372
- color = '#212121',
373
- ...props
374
- }) => /*#__PURE__*/React__default["default"].createElement("svg", _extends$1({
375
- width: width,
376
- height: height,
377
- viewBox: "0 0 16 16",
378
- fill: "none",
379
- xmlns: "http://www.w3.org/2000/svg"
380
- }, props), /*#__PURE__*/React__default["default"].createElement("path", {
381
- 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",
382
- fill: color
383
- }));
369
+ const ArrowLeftIcon = _ref => {
370
+ let {
371
+ width = '16',
372
+ height = '16',
373
+ color = '#212121',
374
+ ...props
375
+ } = _ref;
376
+ return /*#__PURE__*/React__default["default"].createElement("svg", _extends$1({
377
+ width: width,
378
+ height: height,
379
+ viewBox: "0 0 16 16",
380
+ fill: "none",
381
+ xmlns: "http://www.w3.org/2000/svg"
382
+ }, props), /*#__PURE__*/React__default["default"].createElement("path", {
383
+ 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",
384
+ fill: color
385
+ }));
386
+ };
384
387
 
385
388
  const Plus = ({
386
389
  width = 17,
@@ -3154,6 +3157,24 @@ const UploadIcon = _ref => {
3154
3157
  }));
3155
3158
  };
3156
3159
 
3160
+ const UploadIconV2 = _ref => {
3161
+ let {
3162
+ color = '"#066768"',
3163
+ width = '14',
3164
+ height = '14'
3165
+ } = _ref;
3166
+ return /*#__PURE__*/React.createElement("svg", {
3167
+ width: width,
3168
+ height: height,
3169
+ viewBox: "0 0 14 14",
3170
+ fill: "none",
3171
+ xmlns: "http://www.w3.org/2000/svg"
3172
+ }, /*#__PURE__*/React.createElement("path", {
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
+ fill: color
3175
+ }));
3176
+ };
3177
+
3157
3178
  const LinkButton = _ref => {
3158
3179
  let {
3159
3180
  text = '',
@@ -3315,6 +3336,14 @@ const LinkButton = _ref => {
3315
3336
  width: iconWidth,
3316
3337
  color: color
3317
3338
  }));
3339
+ case 'uploadv2':
3340
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, {
3341
+ className: "UploadIconV2"
3342
+ }, /*#__PURE__*/React__default["default"].createElement(UploadIconV2, {
3343
+ height: iconHeight,
3344
+ width: iconWidth,
3345
+ color: color
3346
+ }));
3318
3347
  default:
3319
3348
  return '';
3320
3349
  }
@@ -8620,6 +8649,7 @@ const DropdownWrapper$2 = styled__default["default"].div`
8620
8649
  justify-content: center;
8621
8650
  align-items: flex-start;
8622
8651
  width: ${props => props.width || '300px'};
8652
+ height: ${props => props.height || '40px'};
8623
8653
  font-family: "Poppins", sans-serif;
8624
8654
  font-weight: 400;
8625
8655
  font-size: 14px;
@@ -8645,7 +8675,10 @@ const Label$8 = styled__default["default"].label`
8645
8675
  color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
8646
8676
  background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
8647
8677
  position: absolute;
8648
- top: ${props => props.isFocused || props.hasValue ? '0px' : '28px'};
8678
+ top: ${props => {
8679
+ const height = parseInt(props.height.replace('px', ''), 10);
8680
+ return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
8681
+ }};
8649
8682
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
8650
8683
  transform: translateY(-50%);
8651
8684
  transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
@@ -8787,6 +8820,7 @@ const DropdownSingleNew = ({
8787
8820
  required,
8788
8821
  disabled,
8789
8822
  width,
8823
+ height,
8790
8824
  withMarginBottom = true,
8791
8825
  error,
8792
8826
  errorMessage,
@@ -8942,6 +8976,7 @@ const DropdownSingleNew = ({
8942
8976
  return /*#__PURE__*/React__default["default"].createElement(DropdownWrapper$2, {
8943
8977
  className: "DropdownWrapper",
8944
8978
  width: width,
8979
+ height: height,
8945
8980
  onMouseEnter: () => setHoverInputContainer(true),
8946
8981
  onMouseLeave: () => setHoverInputContainer(false)
8947
8982
  }, /*#__PURE__*/React__default["default"].createElement(InputContainer$8, {
@@ -8963,6 +8998,7 @@ const DropdownSingleNew = ({
8963
8998
  labelColor: labelColor,
8964
8999
  hasValue: selectedOptions?.length > 0 || inputValue,
8965
9000
  disabled: disabled,
9001
+ height: height,
8966
9002
  error: error,
8967
9003
  errorMessage: errorMessage,
8968
9004
  onClick: handleLabelClick,
@@ -9079,6 +9115,7 @@ const DropdownWrapper$1 = styled__default["default"].div`
9079
9115
  justify-content: center;
9080
9116
  align-items: flex-start;
9081
9117
  width: ${props => props.width || '300px'};
9118
+ height: ${props => props.height || '50px'};
9082
9119
  font-family: "Poppins", sans-serif;
9083
9120
  font-weight: 400;
9084
9121
  font-size: 14px;
@@ -9104,7 +9141,10 @@ const Label$7 = styled__default["default"].label`
9104
9141
  color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
9105
9142
  background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
9106
9143
  position: absolute;
9107
- top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
9144
+ top: ${props => {
9145
+ const height = parseInt(props.height.replace('px', ''), 10);
9146
+ return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
9147
+ }};
9108
9148
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
9109
9149
  font-family: Poppins;
9110
9150
  transform: translateY(-50%);
@@ -9449,6 +9489,7 @@ const DropdownMultiNew = ({
9449
9489
  return /*#__PURE__*/React__default["default"].createElement(DropdownWrapper$1, {
9450
9490
  className: "DropdownWrapper",
9451
9491
  width: width,
9492
+ height: height,
9452
9493
  onMouseEnter: () => setHoverInputContainer(true),
9453
9494
  onMouseLeave: () => setHoverInputContainer(false)
9454
9495
  }, /*#__PURE__*/React__default["default"].createElement(InputContainer$7, {
@@ -9471,6 +9512,7 @@ const DropdownMultiNew = ({
9471
9512
  labelColor: labelColor,
9472
9513
  hasValue: selectedOptions?.length > 0 || inputValue,
9473
9514
  disabled: disabled,
9515
+ height: height,
9474
9516
  error: error,
9475
9517
  errorMessage: errorMessage,
9476
9518
  onClick: handleLabelClick,
@@ -9545,6 +9587,7 @@ const DropdownMain = styled__default["default"].div`
9545
9587
  justify-content: center;
9546
9588
  align-items: flex-start;
9547
9589
  width: ${props => props.width || '300px'};
9590
+ height: ${props => props.height || '50px'};
9548
9591
  font-family: "Poppins", sans-serif;
9549
9592
  font-weight: 400;
9550
9593
  font-size: 14px;
@@ -9565,6 +9608,7 @@ const DropdownNew = props => {
9565
9608
  required = false,
9566
9609
  disabled = false,
9567
9610
  width = "300px",
9611
+ height = "52px",
9568
9612
  withMarginBottom = true,
9569
9613
  error = false,
9570
9614
  showLabelOnTop = true,
@@ -9583,7 +9627,8 @@ const DropdownNew = props => {
9583
9627
  };
9584
9628
  return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
9585
9629
  className: "DropdownMain",
9586
- width: width
9630
+ width: width,
9631
+ height: height
9587
9632
  }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
9588
9633
  className: "DropdownMultiNew",
9589
9634
  placeHolder: placeHolder,
@@ -9594,6 +9639,7 @@ const DropdownNew = props => {
9594
9639
  required: required,
9595
9640
  options: options,
9596
9641
  width: width,
9642
+ height: height,
9597
9643
  withMarginBottom: withMarginBottom,
9598
9644
  disabled: disabled,
9599
9645
  error: error,
@@ -9614,6 +9660,7 @@ const DropdownNew = props => {
9614
9660
  required: required,
9615
9661
  options: options,
9616
9662
  width: width,
9663
+ height: height,
9617
9664
  withMarginBottom: withMarginBottom,
9618
9665
  disabled: disabled,
9619
9666
  error: error,
@@ -28150,6 +28197,12 @@ const IconButton$1 = props => {
28150
28197
  width: iconWidth,
28151
28198
  color: contentColor
28152
28199
  });
28200
+ case 'arrowleft':
28201
+ return /*#__PURE__*/React__default["default"].createElement(ArrowLeftIcon, {
28202
+ height: iconHeight,
28203
+ width: iconWidth,
28204
+ color: contentColor
28205
+ });
28153
28206
  default:
28154
28207
  return '';
28155
28208
  }
@@ -35566,9 +35619,12 @@ const ToggleSwitchLabel = styled__default["default"].label`
35566
35619
  position: relative;
35567
35620
  cursor: pointer;
35568
35621
  user-select: none;
35569
- opacity: ${({
35570
- disabled
35571
- }) => disabled ? 0.5 : 1};
35622
+ opacity: ${_ref => {
35623
+ let {
35624
+ disabled
35625
+ } = _ref;
35626
+ return disabled ? 0.5 : 1;
35627
+ }};
35572
35628
  `;
35573
35629
  const ToggleInput = styled__default["default"].input`
35574
35630
  display: none;
@@ -35576,15 +35632,19 @@ const ToggleInput = styled__default["default"].input`
35576
35632
  const ToggleSlider = styled__default["default"].span`
35577
35633
  display: block;
35578
35634
  position: relative;
35579
- background: ${({
35580
- checked,
35581
- disabled
35582
- }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
35635
+ background: ${_ref2 => {
35636
+ let {
35637
+ checked,
35638
+ disabled
35639
+ } = _ref2;
35640
+ return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
35641
+ }};
35583
35642
  border-radius: 999px;
35584
35643
  transition: background 0.2s;
35585
- ${({
35586
- size
35587
- }) => {
35644
+ ${_ref3 => {
35645
+ let {
35646
+ size
35647
+ } = _ref3;
35588
35648
  switch (size) {
35589
35649
  case "s":
35590
35650
  return styled.css`width: 40px; height: 20px;`;
@@ -35603,9 +35663,10 @@ const ToggleSlider = styled__default["default"].span`
35603
35663
  background: #fff;
35604
35664
  border-radius: 50%;
35605
35665
  transition: left 0.2s, width 0.2s, height 0.2s;
35606
- ${({
35607
- size
35608
- }) => {
35666
+ ${_ref4 => {
35667
+ let {
35668
+ size
35669
+ } = _ref4;
35609
35670
  switch (size) {
35610
35671
  case "s":
35611
35672
  return styled.css`width: 14px; height: 14px;`;
@@ -35615,10 +35676,11 @@ const ToggleSlider = styled__default["default"].span`
35615
35676
  return styled.css`width: 20px; height: 20px;`;
35616
35677
  }
35617
35678
  }}
35618
- left: ${({
35619
- checked,
35620
- size
35621
- }) => {
35679
+ left: ${_ref5 => {
35680
+ let {
35681
+ checked,
35682
+ size
35683
+ } = _ref5;
35622
35684
  if (!checked) return "3px";
35623
35685
  switch (size) {
35624
35686
  case "s":