pge-front-common 14.2.1 → 14.2.2

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.
@@ -16,6 +16,7 @@ export interface HeaderProps {
16
16
  hasGestor?: boolean;
17
17
  fullName?: string;
18
18
  firstName?: string;
19
+ hasLogin?: boolean;
19
20
  }
20
- declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, isPortalBeneficios, profile, hasGestor, fullName, firstName, isHonorarios, extraComponent, }: HeaderProps) => React.JSX.Element;
21
+ declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, isPortalBeneficios, profile, hasGestor, fullName, firstName, isHonorarios, extraComponent, hasLogin, }: HeaderProps) => React.JSX.Element;
21
22
  export default Header;
@@ -8,3 +8,4 @@ export declare const WithPGERGLogo: Story;
8
8
  export declare const WithPGEBENEFICIOSLogo: Story;
9
9
  export declare const WithCASCLogo: Story;
10
10
  export declare const WithExtraComponent: Story;
11
+ export declare const WithoutLogin: Story;
package/lib/index.d.ts CHANGED
@@ -449,8 +449,9 @@ interface HeaderProps$1 {
449
449
  hasGestor?: boolean;
450
450
  fullName?: string;
451
451
  firstName?: string;
452
+ hasLogin?: boolean;
452
453
  }
453
- declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, isPortalBeneficios, profile, hasGestor, fullName, firstName, isHonorarios, extraComponent, }: HeaderProps$1) => React__default.JSX.Element;
454
+ declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, isPortalBeneficios, profile, hasGestor, fullName, firstName, isHonorarios, extraComponent, hasLogin, }: HeaderProps$1) => React__default.JSX.Element;
454
455
 
455
456
  interface FooterProps {
456
457
  imageFooter: string;
package/lib/index.esm.js CHANGED
@@ -1071,7 +1071,7 @@ function UserCascButton(_a) {
1071
1071
  }
1072
1072
 
1073
1073
  var Header = function (_a) {
1074
- var _b = _a.isRHDigital, isRHDigital = _b === void 0 ? false : _b, _c = _a.isCASC, isCASC = _c === void 0 ? false : _c, _d = _a.isResponsiveCASC, isResponsiveCASC = _d === void 0 ? false : _d, optionSelection = _a.optionSelection, options = _a.options, name = _a.name, userName = _a.userName, handleLogout = _a.handleLogout, isPortalServidor = _a.isPortalServidor, isPortalBeneficios = _a.isPortalBeneficios, profile = _a.profile, _e = _a.hasGestor, hasGestor = _e === void 0 ? true : _e, fullName = _a.fullName, firstName = _a.firstName, isHonorarios = _a.isHonorarios, extraComponent = _a.extraComponent;
1074
+ var _b = _a.isRHDigital, isRHDigital = _b === void 0 ? false : _b, _c = _a.isCASC, isCASC = _c === void 0 ? false : _c, _d = _a.isResponsiveCASC, isResponsiveCASC = _d === void 0 ? false : _d, optionSelection = _a.optionSelection, options = _a.options, name = _a.name, userName = _a.userName, handleLogout = _a.handleLogout, isPortalServidor = _a.isPortalServidor, isPortalBeneficios = _a.isPortalBeneficios, profile = _a.profile, _e = _a.hasGestor, hasGestor = _e === void 0 ? true : _e, fullName = _a.fullName, firstName = _a.firstName, isHonorarios = _a.isHonorarios, extraComponent = _a.extraComponent, _f = _a.hasLogin, hasLogin = _f === void 0 ? true : _f;
1075
1075
  var getHeaderKey = function () {
1076
1076
  if (isRHDigital)
1077
1077
  return "RH_DIGITAL";
@@ -1104,7 +1104,7 @@ var Header = function (_a) {
1104
1104
  CASC: function () { return (React__default.createElement(UserCascButton, { name: name, userName: userName, handleLogout: handleLogout, isPortalServidor: isPortalServidor, isResponsiveCASC: true, isCASC: true, profile: profile, hasGestor: hasGestor, fullName: fullName, firstName: firstName })); },
1105
1105
  DEFAULT: function () { return (React__default.createElement(UserButton, { name: name, userName: userName, handleLogout: handleLogout, isPortalServidor: isPortalServidor, profile: profile, hasGestor: hasGestor, fullName: fullName, firstName: firstName })); },
1106
1106
  HONORARIOS: function () { return (React__default.createElement(UserButton, { name: name, userName: userName, handleLogout: handleLogout, isPortalServidor: false, profile: profile, hasGestor: hasGestor, fullName: fullName, firstName: firstName })); },
1107
- BENEFICIOS: function () { return (React__default.createElement(UserButton, { name: name, userName: userName, handleLogout: handleLogout, isPortalServidor: isPortalServidor, profile: profile, hasGestor: hasGestor, fullName: fullName, firstName: firstName })); }
1107
+ BENEFICIOS: function () { return (React__default.createElement(UserButton, { name: name, userName: userName, handleLogout: handleLogout, isPortalServidor: isPortalServidor, profile: profile, hasGestor: hasGestor, fullName: fullName, firstName: firstName })); },
1108
1108
  };
1109
1109
  var headerKey = getHeaderKey();
1110
1110
  var userButtonKey = getUserButton();
@@ -1130,7 +1130,7 @@ var Header = function (_a) {
1130
1130
  React__default.createElement(Logo, null)),
1131
1131
  React__default.createElement("div", { className: styles$v.wrapperUserButton },
1132
1132
  extraComponent,
1133
- React__default.createElement(UserButtonComponent, null))))));
1133
+ hasLogin && React__default.createElement(UserButtonComponent, null))))));
1134
1134
  };
