pge-front-common 9.0.0 → 9.0.1

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.
@@ -1,10 +1,12 @@
1
1
  import React from "react";
2
2
  export interface UserButtonProps {
3
+ fullName?: string;
4
+ firstName?: string;
3
5
  name: string;
4
6
  userName: string;
5
7
  handleLogout: () => void;
6
8
  isPortalServidor?: boolean;
7
- isCASC?: boolean;
9
+ hasGestor?: boolean;
8
10
  profile?: string;
9
11
  }
10
- export default function UserButton({ name, userName, handleLogout, isCASC, isPortalServidor, profile, }: UserButtonProps): React.JSX.Element;
12
+ export default function UserButton({ fullName, firstName, name, userName, handleLogout, isPortalServidor, profile, hasGestor, }: UserButtonProps): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export interface UserButtonCascProps {
3
+ fullName?: string;
4
+ firstName?: string;
5
+ name: string;
6
+ userName: string;
7
+ handleLogout: () => void;
8
+ isPortalServidor?: boolean;
9
+ isCASC?: boolean;
10
+ hasGestor?: boolean;
11
+ profile?: string;
12
+ isResponsiveCASC?: boolean;
13
+ }
14
+ export default function UserCascButton({ name, handleLogout, isCASC, }: UserButtonCascProps): React.JSX.Element;
@@ -3,13 +3,17 @@ import { IFuncoesMenuHorizontal } from "../DropDown/Dropdown";
3
3
  export interface HeaderProps {
4
4
  isRHDigital: boolean;
5
5
  isCASC?: boolean;
6
+ hasGestor?: boolean;
6
7
  isPortalServidor?: boolean;
8
+ isResponsiveCASC?: boolean;
7
9
  options: IFuncoesMenuHorizontal[];
8
10
  optionSelection: (name: string, id: number) => void;
9
11
  name: string;
10
12
  userName: string;
11
13
  handleLogout: () => void;
12
14
  profile?: string;
15
+ fullName?: string;
16
+ firstName?: string;
13
17
  }
14
- declare const Header: ({ isRHDigital, isCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, }: HeaderProps) => React.JSX.Element;
18
+ declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React.JSX.Element;
15
19
  export default Header;
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithPGERGLogo: Story;
8
+ export declare const WithCASCLogo: Story;
package/lib/index.d.ts CHANGED
@@ -127,15 +127,19 @@ interface IFuncoesMenuHorizontal {
127
127
  interface HeaderProps {
128
128
  isRHDigital: boolean;
129
129
  isCASC?: boolean;
130
+ hasGestor?: boolean;
130
131
  isPortalServidor?: boolean;
132
+ isResponsiveCASC?: boolean;
131
133
  options: IFuncoesMenuHorizontal[];
132
134
  optionSelection: (name: string, id: number) => void;
133
135
  name: string;
134
136
  userName: string;
135
137
  handleLogout: () => void;
136
138
  profile?: string;
139
+ fullName?: string;
140
+ firstName?: string;
137
141
  }
138
- declare const Header: ({ isRHDigital, isCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, }: HeaderProps) => React.JSX.Element;
142
+ declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React.JSX.Element;
139
143
 
140
144
  declare function FooterComponent(): React.JSX.Element;
141
145