@dreamcommerce/aurora 2.15.0 → 2.16.1

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.
@@ -22,7 +22,7 @@ const BreadcrumbChild = ({ children, attributes }) => {
22
22
  (_a = breadcrumbRef.current) === null || _a === void 0 ? void 0 : _a.setAttribute(key, value);
23
23
  });
24
24
  }, []);
25
- return React__default['default'].createElement("li", { className: classnames__default['default'](main_module['default'][css_classes.BREADCRUMBS_CSS_CLASSES.child], css_classes.BREADCRUMBS_CSS_CLASSES.child) }, children);
25
+ return (React__default['default'].createElement("li", { ref: breadcrumbRef, className: classnames__default['default'](main_module['default'][css_classes.BREADCRUMBS_CSS_CLASSES.child], css_classes.BREADCRUMBS_CSS_CLASSES.child) }, children));
26
26
  };
27
27
 
28
28
  exports.BreadcrumbChild = BreadcrumbChild;
@@ -20,7 +20,11 @@ function useClickOutside({ refs, config, callback }) {
20
20
  }, null);
21
21
  if (!$el)
22
22
  return acc;
23
- return acc ? acc : event.target === $el || $el.contains(event.target);
23
+ return acc
24
+ ? acc
25
+ : event.target === $el ||
26
+ $el.contains(event.target) ||
27
+ event.target.closest(blackListSelector) !== null;
24
28
  }, false);
25
29
  const shouldTrigger = (config === null || config === void 0 ? void 0 : config.shouldTrigger) ? config.shouldTrigger(event) : true;
26
30
  const callCallback = refs.every((ref) => ref.current && !ref.current.contains(event.target));
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -13,7 +13,7 @@ const BreadcrumbChild = ({ children, attributes }) => {
13
13
  (_a = breadcrumbRef.current) === null || _a === void 0 ? void 0 : _a.setAttribute(key, value);
14
14
  });
15
15
  }, []);
16
- return React.createElement("li", { className: classnames(breadcrumbsCssClasses[BREADCRUMBS_CSS_CLASSES.child], BREADCRUMBS_CSS_CLASSES.child) }, children);
16
+ return (React.createElement("li", { ref: breadcrumbRef, className: classnames(breadcrumbsCssClasses[BREADCRUMBS_CSS_CLASSES.child], BREADCRUMBS_CSS_CLASSES.child) }, children));
17
17
  };
18
18
 
19
19
  export { BreadcrumbChild };
@@ -16,7 +16,11 @@ function useClickOutside({ refs, config, callback }) {
16
16
  }, null);
17
17
  if (!$el)
18
18
  return acc;
19
- return acc ? acc : event.target === $el || $el.contains(event.target);
19
+ return acc
20
+ ? acc
21
+ : event.target === $el ||
22
+ $el.contains(event.target) ||
23
+ event.target.closest(blackListSelector) !== null;
20
24
  }, false);
21
25
  const shouldTrigger = (config === null || config === void 0 ? void 0 : config.shouldTrigger) ? config.shouldTrigger(event) : true;
22
26
  const callCallback = refs.every((ref) => ref.current && !ref.current.contains(event.target));
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "2.15.0",
5
+ "version": "2.16.1",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",