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.js CHANGED
@@ -10590,23 +10590,24 @@ const QuarterPopupPicker = ({
10590
10590
  };
10591
10591
 
10592
10592
  /* eslint-disable import/no-extraneous-dependencies */
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
- }) => {
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;
10610
10611
  const [isFocused, setIsFocused] = React$1.useState(false);
10611
10612
  const [isOpen, setIsOpen] = React$1.useState(false);
10612
10613
  const [value, setValue] = React$1.useState('');
@@ -11048,22 +11049,23 @@ const MonthPopupPicker = ({
11048
11049
  };
11049
11050
 
11050
11051
  /* eslint-disable import/no-extraneous-dependencies */
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
- }) => {
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;
11067
11069
  const [isFocused, setIsFocused] = React$1.useState(false);
11068
11070
  const [isOpen, setIsOpen] = React$1.useState(false);
11069
11071
  const [value, setValue] = React$1.useState('');
@@ -24174,21 +24176,22 @@ const DeleteIcon = styled__default["default"].div`
24174
24176
  position: absolute;
24175
24177
  `;
24176
24178
 
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
- }) => {
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;
24192
24195
  const [isFocused, setIsFocused] = React$1.useState(false);
24193
24196
  const [showOptions, setShowOptions] = React$1.useState(false);
24194
24197
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24585,23 +24588,24 @@ const IconContainer$2 = styled__default["default"].div`
24585
24588
  cursor: pointer;
24586
24589
  `;
24587
24590
 
24588
- const QuickFilterDropdownMultiSelection = ({
24589
- label,
24590
- labelEmptyValue,
24591
- options,
24592
- selectedValue,
24593
- placeHolder,
24594
- onChange,
24595
- required,
24596
- disabled,
24597
- width,
24598
- error,
24599
- errorMessage,
24600
- labelColor,
24601
- xIconShow,
24602
- checkBoxColor,
24603
- showLabelOnTop
24604
- }) => {
24591
+ const QuickFilterDropdownMultiSelection = _ref => {
24592
+ let {
24593
+ label,
24594
+ labelEmptyValue,
24595
+ options,
24596
+ selectedValue,
24597
+ placeHolder,
24598
+ onChange,
24599
+ required,
24600
+ disabled,
24601
+ width,
24602
+ error,
24603
+ errorMessage,
24604
+ labelColor,
24605
+ xIconShow,
24606
+ checkBoxColor,
24607
+ showLabelOnTop
24608
+ } = _ref;
24605
24609
  const [isFocused, setIsFocused] = React$1.useState(false);
24606
24610
  const [showOptions, setShowOptions] = React$1.useState(false);
24607
24611
  const [inputValue, setInputValue] = React$1.useState('');
@@ -35977,9 +35981,12 @@ const ToggleSwitchLabel = styled__default["default"].label`
35977
35981
  position: relative;
35978
35982
  cursor: pointer;
35979
35983
  user-select: none;
35980
- opacity: ${({
35981
- disabled
35982
- }) => disabled ? 0.5 : 1};
35984
+ opacity: ${_ref => {
35985
+ let {
35986
+ disabled
35987
+ } = _ref;
35988
+ return disabled ? 0.5 : 1;
35989
+ }};
35983
35990
  `;
35984
35991
  const ToggleInput = styled__default["default"].input`
35985
35992
  display: none;
@@ -35987,15 +35994,19 @@ const ToggleInput = styled__default["default"].input`
35987
35994
  const ToggleSlider = styled__default["default"].span`
35988
35995
  display: block;
35989
35996
  position: relative;
35990
- background: ${({
35991
- checked,
35992
- disabled
35993
- }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
35997
+ background: ${_ref2 => {
35998
+ let {
35999
+ checked,
36000
+ disabled
36001
+ } = _ref2;
36002
+ return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
36003
+ }};
35994
36004
  border-radius: 999px;
35995
36005
  transition: background 0.2s;
35996
- ${({
35997
- size
35998
- }) => {
36006
+ ${_ref3 => {
36007
+ let {
36008
+ size
36009
+ } = _ref3;
35999
36010
  switch (size) {
36000
36011
  case "s":
36001
36012
  return styled.css`width: 40px; height: 20px;`;
@@ -36014,9 +36025,10 @@ const ToggleSlider = styled__default["default"].span`
36014
36025
  background: #fff;
36015
36026
  border-radius: 50%;
36016
36027
  transition: left 0.2s, width 0.2s, height 0.2s;
36017
- ${({
36018
- size
36019
- }) => {
36028
+ ${_ref4 => {
36029
+ let {
36030
+ size
36031
+ } = _ref4;
36020
36032
  switch (size) {
36021
36033
  case "s":
36022
36034
  return styled.css`width: 14px; height: 14px;`;
@@ -36026,10 +36038,11 @@ const ToggleSlider = styled__default["default"].span`
36026
36038
  return styled.css`width: 20px; height: 20px;`;
36027
36039
  }
36028
36040
  }}
36029
- left: ${({
36030
- checked,
36031
- size
36032
- }) => {
36041
+ left: ${_ref5 => {
36042
+ let {
36043
+ checked,
36044
+ size
36045
+ } = _ref5;
36033
36046
  if (!checked) return "3px";
36034
36047
  switch (size) {
36035
36048
  case "s":
@@ -36043,9 +36056,9 @@ const ToggleSlider = styled__default["default"].span`
36043
36056
  }
36044
36057
  `;
36045
36058
 
36046
- /**
36047
- * ToggleSwitch component for on/off states.
36048
- * Supports small/large sizes and disabled state.
36059
+ /**
36060
+ * ToggleSwitch component for on/off states.
36061
+ * Supports small/large sizes and disabled state.
36049
36062
  */
36050
36063
  function ToggleSwitch(_ref) {
36051
36064
  let {
@@ -38756,7 +38769,7 @@ const TableHeader = ({
38756
38769
  type: "checkbox",
38757
38770
  onChange: e => handleCheckboxChange(column.key, e.target.checked),
38758
38771
  "data-column": column.key
38759
- }), column.fieldType?.toLowerCase() === 'checkbox' && column.showCheckboxInTitle !== false && /*#__PURE__*/React__default["default"].createElement(ColumnCheckbox, {
38772
+ }), column.fieldType?.toLowerCase() === 'checkbox' && column.showCheckboxInTitle === true && /*#__PURE__*/React__default["default"].createElement(ColumnCheckbox, {
38760
38773
  type: "checkbox",
38761
38774
  checked: headerCheckboxStates[column.key] || false,
38762
38775
  onChange: e => handleHeaderCheckboxClick(column.key, e),
@@ -38773,7 +38786,7 @@ const TableHeader = ({
38773
38786
  alignItems: 'center',
38774
38787
  justifyContent: 'center'
38775
38788
  }
38776
- }), column.fieldType?.toLowerCase() !== 'checkbox' && /*#__PURE__*/React__default["default"].createElement(ColumnLabel, null, column.title), (column.filter || column.sort) && /*#__PURE__*/React__default["default"].createElement(ColumnActions, null, column.sort && /*#__PURE__*/React__default["default"].createElement(IconButton, {
38789
+ }), column.title && /*#__PURE__*/React__default["default"].createElement(ColumnLabel, null, column.title), (column.filter || column.sort) && /*#__PURE__*/React__default["default"].createElement(ColumnActions, null, column.sort && /*#__PURE__*/React__default["default"].createElement(IconButton, {
38777
38790
  ref: el => iconRefs.current[`sort-${column.key}`] = el,
38778
38791
  onClick: () => handleSort(column.key),
38779
38792
  onMouseEnter: () => setFocusedSort(column.key),