@julseb-lib/react 1.1.26 → 1.1.28

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
@@ -140,7 +140,7 @@ var useClickOutside = (ref, handler, isActive = true, delay = 100) => {
140
140
  useEffect(() => {
141
141
  const handleClickOutside = (event) => {
142
142
  if (ref.current && !ref.current.contains(event.target)) {
143
- handler();
143
+ handler(event);
144
144
  }
145
145
  };
146
146
  if (isActive) {
@@ -3299,6 +3299,7 @@ var InputImage = ({
3299
3299
  {
3300
3300
  onMouseEnter: () => !disabled && setIsHovered(true),
3301
3301
  onMouseLeave: () => !disabled && setIsHovered(false),
3302
+ type: "button",
3302
3303
  children: /* @__PURE__ */ jsxs20(
3303
3304
  "label",
3304
3305
  {
@@ -67840,8 +67841,7 @@ var Header = ({
67840
67841
  ref: el
67841
67842
  };
67842
67843
  useKeyPress("Escape", handleClose);
67843
- useClickOutside(el, (e) => {
67844
- if (e.target?.closest(".header-burger")) return;
67844
+ useClickOutside(el, () => {
67845
67845
  if (isOpen) handleClose();
67846
67846
  });
67847
67847
  return /* @__PURE__ */ jsxs291(