sag_components 2.0.0-beta234 → 2.0.0-beta236

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
@@ -24177,22 +24177,21 @@ const DeleteIcon = styled__default["default"].div`
24177
24177
  position: absolute;
24178
24178
  `;
24179
24179
 
24180
- const QuickFilterDropdownSingle = _ref => {
24181
- let {
24182
- label,
24183
- hoverColor,
24184
- options,
24185
- selectedValue,
24186
- placeHolder,
24187
- onChange,
24188
- disabled,
24189
- width,
24190
- error,
24191
- errorMessage,
24192
- xIconShow,
24193
- labelColor,
24194
- showLabelOnTop
24195
- } = _ref;
24180
+ const QuickFilterDropdownSingle = ({
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
+ }) => {
24196
24195
  const [isFocused, setIsFocused] = React$1.useState(false);
24197
24196
  const [showOptions, setShowOptions] = React$1.useState(false);
24198
24197
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24649,26 +24648,25 @@ const IconContainer$2 = styled__default["default"].div`
24649
24648
  cursor: pointer;
24650
24649
  `;
24651
24650
 
24652
- const QuickFilterDropdownMultiSelection = _ref => {
24653
- let {
24654
- label,
24655
- labelEmptyValue,
24656
- options,
24657
- selectedValue,
24658
- placeHolder,
24659
- onChange,
24660
- required,
24661
- disabled,
24662
- width,
24663
- height,
24664
- error,
24665
- errorMessage,
24666
- labelColor,
24667
- xIconShow,
24668
- checkBoxColor,
24669
- showLabelOnTop,
24670
- dropdownHeight
24671
- } = _ref;
24651
+ const QuickFilterDropdownMultiSelection = ({
24652
+ label,
24653
+ labelEmptyValue,
24654
+ options,
24655
+ selectedValue,
24656
+ placeHolder,
24657
+ onChange,
24658
+ required,
24659
+ disabled,
24660
+ width,
24661
+ height,
24662
+ error,
24663
+ errorMessage,
24664
+ labelColor,
24665
+ xIconShow,
24666
+ checkBoxColor,
24667
+ showLabelOnTop,
24668
+ dropdownHeight
24669
+ }) => {
24672
24670
  const [isFocused, setIsFocused] = React$1.useState(false);
24673
24671
  const [showOptions, setShowOptions] = React$1.useState(false);
24674
24672
  const [inputValue, setInputValue] = React$1.useState('');
@@ -36099,12 +36097,6 @@ const ToggleSwitchLabel = styled__default["default"].label`
36099
36097
  position: relative;
36100
36098
  cursor: pointer;
36101
36099
  user-select: none;
36102
- // opacity: ${_ref => {
36103
- let {
36104
- disabled
36105
- } = _ref;
36106
- return disabled ? 0.5 : 1;
36107
- }};
36108
36100
  `;
36109
36101
  const ToggleInput = styled__default["default"].input`
36110
36102
  display: none;
@@ -36112,19 +36104,15 @@ const ToggleInput = styled__default["default"].input`
36112
36104
  const ToggleSlider = styled__default["default"].span`
36113
36105
  display: block;
36114
36106
  position: relative;
36115
- background: ${_ref2 => {
36116
- let {
36117
- checked,
36118
- disabled
36119
- } = _ref2;
36120
- return checked ? disabled ? "#7bb1b0" : "#006d6a" : disabled ? "#B1B1B1" : "#cfd8dc";
36121
- }};
36107
+ background: ${({
36108
+ checked,
36109
+ disabled
36110
+ }) => checked ? "#006d6a" : disabled ? "#B1B1B1" : "#D0D0D0"};
36122
36111
  border-radius: 999px;
36123
36112
  transition: background 0.2s;
36124
- ${_ref3 => {
36125
- let {
36126
- size
36127
- } = _ref3;
36113
+ ${({
36114
+ size
36115
+ }) => {
36128
36116
  switch (size) {
36129
36117
  case "s":
36130
36118
  return styled.css`width: 40px; height: 20px;`;
@@ -36140,13 +36128,14 @@ const ToggleSlider = styled__default["default"].span`
36140
36128
  left: 3px;
36141
36129
  top: 50%;
36142
36130
  transform: translateY(-50%);
36143
- background: #fff;
36131
+ background: ${({
36132
+ disabled
36133
+ }) => disabled ? "#D0D0D0" : "#fff"};
36144
36134
  border-radius: 50%;
36145
36135
  transition: left 0.2s, width 0.2s, height 0.2s;
36146
- ${_ref4 => {
36147
- let {
36148
- size
36149
- } = _ref4;
36136
+ ${({
36137
+ size
36138
+ }) => {
36150
36139
  switch (size) {
36151
36140
  case "s":
36152
36141
  return styled.css`width: 14px; height: 14px;`;
@@ -36156,11 +36145,10 @@ const ToggleSlider = styled__default["default"].span`
36156
36145
  return styled.css`width: 20px; height: 20px;`;
36157
36146
  }
36158
36147
  }}
36159
- left: ${_ref5 => {
36160
- let {
36161
- checked,
36162
- size
36163
- } = _ref5;
36148
+ left: ${({
36149
+ checked,
36150
+ size
36151
+ }) => {
36164
36152
  if (!checked) return "3px";
36165
36153
  switch (size) {
36166
36154
  case "s":
@@ -36184,13 +36172,11 @@ function ToggleSwitch(_ref) {
36184
36172
  onChange,
36185
36173
  size = "m",
36186
36174
  disabled = false,
36187
- aa,
36188
36175
  ...props
36189
36176
  } = _ref;
36190
36177
  return /*#__PURE__*/React__default["default"].createElement(ToggleSwitchLabel, {
36191
36178
  size: size,
36192
- disabled: disabled,
36193
- aa: true
36179
+ disabled: disabled
36194
36180
  }, /*#__PURE__*/React__default["default"].createElement(ToggleInput, _extends$1({
36195
36181
  type: "checkbox",
36196
36182
  checked: checked,