@codacy/ui-components 0.58.1 → 0.58.4

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.
@@ -11,7 +11,7 @@ export var useDropdownTrigger = function useDropdownTrigger() {
11
11
  var handleSurroundings = useCallback(function (event) {
12
12
  var _dropdownContext$trig, _dropdownContext$pane;
13
13
 
14
- if (!((_dropdownContext$trig = dropdownContext.triggerRef) === null || _dropdownContext$trig === void 0 ? void 0 : _dropdownContext$trig.contains(event.target)) && !((_dropdownContext$pane = dropdownContext.panelRef) === null || _dropdownContext$pane === void 0 ? void 0 : _dropdownContext$pane.contains(event.target))) {
14
+ if (event.target.clientWidth && !((_dropdownContext$trig = dropdownContext.triggerRef) === null || _dropdownContext$trig === void 0 ? void 0 : _dropdownContext$trig.contains(event.target)) && !((_dropdownContext$pane = dropdownContext.panelRef) === null || _dropdownContext$pane === void 0 ? void 0 : _dropdownContext$pane.contains(event.target))) {
15
15
  dropdownContext.setOpen(false);
16
16
  }
17
17
  }, [dropdownContext]);
@@ -35,7 +35,7 @@ export var useDropdownTrigger = function useDropdownTrigger() {
35
35
 
36
36
  if (dropdownContext.open) subscribe();else unsubscribe();
37
37
  return unsubscribe;
38
- }, [dropdownContext, dropdownContext.panelRef, handleEscape, handleSurroundings]);
38
+ }, [dropdownContext.open, dropdownContext.panelRef, dropdownContext.triggerRef, handleEscape, handleSurroundings]);
39
39
  return _objectSpread(_objectSpread({}, dropdownContext), {}, {
40
40
  onClick: onClick
41
41
  });
@@ -41,13 +41,13 @@ export var DangerIcon = function DangerIcon() {
41
41
  viewBox: "0 0 512 512"
42
42
  }, /*#__PURE__*/React.createElement("path", {
43
43
  d: "M85.57 446.25h340.86a32 32 0 0028.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0028.17 47.17z",
44
- "stroke-linecap": "round",
45
- "stroke-linejoin": "round",
44
+ strokeLinecap: "round",
45
+ strokeLinejoin: "round",
46
46
  className: "ionicon-fill-none ionicon-stroke-width"
47
47
  }), /*#__PURE__*/React.createElement("path", {
48
48
  d: "M250.26 195.39l5.74 122 5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 5.95z",
49
- "stroke-linecap": "round",
50
- "stroke-linejoin": "round",
49
+ strokeLinecap: "round",
50
+ strokeLinejoin: "round",
51
51
  className: "ionicon-fill-none ionicon-stroke-width"
52
52
  }), /*#__PURE__*/React.createElement("path", {
53
53
  d: "M256 397.25a20 20 0 1120-20 20 20 0 01-20 20z"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/ui-components",
3
- "version": "0.58.1",
3
+ "version": "0.58.4",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",