pge-front-common 14.2.18 → 14.2.19
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/Acordion/accordion.stories.d.ts +1 -0
- package/lib/components/Acordion/index.d.ts +6 -1
- package/lib/components/TooltipWithPortal/TooltipWithPortal.stories.d.ts +1 -0
- package/lib/components/TooltipWithPortal/index.d.ts +1 -1
- package/lib/components/TooltipWithPortal/index.type.d.ts +2 -1
- package/lib/icons/alert-info-icon.d.ts +2 -0
- package/lib/icons/analyze-icon.d.ts +2 -0
- package/lib/icons/copy-icon.d.ts +2 -0
- package/lib/icons/icons.stories.d.ts +1 -0
- package/lib/icons/index.d.ts +4 -1
- package/lib/index.d.ts +25 -13
- package/lib/index.esm.js +47 -9
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +49 -8
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,3 +9,4 @@ export default _default;
|
|
|
9
9
|
export declare const DefaultAccordion: () => React.JSX.Element;
|
|
10
10
|
export declare const AccordionWithDefaultOpen: () => React.JSX.Element;
|
|
11
11
|
export declare const AccordionWithComplexContent: () => React.JSX.Element;
|
|
12
|
+
export declare const ControlledAccordion: () => React.JSX.Element;
|
|
@@ -3,9 +3,14 @@ export interface AccordionItemProps {
|
|
|
3
3
|
title: React.ReactNode;
|
|
4
4
|
content: React.ReactNode;
|
|
5
5
|
id?: string;
|
|
6
|
+
/** Estado inicial quando em modo não controlado */
|
|
6
7
|
defaultOpen?: boolean;
|
|
8
|
+
/** Modo controlado: estado de abertura controlado externamente */
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/** Modo controlado: callback chamado quando o estado de abertura muda */
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
12
|
}
|
|
8
|
-
export declare function AccordionItem({ title, content, id: providedId, defaultOpen, }: AccordionItemProps): React.JSX.Element;
|
|
13
|
+
export declare function AccordionItem({ title, content, id: providedId, defaultOpen, open: controlledOpen, onOpenChange, }: AccordionItemProps): React.JSX.Element;
|
|
9
14
|
export declare function Accordion({ children }: {
|
|
10
15
|
children: React.ReactNode;
|
|
11
16
|
}): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TooltipProps } from "./index.type";
|
|
3
|
-
export declare const TooltipWithPortal: ({ text, children, forceVisible }: TooltipProps) => React.JSX.Element;
|
|
3
|
+
export declare const TooltipWithPortal: ({ text, children, forceVisible, triggerAs }: TooltipProps) => React.JSX.Element;
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -65,4 +65,7 @@ import { IconTwoUsersSearch } from "./two-user-search-icon";
|
|
|
65
65
|
import { IconCalculate } from "./calculate-icon";
|
|
66
66
|
import { IconUpArrow } from "./up-arrow-icon";
|
|
67
67
|
import { IconRequerimentoAdm } from "./requerimento-adm-icon";
|
|
68
|
-
|
|
68
|
+
import { IconCopy } from "./copy-icon";
|
|
69
|
+
import { IconAnalyze } from "./analyze-icon";
|
|
70
|
+
import { IconAlertInfo } from "./alert-info-icon";
|
|
71
|
+
export { IconAlertInfo, IconAnalyze, IconCopy, IconRequerimentoAdm, 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, IconRoundAddCell, IconConfig, MenuIcon, LogoRhDigital, LogoPGERG, LogoPGEBeneficios, IconInvisibility, IconPdf, IconHourglass, IconSearch, IconUpAndDownArror, IconCheck, IconUploadFile, LogoDividaAtiva, IconUploadV2, IconQuestionMark, IconUserLogout, CommonDotIcon, IconExclude, IconView, IconUploadFile2, IconInfoRound, IconMail, IconUsers, };
|
package/lib/index.d.ts
CHANGED
|
@@ -94,15 +94,6 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
|
|
|
94
94
|
} & {
|
|
95
95
|
disabled?: boolean | undefined | undefined;
|
|
96
96
|
onChange?: React__default.FormEventHandler<HTMLButtonElement> | undefined;
|
|
97
|
-
form?: string | undefined | undefined;
|
|
98
|
-
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
99
|
-
formEncType?: string | undefined | undefined;
|
|
100
|
-
formMethod?: string | undefined | undefined;
|
|
101
|
-
formNoValidate?: boolean | undefined | undefined;
|
|
102
|
-
formTarget?: string | undefined | undefined;
|
|
103
|
-
name?: string | undefined | undefined;
|
|
104
|
-
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
105
|
-
value?: string | number | readonly string[] | undefined;
|
|
106
97
|
defaultChecked?: boolean | undefined | undefined;
|
|
107
98
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
108
99
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -398,6 +389,15 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
|
|
|
398
389
|
'data-pr-hidedelay'?: number | undefined | undefined;
|
|
399
390
|
'data-pr-autohide'?: boolean | undefined | undefined;
|
|
400
391
|
'data-pr-showondisabled'?: boolean | undefined | undefined;
|
|
392
|
+
value?: string | number | readonly string[] | undefined;
|
|
393
|
+
form?: string | undefined | undefined;
|
|
394
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
395
|
+
formEncType?: string | undefined | undefined;
|
|
396
|
+
formMethod?: string | undefined | undefined;
|
|
397
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
398
|
+
formTarget?: string | undefined | undefined;
|
|
399
|
+
name?: string | undefined | undefined;
|
|
400
|
+
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
401
401
|
} & React__default.RefAttributes<FileUploadHandle>>;
|
|
402
402
|
|
|
403
403
|
interface TooltipProps$1 {
|
|
@@ -498,9 +498,14 @@ interface AccordionItemProps$1 {
|
|
|
498
498
|
title: React__default.ReactNode;
|
|
499
499
|
content: React__default.ReactNode;
|
|
500
500
|
id?: string;
|
|
501
|
+
/** Estado inicial quando em modo não controlado */
|
|
501
502
|
defaultOpen?: boolean;
|
|
503
|
+
/** Modo controlado: estado de abertura controlado externamente */
|
|
504
|
+
open?: boolean;
|
|
505
|
+
/** Modo controlado: callback chamado quando o estado de abertura muda */
|
|
506
|
+
onOpenChange?: (open: boolean) => void;
|
|
502
507
|
}
|
|
503
|
-
declare function AccordionItem({ title, content, id: providedId, defaultOpen, }: AccordionItemProps$1): React__default.JSX.Element;
|
|
508
|
+
declare function AccordionItem({ title, content, id: providedId, defaultOpen, open: controlledOpen, onOpenChange, }: AccordionItemProps$1): React__default.JSX.Element;
|
|
504
509
|
declare function Accordion({ children }: {
|
|
505
510
|
children: React__default.ReactNode;
|
|
506
511
|
}): React__default.JSX.Element;
|
|
@@ -802,12 +807,13 @@ interface SkeletonProps {
|
|
|
802
807
|
declare function SkeletonLoader({ className }: SkeletonProps): React__default.JSX.Element;
|
|
803
808
|
|
|
804
809
|
interface TooltipProps {
|
|
805
|
-
text:
|
|
810
|
+
text: React.ReactNode;
|
|
806
811
|
children: React.ReactNode;
|
|
807
812
|
forceVisible?: boolean;
|
|
813
|
+
triggerAs?: "button" | "span";
|
|
808
814
|
}
|
|
809
815
|
|
|
810
|
-
declare const TooltipWithPortal: ({ text, children, forceVisible }: TooltipProps) => React__default.JSX.Element;
|
|
816
|
+
declare const TooltipWithPortal: ({ text, children, forceVisible, triggerAs }: TooltipProps) => React__default.JSX.Element;
|
|
811
817
|
|
|
812
818
|
type TableProps = React.HTMLAttributes<HTMLTableElement> & {
|
|
813
819
|
children: ReactNode;
|
|
@@ -1069,7 +1075,13 @@ declare const IconUpArrow: (props?: SVGProps<SVGSVGElement>) => React__default.J
|
|
|
1069
1075
|
|
|
1070
1076
|
declare const IconRequerimentoAdm: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
1071
1077
|
|
|
1078
|
+
declare const IconCopy: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
1079
|
+
|
|
1080
|
+
declare const IconAnalyze: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
1081
|
+
|
|
1082
|
+
declare const IconAlertInfo: ({ className, ...props }: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
1083
|
+
|
|
1072
1084
|
declare function installPrimeReactStyles(): void;
|
|
1073
1085
|
|
|
1074
|
-
export { Accordion, AccordionItem, BasicSelect, Blanket, BoxError, BoxSuccess, Button, Checkbox, Chip, CommonDotIcon, DateInput, Dropdown, Fieldset, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconConfig, IconDebitoFiscal, IconDelete, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRequerimentoAdm, IconRightDirection, IconRoundAddCell, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconView, IconVisibility, IconWarning, InformativeBox, InputBase, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, RadioButton, RadioGroupBase, SelectDefault, SelectMult, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, TableFooter, TableHeader, TableRow, TextareaBase, Title, Tooltip, TooltipWithPortal, TreeSelect, installPrimeReactStyles };
|
|
1086
|
+
export { Accordion, AccordionItem, BasicSelect, Blanket, BoxError, BoxSuccess, Button, Checkbox, Chip, CommonDotIcon, DateInput, Dropdown, Fieldset, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconAlertInfo, IconAnalyze, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconConfig, IconCopy, IconDebitoFiscal, IconDelete, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRequerimentoAdm, IconRightDirection, IconRoundAddCell, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconView, IconVisibility, IconWarning, InformativeBox, InputBase, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, RadioButton, RadioGroupBase, SelectDefault, SelectMult, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, TableFooter, TableHeader, TableRow, TextareaBase, Title, Tooltip, TooltipWithPortal, TreeSelect, installPrimeReactStyles };
|
|
1075
1087
|
export type { AccordionItemProps, ButtonProps, ChipProps, Column, FieldsetProps, InformativeBoxProps, InputProps, OptionsProps$2 as OptionsProps, ProgressCircleProps, RadioButtonProps, RadioGroupBaseProps, SelectDefaultProps, SelectMultProps, TableComponentProps, TextareaBaseProps, TreeSelectOptions, TreeSelectProps };
|
package/lib/index.esm.js
CHANGED
|
@@ -546,6 +546,24 @@ var IconRequerimentoAdm = function (props) { return (React__default.createElemen
|
|
|
546
546
|
React__default.createElement("path", { d: "M14.1175 28.7002H5.29395V30.7502H14.1175V28.7002Z", fill: "currentColor" }),
|
|
547
547
|
React__default.createElement("path", { d: "M17.5122 36.9197C17.2593 37.0491 17.0176 37.0212 16.7867 36.8361C16.5559 36.6509 16.4477 36.398 16.4622 36.0776L16.5568 31.7275L20.9803 35.2748L17.5122 36.9197ZM20.9803 35.2748L16.5568 31.7275L23.6205 19.8417C23.857 19.4438 24.1892 19.1992 24.6172 19.1082C25.0451 19.0172 25.4304 19.109 25.7729 19.3837L27.6495 20.8887C27.992 21.1634 28.2025 21.5494 28.2809 22.0465C28.3592 22.5437 28.2802 22.9912 28.0437 23.3891L20.9803 35.2748ZM24.8904 20.8411L18.5055 31.585L20.4043 33.1077L26.789 22.3639L24.8904 20.8411Z", fill: "currentColor" }))); };
|
|
548
548
|
|
|
549
|
+
var IconCopy = function (props) { return (React__default.createElement("svg", __assign({ width: "14", height: "16", viewBox: "0 0 14 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
550
|
+
React__default.createElement("path", { d: "M4.5 13C4.0875 13 3.73438 12.8531 3.44062 12.5594C3.14687 12.2656 3 11.9125 3 11.5V1.5C3 1.0875 3.14687 0.734376 3.44062 0.440626C3.73438 0.146876 4.0875 0 4.5 0H12.5C12.9125 0 13.2656 0.146876 13.5594 0.440626C13.8531 0.734376 14 1.0875 14 1.5V11.5C14 11.9125 13.8531 12.2656 13.5594 12.5594C13.2656 12.8531 12.9125 13 12.5 13H4.5ZM4.5 11.5H12.5V1.5H4.5V11.5ZM1.5 16C1.0875 16 0.734375 15.8531 0.440625 15.5594C0.146875 15.2656 0 14.9125 0 14.5V3H1.5V14.5H11V16H1.5Z", fill: "currentColor" }))); };
|
|
551
|
+
|
|
552
|
+
var IconAnalyze = function (props) { return (React__default.createElement("svg", __assign({ width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
553
|
+
React__default.createElement("path", { d: "M1.33333 1.33333V5.35V5.33333V12V1.33333ZM1.33333 13.3333C0.966667 13.3333 0.65278 13.2028 0.391667 12.9417C0.130553 12.6805 0 12.3667 0 12V1.33333C0 0.966667 0.130553 0.65278 0.391667 0.391667C0.65278 0.130553 0.966667 0 1.33333 0H6.66667L10.6667 4V5.66667C10.4555 5.5778 10.2389 5.50833 10.0167 5.45833C9.79447 5.40833 9.56667 5.3722 9.33333 5.35V4.66667H6V1.33333H1.33333V12H5.35C5.5278 12.2667 5.7278 12.5139 5.95 12.7417C6.1722 12.9695 6.41667 13.1667 6.68333 13.3333H1.33333ZM9 11.3333C9.46667 11.3333 9.86113 11.1722 10.1833 10.85C10.5055 10.5278 10.6667 10.1333 10.6667 9.66667C10.6667 9.2 10.5055 8.80553 10.1833 8.48333C9.86113 8.16113 9.46667 8 9 8C8.53333 8 8.13887 8.16113 7.81667 8.48333C7.49447 8.80553 7.33333 9.2 7.33333 9.66667C7.33333 10.1333 7.49447 10.5278 7.81667 10.85C8.13887 11.1722 8.53333 11.3333 9 11.3333ZM12.4 14L10.6 12.2C10.3667 12.3555 10.1139 12.4722 9.84167 12.55C9.56947 12.6278 9.28887 12.6667 9 12.6667C8.16667 12.6667 7.45833 12.375 6.875 11.7917C6.29167 11.2083 6 10.5 6 9.66667C6 8.83333 6.29167 8.125 6.875 7.54167C7.45833 6.95833 8.16667 6.66667 9 6.66667C9.83333 6.66667 10.5417 6.95833 11.125 7.54167C11.7083 8.125 12 8.83333 12 9.66667C12 9.95553 11.9611 10.2361 11.8833 10.5083C11.8055 10.7805 11.6889 11.0333 11.5333 11.2667L13.3333 13.0667L12.4 14Z", fill: "currentColor" }))); };
|
|
554
|
+
|
|
555
|
+
var IconAlertInfo = function (_a) {
|
|
556
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
557
|
+
var id = useId$1();
|
|
558
|
+
var clipId = "clip-alert-info-".concat(id.replace(/[^a-zA-Z0-9]/g, ""));
|
|
559
|
+
return (React__default.createElement("svg", __assign({ viewBox: "0 0 30 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className }, props),
|
|
560
|
+
React__default.createElement("g", { clipPath: "url(#".concat(clipId, ")") },
|
|
561
|
+
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.0066 1.25C15.2549 1.25008 15.4987 1.31603 15.7136 1.44043C15.9286 1.5649 16.1074 1.74359 16.2312 1.95898L24.8015 16.543C25.374 17.5142 24.6872 18.752 23.5759 18.752H6.43528C5.32403 18.752 4.63844 17.5155 5.20969 16.543L13.781 1.95898C13.9047 1.74357 14.0836 1.56491 14.2986 1.44043C14.5136 1.31592 14.7581 1.25 15.0066 1.25ZM15.0066 13.752C14.675 13.752 14.3562 13.8837 14.1218 14.1182C13.8876 14.3526 13.7566 14.6706 13.7566 15.002C13.7566 15.3333 13.8876 15.6513 14.1218 15.8857C14.3562 16.1202 14.675 16.252 15.0066 16.252C15.3379 16.2518 15.656 16.1201 15.8904 15.8857C16.1246 15.6513 16.2566 15.3334 16.2566 15.002C16.2566 14.6705 16.1246 14.3526 15.8904 14.1182C15.656 13.8838 15.3379 13.7521 15.0066 13.752ZM15.0036 6.25195C14.8456 6.25204 14.689 6.28547 14.5447 6.34961C14.4006 6.41367 14.2716 6.50715 14.1657 6.62402C14.0598 6.74113 13.9788 6.87931 13.9294 7.0293C13.88 7.17937 13.8629 7.33889 13.8786 7.49609L14.3161 11.8799C14.3309 12.0519 14.4096 12.2123 14.5368 12.3291C14.6642 12.446 14.8308 12.5107 15.0036 12.5107C15.1765 12.5107 15.3431 12.446 15.4704 12.3291C15.5976 12.2123 15.6763 12.0519 15.6911 11.8799L16.1286 7.49609C16.1961 6.82984 15.6724 6.25195 15.0036 6.25195Z", fill: "currentColor" })),
|
|
562
|
+
React__default.createElement("defs", null,
|
|
563
|
+
React__default.createElement("clipPath", { id: clipId },
|
|
564
|
+
React__default.createElement("rect", { width: "30", height: "20", fill: "white" })))));
|
|
565
|
+
};
|
|
566
|
+
|
|
549
567
|
var css_248z$I = ".styles-module__toast___JCV9s {\r\n height: auto;\r\n border-radius: 8px;\r\n padding: 12px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\r\n}\r\n\r\n.styles-module__toast___JCV9s.styles-module__fullWidth___LJFXr {\r\n width: 100%;\r\n}\r\n\r\n.styles-module__toast___JCV9s.styles-module__fitContent___9F6bX {\r\n width: fit-content;\r\n}\r\n\r\n.styles-module__toast___JCV9s.styles-module__success___-BEJb {\r\n background-color: var(--bg-informative-success);\r\n}\r\n\r\n.styles-module__title___TK6Kt.styles-module__success___-BEJb {\r\n color: var(--success-color);\r\n line-height: 120%;\r\n}\r\n\r\n.styles-module__toast___JCV9s.styles-module__alert___Gum-6 {\r\n background-color: var(--bg-informative-alert);\r\n}\r\n\r\n.styles-module__title___TK6Kt.styles-module__alert___Gum-6 {\r\n color: var(--alert-color);\r\n line-height: 120%;\r\n}\r\n\r\n.styles-module__toast___JCV9s.styles-module__warning___CVMAV {\r\n background-color: var(--bg-informative-warning);\r\n}\r\n\r\n.styles-module__title___TK6Kt.styles-module__warning___CVMAV {\r\n color: var(--warning-color);\r\n line-height: 120%;\r\n}\r\n\r\n.styles-module__toast___JCV9s.styles-module__informative___0nyLv {\r\n background-color: var(--bg-informative);\r\n}\r\n\r\n.styles-module__title___TK6Kt.styles-module__informative___0nyLv {\r\n color: var(--information-color);\r\n line-height: 120%;\r\n}\r\n\r\n.styles-module__content___AING8 {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n width: 100%;\r\n gap: 8px;\r\n}\r\n\r\n.styles-module__info___g8ce2 {\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n}\r\n\r\n.styles-module__iconSize___os5JS {\r\n width: 20px;\r\n height: 20px;\r\n flex-shrink: 0;\r\n}\r\n\r\n@media screen and (max-width: 480px) {\r\n .styles-module__iconSize___os5JS {\r\n width: 20px;\r\n height: 20px;\r\n }\r\n}\r\n\r\n.styles-module__icon___uiYA-.styles-module__success___-BEJb {\r\n color: var(--success-color);\r\n}\r\n\r\n.styles-module__icon___uiYA-.styles-module__alert___Gum-6 {\r\n color: var(--alert-color);\r\n}\r\n\r\n.styles-module__icon___uiYA-.styles-module__warning___CVMAV {\r\n color: var(--warning-color);\r\n}\r\n\r\n.styles-module__icon___uiYA-.styles-module__informative___0nyLv {\r\n color: var(--information-color);\r\n}\r\n\r\n.styles-module__text___UCxPH {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: space-between;\r\n gap: 4px;\r\n}\r\n\r\n.styles-module__text___UCxPH strong {\r\n font-size: var(--font-size-16, 16px);\r\n font-weight: 700;\r\n line-height: 16px;\r\n text-align: left;\r\n text-decoration-skip-ink: none;\r\n}\r\n\r\n@media screen and (max-width: 480px) {\r\n .styles-module__text___UCxPH strong {\r\n font-size: var(--font-size-12, 12px);\r\n }\r\n}\r\n\r\n.styles-module__text___UCxPH span {\r\n font-weight: 400;\r\n text-align: left;\r\n text-decoration-skip-ink: none;\r\n}\r\n\r\n.styles-module__textContent___S1KEv {\r\n color: var(--foreground);\r\n font-size: var(--font-size-16);\r\n}\r\n\r\n.styles-module__textContent___S1KEv.styles-module__success___-BEJb {\r\n font-weight: 700;\r\n color: var(--success-color);\r\n}\r\n\r\n.styles-module__textContent___S1KEv.styles-module__alert___Gum-6 {\r\n font-weight: 700;\r\n color: var(--alert-color);\r\n}\r\n\r\n.styles-module__textContent___S1KEv.styles-module__warning___CVMAV {\r\n font-weight: 700;\r\n color: var(--warning-color);\r\n}\r\n.styles-module__textContent___S1KEv.styles-module__informative___0nyLv {\r\n color: var(--information-color);\r\n font-weight: 700;\r\n}\r\n\r\n@media screen and (max-width: 480px) {\r\n .styles-module__textContent___S1KEv {\r\n font-size: var(--font-size-12);\r\n }\r\n}\r\n\r\n.styles-module__closeButton___ELkqN {\r\n background: none;\r\n border: none;\r\n cursor: pointer;\r\n font-size: var(--font-size-20, 20px);\r\n color: var(--foreground);\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n@media screen and (max-width: 480px) {\r\n .styles-module__closeButton___ELkqN {\r\n display: none;\r\n }\r\n}\r\n\r\n.styles-module__closeButton___ELkqN:hover {\r\n color: var(--foreground);\r\n}\r\n\r\n.styles-module__iconClose___OPoN8 {\r\n color: var(--foreground);\r\n}\r\n";
|
|
550
568
|
var styles$E = {"toast":"styles-module__toast___JCV9s","fullWidth":"styles-module__fullWidth___LJFXr","fitContent":"styles-module__fitContent___9F6bX","success":"styles-module__success___-BEJb","title":"styles-module__title___TK6Kt","alert":"styles-module__alert___Gum-6","warning":"styles-module__warning___CVMAV","informative":"styles-module__informative___0nyLv","content":"styles-module__content___AING8","info":"styles-module__info___g8ce2","iconSize":"styles-module__iconSize___os5JS","icon":"styles-module__icon___uiYA-","text":"styles-module__text___UCxPH","textContent":"styles-module__textContent___S1KEv","closeButton":"styles-module__closeButton___ELkqN","iconClose":"styles-module__iconClose___OPoN8"};
|
|
551
569
|
styleInject(css_248z$I);
|
|
@@ -1206,12 +1224,20 @@ var IconAccordionChevron = function (_a) {
|
|
|
1206
1224
|
};
|
|
1207
1225
|
|
|
1208
1226
|
function AccordionItem(_a) {
|
|
1209
|
-
var title = _a.title, content = _a.content, providedId = _a.id, _b = _a.defaultOpen, defaultOpen = _b === void 0 ? false : _b;
|
|
1227
|
+
var title = _a.title, content = _a.content, providedId = _a.id, _b = _a.defaultOpen, defaultOpen = _b === void 0 ? false : _b, controlledOpen = _a.open, onOpenChange = _a.onOpenChange;
|
|
1210
1228
|
var generatedId = useId$1();
|
|
1211
1229
|
var id = providedId || generatedId;
|
|
1212
|
-
var _c = useState(defaultOpen),
|
|
1230
|
+
var _c = useState(defaultOpen), uncontrolledOpen = _c[0], setUncontrolledOpen = _c[1];
|
|
1231
|
+
var isControlled = controlledOpen !== undefined;
|
|
1232
|
+
var isOpen = isControlled ? controlledOpen : uncontrolledOpen;
|
|
1213
1233
|
var toggleAccordion = function () {
|
|
1214
|
-
|
|
1234
|
+
var newValue = !isOpen;
|
|
1235
|
+
if (isControlled) {
|
|
1236
|
+
onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(newValue);
|
|
1237
|
+
}
|
|
1238
|
+
else {
|
|
1239
|
+
setUncontrolledOpen(newValue);
|
|
1240
|
+
}
|
|
1215
1241
|
};
|
|
1216
1242
|
return (React__default.createElement("div", { className: styles$p.accordionItem },
|
|
1217
1243
|
React__default.createElement("h2", { className: styles$p.header },
|
|
@@ -24317,10 +24343,10 @@ var styles$8 = {"container":"styles-module__container___QloUX","tooltip":"styles
|
|
|
24317
24343
|
styleInject(css_248z$9);
|
|
24318
24344
|
|
|
24319
24345
|
var TooltipWithPortal = function (_a) {
|
|
24320
|
-
var text = _a.text, children = _a.children, forceVisible = _a.forceVisible;
|
|
24321
|
-
var
|
|
24322
|
-
var
|
|
24323
|
-
var
|
|
24346
|
+
var text = _a.text, children = _a.children, forceVisible = _a.forceVisible, _b = _a.triggerAs, triggerAs = _b === void 0 ? "button" : _b;
|
|
24347
|
+
var _c = useState(false), internalVisible = _c[0], setInternalVisible = _c[1];
|
|
24348
|
+
var _d = useState({}), tooltipStyle = _d[0], setTooltipStyle = _d[1];
|
|
24349
|
+
var _e = useState(false), isMobile = _e[0], setIsMobile = _e[1];
|
|
24324
24350
|
var tooltipRef = useRef(null);
|
|
24325
24351
|
var targetRef = useRef(null);
|
|
24326
24352
|
var visible = internalVisible || forceVisible;
|
|
@@ -24430,8 +24456,20 @@ var TooltipWithPortal = function (_a) {
|
|
|
24430
24456
|
var onMouseLeave = function () { return !isMobile && setInternalVisible(false); };
|
|
24431
24457
|
var onTouch = function () { return isMobile && setInternalVisible(function (v) { return !v; }); };
|
|
24432
24458
|
var onClick = function () { return !isMobile && setInternalVisible(function (v) { return !v; }); };
|
|
24459
|
+
var triggerProps = {
|
|
24460
|
+
ref: targetRef,
|
|
24461
|
+
className: styles$8.container,
|
|
24462
|
+
"aria-haspopup": "true",
|
|
24463
|
+
"aria-expanded": visible,
|
|
24464
|
+
"aria-label": typeof text === "string" ? text : undefined,
|
|
24465
|
+
onKeyDown: onKeyDown,
|
|
24466
|
+
onMouseEnter: onMouseEnter,
|
|
24467
|
+
onMouseLeave: onMouseLeave,
|
|
24468
|
+
onTouchStart: onTouch,
|
|
24469
|
+
onClick: onClick,
|
|
24470
|
+
};
|
|
24433
24471
|
return (React__default.createElement(React__default.Fragment, null,
|
|
24434
|
-
React__default.createElement("
|
|
24472
|
+
triggerAs === "span" ? (React__default.createElement("span", __assign({}, triggerProps, { role: "button", tabIndex: 0 }), children)) : (React__default.createElement("button", __assign({}, triggerProps, { type: "button" }), children)),
|
|
24435
24473
|
visible &&
|
|
24436
24474
|
typeof window !== "undefined" &&
|
|
24437
24475
|
ReactDOM__default.createPortal(React__default.createElement("div", { ref: tooltipRef, className: styles$8.tooltip, style: tooltipStyle, "aria-hidden": !visible },
|
|
@@ -27864,5 +27902,5 @@ function installPrimeReactStyles() {
|
|
|
27864
27902
|
require("primereact/resources/primereact.css");
|
|
27865
27903
|
}
|
|
27866
27904
|
|
|
27867
|
-
export { Accordion, AccordionItem, BasicSelect, Blanket, BoxError, BoxSuccess, Button$1 as Button, Checkbox$1 as Checkbox, Chip, CommonDotIcon, DateInput, Dropdown, Fieldset, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconConfig, IconDebitoFiscal, IconDelete$1 as IconDelete, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRequerimentoAdm, IconRightDirection, IconRoundAddCell, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconView, IconVisibility, IconWarning, InformativeBox, InputBase, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, RadioButton, RadioGroupBase, SelectDefault, SelectMult, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, TableFooter, TableHeader, TableRow, TextareaBase, Title$1 as Title, Tooltip$1 as Tooltip, TooltipWithPortal, TreeSelect, installPrimeReactStyles };
|
|
27905
|
+
export { Accordion, AccordionItem, BasicSelect, Blanket, BoxError, BoxSuccess, Button$1 as Button, Checkbox$1 as Checkbox, Chip, CommonDotIcon, DateInput, Dropdown, Fieldset, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconAlertInfo, IconAnalyze, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconConfig, IconCopy, IconDebitoFiscal, IconDelete$1 as IconDelete, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRequerimentoAdm, IconRightDirection, IconRoundAddCell, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconView, IconVisibility, IconWarning, InformativeBox, InputBase, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, RadioButton, RadioGroupBase, SelectDefault, SelectMult, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, TableFooter, TableHeader, TableRow, TextareaBase, Title$1 as Title, Tooltip$1 as Tooltip, TooltipWithPortal, TreeSelect, installPrimeReactStyles };
|
|
27868
27906
|
//# sourceMappingURL=index.esm.js.map
|