@thecb/components 6.4.0 → 6.4.2

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.cjs.js CHANGED
@@ -44295,7 +44295,7 @@ var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
44295
44295
 
44296
44296
  */
44297
44297
 
44298
- var useOutsideClickHook$1 = function useOutsideClickHook(handler) {
44298
+ var useOutsideClickHook = function useOutsideClickHook(handler) {
44299
44299
  var ref = React.useRef();
44300
44300
  React.useEffect(function () {
44301
44301
  }, [ref]);
@@ -44310,7 +44310,7 @@ var index$4 = /*#__PURE__*/Object.freeze({
44310
44310
  general: general,
44311
44311
  theme: themeUtils,
44312
44312
  useFocusInvalidInput: useFocusInvalidInput,
44313
- useOutsideClick: useOutsideClickHook$1
44313
+ useOutsideClick: useOutsideClickHook
44314
44314
  });
44315
44315
 
44316
44316
  var hoverColor$5 = "#116285";
@@ -44382,9 +44382,7 @@ var Popover = function Popover(_ref) {
44382
44382
  }
44383
44383
  };
44384
44384
 
44385
- var triggerRef = useOutsideClickHook(function () {
44386
- return handleTogglePopover(false);
44387
- });
44385
+ var triggerRef = useOutsideClickHook();
44388
44386
  return /*#__PURE__*/React__default.createElement(Box, {
44389
44387
  padding: "0",
44390
44388
  extraStyles: "position: relative; ".concat(extraStyles)