pge-front-common 10.4.2 → 10.4.4

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,19 +1,19 @@
1
1
  import React from "react";
2
- import { IFuncoesMenuHorizontal } from "../DropDown/Dropdown";
3
- export interface HeaderProps {
4
- isRHDigital: boolean;
2
+ interface HeaderProps {
3
+ isRHDigital?: boolean;
4
+ isHonorarios?: boolean;
5
5
  isCASC?: boolean;
6
- hasGestor?: boolean;
7
- isPortalServidor?: boolean;
8
6
  isResponsiveCASC?: boolean;
9
- options: IFuncoesMenuHorizontal[];
10
7
  optionSelection: (name: string, id: number) => void;
8
+ options: any[];
11
9
  name: string;
12
10
  userName: string;
13
11
  handleLogout: () => void;
12
+ isPortalServidor?: boolean;
14
13
  profile?: string;
14
+ hasGestor?: boolean;
15
15
  fullName?: string;
16
16
  firstName?: string;
17
17
  }
18
- declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React.JSX.Element;
18
+ declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, isHonorarios, }: HeaderProps) => React.JSX.Element;
19
19
  export default Header;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { IFuncoesMenuHorizontal } from "../DropDown/Dropdown";
3
+ export interface HeaderProps {
4
+ isRHDigital: boolean;
5
+ isCASC?: boolean;
6
+ hasGestor?: boolean;
7
+ isPortalServidor?: boolean;
8
+ isResponsiveCASC?: boolean;
9
+ options: IFuncoesMenuHorizontal[];
10
+ optionSelection: (name: string, id: number) => void;
11
+ name: string;
12
+ userName: string;
13
+ handleLogout: () => void;
14
+ profile?: string;
15
+ fullName?: string;
16
+ firstName?: string;
17
+ }
18
+ declare const HeaderPge: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React.JSX.Element;
19
+ export default HeaderPge;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import Header from "./Header";
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;
8
+ export declare const WithCASCLogo: Story;
@@ -32,4 +32,6 @@ import { IconUpAndDownArror } from "./up-down-arrow";
32
32
  import { IconCheck } from "./check-icon";
33
33
  import { IconPrint } from "./print-icon";
34
34
  import { IconUploadFile } from "./upload-file";
35
- export { IconPrint, IconDownload, IconVisibility, IconEdit, IconDelete, IconCalendar, IconProfile, IconUpload, IconNewTab, IconWarning, IconCheckCircle, IconEventAvaliable, IconLogout, IconCLose, IconAdd, IconRemove, IconCircleExpland, IconCircleRecall, IconArrowExpland, IconArrowRecall, IconTriangleExpand, IconTriangleRecall, IconSwap, IconAddCell, MenuIcon, LogoRhDigital, LogoPGERG, IconInvisibility, IconPdf, IconHourglass, IconSearch, IconUpAndDownArror, IconCheck, IconUploadFile };
35
+ import { IconUploadV2 } from "./upload-iconV2";
36
+ import { LogoDividaAtiva } from "./logo-divida-ativa";
37
+ export { IconPrint, IconDownload, IconVisibility, IconEdit, IconDelete, IconCalendar, IconProfile, IconUpload, IconNewTab, IconWarning, IconCheckCircle, IconEventAvaliable, IconLogout, IconCLose, IconAdd, IconRemove, IconCircleExpland, IconCircleRecall, IconArrowExpland, IconArrowRecall, IconTriangleExpand, IconTriangleRecall, IconSwap, IconAddCell, MenuIcon, LogoRhDigital, LogoPGERG, IconInvisibility, IconPdf, IconHourglass, IconSearch, IconUpAndDownArror, IconCheck, IconUploadFile, LogoDividaAtiva, IconUploadV2, };
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SVGProps } from "react";
3
+ export declare const LogoDividaAtiva: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React, { SVGProps } from "react";
2
+ export declare const IconUploadV2: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
package/lib/index.d.ts CHANGED
@@ -114,43 +114,23 @@ type OptionsProps$1 = {
114
114
 
115
115
  declare const RadioGroupBase: ({ name, label, value, options, message, textError, hasError, orientation, required, disabled, onInput, customClass, ...props }: RadioGroupBaseProps) => React__default.JSX.Element;
116
116
 
117
- interface IFuncionalidade {
118
- id: number;
119
- nome: string;
120
- chave: string;
121
- checked: boolean;
122
- }
123
- interface ISubMenuMenuHorizontal {
124
- id: number;
125
- nome: string;
126
- chave: string;
127
- funcionalidades: IFuncionalidade[];
128
- checked: boolean;
129
- }
130
- interface IFuncoesMenuHorizontal {
131
- id: number;
132
- nome: string;
133
- submenu: ISubMenuMenuHorizontal[];
134
- checked: boolean;
135
- chave: string;
136
- }
137
-
138
- interface HeaderProps {
139
- isRHDigital: boolean;
117
+ interface HeaderProps$1 {
118
+ isRHDigital?: boolean;
119
+ isHonorarios?: boolean;
140
120
  isCASC?: boolean;
141
- hasGestor?: boolean;
142
- isPortalServidor?: boolean;
143
121
  isResponsiveCASC?: boolean;
144
- options: IFuncoesMenuHorizontal[];
145
122
  optionSelection: (name: string, id: number) => void;
123
+ options: any[];
146
124
  name: string;
147
125
  userName: string;
148
126
  handleLogout: () => void;
127
+ isPortalServidor?: boolean;
149
128
  profile?: string;
129
+ hasGestor?: boolean;
150
130
  fullName?: string;
151
131
  firstName?: string;
152
132
  }
153
- declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React__default.JSX.Element;
133
+ declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, isHonorarios, }: HeaderProps$1) => React__default.JSX.Element;
154
134
 
