sag_components 2.0.0-beta258 → 2.0.0-beta259

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('');
@@ -42046,6 +42044,11 @@ const HeroButton = styled__default["default"].button`
42046
42044
  > svg {
42047
42045
  pointer-events: none;
42048
42046
  }
42047
+
42048
+ &:disabled {
42049
+ cursor: not-allowed;
42050
+ opacity: 0.5;
42051
+ }
42049
42052
  `;
42050
42053
  const EditableCell = styled__default["default"].div`
42051
42054
  display: flex;
@@ -43327,8 +43330,11 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
43327
43330
  }
43328
43331
  case "hero":
43329
43332
  try {
43333
+ const isDisabled = column?.disable || false;
43334
+ console.log('Rendering hero icon with value:', value, column);
43330
43335
  if (value === null || value === undefined) return null;
43331
43336
  return /*#__PURE__*/React__default["default"].createElement(HeroButton, {
43337
+ disabled: isDisabled,
43332
43338
  onClick: e => {
43333
43339
  e.stopPropagation();
43334
43340
  if (onHeroClick) {