pge-front-common 4.0.8 → 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.
@@ -3,5 +3,6 @@ import "./styles.css";
3
3
  export interface UserButtonProps {
4
4
  name: string;
5
5
  userName: string;
6
+ handleLogout: () => void;
6
7
  }
7
- export default function UserButton({ name, userName }: UserButtonProps): React.JSX.Element;
8
+ export default function UserButton({ name, userName, handleLogout, }: UserButtonProps): React.JSX.Element;
@@ -1,8 +1,6 @@
1
- import React from "react";
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import Footer from "./index";
3
- declare const _default: {
4
- title: string;
5
- component: typeof Footer;
6
- };
7
- export default _default;
8
- export declare const Default: () => React.JSX.Element;
3
+ declare const meta: Meta<typeof Footer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -7,6 +7,7 @@ export interface HeaderProps {
7
7
  optionSelection: (name: string, id: number) => void;
8
8
  name: string;
9
9
  userName: string;
10
+ handleLogout: () => void;
10
11
  }
11
12
  declare const Header: React.FC<HeaderProps>;
12
13
  export default Header;
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 };