pge-front-common 10.4.2 → 10.4.3
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/HeaderPge/Header.d.ts +19 -0
- package/lib/components/HeaderPge/Header.stories.d.ts +8 -0
- package/lib/icons/index.d.ts +2 -1
- package/lib/icons/logo-divida-ativa.d.ts +3 -0
- package/lib/index.d.ts +20 -3
- package/lib/index.esm.js +240 -204
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +240 -203
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -32,4 +32,5 @@ 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
|
-
|
|
35
|
+
import { LogoDividaAtiva } from "./logo-divida-ativa";
|
|
36
|
+
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 };
|
package/lib/index.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ interface IFuncoesMenuHorizontal {
|
|
|
135
135
|
chave: string;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
interface HeaderProps {
|
|
138
|
+
interface HeaderProps$1 {
|
|
139
139
|
isRHDigital: boolean;
|
|
140
140
|
isCASC?: boolean;
|
|
141
141
|
hasGestor?: boolean;
|
|
@@ -150,7 +150,7 @@ interface HeaderProps {
|
|
|
150
150
|
fullName?: string;
|
|
151
151
|
firstName?: string;
|
|
152
152
|
}
|
|
153
|
-
declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React__default.JSX.Element;
|
|
153
|
+
declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps$1) => React__default.JSX.Element;
|
|
154
154
|
|
|
155
155
|
declare function FooterComponent(): React__default.JSX.Element;
|
|
156
156
|
|
|
@@ -232,6 +232,23 @@ type OptionsProps = {
|
|
|
232
232
|
|
|
233
233
|
declare const SelectMult: ({ name, control, optionsSelect, placeholder, isMulti, isDisabled, label, hasError, handleChange, isRequired, value, }: SelectMultProps) => React$1.JSX.Element;
|
|
234
234
|
|
|
235
|
+
interface HeaderProps {
|
|
236
|
+
isRHDigital: boolean;
|
|
237
|
+
isCASC?: boolean;
|
|
238
|
+
hasGestor?: boolean;
|
|
239
|
+
isPortalServidor?: boolean;
|
|
240
|
+
isResponsiveCASC?: boolean;
|
|
241
|
+
options: IFuncoesMenuHorizontal[];
|
|
242
|
+
optionSelection: (name: string, id: number) => void;
|
|
243
|
+
name: string;
|
|
244
|
+
userName: string;
|
|
245
|
+
handleLogout: () => void;
|
|
246
|
+
profile?: string;
|
|
247
|
+
fullName?: string;
|
|
248
|
+
firstName?: string;
|
|
249
|
+
}
|
|
250
|
+
declare const HeaderPge: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React__default.JSX.Element;
|
|
251
|
+
|
|
235
252
|
type TitleProps = {
|
|
236
253
|
title: string;
|
|
237
254
|
};
|
|
@@ -322,4 +339,4 @@ declare const IconPrint: (props?: SVGProps<SVGSVGElement>) => React__default.JSX
|
|
|
322
339
|
|
|
323
340
|
declare const IconUploadFile: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
324
341
|
|
|
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 };
|
|
342
|
+
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, 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 };
|