pge-front-common 14.0.47 → 14.0.48

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/lib/index.esm.js CHANGED
@@ -885,12 +885,7 @@ var Menu$2 = function (_a) {
885
885
  document.removeEventListener("click", handleClickOutside);
886
886
  };
887
887
  }, [showDropDown]);
888
- return (React__default.createElement("div", { ref: buttonRef, className: showDropDown ? "active" : undefined, onClick: toggleDropDown, onKeyDown: function (e) {
889
- if (e.key === "Enter" || e.key === " ") {
890
- e.preventDefault();
891
- toggleDropDown();
892
- }
893
- }, style: { cursor: "pointer" }, tabIndex: 0, role: "button", "aria-expanded": showDropDown },
888
+ return (React__default.createElement("button", { ref: buttonRef, style: { all: "unset", cursor: "pointer" }, className: showDropDown ? "active" : undefined, onClick: toggleDropDown, "aria-expanded": showDropDown, "aria-label": "Abrir menu" },
894
889
  React__default.createElement(MenuIcon, { className: styles$n.iconMenu }),
895
890
  showDropDown && (React__default.createElement(DropDown, { options: options, showDropDown: showDropDown, toggleDropDown: toggleDropDown, optionSelection: handleSelectOption }))));
896
891
  };
@@ -23741,7 +23736,7 @@ function SkeletonLoader(_a) {
23741
23736
  React__default.createElement("div", { className: "".concat(className || "", " ").concat(styles$3.skeletonCell) })));
23742
23737
  }
23743
23738
 
23744
- var css_248z$3 = ".styles-module__container___QloUX {\r\n position: relative;\r\n display: flex;\r\n }\r\n \r\n .styles-module__tooltip___YByF3 {\r\n position: absolute;\r\n width: max-content;\r\n height: fit-content;\r\n max-width: 480px;\r\n border-radius: 8px;\r\n word-wrap: break-word;\r\n background: var(--background-color);\r\n padding: 10px;\r\n border: 1px solid #c3c3c3;\r\n z-index: 1000;\r\n }\r\n \r\n .styles-module__textContent___d2QUQ {\r\n font-weight: 400;\r\n font-size: var(--font-size-14, 14px);\r\n line-height: 21px;\r\n color: var(--foreground);\r\n }\r\n \r\n .styles-module__top-right___a4ZLm {\r\n bottom: 100%;\r\n left: 100%;\r\n margin-bottom: 8px;\r\n }\r\n \r\n .styles-module__bottom-right___T2KLe {\r\n top: 100%;\r\n left: 100%;\r\n margin-top: 8px;\r\n }\r\n \r\n .styles-module__bottom-left___J6rSH {\r\n top: 100%;\r\n right: 100%;\r\n margin-top: 8px;\r\n }\r\n \r\n .styles-module__top-left___KQLAL {\r\n bottom: 100%;\r\n right: 100%;\r\n margin-bottom: 8px;\r\n }\r\n \r\n .styles-module__mobile___BKPrq {\r\n bottom: 100%;\r\n left: 100%;\r\n margin-bottom: 8px;\r\n }\r\n \r\n @media screen and (max-width: 480px) {\r\n .styles-module__container___QloUX {\r\n position: static;\r\n }\r\n \r\n .styles-module__tooltip___YByF3 {\r\n width: max-content;\r\n max-width: 92vw;\r\n left: 0;\r\n bottom: 90%;\r\n text-align: start;\r\n padding: 10px;\r\n position: absolute;\r\n flex-wrap: wrap;\r\n border-radius: 8px;\r\n }\r\n \r\n .styles-module__textContent___d2QUQ {\r\n font-size: var(--font-size-12, 12px);\r\n }\r\n }\r\n ";
23739
+ var css_248z$3 = ".styles-module__container___QloUX {\r\n all: unset;\r\n position: relative;\r\n display: flex;\r\n }\r\n \r\n .styles-module__tooltip___YByF3 {\r\n position: absolute;\r\n width: max-content;\r\n height: fit-content;\r\n max-width: 480px;\r\n border-radius: 8px;\r\n word-wrap: break-word;\r\n background: var(--background-color);\r\n padding: 10px;\r\n border: 1px solid #c3c3c3;\r\n z-index: 1000;\r\n }\r\n \r\n .styles-module__textContent___d2QUQ {\r\n font-weight: 400;\r\n font-size: var(--font-size-14, 14px);\r\n line-height: 21px;\r\n color: var(--foreground);\r\n }\r\n \r\n .styles-module__top-right___a4ZLm {\r\n bottom: 100%;\r\n left: 100%;\r\n margin-bottom: 8px;\r\n }\r\n \r\n .styles-module__bottom-right___T2KLe {\r\n top: 100%;\r\n left: 100%;\r\n margin-top: 8px;\r\n }\r\n \r\n .styles-module__bottom-left___J6rSH {\r\n top: 100%;\r\n right: 100%;\r\n margin-top: 8px;\r\n }\r\n \r\n .styles-module__top-left___KQLAL {\r\n bottom: 100%;\r\n right: 100%;\r\n margin-bottom: 8px;\r\n }\r\n \r\n .styles-module__mobile___BKPrq {\r\n bottom: 100%;\r\n left: 100%;\r\n margin-bottom: 8px;\r\n }\r\n \r\n @media screen and (max-width: 480px) {\r\n .styles-module__container___QloUX {\r\n position: static;\r\n }\r\n \r\n .styles-module__tooltip___YByF3 {\r\n width: max-content;\r\n max-width: 92vw;\r\n left: 0;\r\n bottom: 90%;\r\n text-align: start;\r\n padding: 10px;\r\n position: absolute;\r\n flex-wrap: wrap;\r\n border-radius: 8px;\r\n }\r\n \r\n .styles-module__textContent___d2QUQ {\r\n font-size: var(--font-size-12, 12px);\r\n }\r\n }\r\n ";
23745
23740
  var styles$2 = {"container":"styles-module__container___QloUX","tooltip":"styles-module__tooltip___YByF3","textContent":"styles-module__textContent___d2QUQ","top-right":"styles-module__top-right___a4ZLm","bottom-right":"styles-module__bottom-right___T2KLe","bottom-left":"styles-module__bottom-left___J6rSH","top-left":"styles-module__top-left___KQLAL","mobile":"styles-module__mobile___BKPrq"};
