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.js CHANGED
@@ -9850,6 +9850,8 @@ const DropdownNew = props => {
9850
9850
  if (event && event.newValue && event.newValue[0]) {
9851
9851
  onChange && onChange(event);
9852
9852
  handleChange && handleChange(event.newValue[0].value);
9853
+ } else if (event && Array.isArray(event.newValue) && event.newValue.length === 0) {
9854
+ onChange && onChange(event);
9853
9855
  }
9854
9856
  };
9855
9857
  return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
@@ -10657,23 +10659,24 @@ const QuarterPopupPicker = ({
10657
10659
  };
10658
10660
 
10659
10661
  /* eslint-disable import/no-extraneous-dependencies */
10660
- const QuarterPicker = ({
10661
- availableQuarters,
10662
- // ["Q1-2024"]
10663
- label,
10664
- onChange,
10665
- borderRadius,
10666
- required,
10667
- width,
10668
- height,
10669
- placeholder,
10670
- disabled,
10671
- borderColor,
10672
- borderColorFocus,
10673
- textColor,
10674
- selectedValue,
10675
- startYear
10676
- }) => {
10662
+ const QuarterPicker = _ref => {
10663
+ let {
10664
+ availableQuarters,
10665
+ // ["Q1-2024"]
10666
+ label,
10667
+ onChange,
10668
+ borderRadius,
10669
+ required,
10670
+ width,
10671
+ height,
10672
+ placeholder,
10673
+ disabled,
10674
+ borderColor,
10675
+ borderColorFocus,
10676
+ textColor,
10677
+ selectedValue,
10678
+ startYear
10679
+ } = _ref;
10677
10680
  const [isFocused, setIsFocused] = React$1.useState(false);
10678
10681
  const [isOpen, setIsOpen] = React$1.useState(false);
10679
10682
  const [value, setValue] = React$1.useState('');
@@ -11115,22 +11118,23 @@ const MonthPopupPicker = ({
11115
11118
  };
11116
11119
 
11117
11120
  /* eslint-disable import/no-extraneous-dependencies */
11118
- const MonthPicker = ({
11119
- availableMonths,
11120
- label,
11121
- onChange,
11122
- borderRadius,
11123
- required,
11124
- width,
11125
- height,
11126
- placeholder,
11127
- disabled,
11128
- borderColor,
11129
- borderColorFocus,
11130
- textColor,
11131
- selectedValue,
11132
- startYear
11133
- }) => {
11121
+ const MonthPicker = _ref => {
11122
+ let {
11123
+ availableMonths,
11124
+ label,
11125
+ onChange,
11126
+ borderRadius,
11127
+ required,
11128
+ width,
11129
+ height,
11130
+ placeholder,
11131
+ disabled,
11132
+ borderColor,
11133
+ borderColorFocus,
11134
+ textColor,
11135
+ selectedValue,
11136
+ startYear
11137
+ } = _ref;
11134
11138
  const [isFocused, setIsFocused] = React$1.useState(false);
11135
11139
  const [isOpen, setIsOpen] = React$1.useState(false);
11136
11140
  const [value, setValue] = React$1.useState('');
@@ -24247,23 +24251,24 @@ const DeleteIcon = styled__default["default"].div`
24247
24251
  position: absolute;
24248
24252
  `;
24249
24253
 
24250
- const QuickFilterDropdownSingle = ({
24251
- label,
24252
- hoverColor,
24253
- options,
24254
- selectedValue,
24255
- placeHolder,
24256
- optionHoverColor = '#edf6ff',
24257
- selectedOptionColor = "#C7E4FF",
24258
- onChange,
24259
- disabled,
24260
- width,
24261
- error,
24262
- errorMessage,
24263
- xIconShow,
24264
- labelColor,
24265
- showLabelOnTop
24266
- }) => {
24254
+ const QuickFilterDropdownSingle = _ref => {
24255
+ let {
24256
+ label,
24257
+ hoverColor,
24258
+ options,
24259
+ selectedValue,
24260
+ placeHolder,
24261
+ optionHoverColor = '#edf6ff',
24262
+ selectedOptionColor = "#C7E4FF",
24263
+ onChange,
24264
+ disabled,
24265
+ width,
24266
+ error,
24267
+ errorMessage,
24268
+ xIconShow,
24269
+ labelColor,
24270
+ showLabelOnTop
24271
+ } = _ref;
24267
24272
  const [isFocused, setIsFocused] = React$1.useState(false);
24268
24273
  const [showOptions, setShowOptions] = React$1.useState(false);
24269
24274
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24721,26 +24726,27 @@ const IconContainer$2 = styled__default["default"].div`
24721
24726
  cursor: pointer;
24722
24727
  `;
24723
24728
 
24724
- const QuickFilterDropdownMultiSelection = ({
24725
- label,
24726
- labelEmptyValue,
24727
- options,
24728
- selectedValue,
24729
- placeHolder,
24730
- onChange,
24731
- required,
24732
- disabled,
24733
- width,
24734
- height,
24735
- error,
24736
- errorMessage,
24737
- labelColor,
24738
- optionHoverColor = '#edf6ff',
24739
- xIconShow,
24740
- checkBoxColor,
24741
- showLabelOnTop,
24742
- dropdownHeight
24743
- }) => {
24729
+ const QuickFilterDropdownMultiSelection = _ref => {
24730
+ let {
24731
+ label,
24732
+ labelEmptyValue,
24733
+ options,
24734
+ selectedValue,
24735
+ placeHolder,
24736
+ onChange,
24737
+ required,
24738
+ disabled,
24739
+ width,
24740
+ height,
24741
+ error,
24742
+ errorMessage,
24743
+ labelColor,
24744
+ optionHoverColor = '#edf6ff',
24745
+ xIconShow,
24746
+ checkBoxColor,
24747
+ showLabelOnTop,
24748
+ dropdownHeight
24749
+ } = _ref;
24744
24750
  const [isFocused, setIsFocused] = React$1.useState(false);
24745
24751
  const [showOptions, setShowOptions] = React$1.useState(false);
24746
24752
  const [inputValue, setInputValue] = React$1.useState('');
@@ -36286,9 +36292,9 @@ const ToggleSlider = styled__default["default"].span`
36286
36292
  }
36287
36293
  `;
36288
36294
 
36289
- /**
36290
- * ToggleSwitch component for on/off states.
36291
- * Supports small/large sizes and disabled state.
36295
+ /**
36296
+ * ToggleSwitch component for on/off states.
36297
+ * Supports small/large sizes and disabled state.
36292
36298
  */
36293
36299
  function ToggleSwitch(_ref) {
36294
36300
  let {