sag_components 2.0.0-beta160 → 2.0.0-beta161

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
@@ -8620,6 +8620,7 @@ const DropdownWrapper$2 = styled__default["default"].div`
8620
8620
  justify-content: center;
8621
8621
  align-items: flex-start;
8622
8622
  width: ${props => props.width || '300px'};
8623
+ height: ${props => props.height || '40px'};
8623
8624
  font-family: "Poppins", sans-serif;
8624
8625
  font-weight: 400;
8625
8626
  font-size: 14px;
@@ -8645,7 +8646,10 @@ const Label$8 = styled__default["default"].label`
8645
8646
  color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
8646
8647
  background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
8647
8648
  position: absolute;
8648
- top: ${props => props.isFocused || props.hasValue ? '0px' : '28px'};
8649
+ top: ${props => {
8650
+ const height = parseInt(props.height.replace('px', ''), 10);
8651
+ return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
8652
+ }};
8649
8653
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
8650
8654
  transform: translateY(-50%);
8651
8655
  transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
@@ -8787,6 +8791,7 @@ const DropdownSingleNew = ({
8787
8791
  required,
8788
8792
  disabled,
8789
8793
  width,
8794
+ height,
8790
8795
  withMarginBottom = true,
8791
8796
  error,
8792
8797
  errorMessage,
@@ -8942,6 +8947,7 @@ const DropdownSingleNew = ({
8942
8947
  return /*#__PURE__*/React__default["default"].createElement(DropdownWrapper$2, {
8943
8948
  className: "DropdownWrapper",
8944
8949
  width: width,
8950
+ height: height,
8945
8951
  onMouseEnter: () => setHoverInputContainer(true),
8946
8952
  onMouseLeave: () => setHoverInputContainer(false)
8947
8953
  }, /*#__PURE__*/React__default["default"].createElement(InputContainer$8, {
@@ -8963,6 +8969,7 @@ const DropdownSingleNew = ({
8963
8969
  labelColor: labelColor,
8964
8970
  hasValue: selectedOptions?.length > 0 || inputValue,
8965
8971
  disabled: disabled,
8972
+ height: height,
8966
8973
  error: error,
8967
8974
  errorMessage: errorMessage,
8968
8975
  onClick: handleLabelClick,
@@ -9079,6 +9086,7 @@ const DropdownWrapper$1 = styled__default["default"].div`
9079
9086
  justify-content: center;
9080
9087
  align-items: flex-start;
9081
9088
  width: ${props => props.width || '300px'};
9089
+ height: ${props => props.height || '50px'};
9082
9090
  font-family: "Poppins", sans-serif;
9083
9091
  font-weight: 400;
9084
9092
  font-size: 14px;
@@ -9104,7 +9112,10 @@ const Label$7 = styled__default["default"].label`
9104
9112
  color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
9105
9113
  background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
9106
9114
  position: absolute;
9107
- top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
9115
+ top: ${props => {
9116
+ const height = parseInt(props.height.replace('px', ''), 10);
9117
+ return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
9118
+ }};
9108
9119
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
9109
9120
  font-family: Poppins;
9110
9121
  transform: translateY(-50%);
@@ -9449,6 +9460,7 @@ const DropdownMultiNew = ({
9449
9460
  return /*#__PURE__*/React__default["default"].createElement(DropdownWrapper$1, {
9450
9461
  className: "DropdownWrapper",
9451
9462
  width: width,
9463
+ height: height,
9452
9464
  onMouseEnter: () => setHoverInputContainer(true),
9453
9465
  onMouseLeave: () => setHoverInputContainer(false)
9454
9466
  }, /*#__PURE__*/React__default["default"].createElement(InputContainer$7, {
@@ -9471,6 +9483,7 @@ const DropdownMultiNew = ({
9471
9483
  labelColor: labelColor,
9472
9484
  hasValue: selectedOptions?.length > 0 || inputValue,
9473
9485
  disabled: disabled,
9486
+ height: height,
9474
9487
  error: error,
9475
9488
  errorMessage: errorMessage,
9476
9489
  onClick: handleLabelClick,
@@ -9545,6 +9558,7 @@ const DropdownMain = styled__default["default"].div`
9545
9558
  justify-content: center;
9546
9559
  align-items: flex-start;
9547
9560
  width: ${props => props.width || '300px'};
9561
+ height: ${props => props.height || '50px'};
9548
9562
  font-family: "Poppins", sans-serif;
9549
9563
  font-weight: 400;
9550
9564
  font-size: 14px;
@@ -9565,6 +9579,7 @@ const DropdownNew = props => {
9565
9579
  required = false,
9566
9580
  disabled = false,
9567
9581
  width = "300px",
9582
+ height = "52px",
9568
9583
  withMarginBottom = true,
9569
9584
  error = false,
9570
9585
  showLabelOnTop = true,
@@ -9583,7 +9598,8 @@ const DropdownNew = props => {
9583
9598
  };
9584
9599
  return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
9585
9600
  className: "DropdownMain",
9586
- width: width
9601
+ width: width,
9602
+ height: height
9587
9603
  }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
9588
9604
  className: "DropdownMultiNew",
9589
9605
  placeHolder: placeHolder,
@@ -9594,6 +9610,7 @@ const DropdownNew = props => {
9594
9610
  required: required,
9595
9611
  options: options,
9596
9612
  width: width,
9613
+ height: height,
9597
9614
  withMarginBottom: withMarginBottom,
9598
9615
  disabled: disabled,
9599
9616
  error: error,
@@ -9614,6 +9631,7 @@ const DropdownNew = props => {
9614
9631
  required: required,
9615
9632
  options: options,
9616
9633
  width: width,
9634
+ height: height,
9617
9635
  withMarginBottom: withMarginBottom,
9618
9636
  disabled: disabled,
9619
9637
  error: error,
@@ -10385,24 +10403,23 @@ const QuarterPopupPicker = ({
10385
10403
  };
10386
10404
 
10387
10405
  /* eslint-disable import/no-extraneous-dependencies */
10388
- const QuarterPicker = _ref => {
10389
- let {
10390
- availableQuarters,
10391
- // ["Q1-2024"]
10392
- label,
10393
- onChange,
10394
- borderRadius,
10395
- required,
10396
- width,
10397
- height,
10398
- placeholder,
10399
- disabled,
10400
- borderColor,
10401
- borderColorFocus,
10402
- textColor,
10403
- selectedValue,
10404
- startYear
10405
- } = _ref;
10406
+ const QuarterPicker = ({
10407
+ availableQuarters,
10408
+ // ["Q1-2024"]
10409
+ label,
10410
+ onChange,
10411
+ borderRadius,
10412
+ required,
10413
+ width,
10414
+ height,
10415
+ placeholder,
10416
+ disabled,
10417
+ borderColor,
10418
+ borderColorFocus,
10419
+ textColor,
10420
+ selectedValue,
10421
+ startYear
10422
+ }) => {
10406
10423
  const [isFocused, setIsFocused] = React$1.useState(false);
10407
10424
  const [isOpen, setIsOpen] = React$1.useState(false);
10408
10425
  const [value, setValue] = React$1.useState('');
@@ -10844,23 +10861,22 @@ const MonthPopupPicker = ({
10844
10861
  };
10845
10862
 
10846
10863
  /* eslint-disable import/no-extraneous-dependencies */
10847
- const MonthPicker = _ref => {
10848
- let {
10849
- availableMonths,
10850
- label,
10851
- onChange,
10852
- borderRadius,
10853
- required,
10854
- width,
10855
- height,
10856
- placeholder,
10857
- disabled,
10858
- borderColor,
10859
- borderColorFocus,
10860
- textColor,
10861
- selectedValue,
10862
- startYear
10863
- } = _ref;
10864
+ const MonthPicker = ({
10865
+ availableMonths,
10866
+ label,
10867
+ onChange,
10868
+ borderRadius,
10869
+ required,
10870
+ width,
10871
+ height,
10872
+ placeholder,
10873
+ disabled,
10874
+ borderColor,
10875
+ borderColorFocus,
10876
+ textColor,
10877
+ selectedValue,
10878
+ startYear
10879
+ }) => {
10864
10880
  const [isFocused, setIsFocused] = React$1.useState(false);
10865
10881
  const [isOpen, setIsOpen] = React$1.useState(false);
10866
10882
  const [value, setValue] = React$1.useState('');
@@ -23971,22 +23987,21 @@ const DeleteIcon = styled__default["default"].div`
23971
23987
  position: absolute;
23972
23988
  `;
23973
23989
 
23974
- const QuickFilterDropdownSingle = _ref => {
23975
- let {
23976
- label,
23977
- hoverColor,
23978
- options,
23979
- selectedValue,
23980
- placeHolder,
23981
- onChange,
23982
- disabled,
23983
- width,
23984
- error,
23985
- errorMessage,
23986
- xIconShow,
23987
- labelColor,
23988
- showLabelOnTop
23989
- } = _ref;
23990
+ const QuickFilterDropdownSingle = ({
23991
+ label,
23992
+ hoverColor,
23993
+ options,
23994
+ selectedValue,
23995
+ placeHolder,
23996
+ onChange,
23997
+ disabled,
23998
+ width,
23999
+ error,
24000
+ errorMessage,
24001
+ xIconShow,
24002
+ labelColor,
24003
+ showLabelOnTop
24004
+ }) => {
23990
24005
  const [isFocused, setIsFocused] = React$1.useState(false);
23991
24006
  const [showOptions, setShowOptions] = React$1.useState(false);
23992
24007
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24383,24 +24398,23 @@ const IconContainer$2 = styled__default["default"].div`
24383
24398
  cursor: pointer;
24384
24399
  `;
24385
24400
 
24386
- const QuickFilterDropdownMultiSelection = _ref => {
24387
- let {
24388
- label,
24389
- labelEmptyValue,
24390
- options,
24391
- selectedValue,
24392
- placeHolder,
24393
- onChange,
24394
- required,
24395
- disabled,
24396
- width,
24397
- error,
24398
- errorMessage,
24399
- labelColor,
24400
- xIconShow,
24401
- checkBoxColor,
24402
- showLabelOnTop
24403
- } = _ref;
24401
+ const QuickFilterDropdownMultiSelection = ({
24402
+ label,
24403
+ labelEmptyValue,
24404
+ options,
24405
+ selectedValue,
24406
+ placeHolder,
24407
+ onChange,
24408
+ required,
24409
+ disabled,
24410
+ width,
24411
+ error,
24412
+ errorMessage,
24413
+ labelColor,
24414
+ xIconShow,
24415
+ checkBoxColor,
24416
+ showLabelOnTop
24417
+ }) => {
24404
24418
  const [isFocused, setIsFocused] = React$1.useState(false);
24405
24419
  const [showOptions, setShowOptions] = React$1.useState(false);
24406
24420
  const [inputValue, setInputValue] = React$1.useState('');
@@ -35632,9 +35646,9 @@ const ToggleSlider = styled__default["default"].span`
35632
35646
  }
35633
35647
  `;
35634
35648
 
35635
- /**
35636
- * ToggleSwitch component for on/off states.
35637
- * Supports small/large sizes and disabled state.
35649
+ /**
35650
+ * ToggleSwitch component for on/off states.
35651
+ * Supports small/large sizes and disabled state.
35638
35652
  */
35639
35653
  function ToggleSwitch(_ref) {
35640
35654
  let {