@beweco/aurora-ui 0.6.60-qa.70 → 0.6.61

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
@@ -4045,6 +4045,13 @@ var Phone = function (_a) {
4045
4045
  document.removeEventListener("mousedown", handleClickOutside);
4046
4046
  };
4047
4047
  }, [isDropdownOpen]);
4048
+ // El dropdown se portea a `body` con posición absoluta fija; cerrarlo cuando
4049
+ // un ancestro hace scroll para que no quede flotando fuera de lugar.
4050
+ useCloseOnAncestorScroll({
4051
+ isOpen: isDropdownOpen,
4052
+ onClose: function () { return setIsDropdownOpen(false); },
4053
+ contentRef: portalDropdownRef,
4054
+ });
4048
4055
  var handleCountrySelect = function (country) {
4049
4056
  setSelectedCountry(country);
4050
4057
  setIsDropdownOpen(false);
package/dist/index.esm.js CHANGED
@@ -4046,6 +4046,13 @@ var Phone = function (_a) {
4046
4046
  document.removeEventListener("mousedown", handleClickOutside);
4047
4047
  };
4048
4048
  }, [isDropdownOpen]);
4049
+ // El dropdown se portea a `body` con posición absoluta fija; cerrarlo cuando
4050
+ // un ancestro hace scroll para que no quede flotando fuera de lugar.
4051
+ useCloseOnAncestorScroll({
4052
+ isOpen: isDropdownOpen,
4053
+ onClose: function () { return setIsDropdownOpen(false); },
4054
+ contentRef: portalDropdownRef,
4055
+ });
4049
4056
  var handleCountrySelect = function (country) {
4050
4057
  setSelectedCountry(country);
4051
4058
  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;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"}
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,CA2P3C,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.60-qa.70",
3
+ "version": "0.6.61",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",