pge-front-common 14.1.29 → 14.1.31
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/Chip/chip.stories.d.ts +32 -0
- package/lib/components/Chip/index.d.ts +10 -0
- package/lib/components/Chip/index.type.d.ts +12 -0
- package/lib/components/ProgressCircle/index.d.ts +1 -1
- package/lib/components/ProgressCircle/progressCircle.stories.d.ts +1 -0
- package/lib/components/ProgressCircle/progressCircle.types.d.ts +2 -0
- package/lib/index.d.ts +26 -2
- package/lib/index.esm.js +407 -386
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +407 -385
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Chip } from "./index";
|
|
3
|
+
declare const meta: Meta<typeof Chip>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const Information: Story;
|
|
9
|
+
export declare const Success: Story;
|
|
10
|
+
export declare const Warning: Story;
|
|
11
|
+
export declare const Error: Story;
|
|
12
|
+
export declare const Avatar: Story;
|
|
13
|
+
export declare const Small: Story;
|
|
14
|
+
export declare const Medium: Story;
|
|
15
|
+
export declare const Large: Story;
|
|
16
|
+
export declare const WithLeftIcon: Story;
|
|
17
|
+
export declare const SuccessWithIcon: Story;
|
|
18
|
+
export declare const WarningWithIcon: Story;
|
|
19
|
+
export declare const ErrorWithIcon: Story;
|
|
20
|
+
export declare const AvatarWithIcon: Story;
|
|
21
|
+
export declare const WithRightIcon: Story;
|
|
22
|
+
export declare const InfoWithRightIcon: Story;
|
|
23
|
+
export declare const DeleteWithRightIcon: Story;
|
|
24
|
+
export declare const WithBothIcons: Story;
|
|
25
|
+
export declare const ProcessWithBothIcons: Story;
|
|
26
|
+
export declare const Disabled: Story;
|
|
27
|
+
export declare const DisabledWithIcon: Story;
|
|
28
|
+
export declare const StatusChips: Story;
|
|
29
|
+
export declare const CategoryChips: Story;
|
|
30
|
+
export declare const ActionChips: Story;
|
|
31
|
+
export declare const SizeComparison: Story;
|
|
32
|
+
export declare const AllVariants: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const Chip: React.ForwardRefExoticComponent<{
|
|
3
|
+
variant?: import("./index.type").ChipVariant;
|
|
4
|
+
size?: import("./index.type").ChipSize;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
leftIcon?: React.ReactNode;
|
|
7
|
+
rightIcon?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ChipVariant = "primary" | "information" | "success" | "warning" | "error" | "avatar";
|
|
3
|
+
export type ChipSize = "small" | "medium" | "large";
|
|
4
|
+
export type ChipProps = {
|
|
5
|
+
variant?: ChipVariant;
|
|
6
|
+
size?: ChipSize;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
leftIcon?: React.ReactNode;
|
|
9
|
+
rightIcon?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ProgressCircleProps } from "./progressCircle.types";
|
|
3
|
-
declare function ProgressCircle({ percentage, message, size, onClose, }: ProgressCircleProps): React.JSX.Element;
|
|
3
|
+
declare function ProgressCircle({ percentage, message, size, infinite, isInProgress, onClose, }: ProgressCircleProps): React.JSX.Element | null;
|
|
4
4
|
export default ProgressCircle;
|
|
@@ -9,3 +9,4 @@ export declare const LowProgress: import("@storybook/core/csf").AnnotatedStoryFn
|
|
|
9
9
|
export declare const SmallSize: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressCircleProps>;
|
|
10
10
|
export declare const MediumSize: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressCircleProps>;
|
|
11
11
|
export declare const LargeSize: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressCircleProps>;
|
|
12
|
+
export declare const Infinite: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressCircleProps>;
|
package/lib/index.d.ts
CHANGED
|
@@ -830,9 +830,33 @@ interface ProgressCircleProps {
|
|
|
830
830
|
message?: string;
|
|
831
831
|
size?: "small" | "medium" | "large";
|
|
832
832
|
onClose: () => void;
|
|
833
|
+
infinite?: boolean;
|
|
834
|
+
isInProgress?: boolean;
|
|
833
835
|
}
|
|
834
836
|
|
|
835
|
-
declare function ProgressCircle({ percentage, message, size, onClose, }: ProgressCircleProps): React__default.JSX.Element;
|
|
837
|
+
declare function ProgressCircle({ percentage, message, size, infinite, isInProgress, onClose, }: ProgressCircleProps): React__default.JSX.Element | null;
|
|
838
|
+
|
|
839
|
+
type ChipVariant = "primary" | "information" | "success" | "warning" | "error" | "avatar";
|
|
840
|
+
type ChipSize = "small" | "medium" | "large";
|
|
841
|
+
type ChipProps = {
|
|
842
|
+
variant?: ChipVariant;
|
|
843
|
+
size?: ChipSize;
|
|
844
|
+
children: React__default.ReactNode;
|
|
845
|
+
leftIcon?: React__default.ReactNode;
|
|
846
|
+
rightIcon?: React__default.ReactNode;
|
|
847
|
+
className?: string;
|
|
848
|
+
disabled?: boolean;
|
|
849
|
+
} & React__default.HTMLAttributes<HTMLDivElement>;
|
|
850
|
+
|
|
851
|
+
declare const Chip: React__default.ForwardRefExoticComponent<{
|
|
852
|
+
variant?: ChipVariant;
|
|
853
|
+
size?: ChipSize;
|
|
854
|
+
children: React__default.ReactNode;
|
|
855
|
+
leftIcon?: React__default.ReactNode;
|
|
856
|
+
rightIcon?: React__default.ReactNode;
|
|
857
|
+
className?: string;
|
|
858
|
+
disabled?: boolean;
|
|
859
|
+
} & React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
836
860
|
|
|
837
861
|
declare const IconDownload: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
838
862
|
|
|
@@ -932,4 +956,4 @@ declare const IconArrowLeft: (props?: SVGProps<SVGSVGElement>) => React__default
|
|
|
932
956
|
|
|
933
957
|
declare function installPrimeReactStyles(): void;
|
|
934
958
|
|
|
935
|
-
export { Accordion, AccordionItem, type AccordionItemProps, BasicSelect, Blanket, BoxError, BoxSuccess, Button, type ButtonProps, Checkbox, 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 };
|
|
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 };
|