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.
- package/lib/components/ButtonUser/ButtonUser.d.ts +4 -2
- package/lib/components/ButtonUserCasc/ButtonUserCasc.d.ts +14 -0
- package/lib/components/Header/Header.d.ts +5 -1
- package/lib/components/Header/Header.stories.d.ts +1 -0
- package/lib/index.d.ts +5 -1
- package/lib/index.esm.js +161 -112
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +161 -112
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
9
|
+
hasGestor?: boolean;
|
|
8
10
|
profile?: string;
|
|
9
11
|
}
|
|
10
|
-
export default function UserButton({ name, userName, handleLogout,
|
|
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;
|
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
|
|