pge-front-common 14.1.13 → 14.1.15
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/components/InformativeBox/index.type.d.ts +6 -6
- package/lib/index.d.ts +5 -5
- package/lib/index.esm.js +21 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +21 -4
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/components/Dialog/index.d.ts +0 -19
- package/lib/components/Footer/Footer.d.ts +0 -2
- package/lib/components/TooltipWithPortal/TooltipWithPortal.d.ts +0 -6
- package/lib/images/images/headerDividaAtivaLogoLight.svg +0 -4
- package/lib/images/images/headerPgeLogoDark.svg +0 -13
- package/lib/images/images/headerPgeLogoLight.svg +0 -109
- package/lib/lib/index.esm.js +0 -23979
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HtmlHTMLAttributes } from "react";
|
|
2
|
-
export interface InformativeBoxProps extends HtmlHTMLAttributes<HTMLDivElement> {
|
|
3
|
-
infoType:
|
|
4
|
-
widthType?:
|
|
5
|
-
title: string;
|
|
6
|
-
message: string;
|
|
1
|
+
import { HtmlHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface InformativeBoxProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
+
infoType: "success" | "alert" | "warning" | "informative";
|
|
4
|
+
widthType?: "fitContent" | "fullWidth";
|
|
5
|
+
title: string | ReactNode;
|
|
6
|
+
message: string | ReactNode;
|
|
7
7
|
hasDismissButton?: boolean;
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -28,11 +28,11 @@ interface InputBaseProps$1 extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
28
28
|
}
|
|
29
29
|
declare const InputBase: ({ customClass, restrictionMessage, label, leftIcon, rightIcon, onRightIconClick, style, required, error, helperText, disabled, readOnly, className, showCounter, value, ...props }: InputBaseProps$1) => React__default.JSX.Element;
|
|
30
30
|
|
|
31
|
-
interface InformativeBoxProps extends HtmlHTMLAttributes<HTMLDivElement> {
|
|
32
|
-
infoType:
|
|
33
|
-
widthType?:
|
|
34
|
-
title: string;
|
|
35
|
-
message: string;
|
|
31
|
+
interface InformativeBoxProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, "title"> {
|
|
32
|
+
infoType: "success" | "alert" | "warning" | "informative";
|
|
33
|
+
widthType?: "fitContent" | "fullWidth";
|
|
34
|
+
title: string | ReactNode;
|
|
35
|
+
message: string | ReactNode;
|
|
36
36
|
hasDismissButton?: boolean;
|
|
37
37
|
onClose?: () => void;
|
|
38
38
|
}
|
package/lib/index.esm.js
CHANGED
|
@@ -841,7 +841,7 @@ var RadioGroupBase = function (_a) {
|
|
|
841
841
|
!hasError && message && React__default.createElement("p", { className: styles$q.message }, message)));
|
|
842
842
|
};
|
|
843
843
|
|
|
844
|
-
var css_248z$t = ".header-module__separator_background___lYfCd {\r\n background-color: rgb(188, 157, 50);\r\n width: 100%;\r\n height: 4px;\r\n opacity: 1;\r\n}\r\n.header-module__container___eaqPg {\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding: 28px 72px;\r\n min-width: 1024px;\r\n\r\n @media (max-width: 1024px) {\r\n padding: 22px 16px;\r\n min-width: 100%;\r\n }\r\n}\r\n\r\n.header-module__wrapperMenu___m5rLa {\r\n display: flex;\r\n gap: 24px;\r\n align-items: center;\r\n\r\n @media (max-width: 1024px) {\r\n gap: 8px;\r\n }\r\n}\r\n\r\n.header-module__iconLogo___pcEoN {\r\n @media (max-width: 1024px) {\r\n width: 100px;\r\n }\r\n}\r\n\r\n.header-module__verticalDivider___4JMWc {\r\n content: \"\";\r\n display: inline-block;\r\n height: 50px;\r\n width: 1px;\r\n background-color: #ccc;\r\n margin: 0px 0px 0px 0px;\r\n}\r\n\r\n.header-module__containerHeaderIndex___ueqa- {\r\n width: 100%;\r\n max-height: 6rem;\r\n font-size: 2rem;\r\n box-shadow: 0px 15px 10px -15px rgba(0, 0, 0, 0.19);\r\n}\r\n\r\n.header-module__set_shadow___UUN7Y {\r\n border-radius: 0px 0px 16px 16px;\r\n box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);\r\n}\r\n\r\n.header-module__limitedWidth___fsCel {\r\n max-width: 1440px;\r\n margin: 0 auto;\r\n}\r\n\r\n@media (min-width: 640px) {\r\n .header-module__containerHeaderIndex___ueqa- {\r\n max-height: 6rem;\r\n }\r\n}\r\n\r\n@media (min-width: 768px) {\r\n .header-module__containerHeaderIndex___ueqa- {\r\n max-height: 13rem;\r\n }\r\n}\r\n\r\n.header-module__iconLogoCASC___3YUG6 {\r\n height: 65px;\r\n width: auto;\r\n}\r\n\r\n.header-module__iconLogoPGE___HK3gX {\r\n margin-right: 20px;\r\n}\r\n\r\n@media (max-width: 1024px) {\r\n .header-module__iconLogoCASC___3YUG6 {\r\n height: 45px;\r\n width: auto;\r\n }\r\n}\r\n\r\n.header-module__responsiveCASC___KL8jM {\r\n @media (max-width: 1024px) {\r\n .header-module__iconLogoCASC___3YUG6 {\r\n height: 45px;\r\n width: auto;\r\n }\r\n }\r\n\r\n @media (max-width: 600px) {\r\n .header-module__iconLogoCASC___3YUG6 {\r\n height: 40px;\r\n width: auto;\r\n }\r\n }\r\n}\r\n\r\n.header-module__limitedWidthBeneficios___-Jcji {\r\n max-width: 1440px !important;\r\n margin: 0 auto !important;\r\n
|
|
844
|
+
var css_248z$t = ".header-module__separator_background___lYfCd {\r\n background-color: rgb(188, 157, 50);\r\n width: 100%;\r\n height: 4px;\r\n opacity: 1;\r\n}\r\n.header-module__container___eaqPg {\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding: 28px 72px;\r\n min-width: 1024px;\r\n\r\n @media (max-width: 1024px) {\r\n padding: 22px 16px;\r\n min-width: 100%;\r\n }\r\n}\r\n\r\n.header-module__wrapperMenu___m5rLa {\r\n display: flex;\r\n gap: 24px;\r\n align-items: center;\r\n\r\n @media (max-width: 1024px) {\r\n gap: 8px;\r\n }\r\n}\r\n\r\n.header-module__iconLogo___pcEoN {\r\n @media (max-width: 1024px) {\r\n width: 100px;\r\n }\r\n}\r\n\r\n.header-module__verticalDivider___4JMWc {\r\n content: \"\";\r\n display: inline-block;\r\n height: 50px;\r\n width: 1px;\r\n background-color: #ccc;\r\n margin: 0px 0px 0px 0px;\r\n}\r\n\r\n.header-module__containerHeaderIndex___ueqa- {\r\n width: 100%;\r\n max-height: 6rem;\r\n font-size: 2rem;\r\n box-shadow: 0px 15px 10px -15px rgba(0, 0, 0, 0.19);\r\n}\r\n\r\n.header-module__set_shadow___UUN7Y {\r\n border-radius: 0px 0px 16px 16px;\r\n box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);\r\n}\r\n\r\n.header-module__limitedWidth___fsCel {\r\n max-width: 1440px;\r\n margin: 0 auto;\r\n}\r\n\r\n@media (min-width: 640px) {\r\n .header-module__containerHeaderIndex___ueqa- {\r\n max-height: 6rem;\r\n }\r\n}\r\n\r\n@media (min-width: 768px) {\r\n .header-module__containerHeaderIndex___ueqa- {\r\n max-height: 13rem;\r\n }\r\n}\r\n\r\n.header-module__iconLogoCASC___3YUG6 {\r\n height: 65px;\r\n width: auto;\r\n}\r\n\r\n.header-module__iconLogoPGE___HK3gX {\r\n margin-right: 20px;\r\n}\r\n\r\n@media (max-width: 1024px) {\r\n .header-module__iconLogoCASC___3YUG6 {\r\n height: 45px;\r\n width: auto;\r\n }\r\n}\r\n\r\n.header-module__responsiveCASC___KL8jM {\r\n @media (max-width: 1024px) {\r\n .header-module__iconLogoCASC___3YUG6 {\r\n height: 45px;\r\n width: auto;\r\n }\r\n }\r\n\r\n @media (max-width: 600px) {\r\n .header-module__iconLogoCASC___3YUG6 {\r\n height: 40px;\r\n width: auto;\r\n }\r\n }\r\n}\r\n\r\n.header-module__limitedWidthBeneficios___-Jcji {\r\n max-width: 1440px !important;\r\n margin: 0 auto !important;\r\n}\r\n\r\n.header-module__IconMenu___7JWj- {\r\n display: flex;\r\n max-height: 48px;\r\n}\r\n";
|
|
845
845
|
var styles$p = {"separator_background":"header-module__separator_background___lYfCd","container":"header-module__container___eaqPg","wrapperMenu":"header-module__wrapperMenu___m5rLa","iconLogo":"header-module__iconLogo___pcEoN","verticalDivider":"header-module__verticalDivider___4JMWc","containerHeaderIndex":"header-module__containerHeaderIndex___ueqa-","set_shadow":"header-module__set_shadow___UUN7Y","limitedWidth":"header-module__limitedWidth___fsCel","iconLogoCASC":"header-module__iconLogoCASC___3YUG6","iconLogoPGE":"header-module__iconLogoPGE___HK3gX","responsiveCASC":"header-module__responsiveCASC___KL8jM","limitedWidthBeneficios":"header-module__limitedWidthBeneficios___-Jcji","IconMenu":"header-module__IconMenu___7JWj-"};
|
|
846
846
|
styleInject(css_248z$t);
|
|
847
847
|
|
|
@@ -8468,10 +8468,27 @@ var Blanket = function (props) { return (React__default.createElement("div", __a
|
|
|
8468
8468
|
} }, props))); };
|
|
8469
8469
|
var Dropdown = function (_a) {
|
|
8470
8470
|
var children = _a.children, isOpen = _a.isOpen, target = _a.target, onClose = _a.onClose;
|
|
8471
|
-
|
|
8471
|
+
var dropdownRef = useRef(null);
|
|
8472
|
+
useEffect(function () {
|
|
8473
|
+
var handleClickOutside = function (event) {
|
|
8474
|
+
if (dropdownRef.current &&
|
|
8475
|
+
!dropdownRef.current.contains(event.target)) {
|
|
8476
|
+
onClose();
|
|
8477
|
+
}
|
|
8478
|
+
};
|
|
8479
|
+
if (isOpen) {
|
|
8480
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
8481
|
+
}
|
|
8482
|
+
else {
|
|
8483
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
8484
|
+
}
|
|
8485
|
+
return function () {
|
|
8486
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
8487
|
+
};
|
|
8488
|
+
}, [isOpen, onClose]);
|
|
8489
|
+
return (React__default.createElement("div", { ref: dropdownRef, style: { position: "relative", width: "100%" } },
|
|
8472
8490
|
target,
|
|
8473
|
-
isOpen ? React__default.createElement(Menu, null, children) : null
|
|
8474
|
-
isOpen ? React__default.createElement(Blanket, { onClick: onClose }) : null));
|
|
8491
|
+
isOpen ? React__default.createElement(Menu, null, children) : null));
|
|
8475
8492
|
};
|
|
8476
8493
|
function isArrayContained(subset, superset) {
|
|
8477
8494
|
return subset.every(function (subItem) {
|