sag_components 2.0.0-beta206 → 2.0.0-beta208

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
@@ -10580,23 +10580,24 @@ const QuarterPopupPicker = ({
10580
10580
  };
10581
10581
 
10582
10582
  /* eslint-disable import/no-extraneous-dependencies */
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
- }) => {
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;
10600
10601
  const [isFocused, setIsFocused] = useState(false);
10601
10602
  const [isOpen, setIsOpen] = useState(false);
10602
10603
  const [value, setValue] = useState('');
@@ -11038,22 +11039,23 @@ const MonthPopupPicker = ({
11038
11039
  };
11039
11040
 
11040
11041
  /* eslint-disable import/no-extraneous-dependencies */
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
- }) => {
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;
11057
11059
  const [isFocused, setIsFocused] = useState(false);
11058
11060
  const [isOpen, setIsOpen] = useState(false);
11059
11061
  const [value, setValue] = useState('');
@@ -24164,21 +24166,22 @@ const DeleteIcon = styled.div`
24164
24166
  position: absolute;
24165
24167
  `;
24166
24168
 
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
- }) => {
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;
24182
24185
  const [isFocused, setIsFocused] = useState(false);
24183
24186
  const [showOptions, setShowOptions] = useState(false);
24184
24187
  const [inputValue, setInputValue] = useState("");
@@ -24575,23 +24578,24 @@ const IconContainer$2 = styled.div`
24575
24578
  cursor: pointer;
24576
24579
  `;
24577
24580
 
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
- }) => {
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;
24595
24599
  const [isFocused, setIsFocused] = useState(false);
24596
24600
  const [showOptions, setShowOptions] = useState(false);
24597
24601
  const [inputValue, setInputValue] = useState('');
@@ -35967,9 +35971,12 @@ const ToggleSwitchLabel = styled.label`
35967
35971
  position: relative;
35968
35972
  cursor: pointer;
35969
35973
  user-select: none;
35970
- opacity: ${({
35971
- disabled
35972
- }) => disabled ? 0.5 : 1};
35974
+ opacity: ${_ref => {
35975
+ let {
35976
+ disabled
35977
+ } = _ref;
35978
+ return disabled ? 0.5 : 1;
35979
+ }};
35973
35980
  `;
35974
35981
  const ToggleInput = styled.input`
35975
35982
  display: none;
@@ -35977,15 +35984,19 @@ const ToggleInput = styled.input`
35977
35984
  const ToggleSlider = styled.span`
35978
35985
  display: block;
35979
35986
  position: relative;
35980
- background: ${({
35981
- checked,
35982
- disabled
35983
- }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
35987
+ background: ${_ref2 => {
35988
+ let {
35989
+ checked,
35990
+ disabled
35991
+ } = _ref2;
35992
+ return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
35993
+ }};
35984
35994
  border-radius: 999px;
35985
35995
  transition: background 0.2s;
35986
- ${({
35987
- size
35988
- }) => {
35996
+ ${_ref3 => {
35997
+ let {
35998
+ size
35999
+ } = _ref3;
35989
36000
  switch (size) {
35990
36001
  case "s":
35991
36002
  return css`width: 40px; height: 20px;`;
@@ -36004,9 +36015,10 @@ const ToggleSlider = styled.span`
36004
36015
  background: #fff;
36005
36016
  border-radius: 50%;
36006
36017
  transition: left 0.2s, width 0.2s, height 0.2s;
36007
- ${({
36008
- size
36009
- }) => {
36018
+ ${_ref4 => {
36019
+ let {
36020
+ size
36021
+ } = _ref4;
36010
36022
  switch (size) {
36011
36023
  case "s":
36012
36024
  return css`width: 14px; height: 14px;`;
@@ -36016,10 +36028,11 @@ const ToggleSlider = styled.span`
36016
36028
  return css`width: 20px; height: 20px;`;
36017
36029
  }
36018
36030
  }}
36019
- left: ${({
36020
- checked,
36021
- size
36022
- }) => {
36031
+ left: ${_ref5 => {
36032
+ let {
36033
+ checked,
36034
+ size
36035
+ } = _ref5;
36023
36036
  if (!checked) return "3px";
36024
36037
  switch (size) {
36025
36038
  case "s":
@@ -36033,9 +36046,9 @@ const ToggleSlider = styled.span`
36033
36046
  }
36034
36047
  `;
36035
36048
 
36036
- /**
36037
- * ToggleSwitch component for on/off states.
36038
- * Supports small/large sizes and disabled state.
36049
+ /**
36050
+ * ToggleSwitch component for on/off states.
36051
+ * Supports small/large sizes and disabled state.
36039
36052
  */
36040
36053
  function ToggleSwitch(_ref) {
36041
36054
  let {
@@ -38746,7 +38759,7 @@ const TableHeader = ({
38746
38759
  type: "checkbox",
38747
38760
  onChange: e => handleCheckboxChange(column.key, e.target.checked),
38748
38761
  "data-column": column.key
38749
- }), column.fieldType?.toLowerCase() === 'checkbox' && column.showCheckboxInTitle !== false && /*#__PURE__*/React$1.createElement(ColumnCheckbox, {
38762
+ }), column.fieldType?.toLowerCase() === 'checkbox' && column.showCheckboxInTitle === true && /*#__PURE__*/React$1.createElement(ColumnCheckbox, {
38750
38763
  type: "checkbox",
38751
38764
  checked: headerCheckboxStates[column.key] || false,
38752
38765
  onChange: e => handleHeaderCheckboxClick(column.key, e),
@@ -38763,7 +38776,7 @@ const TableHeader = ({
38763
38776
  alignItems: 'center',
38764
38777
  justifyContent: 'center'
38765
38778
  }
38766
- }), column.fieldType?.toLowerCase() !== 'checkbox' && /*#__PURE__*/React$1.createElement(ColumnLabel, null, column.title), (column.filter || column.sort) && /*#__PURE__*/React$1.createElement(ColumnActions, null, column.sort && /*#__PURE__*/React$1.createElement(IconButton, {
38779
+ }), column.title && /*#__PURE__*/React$1.createElement(ColumnLabel, null, column.title), (column.filter || column.sort) && /*#__PURE__*/React$1.createElement(ColumnActions, null, column.sort && /*#__PURE__*/React$1.createElement(IconButton, {
38767
38780
  ref: el => iconRefs.current[`sort-${column.key}`] = el,
38768
38781
  onClick: () => handleSort(column.key),
38769
38782
  onMouseEnter: () => setFocusedSort(column.key),