sag_components 2.0.0-beta162 → 2.0.0-beta163

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
@@ -8865,6 +8865,8 @@ const DropdownSingleNew = ({
8865
8865
  useEffect(() => {
8866
8866
  if (selectedValue) {
8867
8867
  setSelectedOptions(selectedValue);
8868
+ } else {
8869
+ setSelectedOptions([]);
8868
8870
  }
8869
8871
  }, [selectedValue]);
8870
8872
  useEffect(() => {
@@ -9361,6 +9363,8 @@ const DropdownMultiNew = ({
9361
9363
  useEffect(() => {
9362
9364
  if (selectedValue) {
9363
9365
  setSelectedOptions(selectedValue);
9366
+ } else {
9367
+ setSelectedOptions([]);
9364
9368
  }
9365
9369
  }, [selectedValue]);
9366
9370
  useEffect(() => {
@@ -10422,24 +10426,23 @@ const QuarterPopupPicker = ({
10422
10426
  };
10423
10427
 
10424
10428
  /* eslint-disable import/no-extraneous-dependencies */
10425
- const QuarterPicker = _ref => {
10426
- let {
10427
- availableQuarters,
10428
- // ["Q1-2024"]
10429
- label,
10430
- onChange,
10431
- borderRadius,
10432
- required,
10433
- width,
10434
- height,
10435
- placeholder,
10436
- disabled,
10437
- borderColor,
10438
- borderColorFocus,
10439
- textColor,
10440
- selectedValue,
10441
- startYear
10442
- } = _ref;
10429
+ const QuarterPicker = ({
10430
+ availableQuarters,
10431
+ // ["Q1-2024"]
10432
+ label,
10433
+ onChange,
10434
+ borderRadius,
10435
+ required,
10436
+ width,
10437
+ height,
10438
+ placeholder,
10439
+ disabled,
10440
+ borderColor,
10441
+ borderColorFocus,
10442
+ textColor,
10443
+ selectedValue,
10444
+ startYear
10445
+ }) => {
10443
10446
  const [isFocused, setIsFocused] = useState(false);
10444
10447
  const [isOpen, setIsOpen] = useState(false);
10445
10448
  const [value, setValue] = useState('');
@@ -10881,23 +10884,22 @@ const MonthPopupPicker = ({
10881
10884
  };
10882
10885
 
10883
10886
  /* eslint-disable import/no-extraneous-dependencies */
10884
- const MonthPicker = _ref => {
10885
- let {
10886
- availableMonths,
10887
- label,
10888
- onChange,
10889
- borderRadius,
10890
- required,
10891
- width,
10892
- height,
10893
- placeholder,
10894
- disabled,
10895
- borderColor,
10896
- borderColorFocus,
10897
- textColor,
10898
- selectedValue,
10899
- startYear
10900
- } = _ref;
10887
+ const MonthPicker = ({
10888
+ availableMonths,
10889
+ label,
10890
+ onChange,
10891
+ borderRadius,
10892
+ required,
10893
+ width,
10894
+ height,
10895
+ placeholder,
10896
+ disabled,
10897
+ borderColor,
10898
+ borderColorFocus,
10899
+ textColor,
10900
+ selectedValue,
10901
+ startYear
10902
+ }) => {
10901
10903
  const [isFocused, setIsFocused] = useState(false);
10902
10904
  const [isOpen, setIsOpen] = useState(false);
10903
10905
  const [value, setValue] = useState('');
@@ -24008,22 +24010,21 @@ const DeleteIcon = styled.div`
24008
24010
  position: absolute;
24009
24011
  `;
24010
24012
 
24011
- const QuickFilterDropdownSingle = _ref => {
24012
- let {
24013
- label,
24014
- hoverColor,
24015
- options,
24016
- selectedValue,
24017
- placeHolder,
24018
- onChange,
24019
- disabled,
24020
- width,
24021
- error,
24022
- errorMessage,
24023
- xIconShow,
24024
- labelColor,
24025
- showLabelOnTop
24026
- } = _ref;
24013
+ const QuickFilterDropdownSingle = ({
24014
+ label,
24015
+ hoverColor,
24016
+ options,
24017
+ selectedValue,
24018
+ placeHolder,
24019
+ onChange,
24020
+ disabled,
24021
+ width,
24022
+ error,
24023
+ errorMessage,
24024
+ xIconShow,
24025
+ labelColor,
24026
+ showLabelOnTop
24027
+ }) => {
24027
24028
  const [isFocused, setIsFocused] = useState(false);
24028
24029
  const [showOptions, setShowOptions] = useState(false);
24029
24030
  const [inputValue, setInputValue] = useState("");
@@ -24420,24 +24421,23 @@ const IconContainer$2 = styled.div`
24420
24421
  cursor: pointer;
24421
24422
  `;
24422
24423
 
24423
- const QuickFilterDropdownMultiSelection = _ref => {
24424
- let {
24425
- label,
24426
- labelEmptyValue,
24427
- options,
24428
- selectedValue,
24429
- placeHolder,
24430
- onChange,
24431
- required,
24432
- disabled,
24433
- width,
24434
- error,
24435
- errorMessage,
24436
- labelColor,
24437
- xIconShow,
24438
- checkBoxColor,
24439
- showLabelOnTop
24440
- } = _ref;
24424
+ const QuickFilterDropdownMultiSelection = ({
24425
+ label,
24426
+ labelEmptyValue,
24427
+ options,
24428
+ selectedValue,
24429
+ placeHolder,
24430
+ onChange,
24431
+ required,
24432
+ disabled,
24433
+ width,
24434
+ error,
24435
+ errorMessage,
24436
+ labelColor,
24437
+ xIconShow,
24438
+ checkBoxColor,
24439
+ showLabelOnTop
24440
+ }) => {
24441
24441
  const [isFocused, setIsFocused] = useState(false);
24442
24442
  const [showOptions, setShowOptions] = useState(false);
24443
24443
  const [inputValue, setInputValue] = useState('');
@@ -35609,12 +35609,9 @@ const ToggleSwitchLabel = styled.label`
35609
35609
  position: relative;
35610
35610
  cursor: pointer;
35611
35611
  user-select: none;
35612
- opacity: ${_ref => {
35613
- let {
35614
- disabled
35615
- } = _ref;
35616
- return disabled ? 0.5 : 1;
35617
- }};
35612
+ opacity: ${({
35613
+ disabled
35614
+ }) => disabled ? 0.5 : 1};
35618
35615
  `;
35619
35616
  const ToggleInput = styled.input`
35620
35617
  display: none;
@@ -35622,19 +35619,15 @@ const ToggleInput = styled.input`
35622
35619
  const ToggleSlider = styled.span`
35623
35620
  display: block;
35624
35621
  position: relative;
35625
- background: ${_ref2 => {
35626
- let {
35627
- checked,
35628
- disabled
35629
- } = _ref2;
35630
- return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
35631
- }};
35622
+ background: ${({
35623
+ checked,
35624
+ disabled
35625
+ }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
35632
35626
  border-radius: 999px;
35633
35627
  transition: background 0.2s;
35634
- ${_ref3 => {
35635
- let {
35636
- size
35637
- } = _ref3;
35628
+ ${({
35629
+ size
35630
+ }) => {
35638
35631
  switch (size) {
35639
35632
  case "s":
35640
35633
  return css`width: 40px; height: 20px;`;
@@ -35653,10 +35646,9 @@ const ToggleSlider = styled.span`
35653
35646
  background: #fff;
35654
35647
  border-radius: 50%;
35655
35648
  transition: left 0.2s, width 0.2s, height 0.2s;
35656
- ${_ref4 => {
35657
- let {
35658
- size
35659
- } = _ref4;
35649
+ ${({
35650
+ size
35651
+ }) => {
35660
35652
  switch (size) {
35661
35653
  case "s":
35662
35654
  return css`width: 14px; height: 14px;`;
@@ -35666,11 +35658,10 @@ const ToggleSlider = styled.span`
35666
35658
  return css`width: 20px; height: 20px;`;
35667
35659
  }
35668
35660
  }}
35669
- left: ${_ref5 => {
35670
- let {
35671
- checked,
35672
- size
35673
- } = _ref5;
35661
+ left: ${({
35662
+ checked,
35663
+ size
35664
+ }) => {
35674
35665
  if (!checked) return "3px";
35675
35666
  switch (size) {
35676
35667
  case "s":
@@ -35684,9 +35675,9 @@ const ToggleSlider = styled.span`
35684
35675
  }
35685
35676
  `;
35686
35677
 
35687
- /**
35688
- * ToggleSwitch component for on/off states.
35689
- * Supports small/large sizes and disabled state.
35678
+ /**
35679
+ * ToggleSwitch component for on/off states.
35680
+ * Supports small/large sizes and disabled state.
35690
35681
  */
35691
35682
  function ToggleSwitch(_ref) {
35692
35683
  let {