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.esm.js CHANGED
@@ -8610,6 +8610,7 @@ const DropdownWrapper$2 = styled.div`
8610
8610
  justify-content: center;
8611
8611
  align-items: flex-start;
8612
8612
  width: ${props => props.width || '300px'};
8613
+ height: ${props => props.height || '40px'};
8613
8614
  font-family: "Poppins", sans-serif;
8614
8615
  font-weight: 400;
8615
8616
  font-size: 14px;
@@ -8635,7 +8636,10 @@ const Label$8 = styled.label`
8635
8636
  color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
8636
8637
  background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
8637
8638
  position: absolute;
8638
- top: ${props => props.isFocused || props.hasValue ? '0px' : '28px'};
8639
+ top: ${props => {
8640
+ const height = parseInt(props.height.replace('px', ''), 10);
8641
+ return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
8642
+ }};
8639
8643
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
8640
8644
  transform: translateY(-50%);
8641
8645
  transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
@@ -8777,6 +8781,7 @@ const DropdownSingleNew = ({
8777
8781
  required,
8778
8782
  disabled,
8779
8783
  width,
8784
+ height,
8780
8785
  withMarginBottom = true,
8781
8786
  error,
8782
8787
  errorMessage,
@@ -8932,6 +8937,7 @@ const DropdownSingleNew = ({
8932
8937
  return /*#__PURE__*/React$1.createElement(DropdownWrapper$2, {
8933
8938
  className: "DropdownWrapper",
8934
8939
  width: width,
8940
+ height: height,
8935
8941
  onMouseEnter: () => setHoverInputContainer(true),
8936
8942
  onMouseLeave: () => setHoverInputContainer(false)
8937
8943
  }, /*#__PURE__*/React$1.createElement(InputContainer$8, {
@@ -8953,6 +8959,7 @@ const DropdownSingleNew = ({
8953
8959
  labelColor: labelColor,
8954
8960
  hasValue: selectedOptions?.length > 0 || inputValue,
8955
8961
  disabled: disabled,
8962
+ height: height,
8956
8963
  error: error,
8957
8964
  errorMessage: errorMessage,
8958
8965
  onClick: handleLabelClick,
@@ -9069,6 +9076,7 @@ const DropdownWrapper$1 = styled.div`
9069
9076
  justify-content: center;
9070
9077
  align-items: flex-start;
9071
9078
  width: ${props => props.width || '300px'};
9079
+ height: ${props => props.height || '50px'};
9072
9080
  font-family: "Poppins", sans-serif;
9073
9081
  font-weight: 400;
9074
9082
  font-size: 14px;
@@ -9094,7 +9102,10 @@ const Label$7 = styled.label`
9094
9102
  color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
9095
9103
  background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
9096
9104
  position: absolute;
9097
- top: ${props => props.isFocused || props.hasValue ? '0px' : '27px'};
9105
+ top: ${props => {
9106
+ const height = parseInt(props.height.replace('px', ''), 10);
9107
+ return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
9108
+ }};
9098
9109
  left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
9099
9110
  font-family: Poppins;
9100
9111
  transform: translateY(-50%);
@@ -9439,6 +9450,7 @@ const DropdownMultiNew = ({
9439
9450
  return /*#__PURE__*/React$1.createElement(DropdownWrapper$1, {
9440
9451
  className: "DropdownWrapper",
9441
9452
  width: width,
9453
+ height: height,
9442
9454
  onMouseEnter: () => setHoverInputContainer(true),
9443
9455
  onMouseLeave: () => setHoverInputContainer(false)
9444
9456
  }, /*#__PURE__*/React$1.createElement(InputContainer$7, {
@@ -9461,6 +9473,7 @@ const DropdownMultiNew = ({
9461
9473
  labelColor: labelColor,
9462
9474
  hasValue: selectedOptions?.length > 0 || inputValue,
9463
9475
  disabled: disabled,
9476
+ height: height,
9464
9477
  error: error,
9465
9478
  errorMessage: errorMessage,
9466
9479
  onClick: handleLabelClick,
@@ -9535,6 +9548,7 @@ const DropdownMain = styled.div`
9535
9548
  justify-content: center;
9536
9549
  align-items: flex-start;
9537
9550
  width: ${props => props.width || '300px'};
9551
+ height: ${props => props.height || '50px'};
9538
9552
  font-family: "Poppins", sans-serif;
9539
9553
  font-weight: 400;
9540
9554
  font-size: 14px;
@@ -9555,6 +9569,7 @@ const DropdownNew = props => {
9555
9569
  required = false,
9556
9570
  disabled = false,
9557
9571
  width = "300px",
9572
+ height = "52px",
9558
9573
  withMarginBottom = true,
9559
9574
  error = false,
9560
9575
  showLabelOnTop = true,
@@ -9573,7 +9588,8 @@ const DropdownNew = props => {
9573
9588
  };
9574
9589
  return /*#__PURE__*/React$1.createElement(DropdownMain, {
9575
9590
  className: "DropdownMain",
9576
- width: width
9591
+ width: width,
9592
+ height: height
9577
9593
  }, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
9578
9594
  className: "DropdownMultiNew",
9579
9595
  placeHolder: placeHolder,
@@ -9584,6 +9600,7 @@ const DropdownNew = props => {
9584
9600
  required: required,
9585
9601
  options: options,
9586
9602
  width: width,
9603
+ height: height,
9587
9604
  withMarginBottom: withMarginBottom,
9588
9605
  disabled: disabled,
9589
9606
  error: error,
@@ -9604,6 +9621,7 @@ const DropdownNew = props => {
9604
9621
  required: required,
9605
9622
  options: options,
9606
9623
  width: width,
9624
+ height: height,
9607
9625
  withMarginBottom: withMarginBottom,
9608
9626
  disabled: disabled,
9609
9627
  error: error,
@@ -10375,24 +10393,23 @@ const QuarterPopupPicker = ({
10375
10393
  };
10376
10394
 
10377
10395
  /* eslint-disable import/no-extraneous-dependencies */
10378
- const QuarterPicker = _ref => {
10379
- let {
10380
- availableQuarters,
10381
- // ["Q1-2024"]
10382
- label,
10383
- onChange,
10384
- borderRadius,
10385
- required,
10386
- width,
10387
- height,
10388
- placeholder,
10389
- disabled,
10390
- borderColor,
10391
- borderColorFocus,
10392
- textColor,
10393
- selectedValue,
10394
- startYear
10395
- } = _ref;
10396
+ const QuarterPicker = ({
10397
+ availableQuarters,
10398
+ // ["Q1-2024"]
10399
+ label,
10400
+ onChange,
10401
+ borderRadius,
10402
+ required,
10403
+ width,
10404
+ height,
10405
+ placeholder,
10406
+ disabled,
10407
+ borderColor,
10408
+ borderColorFocus,
10409
+ textColor,
10410
+ selectedValue,
10411
+ startYear
10412
+ }) => {
10396
10413
  const [isFocused, setIsFocused] = useState(false);
10397
10414
  const [isOpen, setIsOpen] = useState(false);
10398
10415
  const [value, setValue] = useState('');
@@ -10834,23 +10851,22 @@ const MonthPopupPicker = ({
10834
10851
  };
10835
10852
 
10836
10853
  /* eslint-disable import/no-extraneous-dependencies */
10837
- const MonthPicker = _ref => {
10838
- let {
10839
- availableMonths,
10840
- label,
10841
- onChange,
10842
- borderRadius,
10843
- required,
10844
- width,
10845
- height,
10846
- placeholder,
10847
- disabled,
10848
- borderColor,
10849
- borderColorFocus,
10850
- textColor,
10851
- selectedValue,
10852
- startYear
10853
- } = _ref;
10854
+ const MonthPicker = ({
10855
+ availableMonths,
10856
+ label,
10857
+ onChange,
10858
+ borderRadius,
10859
+ required,
10860
+ width,
10861
+ height,
10862
+ placeholder,
10863
+ disabled,
10864
+ borderColor,
10865
+ borderColorFocus,
10866
+ textColor,
10867
+ selectedValue,
10868
+ startYear
10869
+ }) => {
10854
10870
  const [isFocused, setIsFocused] = useState(false);
10855
10871
  const [isOpen, setIsOpen] = useState(false);
10856
10872
  const [value, setValue] = useState('');
@@ -23961,22 +23977,21 @@ const DeleteIcon = styled.div`
23961
23977
  position: absolute;
23962
23978
  `;
23963
23979
 
23964
- const QuickFilterDropdownSingle = _ref => {
23965
- let {
23966
- label,
23967
- hoverColor,
23968
- options,
23969
- selectedValue,
23970
- placeHolder,
23971
- onChange,
23972
- disabled,
23973
- width,
23974
- error,
23975
- errorMessage,
23976
- xIconShow,
23977
- labelColor,
23978
- showLabelOnTop
23979
- } = _ref;
23980
+ const QuickFilterDropdownSingle = ({
23981
+ label,
23982
+ hoverColor,
23983
+ options,
23984
+ selectedValue,
23985
+ placeHolder,
23986
+ onChange,
23987
+ disabled,
23988
+ width,
23989
+ error,
23990
+ errorMessage,
23991
+ xIconShow,
23992
+ labelColor,
23993
+ showLabelOnTop
23994
+ }) => {
23980
23995
  const [isFocused, setIsFocused] = useState(false);
23981
23996
  const [showOptions, setShowOptions] = useState(false);
23982
23997
  const [inputValue, setInputValue] = useState("");
@@ -24373,24 +24388,23 @@ const IconContainer$2 = styled.div`
24373
24388
  cursor: pointer;
24374
24389
  `;
24375
24390
 
24376
- const QuickFilterDropdownMultiSelection = _ref => {
24377
- let {
24378
- label,
24379
- labelEmptyValue,
24380
- options,
24381
- selectedValue,
24382
- placeHolder,
24383
- onChange,
24384
- required,
24385
- disabled,
24386
- width,
24387
- error,
24388
- errorMessage,
24389
- labelColor,
24390
- xIconShow,
24391
- checkBoxColor,
24392
- showLabelOnTop
24393
- } = _ref;
24391
+ const QuickFilterDropdownMultiSelection = ({
24392
+ label,
24393
+ labelEmptyValue,
24394
+ options,
24395
+ selectedValue,
24396
+ placeHolder,
24397
+ onChange,
24398
+ required,
24399
+ disabled,
24400
+ width,
24401
+ error,
24402
+ errorMessage,
24403
+ labelColor,
24404
+ xIconShow,
24405
+ checkBoxColor,
24406
+ showLabelOnTop
24407
+ }) => {
24394
24408
  const [isFocused, setIsFocused] = useState(false);
24395
24409
  const [showOptions, setShowOptions] = useState(false);
24396
24410
  const [inputValue, setInputValue] = useState('');
@@ -35622,9 +35636,9 @@ const ToggleSlider = styled.span`
35622
35636
  }
35623
35637
  `;
35624
35638
 
35625
- /**
35626
- * ToggleSwitch component for on/off states.
35627
- * Supports small/large sizes and disabled state.
35639
+ /**
35640
+ * ToggleSwitch component for on/off states.
35641
+ * Supports small/large sizes and disabled state.
35628
35642
  */
35629
35643
  function ToggleSwitch(_ref) {
35630
35644
  let {