155
135
  declare function FooterComponent(): React__default.JSX.Element;
156
136
 
@@ -232,6 +212,44 @@ type OptionsProps = {
232
212
 
233
213
  declare const SelectMult: ({ name, control, optionsSelect, placeholder, isMulti, isDisabled, label, hasError, handleChange, isRequired, value, }: SelectMultProps) => React$1.JSX.Element;
234
214
 
215
+ interface IFuncionalidade {
216
+ id: number;
217
+ nome: string;
218
+ chave: string;
219
+ checked: boolean;
220
+ }
221
+ interface ISubMenuMenuHorizontal {
222
+ id: number;
223
+ nome: string;
224
+ chave: string;
225
+ funcionalidades: IFuncionalidade[];
226
+ checked: boolean;
227
+ }
228
+ interface IFuncoesMenuHorizontal {
229
+ id: number;
230
+ nome: string;
231
+ submenu: ISubMenuMenuHorizontal[];
232
+ checked: boolean;
233
+ chave: string;
234
+ }
235
+
236
+ interface HeaderProps {
237
+ isRHDigital: boolean;
238
+ isCASC?: boolean;
239
+ hasGestor?: boolean;
240
+ isPortalServidor?: boolean;
241
+ isResponsiveCASC?: boolean;
242
+ options: IFuncoesMenuHorizontal[];
243
+ optionSelection: (name: string, id: number) => void;
244
+ name: string;
245
+ userName: string;
246
+ handleLogout: () => void;
247
+ profile?: string;
248
+ fullName?: string;
249
+ firstName?: string;
250
+ }
251
+ declare const HeaderPge: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React__default.JSX.Element;
252
+
235
253
  type TitleProps = {
236
254
  title: string;
237
255
  };
@@ -322,4 +340,6 @@ declare const IconPrint: (props?: SVGProps<SVGSVGElement>) => React__default.JSX
322
340
 
323
341
  declare const IconUploadFile: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
324
342
 
325
- export { Accordion, AccordionItem, type AccordionItemProps, BoxError, BoxSuccess, Button, type ButtonProps$1 as ButtonProps, Checkbox, type Column, FileUpload, FooterComponent as Footer, Header, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconHourglass, IconInvisibility, IconLogout, IconNewTab, IconPdf, IconPrint, IconProfile, IconRemove, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpAndDownArror, IconUpload, IconUploadFile, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, SelectMult as Multiselect, type OptionsProps, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, RadioGroupBase, type RadioGroupBaseProps, type SelectMultProps, TableComponent, type TableComponentProps, TextareaBase, type TextareaBaseProps, Title };
343
+ declare const IconUploadV2: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
344
+
345
+ export { Accordion, AccordionItem, type AccordionItemProps, BoxError, BoxSuccess, Button, type ButtonProps$1 as ButtonProps, Checkbox, type Column, FileUpload, FooterComponent as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconHourglass, IconInvisibility, IconLogout, IconNewTab, IconPdf, IconPrint, IconProfile, IconRemove, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpAndDownArror, IconUpload, IconUploadFile, IconUploadV2, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, SelectMult as Multiselect, type OptionsProps, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, RadioGroupBase, type RadioGroupBaseProps, type SelectMultProps, TableComponent, type TableComponentProps, TextareaBase, type TextareaBaseProps, Title };