23746
23741
  styleInject(css_248z$3);
23747
23742
 
@@ -23754,6 +23749,12 @@ var TooltipWithPortal = function (_a) {
23754
23749
  var targetRef = useRef(null);
23755
23750
  var visible = internalVisible || forceVisible;
23756
23751
  var PADDING = 8;
23752
+ var onKeyDown = function (e) {
23753
+ if (e.key === "Enter" || e.key === " ") {
23754
+ e.preventDefault();
23755
+ setInternalVisible(function (v) { return !v; });
23756
+ }
23757
+ };
23757
23758
  useEffect(function () {
23758
23759
  var handleResize = function () {
23759
23760
  setIsMobile(window.innerWidth <= 480);
@@ -23854,7 +23855,7 @@ var TooltipWithPortal = function (_a) {
23854
23855
  var onTouch = function () { return isMobile && setInternalVisible(function (v) { return !v; }); };
23855
23856
  var onClick = function () { return !isMobile && setInternalVisible(function (v) { return !v; }); };
23856
23857
  return (React__default.createElement(React__default.Fragment, null,
23857
- React__default.createElement("div", { ref: targetRef, className: styles$2.container, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onTouchStart: onTouch, onClick: onClick, role: "button", "aria-haspopup": "true", "aria-expanded": visible }, children),
23858
+ React__default.createElement("button", { ref: targetRef, type: "button", className: styles$2.container, "aria-haspopup": "true", "aria-expanded": visible, "aria-label": text, onKeyDown: onKeyDown, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onTouchStart: onTouch, onClick: onClick }, children),
23858
23859
  visible &&
23859
23860
  typeof window !== "undefined" &&
23860
23861
  ReactDOM__default.createPortal(React__default.createElement("div", { ref: tooltipRef, className: styles$2.tooltip, style: tooltipStyle, "aria-hidden": !visible },