sag_components 2.0.0-beta219 → 2.0.0-beta220

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
@@ -2408,15 +2408,15 @@ const Tooltip$2 = props => {
2408
2408
  hideTooltip = false,
2409
2409
  className
2410
2410
  } = props;
2411
- let timeout;
2411
+ const timeoutRef = React__default["default"].useRef();
2412
2412
  const [active, setActive] = React$1.useState(false);
2413
2413
  const showTip = () => {
2414
- timeout = setTimeout(() => {
2414
+ timeoutRef.current = setTimeout(() => {
2415
2415
  setActive(true);
2416
2416
  }, delay || 400);
2417
2417
  };
2418
2418
  const hideTip = () => {
2419
- clearInterval(timeout);
2419
+ clearTimeout(timeoutRef.current);
2420
2420
  setActive(false);
2421
2421
  };
2422
2422
  return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$4, {
@@ -10590,24 +10590,23 @@ const QuarterPopupPicker = ({
10590
10590
  };
10591
10591
 
10592
10592
  /* eslint-disable import/no-extraneous-dependencies */
10593
- const QuarterPicker = _ref => {
10594
- let {
10595
- availableQuarters,
10596
- // ["Q1-2024"]
10597
- label,
10598
- onChange,
10599
- borderRadius,
10600
- required,
10601
- width,
10602
- height,
10603
- placeholder,
10604
- disabled,
10605
- borderColor,
10606
- borderColorFocus,
10607
- textColor,
10608
- selectedValue,
10609
- startYear
10610
- } = _ref;
10593
+ const QuarterPicker = ({
10594
+ availableQuarters,
10595
+ // ["Q1-2024"]
10596
+ label,
10597
+ onChange,
10598
+ borderRadius,
10599
+ required,
10600
+ width,
10601
+ height,
10602
+ placeholder,
10603
+ disabled,
10604
+ borderColor,
10605
+ borderColorFocus,
10606
+ textColor,
10607
+ selectedValue,
10608
+ startYear
10609
+ }) => {
10611
10610
  const [isFocused, setIsFocused] = React$1.useState(false);
10612
10611
  const [isOpen, setIsOpen] = React$1.useState(false);
10613
10612
  const [value, setValue] = React$1.useState('');
@@ -11049,23 +11048,22 @@ const MonthPopupPicker = ({
11049
11048
  };
11050
11049
 
11051
11050
  /* eslint-disable import/no-extraneous-dependencies */
11052
- const MonthPicker = _ref => {
11053
- let {
11054
- availableMonths,
11055
- label,
11056
- onChange,
11057
- borderRadius,
11058
- required,
11059
- width,
11060
- height,
11061
- placeholder,
11062
- disabled,
11063
- borderColor,
11064
- borderColorFocus,
11065
- textColor,
11066
- selectedValue,
11067
- startYear
11068
- } = _ref;
11051
+ const MonthPicker = ({
11052
+ availableMonths,
11053
+ label,
11054
+ onChange,
11055
+ borderRadius,
11056
+ required,
11057
+ width,
11058
+ height,
11059
+ placeholder,
11060
+ disabled,
11061
+ borderColor,
11062
+ borderColorFocus,
11063
+ textColor,
11064
+ selectedValue,
11065
+ startYear
11066
+ }) => {
11069
11067
  const [isFocused, setIsFocused] = React$1.useState(false);
11070
11068
  const [isOpen, setIsOpen] = React$1.useState(false);
11071
11069
  const [value, setValue] = React$1.useState('');
@@ -24176,22 +24174,21 @@ const DeleteIcon = styled__default["default"].div`
24176
24174
  position: absolute;
24177
24175
  `;
24178
24176
 
24179
- const QuickFilterDropdownSingle = _ref => {
24180
- let {
24181
- label,
24182
- hoverColor,
24183
- options,
24184
- selectedValue,
24185
- placeHolder,
24186
- onChange,
24187
- disabled,
24188
- width,
24189
- error,
24190
- errorMessage,
24191
- xIconShow,
24192
- labelColor,
24193
- showLabelOnTop
24194
- } = _ref;
24177
+ const QuickFilterDropdownSingle = ({
24178
+ label,
24179
+ hoverColor,
24180
+ options,
24181
+ selectedValue,
24182
+ placeHolder,
24183
+ onChange,
24184
+ disabled,
24185
+ width,
24186
+ error,
24187
+ errorMessage,
24188
+ xIconShow,
24189
+ labelColor,
24190
+ showLabelOnTop
24191
+ }) => {
24195
24192
  const [isFocused, setIsFocused] = React$1.useState(false);
24196
24193
  const [showOptions, setShowOptions] = React$1.useState(false);
24197
24194
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24648,26 +24645,25 @@ const IconContainer$2 = styled__default["default"].div`
24648
24645
  cursor: pointer;
24649
24646
  `;
24650
24647
 
24651
- const QuickFilterDropdownMultiSelection = _ref => {
24652
- let {
24653
- label,
24654
- labelEmptyValue,
24655
- options,
24656
- selectedValue,
24657
- placeHolder,
24658
- onChange,
24659
- required,
24660
- disabled,
24661
- width,
24662
- height,
24663
- error,
24664
- errorMessage,
24665
- labelColor,
24666
- xIconShow,
24667
- checkBoxColor,
24668
- showLabelOnTop,
24669
- dropdownHeight
24670
- } = _ref;
24648
+ const QuickFilterDropdownMultiSelection = ({
24649
+ label,
24650
+ labelEmptyValue,
24651
+ options,
24652
+ selectedValue,
24653
+ placeHolder,
24654
+ onChange,
24655
+ required,
24656
+ disabled,
24657
+ width,
24658
+ height,
24659
+ error,
24660
+ errorMessage,
24661
+ labelColor,
24662
+ xIconShow,
24663
+ checkBoxColor,
24664
+ showLabelOnTop,
24665
+ dropdownHeight
24666
+ }) => {
24671
24667
  const [isFocused, setIsFocused] = React$1.useState(false);
24672
24668
  const [showOptions, setShowOptions] = React$1.useState(false);
24673
24669
  const [inputValue, setInputValue] = React$1.useState('');
@@ -36151,9 +36147,9 @@ const ToggleSlider = styled__default["default"].span`
36151
36147
  }
36152
36148
  `;
36153
36149
 
36154
- /**
36155
- * ToggleSwitch component for on/off states.
36156
- * Supports small/large sizes and disabled state.
36150
+ /**
36151
+ * ToggleSwitch component for on/off states.
36152
+ * Supports small/large sizes and disabled state.
36157
36153
  */
36158
36154
  function ToggleSwitch(_ref) {
36159
36155
  let {
@@ -39632,6 +39628,9 @@ const HeroButton = styled__default["default"].button`
39632
39628
  cursor: pointer;
39633
39629
  background-color: transparent;
39634
39630
  border: none;
39631
+ > svg {
39632
+ pointer-events: none;
39633
+ }
39635
39634
  `;
39636
39635
 
39637
39636
  // MessageBox.styles.js