pge-front-common 9.0.1 → 10.0.0
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/README.md +11 -15
- package/lib/components/Acordion/accordion.stories.d.ts +11 -0
- package/lib/components/Acordion/index.d.ts +7 -0
- package/lib/components/Acordion/index.types.d.ts +6 -0
- package/lib/components/BoxError/boxError.stories.d.ts +6 -0
- package/lib/components/BoxError/index.d.ts +7 -0
- package/lib/components/BoxSuccess/boxSuccess.stories.d.ts +6 -0
- package/lib/components/BoxSuccess/index.d.ts +7 -0
- package/lib/components/Loading/index.d.ts +7 -0
- package/lib/components/Loading/loading.stories.d.ts +8 -0
- package/lib/components/MultiSelect/index.d.ts +4 -0
- package/lib/components/MultiSelect/index.types.d.ts +21 -0
- package/lib/components/MultiSelect/multiselect.stories.d.ts +8 -0
- package/lib/components/Pagination/index.d.ts +9 -0
- package/lib/components/Pagination/pagination.stories.d.ts +9 -0
- package/lib/components/Table/index.d.ts +4 -0
- package/lib/components/Table/index.types.d.ts +17 -0
- package/lib/components/Table/table.stories.d.ts +10 -0
- package/lib/components/Title/index.d.ts +6 -0
- package/lib/components/Title/title.stories.d.ts +6 -0
- package/lib/components/inputPassword/Input.stories.d.ts +6 -0
- package/lib/components/inputPassword/index.d.ts +8 -0
- package/lib/components/{Input → inputText}/Input.stories.d.ts +2 -2
- package/lib/components/inputText/index.d.ts +4 -0
- package/lib/components/inputText/index.type.d.ts +9 -0
- package/lib/icons/error-icon.d.ts +2 -0
- package/lib/icons/eye-close-icon.d.ts +2 -0
- package/lib/icons/eye-open-icon.d.ts +2 -0
- package/lib/icons/success-icon.d.ts +2 -0
- package/lib/index.d.ts +134 -87
- package/lib/index.esm.js +7725 -2388
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +7733 -2389
- package/lib/index.js.map +1 -1
- package/package.json +3 -2
- package/lib/components/Input/Input.d.ts +0 -4
- package/lib/components/Input/input.types.d.ts +0 -13
package/README.md
CHANGED
|
@@ -22,14 +22,6 @@ npm i pge-front-common
|
|
|
22
22
|
|
|
23
23
|
## Uso
|
|
24
24
|
|
|
25
|
-
Instale a biblioteca usando npm:
|
|
26
|
-
|
|
27
|
-
Importar o stykes global para em seu App or layout
|
|
28
|
-
|
|
29
|
-
```typescript
|
|
30
|
-
import "pge-front-common/lib/variables.css";
|
|
31
|
-
```
|
|
32
|
-
|
|
33
25
|
```typescript
|
|
34
26
|
import React from "react";
|
|
35
27
|
import { Button } from "pge-front-common";
|
|
@@ -67,16 +59,20 @@ npm run storybook
|
|
|
67
59
|
|
|
68
60
|
O Storybook estará disponível em http://localhost:6006.
|
|
69
61
|
|
|
70
|
-
##
|
|
62
|
+
## FIGMA
|
|
71
63
|
|
|
72
|
-
|
|
64
|
+
https://www.figma.com/design/DNUPKVvvLGx5oMEJ721Ukj/V1--Design-system-PGE?node-id=0-1&p=f&t=RIFLXN7wyH6Q4Bd4-0
|
|
73
65
|
|
|
74
|
-
|
|
66
|
+
## Contribuiçaõ
|
|
75
67
|
|
|
76
|
-
|
|
68
|
+
Mudar a versão do package.json:
|
|
77
69
|
|
|
78
|
-
|
|
70
|
+
OBS: - Se for mudar apenas algo do que já existe, mudar apenas último número (Ex: adicionar uma props, mudar um estilo, etc...)
|
|
79
71
|
|
|
80
|
-
|
|
72
|
+
- Caso for algo novo, ou refatoracao, ai mudar totalmente a versao (Ex: "version": "10.0.0" )
|
|
73
|
+
|
|
74
|
+
```json
|
|
75
|
+
"version": "9.0.1",
|
|
76
|
+
```
|
|
81
77
|
|
|
82
|
-
|
|
78
|
+
Após o processo normal (Code review) - chamar @CESARSTURMER, para gerar nova versao na NPM
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Accordion } from "./index";
|
|
3
|
+
import "bootstrap/dist/css/bootstrap.min.css";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof Accordion;
|
|
7
|
+
tags: string[];
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const DefaultAccordion: () => React.JSX.Element;
|
|
11
|
+
export declare const AccordionWithDefaultOpen: () => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "bootstrap/dist/css/bootstrap.min.css";
|
|
3
|
+
import { AccordionItemProps } from "./index.types";
|
|
4
|
+
export declare function AccordionItem({ title, content, id, defaultOpen, }: AccordionItemProps): React.JSX.Element;
|
|
5
|
+
export declare function Accordion({ children }: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import LoadingSpinner from "./index";
|
|
3
|
+
declare const meta: Meta<typeof LoadingSpinner>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Hidden: Story;
|
|
8
|
+
export declare const CustomText: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { SelectMultProps } from "./index.types";
|
|
3
|
+
declare const SelectMult: ({ name, control, optionsSelect, placeholder, isMulti, isDisabled, label, hasError, handleChange, isRequired, value, }: SelectMultProps) => React.JSX.Element;
|
|
4
|
+
export default SelectMult;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Control } from "react-hook-form";
|
|
2
|
+
export interface SelectMultProps {
|
|
3
|
+
name: string;
|
|
4
|
+
optionsSelect: OptionsProps[];
|
|
5
|
+
value: any;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
handleChange: (selectedOptions: OptionsProps[]) => void;
|
|
10
|
+
handleInputChange?: (inputValue: string) => void;
|
|
11
|
+
isMulti: boolean;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
isRequired?: boolean;
|
|
14
|
+
inputRef?: unknown;
|
|
15
|
+
hasError?: boolean;
|
|
16
|
+
control?: Control<any>;
|
|
17
|
+
}
|
|
18
|
+
export type OptionsProps = {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { SelectMultProps } from "./index.types";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SelectMultProps>;
|
|
6
|
+
export declare const MultiSelect: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SelectMultProps>;
|
|
7
|
+
export declare const DisabledSelect: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SelectMultProps>;
|
|
8
|
+
export declare const ErrorState: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SelectMultProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
countPage: number;
|
|
5
|
+
itemsVisiblePage?: number;
|
|
6
|
+
handleClickPage?: (page: any) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const PaginationTable: ({ currentPage, countPage, itemsVisiblePage, handleClickPage, }: Omit<Props, "header" | "body" | "footer">) => React.JSX.Element;
|
|
9
|
+
export { PaginationTable };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { PaginationTable } from "./index";
|
|
3
|
+
declare const meta: Meta<typeof PaginationTable>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const CustomPagesVisible: Story;
|
|
8
|
+
export declare const LastPage: Story;
|
|
9
|
+
export declare const PageWithEllipsis: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableComponentProps } from "./index.types";
|
|
3
|
+
declare const TableComponent: ({ columns, data, onSort, renderCell, onActionClick, actionIcon, noRecordsMessage, }: TableComponentProps) => React.JSX.Element;
|
|
4
|
+
export default TableComponent;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Column {
|
|
2
|
+
name: string;
|
|
3
|
+
uid: string;
|
|
4
|
+
sortable?: boolean;
|
|
5
|
+
renderCell?: (item: any) => React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface TableComponentProps {
|
|
8
|
+
columns: Column[];
|
|
9
|
+
data: any[];
|
|
10
|
+
sortedColumn: string;
|
|
11
|
+
sortDirection: "asc" | "desc";
|
|
12
|
+
onSort: (uid: string) => void;
|
|
13
|
+
renderCell: (item: any, columnUid: string) => React.ReactNode;
|
|
14
|
+
onActionClick?: (item: any) => void;
|
|
15
|
+
actionIcon?: React.ReactNode;
|
|
16
|
+
noRecordsMessage?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import TableComponent from "./index";
|
|
3
|
+
declare const meta: Meta<typeof TableComponent>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithCustomCellRendering: Story;
|
|
8
|
+
export declare const WithActionColumn: Story;
|
|
9
|
+
export declare const EmptyState: Story;
|
|
10
|
+
export declare const LargeDataSet: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputProps } from "../inputText/index.type";
|
|
3
|
+
interface PasswordInputProps extends InputProps {
|
|
4
|
+
showPassword: boolean;
|
|
5
|
+
togglePasswordVisibility: VoidFunction;
|
|
6
|
+
}
|
|
7
|
+
declare const PasswordInput: React.FC<PasswordInputProps>;
|
|
8
|
+
export { PasswordInput };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import InputBase from "./
|
|
2
|
+
import { InputBase } from "./index";
|
|
3
3
|
declare const meta: Meta<typeof InputBase>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
-
export declare const WithError: Story;
|
|
8
7
|
export declare const WithIcon: Story;
|
|
8
|
+
export declare const WithError: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from "react";
|
|
2
|
+
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
customClass?: string;
|
|
4
|
+
restrictionMessage?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
hasIcon?: boolean;
|
|
7
|
+
Icon?: React.ReactNode;
|
|
8
|
+
inputRef?: unknown;
|
|
9
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { InputHTMLAttributes, ChangeEvent, SVGProps } from 'react';
|
|
3
|
+
import { Control } from 'react-hook-form';
|
|
2
4
|
|
|
3
|
-
interface ButtonProps extends
|
|
5
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
6
|
variant: "primary" | "secondary";
|
|
5
7
|
text: string;
|
|
6
|
-
leftIcon?:
|
|
8
|
+
leftIcon?: React__default.ReactNode;
|
|
7
9
|
}
|
|
8
|
-
declare function Button({ variant, text, leftIcon, ...props }: ButtonProps):
|
|
10
|
+
declare function Button({ variant, text, leftIcon, ...props }: ButtonProps): React__default.JSX.Element;
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
13
|
+
customClass?: string;
|
|
14
|
+
restrictionMessage?: string;
|
|
12
15
|
label?: string;
|
|
13
|
-
hasError?: boolean;
|
|
14
16
|
hasIcon?: boolean;
|
|
15
|
-
textError?: string;
|
|
16
|
-
message?: string;
|
|
17
17
|
Icon?: React.ReactNode;
|
|
18
|
-
|
|
19
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
-
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
18
|
+
inputRef?: unknown;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
declare const InputBase:
|
|
21
|
+
declare const InputBase: React__default.FC<InputProps>;
|
|
22
|
+
|
|
23
|
+
interface PasswordInputProps extends InputProps {
|
|
24
|
+
showPassword: boolean;
|
|
25
|
+
togglePasswordVisibility: VoidFunction;
|
|
26
|
+
}
|
|
27
|
+
declare const PasswordInput: React__default.FC<PasswordInputProps>;
|
|
24
28
|
|
|
25
29
|
type TextAlignType = "start" | "end" | "center";
|
|
26
30
|
interface TextareaBaseProps extends Partial<HTMLTextAreaElement> {
|
|
@@ -29,15 +33,15 @@ interface TextareaBaseProps extends Partial<HTMLTextAreaElement> {
|
|
|
29
33
|
textError?: string;
|
|
30
34
|
message?: string;
|
|
31
35
|
hasIcon?: boolean;
|
|
32
|
-
Icon?:
|
|
36
|
+
Icon?: React__default.ReactNode;
|
|
33
37
|
textAlign: TextAlignType;
|
|
34
|
-
onChange?: (e:
|
|
35
|
-
onClick?: (e:
|
|
38
|
+
onChange?: (e: React__default.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
39
|
+
onClick?: (e: React__default.MouseEvent<HTMLTextAreaElement>) => void;
|
|
36
40
|
rows?: number;
|
|
37
41
|
required?: boolean | false;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
|
-
declare const TextareaBase: ({ name, label, value, type, Icon, placeholder, message, textAlign, textError, hasError, rows, hasIcon, required, ...props }: TextareaBaseProps) =>
|
|
44
|
+
declare const TextareaBase: ({ name, label, value, type, Icon, placeholder, message, textAlign, textError, hasError, rows, hasIcon, required, ...props }: TextareaBaseProps) => React__default.JSX.Element;
|
|
41
45
|
|
|
42
46
|
interface RadioGroupBaseProps extends Partial<HTMLInputElement> {
|
|
43
47
|
name: string;
|
|
@@ -58,50 +62,7 @@ type OptionsProps$1 = {
|
|
|
58
62
|
label: string;
|
|
59
63
|
};
|
|
60
64
|
|
|
61
|
-
declare const RadioGroupBase: ({ name, label, value, options, message, textError, hasError, orientation, required, disabled, onInput, customClass, ...props }: RadioGroupBaseProps) =>
|
|
62
|
-
|
|
63
|
-
interface ModalProps {
|
|
64
|
-
isModalOpen: boolean;
|
|
65
|
-
onOpenChange: React.Dispatch<React.SetStateAction<boolean>>;
|
|
66
|
-
children: React.ReactNode;
|
|
67
|
-
title: string;
|
|
68
|
-
}
|
|
69
|
-
declare const Modal: ({ isModalOpen, onOpenChange, children, title, }: ModalProps) => React.JSX.Element;
|
|
70
|
-
|
|
71
|
-
interface ModalConfirmProps {
|
|
72
|
-
isModalOpen: boolean;
|
|
73
|
-
onOpenChange: React.Dispatch<React.SetStateAction<boolean>>;
|
|
74
|
-
children: React.ReactNode;
|
|
75
|
-
}
|
|
76
|
-
declare const ModalConfirm: ({ isModalOpen, onOpenChange, children, }: ModalConfirmProps) => React.JSX.Element;
|
|
77
|
-
|
|
78
|
-
interface DropdownProps {
|
|
79
|
-
label: string;
|
|
80
|
-
name: string;
|
|
81
|
-
disabled?: boolean;
|
|
82
|
-
hasError?: boolean;
|
|
83
|
-
textError?: string;
|
|
84
|
-
message?: string;
|
|
85
|
-
placeholder?: string;
|
|
86
|
-
hasIcon?: boolean;
|
|
87
|
-
Icon?: string | React.ReactNode;
|
|
88
|
-
textAlign?: "start" | "end" | "center";
|
|
89
|
-
width?: number;
|
|
90
|
-
defaultValue?: string;
|
|
91
|
-
options: OptionsProps[];
|
|
92
|
-
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
93
|
-
selectedValue: string;
|
|
94
|
-
handleSelect: (value: string) => void;
|
|
95
|
-
open: boolean;
|
|
96
|
-
handleOpen: () => void;
|
|
97
|
-
hasIconRequired?: boolean;
|
|
98
|
-
}
|
|
99
|
-
type OptionsProps = {
|
|
100
|
-
label: string;
|
|
101
|
-
value: string;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
declare const Select: ({ name, label, placeholder, message, textAlign, textError, hasError, width, defaultValue, options, selectedValue, handleSelect, open, handleOpen, hasIconRequired, }: DropdownProps) => React.JSX.Element;
|
|
65
|
+
declare const RadioGroupBase: ({ name, label, value, options, message, textError, hasError, orientation, required, disabled, onInput, customClass, ...props }: RadioGroupBaseProps) => React__default.JSX.Element;
|
|
105
66
|
|
|
106
67
|
interface IFuncionalidade {
|
|
107
68
|
id: number;
|
|
@@ -139,54 +100,140 @@ interface HeaderProps {
|
|
|
139
100
|
fullName?: string;
|
|
140
101
|
firstName?: string;
|
|
141
102
|
}
|
|
142
|
-
declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) =>
|
|
103
|
+
declare const Header: ({ isRHDigital, isCASC, isResponsiveCASC, optionSelection, options, name, userName, handleLogout, isPortalServidor, profile, hasGestor, fullName, firstName, }: HeaderProps) => React__default.JSX.Element;
|
|
104
|
+
|
|
105
|
+
declare function FooterComponent(): React__default.JSX.Element;
|
|
106
|
+
|
|
107
|
+
interface AccordionItemProps {
|
|
108
|
+
title: string;
|
|
109
|
+
content: React.ReactNode;
|
|
110
|
+
id: string;
|
|
111
|
+
defaultOpen?: boolean;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare function AccordionItem({ title, content, id, defaultOpen, }: AccordionItemProps): React__default.JSX.Element;
|
|
115
|
+
declare function Accordion({ children }: {
|
|
116
|
+
children: React__default.ReactNode;
|
|
117
|
+
}): React__default.JSX.Element;
|
|
118
|
+
|
|
119
|
+
type BoxErrorProps = {
|
|
120
|
+
message?: string;
|
|
121
|
+
handleClose?: () => void;
|
|
122
|
+
};
|
|
123
|
+
declare const BoxError: ({ message, handleClose }: BoxErrorProps) => React__default.JSX.Element;
|
|
124
|
+
|
|
125
|
+
type BoxSuccessProps = {
|
|
126
|
+
message?: string;
|
|
127
|
+
handleClose?: () => void;
|
|
128
|
+
};
|
|
129
|
+
declare const BoxSuccess: ({ message, handleClose }: BoxSuccessProps) => React__default.JSX.Element;
|
|
130
|
+
|
|
131
|
+
interface Props$1 {
|
|
132
|
+
isOpen: boolean;
|
|
133
|
+
text?: string;
|
|
134
|
+
}
|
|
135
|
+
declare function LoadingSpinner(props: Readonly<Props$1>): React$1.JSX.Element;
|
|
136
|
+
|
|
137
|
+
interface Props {
|
|
138
|
+
currentPage: number;
|
|
139
|
+
countPage: number;
|
|
140
|
+
itemsVisiblePage?: number;
|
|
141
|
+
handleClickPage?: (page: any) => void;
|
|
142
|
+
}
|
|
143
|
+
declare const PaginationTable: ({ currentPage, countPage, itemsVisiblePage, handleClickPage, }: Omit<Props, "header" | "body" | "footer">) => React__default.JSX.Element;
|
|
144
|
+
|
|
145
|
+
interface SelectMultProps {
|
|
146
|
+
name: string;
|
|
147
|
+
optionsSelect: OptionsProps[];
|
|
148
|
+
value: any;
|
|
149
|
+
placeholder?: string;
|
|
150
|
+
className?: string;
|
|
151
|
+
label?: string;
|
|
152
|
+
handleChange: (selectedOptions: OptionsProps[]) => void;
|
|
153
|
+
handleInputChange?: (inputValue: string) => void;
|
|
154
|
+
isMulti: boolean;
|
|
155
|
+
isDisabled?: boolean;
|
|
156
|
+
isRequired?: boolean;
|
|
157
|
+
inputRef?: unknown;
|
|
158
|
+
hasError?: boolean;
|
|
159
|
+
control?: Control<any>;
|
|
160
|
+
}
|
|
161
|
+
type OptionsProps = {
|
|
162
|
+
label: string;
|
|
163
|
+
value: string;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
declare const SelectMult: ({ name, control, optionsSelect, placeholder, isMulti, isDisabled, label, hasError, handleChange, isRequired, value, }: SelectMultProps) => React$1.JSX.Element;
|
|
167
|
+
|
|
168
|
+
type TitleProps = {
|
|
169
|
+
title: string;
|
|
170
|
+
};
|
|
171
|
+
declare const Title: ({ title }: TitleProps) => React__default.JSX.Element;
|
|
172
|
+
|
|
173
|
+
interface Column {
|
|
174
|
+
name: string;
|
|
175
|
+
uid: string;
|
|
176
|
+
sortable?: boolean;
|
|
177
|
+
renderCell?: (item: any) => React.ReactNode;
|
|
178
|
+
}
|
|
179
|
+
interface TableComponentProps {
|
|
180
|
+
columns: Column[];
|
|
181
|
+
data: any[];
|
|
182
|
+
sortedColumn: string;
|
|
183
|
+
sortDirection: "asc" | "desc";
|
|
184
|
+
onSort: (uid: string) => void;
|
|
185
|
+
renderCell: (item: any, columnUid: string) => React.ReactNode;
|
|
186
|
+
onActionClick?: (item: any) => void;
|
|
187
|
+
actionIcon?: React.ReactNode;
|
|
188
|
+
noRecordsMessage?: string;
|
|
189
|
+
}
|
|
143
190
|
|
|
144
|
-
declare
|
|
191
|
+
declare const TableComponent: ({ columns, data, onSort, renderCell, onActionClick, actionIcon, noRecordsMessage, }: TableComponentProps) => React__default.JSX.Element;
|
|
145
192
|
|
|
146
|
-
declare const IconDownload: (props?: SVGProps<SVGSVGElement>) =>
|
|
193
|
+
declare const IconDownload: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
147
194
|
|
|
148
|
-
declare const IconVisibillity: (props?: SVGProps<SVGSVGElement>) =>
|
|
195
|
+
declare const IconVisibillity: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
149
196
|
|
|
150
|
-
declare const IconEdit: (props?: SVGProps<SVGSVGElement>) =>
|
|
197
|
+
declare const IconEdit: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
151
198
|
|
|
152
|
-
declare const IconDelete: (props?: SVGProps<SVGSVGElement>) =>
|
|
199
|
+
declare const IconDelete: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
153
200
|
|
|
154
|
-
declare const IconCalendar: (props?: SVGProps<SVGSVGElement>) =>
|
|
201
|
+
declare const IconCalendar: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
155
202
|
|
|
156
|
-
declare const IconProfile: (props?: SVGProps<SVGSVGElement>) =>
|
|
203
|
+
declare const IconProfile: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
157
204
|
|
|
158
|
-
declare const IconUpload: (props?: SVGProps<SVGSVGElement>) =>
|
|
205
|
+
declare const IconUpload: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
159
206
|
|
|
160
|
-
declare const IconNewTab: (props?: SVGProps<SVGSVGElement>) =>
|
|
207
|
+
declare const IconNewTab: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
161
208
|
|
|
162
|
-
declare const IconWarning: (props?: SVGProps<SVGSVGElement>) =>
|
|
209
|
+
declare const IconWarning: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
163
210
|
|
|
164
|
-
declare const IconCheckCircle: (props?: SVGProps<SVGSVGElement>) =>
|
|
211
|
+
declare const IconCheckCircle: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
165
212
|
|
|
166
|
-
declare const IconEventAvaliable: (props?: SVGProps<SVGSVGElement>) =>
|
|
213
|
+
declare const IconEventAvaliable: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
167
214
|
|
|
168
|
-
declare const IconLogout: (props?: SVGProps<SVGSVGElement>) =>
|
|
215
|
+
declare const IconLogout: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
169
216
|
|
|
170
|
-
declare const IconCLose: (props?: SVGProps<SVGSVGElement>) =>
|
|
217
|
+
declare const IconCLose: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
171
218
|
|
|
172
|
-
declare const IconAdd: (props?: SVGProps<SVGSVGElement>) =>
|
|
219
|
+
declare const IconAdd: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
173
220
|
|
|
174
|
-
declare const IconRemove: (props?: SVGProps<SVGSVGElement>) =>
|
|
221
|
+
declare const IconRemove: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
175
222
|
|
|
176
|
-
declare const IconCircleExpland: (props?: SVGProps<SVGSVGElement>) =>
|
|
223
|
+
declare const IconCircleExpland: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
177
224
|
|
|
178
|
-
declare const IconCircleRecall: (props?: SVGProps<SVGSVGElement>) =>
|
|
225
|
+
declare const IconCircleRecall: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
179
226
|
|
|
180
|
-
declare const IconArrowExpland: (props?: SVGProps<SVGSVGElement>) =>
|
|
227
|
+
declare const IconArrowExpland: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
181
228
|
|
|
182
|
-
declare const IconArrowRecall: (props?: SVGProps<SVGSVGElement>) =>
|
|
229
|
+
declare const IconArrowRecall: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
183
230
|
|
|
184
|
-
declare const IconTriangleExpand: (props?: SVGProps<SVGSVGElement>) =>
|
|
231
|
+
declare const IconTriangleExpand: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
185
232
|
|
|
186
|
-
declare const IconTriangleRecall: (props?: SVGProps<SVGSVGElement>) =>
|
|
233
|
+
declare const IconTriangleRecall: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
187
234
|
|
|
188
|
-
declare const IconSwap: (props?: SVGProps<SVGSVGElement>) =>
|
|
235
|
+
declare const IconSwap: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
189
236
|
|
|
190
|
-
declare const IconAddCell: (props?: SVGProps<SVGSVGElement>) =>
|
|
237
|
+
declare const IconAddCell: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
191
238
|
|
|
192
|
-
export { Button, type ButtonProps, type
|
|
239
|
+
export { Accordion, AccordionItem, type AccordionItemProps, BoxError, BoxSuccess, Button, type ButtonProps, type Column, FooterComponent as Footer, Header, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconLogout, IconNewTab, IconProfile, IconRemove, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpload, IconVisibillity, IconWarning, InputBase, type InputProps, LoadingSpinner, SelectMult as Multiselect, type OptionsProps, PaginationTable, PasswordInput, RadioGroupBase, type RadioGroupBaseProps, type SelectMultProps, TableComponent, type TableComponentProps, TextareaBase, type TextareaBaseProps, Title };
|