pge-front-common 14.1.31 → 14.1.33

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 { Meta, StoryObj } from "@storybook/react";
2
+ import { FloatingMenu } from "./index";
3
+ declare const meta: Meta<typeof FloatingMenu>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FloatingMenu>;
6
+ export declare const Default: Story;
7
+ export declare const TopLeft: Story;
8
+ export declare const TopRight: Story;
9
+ export declare const BottomLeft: Story;
10
+ export declare const BottomRight: Story;
11
+ export declare const LeftEdgeCenter: Story;
12
+ export declare const RightEdgeCenter: Story;
13
+ export declare const TopEdgeCenter: Story;
14
+ export declare const BottomEdgeCenter: Story;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { FloatingMenuProps } from "./index.type";
3
+ export declare const FloatingMenu: ({ anchor, anchorContent, isOpen, onClose, children, className, style, }: FloatingMenuProps) => React.JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ export interface FloatingMenuProps {
2
+ anchor?: HTMLElement | null;
3
+ anchorContent?: React.ReactNode;
4
+ isOpen?: boolean;
5
+ onClose?: () => void;
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ style?: React.CSSProperties;
9
+ }
@@ -13,6 +13,7 @@ interface PaginationProps {
13
13
  value: number;
14
14
  label: string;
15
15
  }[];
16
+ dropdownDirection?: "down" | "up";
16
17
  }
17
- declare const Pagination: ({ countPage, currentPage, totalItems, itemsPerPage, handleNext, handlePrevious, handleItemPorPage, pagina, handlePage, defaultOptions, }: PaginationProps) => React.JSX.Element;
18
+ declare const Pagination: ({ countPage, currentPage, totalItems, itemsPerPage, handleNext, handlePrevious, handleItemPorPage, pagina, handlePage, defaultOptions, dropdownDirection, }: PaginationProps) => React.JSX.Element;
18
19
  export default Pagination;
@@ -9,3 +9,4 @@ export declare const LastPage: Story;
9
9
  export declare const CustomItemsPerPage: Story;
10
10
  export declare const LargeDataset: Story;
11
11
  export declare const DisabledNavigation: Story;
12
+ export declare const DropdownUp: Story;
@@ -7,6 +7,7 @@ interface SelectProps {
7
7
  }>;
8
8
  onChange: (value: number | string) => void;
9
9
  className?: string;
10
+ direction?: "down" | "up";
10
11
  }
11
- declare const SelectPagination: ({ value, options, onChange, className, }: SelectProps) => React.JSX.Element;
12
+ declare const SelectPagination: ({ value, options, onChange, className, direction, }: SelectProps) => React.JSX.Element;
12
13
  export default SelectPagination;
@@ -0,0 +1,2 @@
1
+ import React, { SVGProps } from "react";
2
+ export declare const IconCalculate: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -57,4 +57,9 @@ import { IconCertidaoRegularidade } from "./certidao-regularidade-fiscal";
57
57
  import { IconParcelamento } from "./parcelamento-icon";
58
58
  import { IconArrowRight } from "./right-arrow-icon";
59
59
  import { IconArrowLeft } from "./left-arrow-icon";
