sag_components 2.0.0-beta208 → 2.0.0-beta209

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
@@ -1608,11 +1608,7 @@ declare function ToasterMessageBox({ color, messageText, linkText, duration, wid
1608
1608
  linkText?: string;
1609
1609
  duration?: number;
1610
1610
  width?: string;
1611
- icon?: ({ width, height, color, }: {
1612
- width?: string;
1613
- height?: string;
1614
- color?: string;
1615
- }) => react_jsx_runtime.JSX.Element;
1611
+ icon?: string;
1616
1612
  onLinkClick?: () => void;
1617
1613
  onClose?: () => void;
1618
1614
  }): react_jsx_runtime.JSX.Element;
package/dist/index.esm.js CHANGED
@@ -10580,24 +10580,23 @@ const QuarterPopupPicker = ({
10580
10580
  };
10581
10581
 
10582
10582
  /* eslint-disable import/no-extraneous-dependencies */
10583
- const QuarterPicker = _ref => {
10584
- let {
10585
- availableQuarters,
10586
- // ["Q1-2024"]
10587
- label,
10588
- onChange,
10589
- borderRadius,
10590
- required,
10591
- width,
10592
- height,
10593
- placeholder,
10594
- disabled,
10595
- borderColor,
10596
- borderColorFocus,
10597
- textColor,
10598
- selectedValue,
10599
- startYear
10600
- } = _ref;
10583
+ const QuarterPicker = ({
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
+ }) => {
10601
10600
  const [isFocused, setIsFocused] = useState(false);
10602
10601
  const [isOpen, setIsOpen] = useState(false);
10603
10602
  const [value, setValue] = useState('');
@@ -11039,23 +11038,22 @@ const MonthPopupPicker = ({
11039
11038
  };
11040
11039
 
11041
11040
  /* eslint-disable import/no-extraneous-dependencies */
11042
- const MonthPicker = _ref => {
11043
- let {
11044
- availableMonths,
11045
- label,
11046
- onChange,
11047
- borderRadius,
11048
- required,
11049
- width,
11050
- height,
11051
- placeholder,
11052
- disabled,
11053
- borderColor,
11054
- borderColorFocus,
11055
- textColor,
11056
- selectedValue,
11057
- startYear
11058
- } = _ref;
11041
+ const MonthPicker = ({
11042
+ availableMonths,
11043
+ label,
11044
+ onChange,
11045
+ borderRadius,
11046
+ required,
11047
+ width,
11048
+ height,
11049
+ placeholder,
11050
+ disabled,
11051
+ borderColor,
11052
+ borderColorFocus,
11053
+ textColor,
11054
+ selectedValue,
11055
+ startYear
11056
+ }) => {
11059
11057
  const [isFocused, setIsFocused] = useState(false);
11060
11058
  const [isOpen, setIsOpen] = useState(false);
11061
11059
  const [value, setValue] = useState('');
@@ -24166,22 +24164,21 @@ const DeleteIcon = styled.div`
24166
24164
  position: absolute;
24167
24165
  `;
24168
24166
 
24169
- const QuickFilterDropdownSingle = _ref => {
24170
- let {
24171
- label,
24172
- hoverColor,
24173
- options,
24174
- selectedValue,
24175
- placeHolder,
24176
- onChange,
24177
- disabled,
24178
- width,
24179
- error,
24180
- errorMessage,
24181
- xIconShow,
24182
- labelColor,
24183
- showLabelOnTop
24184
- } = _ref;
24167
+ const QuickFilterDropdownSingle = ({
24168
+ label,
24169
+ hoverColor,
24170
+ options,
24171
+ selectedValue,
24172
+ placeHolder,
24173
+ onChange,
24174
+ disabled,
24175
+ width,
24176
+ error,
24177
+ errorMessage,
24178
+ xIconShow,
24179
+ labelColor,
24180
+ showLabelOnTop
24181
+ }) => {
24185
24182
  const [isFocused, setIsFocused] = useState(false);
24186
24183
  const [showOptions, setShowOptions] = useState(false);
24187
24184
  const [inputValue, setInputValue] = useState("");
@@ -24578,24 +24575,23 @@ const IconContainer$2 = styled.div`
24578
24575
  cursor: pointer;
24579
24576
  `;
24580
24577
 
24581
- const QuickFilterDropdownMultiSelection = _ref => {
24582
- let {
24583
- label,
24584
- labelEmptyValue,
24585
- options,
24586
- selectedValue,
24587
- placeHolder,
24588
- onChange,
24589
- required,
24590
- disabled,
24591
- width,
24592
- error,
24593
- errorMessage,
24594
- labelColor,
24595
- xIconShow,
24596
- checkBoxColor,
24597
- showLabelOnTop
24598
- } = _ref;
24578
+ const QuickFilterDropdownMultiSelection = ({
24579
+ label,
24580
+ labelEmptyValue,
24581
+ options,
24582
+ selectedValue,
24583
+ placeHolder,
24584
+ onChange,
24585
+ required,
24586
+ disabled,
24587
+ width,
24588
+ error,
24589
+ errorMessage,
24590
+ labelColor,
24591
+ xIconShow,
24592
+ checkBoxColor,
24593
+ showLabelOnTop
24594
+ }) => {
24599
24595
  const [isFocused, setIsFocused] = useState(false);
24600
24596
  const [showOptions, setShowOptions] = useState(false);
24601
24597
  const [inputValue, setInputValue] = useState('');
@@ -35971,12 +35967,9 @@ const ToggleSwitchLabel = styled.label`
35971
35967
  position: relative;
35972
35968
  cursor: pointer;
35973
35969
  user-select: none;
35974
- opacity: ${_ref => {
35975
- let {
35976
- disabled
35977
- } = _ref;
35978
- return disabled ? 0.5 : 1;
35979
- }};
35970
+ opacity: ${({
35971
+ disabled
35972
+ }) => disabled ? 0.5 : 1};
35980
35973
  `;
35981
35974
  const ToggleInput = styled.input`
35982
35975
  display: none;
@@ -35984,19 +35977,15 @@ const ToggleInput = styled.input`
35984
35977
  const ToggleSlider = styled.span`
35985
35978
  display: block;
35986
35979
  position: relative;
35987
- background: ${_ref2 => {
35988
- let {
35989
- checked,
35990
- disabled
35991
- } = _ref2;
35992
- return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
35993
- }};
35980
+ background: ${({
35981
+ checked,
35982
+ disabled
35983
+ }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
35994
35984
  border-radius: 999px;
35995
35985
  transition: background 0.2s;
35996
- ${_ref3 => {
35997
- let {
35998
- size
35999
- } = _ref3;
35986
+ ${({
35987
+ size
35988
+ }) => {
36000
35989
  switch (size) {
36001
35990
  case "s":
36002
35991
  return css`width: 40px; height: 20px;`;
@@ -36015,10 +36004,9 @@ const ToggleSlider = styled.span`
36015
36004
  background: #fff;
36016
36005
  border-radius: 50%;
36017
36006
  transition: left 0.2s, width 0.2s, height 0.2s;
36018
- ${_ref4 => {
36019
- let {
36020
- size
36021
- } = _ref4;
36007
+ ${({
36008
+ size
36009
+ }) => {
36022
36010
  switch (size) {
36023
36011
  case "s":
36024
36012
  return css`width: 14px; height: 14px;`;
@@ -36028,11 +36016,10 @@ const ToggleSlider = styled.span`
36028
36016
  return css`width: 20px; height: 20px;`;
36029
36017
  }
36030
36018
  }}
36031
- left: ${_ref5 => {
36032
- let {
36033
- checked,
36034
- size
36035
- } = _ref5;
36019
+ left: ${({
36020
+ checked,
36021
+ size
36022
+ }) => {
36036
36023
  if (!checked) return "3px";
36037
36024
  switch (size) {
36038
36025
  case "s":
@@ -36046,9 +36033,9 @@ const ToggleSlider = styled.span`
36046
36033
  }
36047
36034
  `;
36048
36035
 
36049
- /**
36050
- * ToggleSwitch component for on/off states.
36051
- * Supports small/large sizes and disabled state.
36036
+ /**
36037
+ * ToggleSwitch component for on/off states.
36038
+ * Supports small/large sizes and disabled state.
36052
36039
  */
36053
36040
  function ToggleSwitch(_ref) {
36054
36041
  let {
@@ -55308,7 +55295,7 @@ const ToasterMessageBox = _ref => {
55308
55295
  linkText = '',
55309
55296
  duration = 5,
55310
55297
  width = '500px',
55311
- icon = OkCircleIcon,
55298
+ icon = 'ok',
55312
55299
  onLinkClick = () => {},
55313
55300
  onClose = () => {}
55314
55301
  } = _ref;