sag_components 2.0.0-beta193 → 2.0.0-beta194

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.d.ts CHANGED
@@ -1598,12 +1598,17 @@ declare function MessageBox({ isOpen, isDisabled, onClose, onConfirm, title, pri
1598
1598
  children: any;
1599
1599
  }): react_jsx_runtime.JSX.Element;
1600
1600
 
1601
- declare function ToasterMessageBox({ color, messageText, linkText, duration, width, onLinkClick, onClose }: {
1601
+ declare function ToasterMessageBox({ color, messageText, linkText, duration, width, icon, onLinkClick, onClose }: {
1602
1602
  color?: string;
1603
1603
  messageText?: string;
1604
1604
  linkText?: string;
1605
1605
  duration?: number;
1606
1606
  width?: string;
1607
+ icon?: ({ width, height, color, }: {
1608
+ width?: string;
1609
+ height?: string;
1610
+ color?: string;
1611
+ }) => react_jsx_runtime.JSX.Element;
1607
1612
  onLinkClick?: () => void;
1608
1613
  onClose?: () => void;
1609
1614
  }): react_jsx_runtime.JSX.Element;
package/dist/index.esm.js CHANGED
@@ -10579,23 +10579,24 @@ const QuarterPopupPicker = ({
10579
10579
  };
10580
10580
 
10581
10581
  /* eslint-disable import/no-extraneous-dependencies */
10582
- const QuarterPicker = ({
10583
- availableQuarters,
10584
- // ["Q1-2024"]
10585
- label,
10586
- onChange,
10587
- borderRadius,
10588
- required,
10589
- width,
10590
- height,
10591
- placeholder,
10592
- disabled,
10593
- borderColor,
10594
- borderColorFocus,
10595
- textColor,
10596
- selectedValue,
10597
- startYear
10598
- }) => {
10582
+ const QuarterPicker = _ref => {
10583
+ let {
10584
+ availableQuarters,
10585
+ // ["Q1-2024"]
10586
+ label,
10587
+ onChange,
10588
+ borderRadius,
10589
+ required,
10590
+ width,
10591
+ height,
10592
+ placeholder,
10593
+ disabled,
10594
+ borderColor,
10595
+ borderColorFocus,
10596
+ textColor,
10597
+ selectedValue,
10598
+ startYear
10599
+ } = _ref;
10599
10600
  const [isFocused, setIsFocused] = useState(false);
10600
10601
  const [isOpen, setIsOpen] = useState(false);
10601
10602
  const [value, setValue] = useState('');
@@ -11037,22 +11038,23 @@ const MonthPopupPicker = ({
11037
11038
  };
11038
11039
 
11039
11040
  /* eslint-disable import/no-extraneous-dependencies */
11040
- const MonthPicker = ({
11041
- availableMonths,
11042
- label,
11043
- onChange,
11044
- borderRadius,
11045
- required,
11046
- width,
11047
- height,
11048
- placeholder,
11049
- disabled,
11050
- borderColor,
11051
- borderColorFocus,
11052
- textColor,
11053
- selectedValue,
11054
- startYear
11055
- }) => {
11041
+ const MonthPicker = _ref => {
11042
+ let {
11043
+ availableMonths,
11044
+ label,
11045
+ onChange,
11046
+ borderRadius,
11047
+ required,
11048
+ width,
11049
+ height,
11050
+ placeholder,
11051
+ disabled,
11052
+ borderColor,
11053
+ borderColorFocus,
11054
+ textColor,
11055
+ selectedValue,
11056
+ startYear
11057
+ } = _ref;
11056
11058
  const [isFocused, setIsFocused] = useState(false);
11057
11059
  const [isOpen, setIsOpen] = useState(false);
11058
11060
  const [value, setValue] = useState('');
@@ -24163,21 +24165,22 @@ const DeleteIcon = styled.div`
24163
24165
  position: absolute;
24164
24166
  `;
24165
24167
 
24166
- const QuickFilterDropdownSingle = ({
24167
- label,
24168
- hoverColor,
24169
- options,
24170
- selectedValue,
24171
- placeHolder,
24172
- onChange,
24173
- disabled,
24174
- width,
24175
- error,
24176
- errorMessage,
24177
- xIconShow,
24178
- labelColor,
24179
- showLabelOnTop
24180
- }) => {
24168
+ const QuickFilterDropdownSingle = _ref => {
24169
+ let {
24170
+ label,
24171
+ hoverColor,
24172
+ options,
24173
+ selectedValue,
24174
+ placeHolder,
24175
+ onChange,
24176
+ disabled,
24177
+ width,
24178
+ error,
24179
+ errorMessage,
24180
+ xIconShow,
24181
+ labelColor,
24182
+ showLabelOnTop
24183
+ } = _ref;
24181
24184
  const [isFocused, setIsFocused] = useState(false);
24182
24185
  const [showOptions, setShowOptions] = useState(false);
24183
24186
  const [inputValue, setInputValue] = useState("");
@@ -24574,23 +24577,24 @@ const IconContainer$2 = styled.div`
24574
24577
  cursor: pointer;
24575
24578
  `;
24576
24579
 
24577
- const QuickFilterDropdownMultiSelection = ({
24578
- label,
24579
- labelEmptyValue,
24580
- options,
24581
- selectedValue,
24582
- placeHolder,
24583
- onChange,
24584
- required,
24585
- disabled,
24586
- width,
24587
- error,
24588
- errorMessage,
24589
- labelColor,
24590
- xIconShow,
24591
- checkBoxColor,
24592
- showLabelOnTop
24593
- }) => {
24580
+ const QuickFilterDropdownMultiSelection = _ref => {
24581
+ let {
24582
+ label,
24583
+ labelEmptyValue,
24584
+ options,
24585
+ selectedValue,
24586
+ placeHolder,
24587
+ onChange,
24588
+ required,
24589
+ disabled,
24590
+ width,
24591
+ error,
24592
+ errorMessage,
24593
+ labelColor,
24594
+ xIconShow,
24595
+ checkBoxColor,
24596
+ showLabelOnTop
24597
+ } = _ref;
24594
24598
  const [isFocused, setIsFocused] = useState(false);
24595
24599
  const [showOptions, setShowOptions] = useState(false);
24596
24600
  const [inputValue, setInputValue] = useState('');
@@ -35921,9 +35925,9 @@ const ToggleSlider = styled.span`
35921
35925
  }
35922
35926
  `;
35923
35927
 
35924
- /**
35925
- * ToggleSwitch component for on/off states.
35926
- * Supports small/large sizes and disabled state.
35928
+ /**
35929
+ * ToggleSwitch component for on/off states.
35930
+ * Supports small/large sizes and disabled state.
35927
35931
  */
35928
35932
  function ToggleSwitch(_ref) {
35929
35933
  let {
@@ -55039,6 +55043,7 @@ const ToasterMessageBox = _ref => {
55039
55043
  linkText = '',
55040
55044
  duration = 5,
55041
55045
  width = '500px',
55046
+ icon = OkCircleIcon,
55042
55047
  onLinkClick = () => {},
55043
55048
  onClose = () => {}
55044
55049
  } = _ref;
@@ -55077,7 +55082,9 @@ const ToasterMessageBox = _ref => {
55077
55082
  $isClosing: isClosing
55078
55083
  }, /*#__PURE__*/React$1.createElement(IconWrapper, {
55079
55084
  $color: color
55080
- }, /*#__PURE__*/React$1.createElement(OkCircleIcon, {
55085
+ }, icon === 'error' ? /*#__PURE__*/React$1.createElement(ErrorIcon, {
55086
+ color: "white"
55087
+ }) : /*#__PURE__*/React$1.createElement(OkCircleIcon, {
55081
55088
  color: color,
55082
55089
  width: "40",
55083
55090
  height: "40"