pge-front-common 4.0.7 → 4.0.9

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/README.md CHANGED
@@ -77,6 +77,6 @@ O Storybook estará disponível em http://localhost:6006.
77
77
 
78
78
  # O que é esperado após esta implementaçã
79
79
 
80
- # Existem alterações na UI/UX? (screenshots, gravações de tela
80
+ # Existem alterações na UI/UX? (screenshots, gravações de tela)
81
81
 
82
82
  # Como reproduzir esta feature/correção?
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import "./styles.css";
3
+ export interface UserButtonProps {
4
+ name: string;
5
+ userName: string;
6
+ handleLogout: () => void;
7
+ }
8
+ export default function UserButton({ name, userName, handleLogout, }: UserButtonProps): React.JSX.Element;
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import "./styles.css";
3
+ export interface IFuncionalidade {
4
+ id: number;
5
+ nome: string;
6
+ chave: string;
7
+ checked: boolean;
8
+ }
9
+ export interface ISubMenuMenuHorizontal {
10
+ id: number;
11
+ nome: string;
12
+ chave: string;
13
+ funcionalidades: IFuncionalidade[];
14
+ checked: boolean;
15
+ }
16
+ export interface IFuncoesMenuHorizontal {
17
+ id: number;
18
+ nome: string;
19
+ submenu: ISubMenuMenuHorizontal[];
20
+ checked: boolean;
21
+ chave: string;
22
+ }
23
+ type DropDownProps = React.HTMLProps<HTMLDivElement> & {
24
+ options: IFuncoesMenuHorizontal[];
25
+ showDropDown: boolean;
26
+ toggleDropDown: Function;
27
+ optionSelection: (name: string, id: number) => void;
28
+ };
29
+ declare const DropDown: React.FC<DropDownProps>;
30
+ export default DropDown;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import Footer from "./index";
3
+ declare const meta: Meta<typeof Footer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import "./styles.css";
3
+ export default function FooterComponent(): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import Header from "./index";
3
+ declare const meta: Meta<typeof Header>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithPGERGLogo: Story;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "./styles.css";
3
+ import { IFuncoesMenuHorizontal } from "../DropDown";
4
+ export interface HeaderProps {
5
+ isLogoRhDigital: boolean;
6
+ options: IFuncoesMenuHorizontal[];
7
+ optionSelection: (name: string, id: number) => void;
8
+ name: string;
9
+ userName: string;
10
+ handleLogout: () => void;
11
+ }
12
+ declare const Header: React.FC<HeaderProps>;
13
+ export default Header;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { IFuncoesMenuHorizontal } from "../DropDown";
3
+ export interface MenuProps {
4
+ options: IFuncoesMenuHorizontal[];
5
+ optionSelection: (name: string, id: number) => void;
6
+ }
7
+ declare const Menu: React.FC<MenuProps>;
8
+ export default Menu;
@@ -0,0 +1,2 @@
1
+ import React, { SVGProps } from "react";
2
+ export declare const Footer: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React, { SVGProps } from "react";
2
+ export declare const LogoFooterLight: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -23,4 +23,5 @@ import { IconSwap } from "./swap-icon";
23
23
  import { IconAddCell } from "./add-cell-icon";
24
24
  import { MenuIcon } from "./menu-icon";
25
25
  import { LogoRhDigital } from "./logo-rh-digital";
26
- export { IconDownload, IconVisibillity, IconEdit, IconDelete, IconCalendar, IconProfile, IconUpload, IconNewTab, IconWarning, IconCheckCircle, IconEventAvaliable, IconLogout, IconCLose, IconAdd, IconRemove, IconCircleExpland, IconCircleRecall, IconArrowExpland, IconArrowRecall, IconTriangleExpand, IconTriangleRecall, IconSwap, IconAddCell, MenuIcon, LogoRhDigital, };
26
+ import { LogoPGERG } from "./logo-pge-rj";
27
+ export { IconDownload, IconVisibillity, IconEdit, IconDelete, IconCalendar, IconProfile, IconUpload, IconNewTab, IconWarning, IconCheckCircle, IconEventAvaliable, IconLogout, IconCLose, IconAdd, IconRemove, IconCircleExpland, IconCircleRecall, IconArrowExpland, IconArrowRecall, IconTriangleExpand, IconTriangleRecall, IconSwap, IconAddCell, MenuIcon, LogoRhDigital, LogoPGERG, };
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SVGProps } from "react";
3
+ export declare const LogoPGERG: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
package/lib/index.d.ts CHANGED
@@ -63,6 +63,39 @@ type OptionsProps = {
63
63
 
64
64
  declare const Dropdown: React$1.FC<Partial<DropdownProps>>;
65
65
 
66
+ interface IFuncionalidade {
67
+ id: number;
68
+ nome: string;
69
+ chave: string;
70
+ checked: boolean;
71
+ }
72
+ interface ISubMenuMenuHorizontal {
73
+ id: number;
74
+ nome: string;
75
+ chave: string;
76
+ funcionalidades: IFuncionalidade[];
77
+ checked: boolean;
78
+ }
79
+ interface IFuncoesMenuHorizontal {
80
+ id: number;
81
+ nome: string;
82
+ submenu: ISubMenuMenuHorizontal[];
83
+ checked: boolean;
84
+ chave: string;
85
+ }
86
+
87
+ interface HeaderProps {
88
+ isLogoRhDigital: boolean;
89
+ options: IFuncoesMenuHorizontal[];
90
+ optionSelection: (name: string, id: number) => void;
91
+ name: string;
92
+ userName: string;
93
+ handleLogout: () => void;
94
+ }
95
+ declare const Header: React$1.FC<HeaderProps>;
96
+
97
+ declare function FooterComponent(): React$1.JSX.Element;
98
+
66
99
  declare const IconDownload: (props?: SVGProps<SVGSVGElement>) => React$1.JSX.Element;
67
100
 
68
101
  declare const IconVisibillity: (props?: SVGProps<SVGSVGElement>) => React$1.JSX.Element;
@@ -109,4 +142,4 @@ declare const IconSwap: (props?: SVGProps<SVGSVGElement>) => React$1.JSX.Element
109
142
 
110
143
  declare const IconAddCell: (props?: SVGProps<SVGSVGElement>) => React$1.JSX.Element;
111
144
 
112
- export { Button, type ButtonProps, Dropdown, type DropdownProps, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconLogout, IconNewTab, IconProfile, IconRemove, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpload, IconVisibillity, IconWarning, InputBase, type InputBaseProps, Modal, ModalConfirm, type ModalConfirmProps, type ModalProps, type OptionsProps };
145
+ export { Button, type ButtonProps, Dropdown, type DropdownProps, FooterComponent as Footer, Header, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconLogout, IconNewTab, IconProfile, IconRemove, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpload, IconVisibillity, IconWarning, InputBase, type InputBaseProps, Modal, ModalConfirm, type ModalConfirmProps, type ModalProps, type OptionsProps };