pesona-ui 0.1.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 +69 -0
- package/dist/index.d.ts +629 -0
- package/dist/pesona-ui.cjs.js +23 -0
- package/dist/pesona-ui.css +1 -0
- package/dist/pesona-ui.es.js +3879 -0
- package/package.json +70 -0
package/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
export default tseslint.config([
|
|
16
|
+
globalIgnores(['dist']),
|
|
17
|
+
{
|
|
18
|
+
files: ['**/*.{ts,tsx}'],
|
|
19
|
+
extends: [
|
|
20
|
+
// Other configs...
|
|
21
|
+
|
|
22
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
23
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
24
|
+
// Alternatively, use this for stricter rules
|
|
25
|
+
...tseslint.configs.strictTypeChecked,
|
|
26
|
+
// Optionally, add this for stylistic rules
|
|
27
|
+
...tseslint.configs.stylisticTypeChecked,
|
|
28
|
+
|
|
29
|
+
// Other configs...
|
|
30
|
+
],
|
|
31
|
+
languageOptions: {
|
|
32
|
+
parserOptions: {
|
|
33
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
34
|
+
tsconfigRootDir: import.meta.dirname,
|
|
35
|
+
},
|
|
36
|
+
// other options...
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
])
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
// eslint.config.js
|
|
46
|
+
import reactX from 'eslint-plugin-react-x'
|
|
47
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
48
|
+
|
|
49
|
+
export default tseslint.config([
|
|
50
|
+
globalIgnores(['dist']),
|
|
51
|
+
{
|
|
52
|
+
files: ['**/*.{ts,tsx}'],
|
|
53
|
+
extends: [
|
|
54
|
+
// Other configs...
|
|
55
|
+
// Enable lint rules for React
|
|
56
|
+
reactX.configs['recommended-typescript'],
|
|
57
|
+
// Enable lint rules for React DOM
|
|
58
|
+
reactDom.configs.recommended,
|
|
59
|
+
],
|
|
60
|
+
languageOptions: {
|
|
61
|
+
parserOptions: {
|
|
62
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
63
|
+
tsconfigRootDir: import.meta.dirname,
|
|
64
|
+
},
|
|
65
|
+
// other options...
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
])
|
|
69
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ChangeEvent } from 'react';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
4
|
+
import { HTMLProps } from 'react';
|
|
5
|
+
import { ReactElement } from 'react';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
|
|
8
|
+
export declare const Accordion: default_2.FC<AccordionProps>;
|
|
9
|
+
|
|
10
|
+
declare interface AccordionProps {
|
|
11
|
+
defaultIndex?: number;
|
|
12
|
+
children: default_2.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare const AccordionSection: default_2.FC<AccordionSectionProps>;
|
|
16
|
+
|
|
17
|
+
export declare const AccordionSectionBody: default_2.FC<AccordionSectionBodyProps>;
|
|
18
|
+
|
|
19
|
+
declare interface AccordionSectionBodyProps {
|
|
20
|
+
className?: string;
|
|
21
|
+
children: default_2.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export declare const AccordionSectionFooter: default_2.FC<AccordionSectionFooterProps>;
|
|
25
|
+
|
|
26
|
+
declare interface AccordionSectionFooterProps {
|
|
27
|
+
className?: string;
|
|
28
|
+
children: default_2.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare interface AccordionSectionProps {
|
|
32
|
+
title: string;
|
|
33
|
+
titleIcon?: ReactNode;
|
|
34
|
+
children: default_2.ReactNode;
|
|
35
|
+
isOpen?: boolean;
|
|
36
|
+
onClick?: () => void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export declare const Alert: default_2.FC<AlertProps>;
|
|
40
|
+
|
|
41
|
+
declare interface AlertProps {
|
|
42
|
+
type: string;
|
|
43
|
+
text: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export declare const Badge: default_2.FC<BadgeProps>;
|
|
47
|
+
|
|
48
|
+
declare interface BadgeProps {
|
|
49
|
+
className?: string;
|
|
50
|
+
text: string | number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare const Box: default_2.FC<BoxProps>;
|
|
54
|
+
|
|
55
|
+
declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
56
|
+
children: default_2.ReactNode;
|
|
57
|
+
className?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare const Button: default_2.FC<ButtonProps>;
|
|
61
|
+
|
|
62
|
+
declare type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
63
|
+
|
|
64
|
+
export declare const Callout: default_2.FC<CalloutProps>;
|
|
65
|
+
|
|
66
|
+
declare interface CalloutProps {
|
|
67
|
+
type: string;
|
|
68
|
+
title?: string;
|
|
69
|
+
text: string | default_2.ReactNode;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export declare const Card: default_2.FC<CardProps>;
|
|
73
|
+
|
|
74
|
+
export declare const CardBody: default_2.FC<CardBodyProps>;
|
|
75
|
+
|
|
76
|
+
declare interface CardBodyProps {
|
|
77
|
+
children: default_2.ReactNode;
|
|
78
|
+
className?: string;
|
|
79
|
+
onDrop?: (e: default_2.DragEvent<HTMLDivElement>) => void;
|
|
80
|
+
onDragOver?: (e: default_2.DragEvent<HTMLDivElement>) => void;
|
|
81
|
+
style?: default_2.CSSProperties;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export declare const CardFooter: default_2.FC<CardFooterProps>;
|
|
85
|
+
|
|
86
|
+
declare interface CardFooterProps {
|
|
87
|
+
children: default_2.ReactNode;
|
|
88
|
+
className?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare const CardHeader: default_2.FC<CardHeaderProps>;
|
|
92
|
+
|
|
93
|
+
declare interface CardHeaderProps {
|
|
94
|
+
children: default_2.ReactNode;
|
|
95
|
+
className?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare interface CardProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
99
|
+
children: default_2.ReactNode;
|
|
100
|
+
className?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export declare const Checkbox: default_2.ForwardRefExoticComponent<CheckboxProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
104
|
+
|
|
105
|
+
export declare const CheckboxAgreement: default_2.ForwardRefExoticComponent<CheckboxAgreementProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
106
|
+
|
|
107
|
+
declare interface CheckboxAgreementProps extends default_2.InputHTMLAttributes<HTMLInputElement> {
|
|
108
|
+
name: string | undefined;
|
|
109
|
+
label?: string;
|
|
110
|
+
required?: boolean;
|
|
111
|
+
error?: string | undefined;
|
|
112
|
+
checked?: boolean;
|
|
113
|
+
onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare interface CheckboxProps extends default_2.InputHTMLAttributes<HTMLInputElement> {
|
|
117
|
+
name: string | undefined;
|
|
118
|
+
label?: string;
|
|
119
|
+
message?: string;
|
|
120
|
+
required?: boolean;
|
|
121
|
+
error?: string | undefined;
|
|
122
|
+
checked?: boolean;
|
|
123
|
+
onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export declare const CircularProgress: default_2.FC<CircularProgressProps>;
|
|
127
|
+
|
|
128
|
+
declare interface CircularProgressProps {
|
|
129
|
+
size?: number;
|
|
130
|
+
className?: string;
|
|
131
|
+
color?: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare const CircularProgressWithLabel: default_2.FC<CircularProgressWithLabelProps>;
|
|
135
|
+
|
|
136
|
+
declare interface CircularProgressWithLabelProps {
|
|
137
|
+
progress?: number;
|
|
138
|
+
size?: number;
|
|
139
|
+
className?: string;
|
|
140
|
+
color?: string;
|
|
141
|
+
strokeWidth?: number;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare const ClearInput: default_2.FC<ClearInputProps>;
|
|
145
|
+
|
|
146
|
+
declare type ClearInputProps = default_2.InputHTMLAttributes<HTMLInputElement>;
|
|
147
|
+
|
|
148
|
+
export declare const ConfirmationAlert: default_2.FC<ConfirmationAlertProps>;
|
|
149
|
+
|
|
150
|
+
declare interface ConfirmationAlertProps {
|
|
151
|
+
message: string;
|
|
152
|
+
onCancel: () => void;
|
|
153
|
+
onConfirm: () => void;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export declare const DatePicker: default_2.FC<DatePickerProps>;
|
|
157
|
+
|
|
158
|
+
declare interface DatePickerProps {
|
|
159
|
+
onSelect: (date: string) => void;
|
|
160
|
+
defaultDate?: Date | string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export declare const DivTable: default_2.FC<DivTableProps>;
|
|
164
|
+
|
|
165
|
+
export declare const DivTableBody: default_2.FC<{
|
|
166
|
+
children: default_2.ReactNode;
|
|
167
|
+
}>;
|
|
168
|
+
|
|
169
|
+
export declare const DivTableCell: default_2.FC<DivTableCellProps>;
|
|
170
|
+
|
|
171
|
+
declare interface DivTableCellProps {
|
|
172
|
+
children: default_2.ReactNode;
|
|
173
|
+
className?: string;
|
|
174
|
+
hideOnGrid?: boolean;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export declare const DivTableFooter: default_2.FC<{
|
|
178
|
+
children: default_2.ReactNode;
|
|
179
|
+
}>;
|
|
180
|
+
|
|
181
|
+
export declare const DivTableHeader: default_2.FC<{
|
|
182
|
+
children: default_2.ReactNode;
|
|
183
|
+
}>;
|
|
184
|
+
|
|
185
|
+
declare interface DivTableProps {
|
|
186
|
+
children: default_2.ReactNode;
|
|
187
|
+
className?: string;
|
|
188
|
+
view?: 'grid' | 'list';
|
|
189
|
+
gridColumn?: number;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export declare const DivTableRow: default_2.FC<DivTableRowProps>;
|
|
193
|
+
|
|
194
|
+
declare interface DivTableRowProps {
|
|
195
|
+
children: default_2.ReactNode;
|
|
196
|
+
className?: string;
|
|
197
|
+
isActive?: boolean;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export declare const Dropdown: default_2.FC<DropdownProps>;
|
|
201
|
+
|
|
202
|
+
export declare const DropdownContent: default_2.FC<DropdownContentProps>;
|
|
203
|
+
|
|
204
|
+
declare interface DropdownContentProps {
|
|
205
|
+
children: default_2.ReactNode;
|
|
206
|
+
className?: string;
|
|
207
|
+
isOpen?: boolean;
|
|
208
|
+
position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
209
|
+
contentRef?: default_2.RefObject<HTMLDivElement>;
|
|
210
|
+
dropdownId?: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export declare const DropdownDatePicker: default_2.ForwardRefExoticComponent<DropdownDatePickerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
214
|
+
|
|
215
|
+
declare interface DropdownDatePickerProps {
|
|
216
|
+
name: string;
|
|
217
|
+
label: string;
|
|
218
|
+
message?: string;
|
|
219
|
+
floatingLabel?: boolean;
|
|
220
|
+
locale?: string;
|
|
221
|
+
error?: string | undefined;
|
|
222
|
+
value?: string;
|
|
223
|
+
required?: boolean;
|
|
224
|
+
disabled?: boolean;
|
|
225
|
+
onChange?: (event: default_2.ChangeEvent<HTMLDivElement>) => void;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export declare const DropdownMenu: default_2.FC<DropdownMenuProps>;
|
|
229
|
+
|
|
230
|
+
declare interface DropdownMenuItem {
|
|
231
|
+
icon?: default_2.ReactNode;
|
|
232
|
+
label: string;
|
|
233
|
+
className?: string;
|
|
234
|
+
onClick: () => void;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
declare interface DropdownMenuProps {
|
|
238
|
+
children: default_2.ReactNode;
|
|
239
|
+
items: DropdownMenuItem[];
|
|
240
|
+
position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
241
|
+
className?: string;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
declare interface DropdownProps {
|
|
245
|
+
children: default_2.ReactNode;
|
|
246
|
+
className?: string;
|
|
247
|
+
position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export declare const DropdownToggle: default_2.FC<DropdownToggleProps>;
|
|
251
|
+
|
|
252
|
+
declare interface DropdownToggleProps {
|
|
253
|
+
children: default_2.ReactNode;
|
|
254
|
+
className?: string;
|
|
255
|
+
toggleDropdown?: () => void;
|
|
256
|
+
dropdownId?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export declare const FormCheckbox: default_2.FC<FormGroupProps>;
|
|
260
|
+
|
|
261
|
+
export declare const FormContainer: default_2.FC<FormContainerProps>;
|
|
262
|
+
|
|
263
|
+
declare interface FormContainerProps {
|
|
264
|
+
children: default_2.ReactNode;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export declare const FormGroup: default_2.FC<FormGroupProps>;
|
|
268
|
+
|
|
269
|
+
declare interface FormGroupProps {
|
|
270
|
+
className?: string;
|
|
271
|
+
children: default_2.ReactNode;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export declare const FormRadio: default_2.FC<FormGroupProps>;
|
|
275
|
+
|
|
276
|
+
export declare const Input: default_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
|
|
277
|
+
|
|
278
|
+
export declare const InputDate: default_2.ForwardRefExoticComponent<Omit<InputDateProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
|
|
279
|
+
|
|
280
|
+
declare interface InputDateProps extends HTMLProps<HTMLInputElement> {
|
|
281
|
+
name: string;
|
|
282
|
+
label: string;
|
|
283
|
+
message?: string;
|
|
284
|
+
floatingLabel?: boolean;
|
|
285
|
+
error?: string | undefined;
|
|
286
|
+
value?: string;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare const InputFile: default_2.ForwardRefExoticComponent<InputFileProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
290
|
+
|
|
291
|
+
declare interface InputFileProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
292
|
+
name: string;
|
|
293
|
+
label?: string;
|
|
294
|
+
message?: string;
|
|
295
|
+
accept?: string;
|
|
296
|
+
error?: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export declare const InputImageSize: default_2.FC;
|
|
300
|
+
|
|
301
|
+
declare interface InputProps extends HTMLProps<HTMLInputElement> {
|
|
302
|
+
className?: string;
|
|
303
|
+
name: string;
|
|
304
|
+
label?: string;
|
|
305
|
+
message?: string;
|
|
306
|
+
floatingLabel?: boolean;
|
|
307
|
+
error?: string | undefined;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
declare interface InputProps_2 extends HTMLProps<HTMLInputElement> {
|
|
311
|
+
className?: string;
|
|
312
|
+
name: string;
|
|
313
|
+
label?: string;
|
|
314
|
+
message?: string;
|
|
315
|
+
floatingLabel?: boolean;
|
|
316
|
+
error?: string | undefined;
|
|
317
|
+
actionIcon?: default_2.ReactNode;
|
|
318
|
+
actionButtonLabel?: string;
|
|
319
|
+
actionButtonHandler?: () => void;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export declare const InputTextArea: default_2.ForwardRefExoticComponent<InputTextAreaProps & default_2.RefAttributes<HTMLTextAreaElement>>;
|
|
323
|
+
|
|
324
|
+
declare interface InputTextAreaProps extends default_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
325
|
+
name: string;
|
|
326
|
+
label: string;
|
|
327
|
+
message?: string;
|
|
328
|
+
floatingLabel?: boolean;
|
|
329
|
+
error?: string | undefined;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export declare const InputWithAction: default_2.ForwardRefExoticComponent<Omit<InputProps_2, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
|
|
333
|
+
|
|
334
|
+
export declare const InputWysiwyg: default_2.ForwardRefExoticComponent<InputWysiwygProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
335
|
+
|
|
336
|
+
declare interface InputWysiwygProps {
|
|
337
|
+
name: string;
|
|
338
|
+
label: string;
|
|
339
|
+
message?: string;
|
|
340
|
+
floatingLabel?: boolean;
|
|
341
|
+
error?: string;
|
|
342
|
+
value?: string;
|
|
343
|
+
required?: boolean;
|
|
344
|
+
onChange?: (event: default_2.ChangeEvent<HTMLDivElement>) => void;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export declare const LinearProgress: default_2.FC<LinearProgressProps>;
|
|
348
|
+
|
|
349
|
+
declare interface LinearProgressProps {
|
|
350
|
+
showLabel?: boolean;
|
|
351
|
+
progress?: number;
|
|
352
|
+
className?: string;
|
|
353
|
+
color?: string;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export declare const ListItem: default_2.FC<ListItemProps>;
|
|
357
|
+
|
|
358
|
+
declare interface ListItemProps {
|
|
359
|
+
children: default_2.ReactNode;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export declare const ListView: default_2.FC<ListViewProps>;
|
|
363
|
+
|
|
364
|
+
declare interface ListViewProps {
|
|
365
|
+
className?: string;
|
|
366
|
+
children: default_2.ReactNode;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export declare const LoadingBar: default_2.FC<LoadingBarProps>;
|
|
370
|
+
|
|
371
|
+
declare interface LoadingBarProps {
|
|
372
|
+
progress: number;
|
|
373
|
+
visible: boolean;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export declare const Modal: default_2.FC<ModalProps>;
|
|
377
|
+
|
|
378
|
+
export declare const ModalBody: default_2.FC<ModalBodyProps>;
|
|
379
|
+
|
|
380
|
+
declare interface ModalBodyProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
381
|
+
children: default_2.ReactNode;
|
|
382
|
+
className?: string;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export declare const ModalFooter: default_2.FC<ModalFooterProps>;
|
|
386
|
+
|
|
387
|
+
declare interface ModalFooterProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
388
|
+
children: default_2.ReactNode;
|
|
389
|
+
className?: string;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export declare const ModalHeader: default_2.FC<ModalHeaderProps>;
|
|
393
|
+
|
|
394
|
+
declare interface ModalHeaderProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
395
|
+
children: default_2.ReactNode;
|
|
396
|
+
className?: string;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare interface ModalProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
400
|
+
children: default_2.ReactNode;
|
|
401
|
+
className?: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
declare interface Option_2 {
|
|
405
|
+
value: string | number;
|
|
406
|
+
label: string | number;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare interface Option_3 {
|
|
410
|
+
value: string | number | boolean;
|
|
411
|
+
label: string;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export declare const Popover: default_2.FC<PopoverProps>;
|
|
415
|
+
|
|
416
|
+
declare interface PopoverProps {
|
|
417
|
+
className: string;
|
|
418
|
+
children: default_2.ReactNode;
|
|
419
|
+
text: string;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export declare const Radio: default_2.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
|
|
423
|
+
|
|
424
|
+
export declare const RadioButtonGroup: default_2.ForwardRefExoticComponent<RadioButtonGroupProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
425
|
+
|
|
426
|
+
declare interface RadioButtonGroupProps {
|
|
427
|
+
name: string;
|
|
428
|
+
label?: string;
|
|
429
|
+
message?: string;
|
|
430
|
+
size?: 'sm' | 'md' | 'lg';
|
|
431
|
+
options: Option_3[];
|
|
432
|
+
selectedValue?: string | number | boolean;
|
|
433
|
+
error?: string | undefined;
|
|
434
|
+
required?: boolean;
|
|
435
|
+
onChange?: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare interface RadioProps extends HTMLProps<HTMLInputElement> {
|
|
439
|
+
name: string;
|
|
440
|
+
label: string;
|
|
441
|
+
message?: string;
|
|
442
|
+
options: Option_2[];
|
|
443
|
+
error?: string | undefined;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export declare const Select: default_2.ForwardRefExoticComponent<SelectProps & default_2.RefAttributes<HTMLSelectElement>>;
|
|
447
|
+
|
|
448
|
+
export declare const SelectMultiple: default_2.ForwardRefExoticComponent<SelectMultipleProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
449
|
+
|
|
450
|
+
declare interface SelectMultipleProps {
|
|
451
|
+
name: string;
|
|
452
|
+
label?: string;
|
|
453
|
+
message?: string;
|
|
454
|
+
selectLabel?: string;
|
|
455
|
+
floatingLabel?: boolean;
|
|
456
|
+
error?: string | undefined;
|
|
457
|
+
options: SelectOption_2[];
|
|
458
|
+
value?: string[] | number[];
|
|
459
|
+
onChange?: (event: default_2.ChangeEvent<HTMLDivElement>) => void;
|
|
460
|
+
required?: boolean;
|
|
461
|
+
disabled?: boolean;
|
|
462
|
+
className?: string;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
declare interface SelectOption {
|
|
466
|
+
value: string | number;
|
|
467
|
+
label: string;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
declare interface SelectOption_2 {
|
|
471
|
+
value: string | number;
|
|
472
|
+
label: string;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
declare interface SelectProps {
|
|
476
|
+
name: string;
|
|
477
|
+
label?: string;
|
|
478
|
+
message?: string;
|
|
479
|
+
selectLabel?: string;
|
|
480
|
+
size?: 'sm' | 'md' | 'lg';
|
|
481
|
+
floatingLabel?: boolean;
|
|
482
|
+
error?: string;
|
|
483
|
+
options: SelectOption[];
|
|
484
|
+
value?: string | number;
|
|
485
|
+
onChange?: (event: default_2.ChangeEvent<HTMLSelectElement>) => void;
|
|
486
|
+
onBlur?: (event: default_2.FocusEvent<HTMLSelectElement>) => void;
|
|
487
|
+
required?: boolean;
|
|
488
|
+
disabled?: boolean;
|
|
489
|
+
role?: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export declare const SelectWithSearch: default_2.ForwardRefExoticComponent<SelectWithSearchProps & default_2.RefAttributes<HTMLSelectElement>>;
|
|
493
|
+
|
|
494
|
+
declare interface SelectWithSearchOption {
|
|
495
|
+
value: string | number;
|
|
496
|
+
label: string;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
declare interface SelectWithSearchProps {
|
|
500
|
+
name: string;
|
|
501
|
+
label?: string;
|
|
502
|
+
message?: string;
|
|
503
|
+
selectLabel?: string;
|
|
504
|
+
size?: 'sm' | 'md' | 'lg';
|
|
505
|
+
floatingLabel?: boolean;
|
|
506
|
+
error?: string;
|
|
507
|
+
options: SelectWithSearchOption[];
|
|
508
|
+
value?: string | number;
|
|
509
|
+
onChange?: (event: default_2.ChangeEvent<HTMLSelectElement>) => void;
|
|
510
|
+
required?: boolean;
|
|
511
|
+
disabled?: boolean;
|
|
512
|
+
role?: string;
|
|
513
|
+
selectSearch?: string;
|
|
514
|
+
setSelectSearch?: (value: string) => void;
|
|
515
|
+
isLoading?: boolean;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export declare const Spinner: default_2.FC;
|
|
519
|
+
|
|
520
|
+
export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
521
|
+
|
|
522
|
+
declare interface SwitchProps {
|
|
523
|
+
name: string;
|
|
524
|
+
className?: string;
|
|
525
|
+
error?: Error | string;
|
|
526
|
+
checked: boolean;
|
|
527
|
+
disabled?: boolean;
|
|
528
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export declare const Tab: default_2.FC<TabProps>;
|
|
532
|
+
|
|
533
|
+
export declare const TabGroup: default_2.FC<TabGroupProps>;
|
|
534
|
+
|
|
535
|
+
declare interface TabGroupProps {
|
|
536
|
+
children: ReactElement<TabProps>[];
|
|
537
|
+
title: string;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export declare const Table: default_2.FC<TableProps>;
|
|
541
|
+
|
|
542
|
+
export declare const TableBody: default_2.FC<TableProps>;
|
|
543
|
+
|
|
544
|
+
export declare const TableCell: default_2.FC<TableCellProps>;
|
|
545
|
+
|
|
546
|
+
declare interface TableCellProps {
|
|
547
|
+
children: default_2.ReactNode;
|
|
548
|
+
header?: boolean;
|
|
549
|
+
className?: string;
|
|
550
|
+
colSpan?: number;
|
|
551
|
+
style?: default_2.CSSProperties;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export declare const TableDeleteSelectedItems: default_2.FC<TableDeleteSelectedItemsProps>;
|
|
555
|
+
|
|
556
|
+
declare interface TableDeleteSelectedItemsProps {
|
|
557
|
+
count: number;
|
|
558
|
+
handleMultipleDelete: () => void;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export declare const TableFooter: default_2.FC<TableProps>;
|
|
562
|
+
|
|
563
|
+
export declare const TableHeader: default_2.FC<TableProps>;
|
|
564
|
+
|
|
565
|
+
export declare const TablePaginating: default_2.FC<TablePaginatingProps>;
|
|
566
|
+
|
|
567
|
+
declare interface TablePaginatingProps {
|
|
568
|
+
startIndex: number;
|
|
569
|
+
endIndex: number;
|
|
570
|
+
currentPage: number;
|
|
571
|
+
totalData: number;
|
|
572
|
+
itemsPerPage: number;
|
|
573
|
+
setItemsPerPage: (itemsPerPage: number) => void;
|
|
574
|
+
setCurrentPage: (currentPage: number) => void;
|
|
575
|
+
totalPages: number;
|
|
576
|
+
showPerPage?: boolean;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export declare const TablePickSelectedItems: default_2.FC<TablePickSelectedItemsProps>;
|
|
580
|
+
|
|
581
|
+
declare interface TablePickSelectedItemsProps {
|
|
582
|
+
count: number;
|
|
583
|
+
selectedItem: (selectedRows: string[]) => void;
|
|
584
|
+
selectedRows: string[];
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
declare interface TableProps {
|
|
588
|
+
children: default_2.ReactNode;
|
|
589
|
+
className?: string;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export declare const TableRow: default_2.FC<TableRowProps>;
|
|
593
|
+
|
|
594
|
+
declare interface TableRowProps extends default_2.HTMLAttributes<HTMLTableRowElement> {
|
|
595
|
+
children: default_2.ReactNode;
|
|
596
|
+
className?: string;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
declare interface TabProps {
|
|
600
|
+
children: default_2.ReactNode;
|
|
601
|
+
title: string;
|
|
602
|
+
icon?: ReactElement;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
|
606
|
+
|
|
607
|
+
declare interface TabsProps {
|
|
608
|
+
className?: string;
|
|
609
|
+
navClassName?: string;
|
|
610
|
+
contentClassName?: string;
|
|
611
|
+
children: default_2.ReactNode;
|
|
612
|
+
activeTab: number;
|
|
613
|
+
handleActiveTab: (index: number) => void;
|
|
614
|
+
customHeader?: default_2.ReactNode;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
|
618
|
+
|
|
619
|
+
declare type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
620
|
+
|
|
621
|
+
declare interface TooltipProps {
|
|
622
|
+
children: default_2.ReactNode;
|
|
623
|
+
text: string;
|
|
624
|
+
position?: TooltipPosition;
|
|
625
|
+
className?: string;
|
|
626
|
+
offset?: number;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
export { }
|