pge-front-common 14.0.8 → 14.0.9
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/BasicSelect/basicSelect.stories.d.ts +7 -0
- package/lib/components/BasicSelect/index.d.ts +3 -0
- package/lib/components/BasicSelect/index.types.d.ts +18 -0
- package/lib/icons/exclude-icon.d.ts +2 -0
- package/lib/icons/index.d.ts +4 -1
- package/lib/icons/upload-file-icon.d.ts +2 -0
- package/lib/icons/view-icon.d.ts +2 -0
- package/lib/index.d.ts +33 -6
- package/lib/index.esm.js +294 -237
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +297 -236
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { SelectDefaultProps } from "./index.types";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SelectDefaultProps>;
|
|
6
|
+
export declare const DisabledSelect: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SelectDefaultProps>;
|
|
7
|
+
export declare const ErrorState: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SelectDefaultProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SelectDefaultProps {
|
|
2
|
+
name: string;
|
|
3
|
+
optionsSelect: OptionsProps[];
|
|
4
|
+
value: any;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
handleChange: (selectedOptions: OptionsProps[]) => void;
|
|
9
|
+
handleInputChange?: (inputValue: string) => void;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
isRequired?: boolean;
|
|
12
|
+
inputRef?: unknown;
|
|
13
|
+
hasError?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type OptionsProps = {
|
|
16
|
+
label: string;
|
|
17
|
+
value: string;
|
|
18
|
+
};
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -43,4 +43,7 @@ import { IconInformative } from "./informative-icon";
|
|
|
43
43
|
import { IconQuestionMark } from "./question-mark-icon";
|
|
44
44
|
import { IconUserLogout } from "./user-logout-icon";
|
|
45
45
|
import { CommonDotIcon } from "./common-dot-icon";
|
|
46
|
-
|
|
46
|
+
import { IconExclude } from "./exclude-icon";
|
|
47
|
+
import { IconView } from "./view-icon";
|
|
48
|
+
import { IconUploadFile2 } from "./upload-file-icon";
|
|
49
|
+
export { 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 };
|
package/lib/index.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ declare const TextareaBase: ({ name, label, value, type, Icon, placeholder, mess
|
|
|
111
111
|
interface RadioGroupBaseProps extends Partial<HTMLInputElement> {
|
|
112
112
|
name: string;
|
|
113
113
|
label?: string;
|
|
114
|
-
options: OptionsProps$
|
|
114
|
+
options: OptionsProps$3[];
|
|
115
115
|
value: string;
|
|
116
116
|
hasError?: boolean;
|
|
117
117
|
textError?: string;
|
|
@@ -122,7 +122,7 @@ interface RadioGroupBaseProps extends Partial<HTMLInputElement> {
|
|
|
122
122
|
required?: boolean | false;
|
|
123
123
|
disabled?: boolean | false;
|
|
124
124
|
}
|
|
125
|
-
type OptionsProps$
|
|
125
|
+
type OptionsProps$3 = {
|
|
126
126
|
value: string;
|
|
127
127
|
label: string;
|
|
128
128
|
};
|
|
@@ -217,14 +217,14 @@ declare const Pagination: ({ countPage, currentPage, totalItems, itemsPerPage, h
|
|
|
217
217
|
|
|
218
218
|
interface SelectMultProps {
|
|
219
219
|
name?: string;
|
|
220
|
-
optionsSelect: OptionsProps$
|
|
220
|
+
optionsSelect: OptionsProps$2[];
|
|
221
221
|
value: any[];
|
|
222
222
|
placeholder?: string;
|
|
223
223
|
className?: string;
|
|
224
224
|
label?: string;
|
|
225
225
|
handleChange: (selectedOptions: any) => void;
|
|
226
226
|
handleInputChange?: (inputValue: string) => void;
|
|
227
|
-
fetchOptions?: (query: string) => Promise<OptionsProps$
|
|
227
|
+
fetchOptions?: (query: string) => Promise<OptionsProps$2[]>;
|
|
228
228
|
isMulti: boolean;
|
|
229
229
|
disabled?: boolean;
|
|
230
230
|
required?: boolean;
|
|
@@ -236,13 +236,34 @@ interface SelectMultProps {
|
|
|
236
236
|
isClearable?: boolean;
|
|
237
237
|
isCheckedAll?: boolean;
|
|
238
238
|
}
|
|
239
|
-
type OptionsProps$
|
|
239
|
+
type OptionsProps$2 = {
|
|
240
240
|
label: string;
|
|
241
241
|
value: string;
|
|
242
242
|
};
|
|
243
243
|
|
|
244
244
|
declare const SelectMult: ({ name, optionsSelect, value, placeholder, label, handleChange, isMulti, disabled, fetchOptions, required, textError, hasError, message, Icon, isSearchable, isClearable, isCheckedAll, }: SelectMultProps) => React__default.JSX.Element;
|
|
245
245
|
|
|
246
|
+
interface SelectDefaultProps$1 {
|
|
247
|
+
name: string;
|
|
248
|
+
optionsSelect: OptionsProps$1[];
|
|
249
|
+
value: any;
|
|
250
|
+
placeholder?: string;
|
|
251
|
+
className?: string;
|
|
252
|
+
label?: string;
|
|
253
|
+
handleChange: (selectedOptions: OptionsProps$1[]) => void;
|
|
254
|
+
handleInputChange?: (inputValue: string) => void;
|
|
255
|
+
isDisabled?: boolean;
|
|
256
|
+
isRequired?: boolean;
|
|
257
|
+
inputRef?: unknown;
|
|
258
|
+
hasError?: boolean;
|
|
259
|
+
}
|
|
260
|
+
type OptionsProps$1 = {
|
|
261
|
+
label: string;
|
|
262
|
+
value: string;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
declare const BasicSelect: ({ name, optionsSelect, placeholder, isDisabled, label, hasError, handleChange, isRequired, value, }: SelectDefaultProps$1) => React$1.JSX.Element;
|
|
266
|
+
|
|
246
267
|
declare const Option: (props: any) => React__default.JSX.Element;
|
|
247
268
|
declare const MenuList: (props: any) => React__default.JSX.Element;
|
|
248
269
|
declare const Menu: (props: JSX.IntrinsicElements["div"]) => React__default.JSX.Element;
|
|
@@ -502,6 +523,12 @@ declare const IconQuestionMark: ({ className, ...props }: SVGProps<SVGSVGElement
|
|
|
502
523
|
|
|
503
524
|
declare const CommonDotIcon: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
504
525
|
|
|
526
|
+
declare const IconExclude: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
527
|
+
|
|
528
|
+
declare const IconView: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
529
|
+
|
|
530
|
+
declare const IconUploadFile2: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
531
|
+
|
|
505
532
|
declare function installPrimeReactStyles(): void;
|
|
506
533
|
|
|
507
|
-
export { Accordion, AccordionItem, type AccordionItemProps, Blanket, BoxError, BoxSuccess, Button, type ButtonProps$1 as ButtonProps, Checkbox, type Column, CommonDotIcon, DateInput, Dropdown, FileUpload, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconHourglass, IconInvisibility, IconLogout, IconNewTab, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpAndDownArror, IconUpload, IconUploadFile, IconUploadV2, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, type OptionsProps$
|
|
534
|
+
export { Accordion, AccordionItem, type AccordionItemProps, BasicSelect, Blanket, BoxError, BoxSuccess, Button, type ButtonProps$1 as ButtonProps, Checkbox, type Column, CommonDotIcon, DateInput, Dropdown, FileUpload, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconExclude, IconHourglass, IconInvisibility, IconLogout, IconNewTab, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpAndDownArror, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconView, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, type OptionsProps$2 as OptionsProps, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, RadioGroupBase, type RadioGroupBaseProps, SelectDefault, type SelectDefaultProps, SelectMult, type SelectMultProps, Table, TableBody, TableCell, TableComponent, type TableComponentProps, TableFooter, TableHeader, TableRow, TextareaBase, type TextareaBaseProps, Title, Tooltip, installPrimeReactStyles };
|