@beweco/aurora-ui 0.6.57-qa.64 → 0.6.57-qa.66

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
@@ -4022,6 +4022,9 @@ var Phone = function (_a) {
4022
4022
  if (!isDropdownOpen)
4023
4023
  return;
4024
4024
  var handleClickOutside = function (event) {
4025
+ // Ignore synthetic events (e.g. dispatched by scroll-close hooks)
4026
+ if (!event.isTrusted)
4027
+ return;
4025
4028
  var target = event.target;
4026
4029
  if (dropdownRef.current &&
4027
4030
  !dropdownRef.current.contains(target) &&
@@ -4042,13 +4045,6 @@ var Phone = function (_a) {
4042
4045
  document.removeEventListener("mousedown", handleClickOutside);
4043
4046
  };
4044
4047
  }, [isDropdownOpen]);
4045
- // El dropdown se portea a `body` con posición absoluta fija; cerrarlo cuando
4046
- // un ancestro hace scroll para que no quede flotando fuera de lugar.
4047
- useCloseOnAncestorScroll({
4048
- isOpen: isDropdownOpen,
4049
- onClose: function () { return setIsDropdownOpen(false); },
4050
- contentRef: portalDropdownRef,
4051
- });
4052
4048
  var handleCountrySelect = function (country) {
4053
4049
  setSelectedCountry(country);
4054
4050
  setIsDropdownOpen(false);
package/dist/index.esm.js CHANGED
@@ -4023,6 +4023,9 @@ var Phone = function (_a) {
4023
4023
  if (!isDropdownOpen)
4024
4024
  return;
4025
4025
  var handleClickOutside = function (event) {
4026
+ // Ignore synthetic events (e.g. dispatched by scroll-close hooks)
4027
+ if (!event.isTrusted)
4028
+ return;
4026
4029
  var target = event.target;
4027
4030
  if (dropdownRef.current &&
4028
4031
  !dropdownRef.current.contains(target) &&
@@ -4043,13 +4046,6 @@ var Phone = function (_a) {
4043
4046
  document.removeEventListener("mousedown", handleClickOutside);
4044
4047
  };
4045
4048
  }, [isDropdownOpen]);
4046
- // El dropdown se portea a `body` con posición absoluta fija; cerrarlo cuando
4047
- // un ancestro hace scroll para que no quede flotando fuera de lugar.
4048
- useCloseOnAncestorScroll({
4049
- isOpen: isDropdownOpen,
4050
- onClose: function () { return setIsDropdownOpen(false); },
4051
- contentRef: portalDropdownRef,
4052
- });
4053
4049
  var handleCountrySelect = function (country) {
4054
4050
  setSelectedCountry(country);
4055
4051
  setIsDropdownOpen(false);
@@ -1 +1 @@
1
- {"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwP3C,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmP3C,CAAC;AAEF,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beweco/aurora-ui",
3
- "version": "0.6.57-qa.64",
3
+ "version": "0.6.57-qa.66",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",