@beweco/aurora-ui 0.6.57-qa.65 → 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
@@ -4033,35 +4033,18 @@ var Phone = function (_a) {
4033
4033
  setIsDropdownOpen(false);
4034
4034
  }
4035
4035
  };
4036
- // Close on scroll outside the dropdown (e.g. parent container scrolls)
4037
- var handleScroll = function (event) {
4038
- var _a;
4039
- var target = event.target;
4040
- if (target && ((_a = portalDropdownRef.current) === null || _a === void 0 ? void 0 : _a.contains(target)))
4041
- return;
4042
- setIsDropdownOpen(false);
4043
- };
4044
4036
  // Defer listener registration to the next frame so the same
4045
4037
  // tap/click that opened the dropdown cannot immediately close it.
4046
4038
  var rafId = requestAnimationFrame(function () {
4047
4039
  document.addEventListener("pointerdown", handleClickOutside);
4048
4040
  document.addEventListener("mousedown", handleClickOutside);
4049
- window.addEventListener("scroll", handleScroll, { capture: true, passive: true });
4050
4041
  });
4051
4042
  return function () {
4052
4043
  cancelAnimationFrame(rafId);
4053
4044
  document.removeEventListener("pointerdown", handleClickOutside);
4054
4045
  document.removeEventListener("mousedown", handleClickOutside);
4055
- window.removeEventListener("scroll", handleScroll, true);
4056
4046
  };
4057
4047
  }, [isDropdownOpen]);
4058
- // El dropdown se portea a `body` con posición absoluta fija; cerrarlo cuando
4059
- // un ancestro hace scroll para que no quede flotando fuera de lugar.
4060
- useCloseOnAncestorScroll({
4061
- isOpen: isDropdownOpen,
4062
- onClose: function () { return setIsDropdownOpen(false); },
4063
- contentRef: portalDropdownRef,
4064
- });
4065
4048
  var handleCountrySelect = function (country) {
4066
4049
  setSelectedCountry(country);
4067
4050
  setIsDropdownOpen(false);
package/dist/index.esm.js CHANGED
@@ -4034,35 +4034,18 @@ var Phone = function (_a) {
4034
4034
  setIsDropdownOpen(false);
4035
4035
  }
4036
4036
  };
4037
- // Close on scroll outside the dropdown (e.g. parent container scrolls)
4038
- var handleScroll = function (event) {
4039
- var _a;
4040
- var target = event.target;
4041
- if (target && ((_a = portalDropdownRef.current) === null || _a === void 0 ? void 0 : _a.contains(target)))
4042
- return;
4043
- setIsDropdownOpen(false);
4044
- };
4045
4037
  // Defer listener registration to the next frame so the same
4046
4038
  // tap/click that opened the dropdown cannot immediately close it.
4047
4039
  var rafId = requestAnimationFrame(function () {
4048
4040
  document.addEventListener("pointerdown", handleClickOutside);
4049
4041
  document.addEventListener("mousedown", handleClickOutside);
4050
- window.addEventListener("scroll", handleScroll, { capture: true, passive: true });
4051
4042
  });
4052
4043
  return function () {
4053
4044
  cancelAnimationFrame(rafId);
4054
4045
  document.removeEventListener("pointerdown", handleClickOutside);
4055
4046
  document.removeEventListener("mousedown", handleClickOutside);
4056
- window.removeEventListener("scroll", handleScroll, true);
4057
4047
  };
4058
4048
  }, [isDropdownOpen]);
4059
- // El dropdown se portea a `body` con posición absoluta fija; cerrarlo cuando
4060
- // un ancestro hace scroll para que no quede flotando fuera de lugar.
4061
- useCloseOnAncestorScroll({
4062
- isOpen: isDropdownOpen,
4063
- onClose: function () { return setIsDropdownOpen(false); },
4064
- contentRef: portalDropdownRef,
4065
- });
4066
4049
  var handleCountrySelect = function (country) {
4067
4050
  setSelectedCountry(country);
4068
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,CAoQ3C,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.65",
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",