1135
1135
 
1136
1136
  var css_248z$u = ".styles-module__container___FWA4h {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n}\r\n\r\n.styles-module__imgContainer___d-9G4 {\r\n width: 100%;\r\n max-width: 1440px;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.styles-module__footerImg___Timhg {\r\n width: 100%;\r\n max-width: 1440px;\r\n height: 198px;\r\n object-fit: contain;\r\n}\r\n\r\n.styles-module__footer___em-xX {\r\n width: 100%;\r\n max-width: 1440px;\r\n height: 221px;\r\n background-repeat: no-repeat;\r\n background-size: contain;\r\n background-position: center bottom;\r\n margin: 0 auto; /* Center the container */\r\n background-color: transparent;\r\n margin-bottom: -9px;\r\n}\r\n\r\n@media screen and (max-width: 480px) {\r\n .styles-module__footer___em-xX {\r\n margin-bottom: -3px;\r\n height: 63px;\r\n padding: 0px 16px;\r\n }\r\n\r\n .styles-module__footer___em-xX.styles-module__dark___RwoTf {\r\n margin-bottom: -3px;\r\n height: 63px;\r\n padding: 0px 16px;\r\n }\r\n}\r\n\r\n.styles-module__pgeLogoContainer___hF2j3 {\r\n width: 100%;\r\n height: 134px;\r\n background-color: var(--footer-bg-color);\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: column;\r\n}\r\n\r\n@media screen and (max-width: 480px) {\r\n .styles-module__pgeLogoContainer___hF2j3 {\r\n height: 118px;\r\n }\r\n}\r\n\r\n.styles-module__pgeLogo___b7X5k {\r\n width: 240px;\r\n height: 86px;\r\n background-repeat: no-repeat;\r\n background-size: contain;\r\n background-position: center bottom;\r\n margin: 0 auto;\r\n}\r\n\r\n.styles-module__copyrightContainer___mh-Zd {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: row;\r\n background-color: #000;\r\n min-height: 46px;\r\n}\r\n\r\n@media screen and (max-width: 480px) {\r\n .styles-module__copyrightContainer___mh-Zd {\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n min-height: 30px;\r\n }\r\n}\r\n\r\n.styles-module__copyrightText___U8iv8 {\r\n font-weight: 400;\r\n font-size: var(--font-size-12, 12px);\r\n line-height: 16.34px;\r\n letter-spacing: 0%;\r\n text-align: center;\r\n color: #fff;\r\n}\r\n\r\n.styles-module__footerAddress___wdcT4 {\r\n display: flex;\r\n margin: 0;\r\n justify-content: center;\r\n color: var(--background-color);\r\n font-size: var(--font-size-12);\r\n background-color: var(--footer-bg-color);\r\n padding-top: 8px;\r\n padding-bottom: 8px;\r\n color: #fff;\r\n}\r\n";
@@ -21132,6 +21132,8 @@ var css_248z$f = ":root {\n font-family: \"Inter var\", sans-serif;\n font-fea
21132
21132
  styleInject(css_248z$f);
21133
21133
 
21134
21134
  addLocale("pt", {
21135
+ emptyMessage: "Nenhuma opção disponível",
21136
+ emptyFilterMessage: "Nenhum resultado encontrado",
21135
21137
  monthNames: [
21136
21138
  "Janeiro",
21137
21139
  "Fevereiro",
@@ -27564,6 +27566,45 @@ styleInject(css_248z$1);
27564
27566
  addLocale("pt", {
27565
27567
  emptyMessage: "Nenhuma opção disponível",
27566
27568
  emptyFilterMessage: "Nenhum resultado encontrado",
27569
+ monthNames: [
27570
+ "Janeiro",
27571
+ "Fevereiro",
27572
+ "Março",
27573
+ "Abril",
27574
+ "Maio",
27575
+ "Junho",
27576
+ "Julho",
27577
+ "Agosto",
27578
+ "Setembro",
27579
+ "Outubro",
27580
+ "Novembro",
27581
+ "Dezembro",
27582
+ ],
27583
+ monthNamesShort: [
27584
+ "Jan",
27585
+ "Fev",
27586
+ "Mar",
27587
+ "Abr",
27588
+ "Mai",
27589
+ "Jun",
27590
+ "Jul",
27591
+ "Ago",
27592
+ "Set",
27593
+ "Out",
27594
+ "Nov",
27595
+ "Dez",
27596
+ ],
27597
+ dayNames: [
27598
+ "Domingo",
27599
+ "Segunda-feira",
27600
+ "Terça-feira",
27601
+ "Quarta-feira",
27602
+ "Quinta-feira",
27603
+ "Sexta-feira",
27604
+ "Sábado",
27605
+ ],
27606
+ dayNamesMin: ["D", "S", "T", "Q", "Q", "S", "S"],
27607
+ dayNamesShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
27567
27608
  });
27568
27609
  locale("pt");
27569
27610
  var TreeSelect = function (_a) {