60
- export { IconArrowRight, IconArrowLeft, IconCertidaoRegularidade, IconEmissaoDarj, IconDebitoFiscal, IconParcelamento, IconLeftDirection, IconRightDirection, IconInformative, IconCheckSuccess, IconAlert, IconAttention, IconPrint, IconDownload, IconVisibility, IconEdit, IconDelete, IconDotsVertical, IconCalendar, IconProfile, IconUpload, IconNewTab, IconWarning, IconCheckCircle, IconEventAvaliable, IconLogout, IconCLose, IconAdd, IconRemove, IconCircleExpland, IconCircleRecall, IconArrowExpland, IconArrowRecall, IconTriangleExpand, IconTriangleRecall, IconSwap, IconAddCell, MenuIcon, LogoRhDigital, LogoPGERG, LogoPGEBeneficios, IconInvisibility, IconPdf, IconHourglass, IconSearch, IconUpAndDownArror, IconCheck, IconUploadFile, LogoDividaAtiva, IconUploadV2, IconQuestionMark, IconUserLogout, CommonDotIcon, IconExclude, IconView, IconUploadFile2, IconInfoRound, IconMail, IconUsers, };
60
+ import { IconPayment } from "./payment-icon";
61
+ import { IconTwoUsers } from "./two-user-icon";
62
+ import { IconTwoUsersSearch } from "./two-user-search-icon";
63
+ import { IconCalculate } from "./calculate-icon";
64
+ import { IconUpArrow } from "./up-arrow-icon";
65
+ export { IconPayment, IconTwoUsers, IconTwoUsersSearch, IconCalculate, IconUpArrow, IconArrowRight, IconArrowLeft, IconCertidaoRegularidade, IconEmissaoDarj, IconDebitoFiscal, IconParcelamento, IconLeftDirection, IconRightDirection, IconInformative, IconCheckSuccess, IconAlert, IconAttention, IconPrint, IconDownload, IconVisibility, IconEdit, IconDelete, IconDotsVertical, IconCalendar, IconProfile, IconUpload, IconNewTab, IconWarning, IconCheckCircle, IconEventAvaliable, IconLogout, IconCLose, IconAdd, IconRemove, IconCircleExpland, IconCircleRecall, IconArrowExpland, IconArrowRecall, IconTriangleExpand, IconTriangleRecall, IconSwap, IconAddCell, MenuIcon, LogoRhDigital, LogoPGERG, LogoPGEBeneficios, IconInvisibility, IconPdf, IconHourglass, IconSearch, IconUpAndDownArror, IconCheck, IconUploadFile, LogoDividaAtiva, IconUploadV2, IconQuestionMark, IconUserLogout, CommonDotIcon, IconExclude, IconView, IconUploadFile2, IconInfoRound, IconMail, IconUsers, };
@@ -0,0 +1,2 @@
1
+ import React, { SVGProps } from "react";
2
+ export declare const IconPayment: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React, { SVGProps } from "react";
2
+ export declare const IconTwoUsers: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React, { SVGProps } from "react";
2
+ export declare const IconTwoUsersSearch: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React, { SVGProps } from "react";
2
+ export declare const IconUpArrow: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
package/lib/index.d.ts CHANGED
@@ -515,8 +515,9 @@ interface PaginationProps {
515
515
  value: number;
516
516
  label: string;
517
517
  }[];
518
+ dropdownDirection?: "down" | "up";
518
519
  }
519
- declare const Pagination: ({ countPage, currentPage, totalItems, itemsPerPage, handleNext, handlePrevious, handleItemPorPage, pagina, handlePage, defaultOptions, }: PaginationProps) => React__default.JSX.Element;
520
+ declare const Pagination: ({ countPage, currentPage, totalItems, itemsPerPage, handleNext, handlePrevious, handleItemPorPage, pagina, handlePage, defaultOptions, dropdownDirection, }: PaginationProps) => React__default.JSX.Element;
520
521
 
521
522
  interface SelectMultProps {
522
523
  name?: string;
@@ -858,6 +859,18 @@ declare const Chip: React__default.ForwardRefExoticComponent<{
858
859
  disabled?: boolean;
859
860
  } & React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
860
861
 
862
+ interface FloatingMenuProps {
863
+ anchor?: HTMLElement | null;
864
+ anchorContent?: React.ReactNode;
865
+ isOpen?: boolean;
866
+ onClose?: () => void;
867
+ children: React.ReactNode;
868
+ className?: string;
869
+ style?: React.CSSProperties;
870
+ }
871
+
872
+ declare const FloatingMenu: ({ anchor, anchorContent, isOpen, onClose, children, className, style, }: FloatingMenuProps) => React__default.JSX.Element | null;
873
+
861
874
  declare const IconDownload: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
862
875
 
863
876
  declare const IconVisibility: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
@@ -866,6 +879,8 @@ declare const IconEdit: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.
866
879
 
867
880
  declare const IconDelete: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
868
881
 
882
+ declare const IconDotsVertical: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
883
+
869
884
  declare const IconCalendar: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
870
885
 
871
886
  declare const IconProfile: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
@@ -954,6 +969,16 @@ declare const IconArrowRight: (props?: SVGProps<SVGSVGElement>) => React__defaul
954
969
 
955
970
  declare const IconArrowLeft: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
956
971
 
972
+ declare const IconPayment: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
973
+
974
+ declare const IconTwoUsers: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
975
+
976
+ declare const IconTwoUsersSearch: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
977
+
978
+ declare const IconCalculate: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
979
+
980
+ declare const IconUpArrow: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
981
+
957
982
  declare function installPrimeReactStyles(): void;
958
983
 
959
- export { Accordion, AccordionItem, type AccordionItemProps, BasicSelect, Blanket, BoxError, BoxSuccess, Button, type ButtonProps, Checkbox, Chip, type ChipProps, type Column, CommonDotIcon, DateInput, Dropdown, FileUpload, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDebitoFiscal, IconDelete, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRightDirection, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpAndDownArror, 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 };
984
+ 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 };