sag_components 2.0.0-beta324 → 2.0.0-beta325

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
@@ -9840,6 +9840,8 @@ const DropdownNew = props => {
9840
9840
  if (event && event.newValue && event.newValue[0]) {
9841
9841
  onChange && onChange(event);
9842
9842
  handleChange && handleChange(event.newValue[0].value);
9843
+ } else if (event && Array.isArray(event.newValue) && event.newValue.length === 0) {
9844
+ onChange && onChange(event);
9843
9845
  }
9844
9846
  };
9845
9847
  return /*#__PURE__*/React$1.createElement(DropdownMain, {
@@ -10647,23 +10649,24 @@ const QuarterPopupPicker = ({
10647
10649
  };
10648
10650
 
10649
10651
  /* eslint-disable import/no-extraneous-dependencies */
10650
- const QuarterPicker = ({
10651
- availableQuarters,
10652
- // ["Q1-2024"]
10653
- label,
10654
- onChange,
10655
- borderRadius,
10656
- required,
10657
- width,
10658
- height,
10659
- placeholder,
10660
- disabled,
10661
- borderColor,
10662
- borderColorFocus,
10663
- textColor,
10664
- selectedValue,
10665
- startYear
10666
- }) => {
10652
+ const QuarterPicker = _ref => {
10653
+ let {
10654
+ availableQuarters,
10655
+ // ["Q1-2024"]
10656
+ label,
10657
+ onChange,
10658
+ borderRadius,
10659
+ required,
10660
+ width,
10661
+ height,
10662
+ placeholder,
10663
+ disabled,
10664
+ borderColor,
10665
+ borderColorFocus,
10666
+ textColor,
10667
+ selectedValue,
10668
+ startYear
10669
+ } = _ref;
10667
10670
  const [isFocused, setIsFocused] = useState(false);
10668
10671
  const [isOpen, setIsOpen] = useState(false);
10669
10672
  const [value, setValue] = useState('');
@@ -11105,22 +11108,23 @@ const MonthPopupPicker = ({
11105
11108
  };
11106
11109
 
11107
11110
  /* eslint-disable import/no-extraneous-dependencies */
11108
- const MonthPicker = ({
11109
- availableMonths,
11110
- label,
11111
- onChange,
11112
- borderRadius,
11113
- required,
11114
- width,
11115
- height,
11116
- placeholder,
11117
- disabled,
11118
- borderColor,
11119
- borderColorFocus,
11120
- textColor,
11121
- selectedValue,
11122
- startYear
11123
- }) => {
11111
+ const MonthPicker = _ref => {
11112
+ let {
11113
+ availableMonths,
11114
+ label,
11115
+ onChange,
11116
+ borderRadius,
11117
+ required,
11118
+ width,
11119
+ height,
11120
+ placeholder,
11121
+ disabled,
11122
+ borderColor,
11123
+ borderColorFocus,
11124
+ textColor,
11125
+ selectedValue,
11126
+ startYear
11127
+ } = _ref;
11124
11128
  const [isFocused, setIsFocused] = useState(false);
11125
11129
  const [isOpen, setIsOpen] = useState(false);
11126
11130
  const [value, setValue] = useState('');
@@ -24237,23 +24241,24 @@ const DeleteIcon = styled.div`
24237
24241
  position: absolute;
24238
24242
  `;
24239
24243
 
24240
- const QuickFilterDropdownSingle = ({
24241
- label,
24242
- hoverColor,
24243
- options,
24244
- selectedValue,
24245
- placeHolder,
24246
- optionHoverColor = '#edf6ff',
24247
- selectedOptionColor = "#C7E4FF",
24248
- onChange,
24249
- disabled,
24250
- width,
24251
- error,
24252
- errorMessage,
24253
- xIconShow,
24254
- labelColor,
24255
- showLabelOnTop
24256
- }) => {
24244
+ const QuickFilterDropdownSingle = _ref => {
24245
+ let {
24246
+ label,
24247
+ hoverColor,
24248
+ options,
24249
+ selectedValue,
24250
+ placeHolder,
24251
+ optionHoverColor = '#edf6ff',
24252
+ selectedOptionColor = "#C7E4FF",
24253
+ onChange,
24254
+ disabled,
24255
+ width,
24256
+ error,
24257
+ errorMessage,
24258
+ xIconShow,
24259
+ labelColor,
24260
+ showLabelOnTop
24261
+ } = _ref;
24257
24262
  const [isFocused, setIsFocused] = useState(false);
24258
24263
  const [showOptions, setShowOptions] = useState(false);
24259
24264
  const [inputValue, setInputValue] = useState("");
@@ -24711,26 +24716,27 @@ const IconContainer$2 = styled.div`
24711
24716
  cursor: pointer;
24712
24717
  `;
24713
24718
 
24714
- const QuickFilterDropdownMultiSelection = ({
24715
- label,
24716
- labelEmptyValue,
24717
- options,
24718
- selectedValue,
24719
- placeHolder,
24720
- onChange,
24721
- required,
24722
- disabled,
24723
- width,
24724
- height,
24725
- error,
24726
- errorMessage,
24727
- labelColor,
24728
- optionHoverColor = '#edf6ff',
24729
- xIconShow,
24730
- checkBoxColor,
24731
- showLabelOnTop,
24732
- dropdownHeight
24733
- }) => {
24719
+ const QuickFilterDropdownMultiSelection = _ref => {
24720
+ let {
24721
+ label,
24722
+ labelEmptyValue,
24723
+ options,
24724
+ selectedValue,
24725
+ placeHolder,
24726
+ onChange,
24727
+ required,
24728
+ disabled,
24729
+ width,
24730
+ height,
24731
+ error,
24732
+ errorMessage,
24733
+ labelColor,
24734
+ optionHoverColor = '#edf6ff',
24735
+ xIconShow,
24736
+ checkBoxColor,
24737
+ showLabelOnTop,
24738
+ dropdownHeight
24739
+ } = _ref;
24734
24740
  const [isFocused, setIsFocused] = useState(false);
24735
24741
  const [showOptions, setShowOptions] = useState(false);
24736
24742
  const [inputValue, setInputValue] = useState('');
@@ -36276,9 +36282,9 @@ const ToggleSlider = styled.span`
36276
36282
  }
36277
36283
  `;
36278
36284
 
36279
- /**
36280
- * ToggleSwitch component for on/off states.
36281
- * Supports small/large sizes and disabled state.
36285
+ /**
36286
+ * ToggleSwitch component for on/off states.
36287
+ * Supports small/large sizes and disabled state.
36282
36288
  */
36283
36289
  function ToggleSwitch(_ref) {
36284
36290
  let {