labsense-ui-kit 1.2.19 → 1.2.21

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.
@@ -3,6 +3,7 @@ interface UseModalProps {
3
3
  maxWidth?: string;
4
4
  }
5
5
  declare const useCustomModal: ({ maxWidth }: UseModalProps) => {
6
+ isOpen: boolean;
6
7
  setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
7
8
  createModal: (content: React.ReactNode) => React.JSX.Element;
8
9
  };
package/dist/index.js CHANGED
@@ -3767,6 +3767,7 @@ var useCustomModal = function useCustomModal(_ref4) {
3767
3767
  }, content);
3768
3768
  };
3769
3769
  return {
3770
+ isOpen: isOpen,
3770
3771
  setIsOpen: setIsOpen,
3771
3772
  createModal: createModal
3772
3773
  };
@@ -4808,7 +4809,7 @@ var ButtonComponent = function ButtonComponent(_ref21) {
4808
4809
  var loaderPos = loaderProps.loaderPosition || 'right';
4809
4810
  return React__default.createElement(StyledButton, {
4810
4811
  "$disabled": disabled,
4811
- onClick: onClick,
4812
+ onClick: !disabled ? onClick : undefined,
4812
4813
  "$buttonWidth": buttonWidth,
4813
4814
  "$background": background,
4814
4815
  "$borderDefault": borderDefault,