pge-front-common 14.1.39 → 14.1.40
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/InputDate/index.d.ts +1 -1
- package/lib/components/TreeSelect/TreeSelect.stories.d.ts +15 -0
- package/lib/components/TreeSelect/index.d.ts +7 -0
- package/lib/components/TreeSelect/index.type.d.ts +22 -0
- package/lib/components/TreeSelect/installStyles.d.ts +1 -0
- package/lib/index.d.ts +20 -1
- package/lib/index.esm.js +4051 -919
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4052 -919
- package/lib/index.js.map +1 -1
- package/package.json +2 -1
- package/lib/components/Dialog/index.d.ts +0 -19
- package/lib/components/Footer/Footer.d.ts +0 -2
- package/lib/components/ProgressCircle/progressCircle.d.ts +0 -4
- package/lib/components/TooltipWithPortal/TooltipWithPortal.d.ts +0 -6
- package/lib/images/images/headerDividaAtivaLogoLight.svg +0 -4
- package/lib/images/images/headerPgeLogoDark.svg +0 -13
- package/lib/images/images/headerPgeLogoLight.svg +0 -109
- package/lib/lib/index.esm.js +0 -23979
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "primereact/resources/primereact.css";
|
|
3
|
-
import "primereact/resources/themes/lara-light-
|
|
3
|
+
import "primereact/resources/themes/lara-light-blue/theme.css";
|
|
4
4
|
import { InputBaseProps } from "./index.type";
|
|
5
5
|
declare const DateInput: ({ restrictionMessage, label, onChange, isError, valueDate, disabled, placeholder, required, inline, selectionMode, enabledDates, view, dateFormat, }: InputBaseProps) => React.JSX.Element;
|
|
6
6
|
export { DateInput };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { TreeSelect } from "./index";
|
|
3
|
+
declare const meta: Meta<typeof TreeSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Padrao: Story;
|
|
7
|
+
export declare const ComFiltro: Story;
|
|
8
|
+
export declare const Obrigatorio: Story;
|
|
9
|
+
export declare const ComErro: Story;
|
|
10
|
+
export declare const Desabilitado: Story;
|
|
11
|
+
export declare const ComValorPreSelecionado: Story;
|
|
12
|
+
export declare const ExibicaoEmChips: Story;
|
|
13
|
+
export declare const ComIcones: Story;
|
|
14
|
+
export declare const ComIconesMultiplo: Story;
|
|
15
|
+
export declare const TodosOsCenarios: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "primereact/resources/primereact.css";
|
|
3
|
+
import "primereact/resources/themes/lara-light-blue/theme.css";
|
|
4
|
+
import "primeicons/primeicons.css";
|
|
5
|
+
import { TreeSelectProps } from "./index.type";
|
|
6
|
+
declare const TreeSelect: ({ label, value, restrictionMessage, onChange, isError, disabled, placeholder, required, display, filter, options, selectionMode, }: TreeSelectProps) => React.JSX.Element;
|
|
7
|
+
export { TreeSelect };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TreeSelectChangeEvent, TreeSelectSelectionKeysType } from "primereact/treeselect";
|
|
2
|
+
export interface TreeSelectProps {
|
|
3
|
+
customClass?: string;
|
|
4
|
+
restrictionMessage?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: string | TreeSelectSelectionKeysType | TreeSelectSelectionKeysType[] | null;
|
|
7
|
+
onChange?: (e: TreeSelectChangeEvent) => void;
|
|
8
|
+
isError?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
required?: boolean | false;
|
|
12
|
+
options?: any;
|
|
13
|
+
display?: "comma" | "chip" | undefined;
|
|
14
|
+
filter?: boolean | undefined;
|
|
15
|
+
selectionMode?: "checkbox" | "multiple" | "single";
|
|
16
|
+
}
|
|
17
|
+
export type TreeSelectOptions = {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
icon?: string;
|
|
21
|
+
children?: TreeSelectOptions[];
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function installPrimeReactStyles(): void;
|
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { InputHTMLAttributes, ReactNode, HtmlHTMLAttributes, ChangeEvent, HTMLAttributes, SVGProps } from 'react';
|
|
3
3
|
import { Control } from 'react-hook-form';
|
|
4
4
|
import { FormatOptionLabelMeta } from 'react-select';
|
|
5
|
+
import { TreeSelectSelectionKeysType, TreeSelectChangeEvent } from 'primereact/treeselect';
|
|
5
6
|
|
|
6
7
|
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
8
|
variant: "primary" | "secondary" | "outline-danger";
|
|
@@ -888,6 +889,24 @@ interface FieldsetProps {
|
|
|
888
889
|
|
|
889
890
|
declare function Fieldset({ legend, children, className, }: FieldsetProps): React__default.JSX.Element;
|
|
890
891
|
|
|
892
|
+
interface TreeSelectProps {
|
|
893
|
+
customClass?: string;
|
|
894
|
+
restrictionMessage?: string;
|
|
895
|
+
label?: string;
|
|
896
|
+
value?: string | TreeSelectSelectionKeysType | TreeSelectSelectionKeysType[] | null;
|
|
897
|
+
onChange?: (e: TreeSelectChangeEvent) => void;
|
|
898
|
+
isError?: boolean;
|
|
899
|
+
disabled?: boolean;
|
|
900
|
+
placeholder?: string;
|
|
901
|
+
required?: boolean | false;
|
|
902
|
+
options?: any;
|
|
903
|
+
display?: "comma" | "chip" | undefined;
|
|
904
|
+
filter?: boolean | undefined;
|
|
905
|
+
selectionMode?: "checkbox" | "multiple" | "single";
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
declare const TreeSelect: ({ label, value, restrictionMessage, onChange, isError, disabled, placeholder, required, display, filter, options, selectionMode, }: TreeSelectProps) => React__default.JSX.Element;
|
|
909
|
+
|
|
891
910
|
declare const IconDownload: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
892
911
|
|
|
893
912
|
declare const IconVisibility: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
@@ -998,4 +1017,4 @@ declare const IconUpArrow: (props?: SVGProps<SVGSVGElement>) => React__default.J
|
|
|
998
1017
|
|
|
999
1018
|
declare function installPrimeReactStyles(): void;
|
|
1000
1019
|
|
|
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 };
|
|
1020
|
+
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, TreeSelect, type TreeSelectProps, installPrimeReactStyles };
|