pge-front-common 14.1.36 → 14.1.38

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.
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import Fieldset from "./index";
3
+ declare const meta: Meta<typeof Fieldset>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithoutLegend: Story;
8
+ export declare const WithMultipleInputs: Story;
9
+ export declare const WithDisabledInputs: Story;
10
+ export declare const WithCustomClassName: Story;
11
+ export declare const WithComplexContent: Story;
12
+ export declare const WithCheckboxAndRadio: Story;
13
+ export declare const Minimal: Story;
14
+ export declare const NestedFieldsets: Story;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { FieldsetProps } from "./index.type";
3
+ export default function Fieldset({ legend, children, className, }: FieldsetProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface FieldsetProps {
3
+ legend?: string;
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ }
@@ -11,10 +11,12 @@ export interface HeaderProps {
11
11
  name: string;
12
12
  userName: string;
13
13
  handleLogout: () => void;
14
+ handleLogin?: () => void;
14
15
  profile?: string;
15
16
  fullName?: string;
16
17
  firstName?: string;
17
18
  brandLogos?: React.ReactNode;
19
+ showLoginButton?: boolean;
18
20
  }
19
- declare const HeaderPge: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, brandLogos }: HeaderProps) => React.JSX.Element;
21
+ declare const HeaderPge: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, handleLogin, isPortalServidor, profile, hasGestor, fullName, firstName, brandLogos, showLoginButton, }: HeaderProps) => React.JSX.Element;
20
22
  export default HeaderPge;
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithPGERGLogo: Story;
8
8
  export declare const WithCASCLogo: Story;
9
+ export declare const ShowLoginButton: Story;
@@ -8,3 +8,8 @@ export declare const WithCustomCellRendering: Story;
8
8
  export declare const WithActionColumn: Story;
9
9
  export declare const EmptyState: Story;
10
10
  export declare const LargeDataSet: Story;
11
+ export declare const WithCheckboxColumn: Story;
12
+ export declare const WithSwitchColumn: Story;
13
+ export declare const WithBasicSelectColumn: Story;
14
+ export declare const WithSelectColumn: Story;
15
+ export declare const WithMultiSelectColumn: Story;
package/lib/index.d.ts CHANGED
@@ -620,12 +620,14 @@ interface HeaderProps {
620
620
  name: string;
621
621
  userName: string;
622
622
  handleLogout: () => void;
623
+ handleLogin?: () => void;
623
624
  profile?: string;
624
625
  fullName?: string;
625
626
  firstName?: string;
626
627
  brandLogos?: React__default.ReactNode;
628
+ showLoginButton?: boolean;
627
629
  }
628
- declare const HeaderPge: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, brandLogos }: HeaderProps) => React__default.JSX.Element;
630
+ declare const HeaderPge: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, handleLogin, isPortalServidor, profile, hasGestor, fullName, firstName, brandLogos, showLoginButton, }: HeaderProps) => React__default.JSX.Element;
629
631
 
630
632
  type TitleProps = {
631
633
  title: string;
@@ -878,6 +880,14 @@ interface FloatingMenuProps {
878
880
 
879
881
  declare const FloatingMenu: ({ anchor, anchorContent, isOpen, onClose, children, className, style, }: FloatingMenuProps) => React__default.JSX.Element | null;
880
882
 
883
+ interface FieldsetProps {
884
+ legend?: string;
885
+ children: React__default.ReactNode;
886
+ className?: string;
887
+ }
888
+
889
+ declare function Fieldset({ legend, children, className, }: FieldsetProps): React__default.JSX.Element;
890
+
881
891
  declare const IconDownload: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
882
892
 
883
893
  declare const IconVisibility: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
@@ -988,4 +998,4 @@ declare const IconUpArrow: (props?: SVGProps<SVGSVGElement>) => React__default.J
988
998
 
989
999
  declare function installPrimeReactStyles(): void;
990
1000
 
991
- export { Accordion, AccordionItem, type AccordionItemProps, BasicSelect, Blanket, BoxError, BoxSuccess, Button, type ButtonProps, Checkbox, Chip, type ChipProps, type Column, CommonDotIcon, DateInput, Dropdown, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDebitoFiscal, IconDelete, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRightDirection, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconView, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, type OptionsProps$2 as OptionsProps, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, type ProgressCircleProps, RadioGroupBase, type RadioGroupBaseProps, SelectDefault, type SelectDefaultProps, SelectMult, type SelectMultProps, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, type TableComponentProps, TableFooter, TableHeader, TableRow, TextareaBase, type TextareaBaseProps, Title, Tooltip, TooltipWithPortal, installPrimeReactStyles };
1001
+ export { Accordion, AccordionItem, type AccordionItemProps, BasicSelect, Blanket, BoxError, BoxSuccess, Button, type ButtonProps, Checkbox, Chip, type ChipProps, type Column, CommonDotIcon, DateInput, Dropdown, Fieldset, type FieldsetProps, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDebitoFiscal, IconDelete, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRightDirection, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconView, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, type OptionsProps$2 as OptionsProps, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, type ProgressCircleProps, RadioGroupBase, type RadioGroupBaseProps, SelectDefault, type SelectDefaultProps, SelectMult, type SelectMultProps, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, type TableComponentProps, TableFooter, TableHeader, TableRow, TextareaBase, type TextareaBaseProps, Title, Tooltip, TooltipWithPortal, installPrimeReactStyles };