nexaas-ui-components 1.0.78 → 1.0.80
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/dist/index.cjs +572 -121
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +109 -50
- package/dist/index.d.ts +109 -50
- package/dist/index.js +571 -121
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import React__default, { JSX, ComponentType, AnchorHTMLAttributes, DetailedHTMLProps, InputHTMLAttributes, HTMLInputTypeAttribute, ReactNode, KeyboardEventHandler, MutableRefObject, TextareaHTMLAttributes } from 'react';
|
|
4
3
|
import { UseFormRegisterReturn, Merge, FieldError, FieldErrorsImpl, Control } from 'react-hook-form';
|
|
@@ -19,26 +18,38 @@ declare const sizes$2: {
|
|
|
19
18
|
xxs: {
|
|
20
19
|
text: string;
|
|
21
20
|
icon: string;
|
|
21
|
+
gap: string;
|
|
22
|
+
spinner: string;
|
|
22
23
|
};
|
|
23
24
|
xxsm: {
|
|
24
25
|
text: string;
|
|
25
26
|
icon: string;
|
|
27
|
+
gap: string;
|
|
28
|
+
spinner: string;
|
|
26
29
|
};
|
|
27
30
|
xs: {
|
|
28
31
|
text: string;
|
|
29
32
|
icon: string;
|
|
33
|
+
gap: string;
|
|
34
|
+
spinner: string;
|
|
30
35
|
};
|
|
31
36
|
sm: {
|
|
32
37
|
text: string;
|
|
33
38
|
icon: string;
|
|
39
|
+
gap: string;
|
|
40
|
+
spinner: string;
|
|
34
41
|
};
|
|
35
42
|
md: {
|
|
36
43
|
text: string;
|
|
37
44
|
icon: string;
|
|
45
|
+
gap: string;
|
|
46
|
+
spinner: string;
|
|
38
47
|
};
|
|
39
48
|
lg: {
|
|
40
49
|
text: string;
|
|
41
50
|
icon: string;
|
|
51
|
+
gap: string;
|
|
52
|
+
spinner: string;
|
|
42
53
|
};
|
|
43
54
|
};
|
|
44
55
|
declare const variants$3: {
|
|
@@ -87,8 +98,20 @@ declare const variants$3: {
|
|
|
87
98
|
ghost: {
|
|
88
99
|
text: string;
|
|
89
100
|
};
|
|
101
|
+
iconPrimary: {
|
|
102
|
+
text: string;
|
|
103
|
+
};
|
|
104
|
+
iconDanger: {
|
|
105
|
+
text: string;
|
|
106
|
+
};
|
|
107
|
+
ghostIcon: {
|
|
108
|
+
text: string;
|
|
109
|
+
};
|
|
110
|
+
onColorText: {
|
|
111
|
+
text: string;
|
|
112
|
+
};
|
|
90
113
|
};
|
|
91
|
-
declare const Button: ({ variant, size, hotkey, hotkeyPosition, ...props }: ButtonProps) =>
|
|
114
|
+
declare const Button: ({ variant, size, hotkey, hotkeyPosition, ...props }: ButtonProps) => JSX.Element;
|
|
92
115
|
|
|
93
116
|
type LinkProp = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
94
117
|
icon?: JSX.Element;
|
|
@@ -201,7 +224,7 @@ type InputFieldProps$1 = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>
|
|
|
201
224
|
onClear?: () => void;
|
|
202
225
|
hideInput?: boolean;
|
|
203
226
|
};
|
|
204
|
-
declare const Input: ({ label, type, registration, onClick, error, onBlur, inputProps, icon, clearField, name, required, disabled, value, placeholder, defaultValue, onKeyUp, onKeyDown, onClear, hideInput, onChange, ref, }: InputFieldProps$1) =>
|
|
227
|
+
declare const Input: ({ label, type, registration, onClick, error, onBlur, inputProps, icon, clearField, name, required, disabled, value, placeholder, defaultValue, onKeyUp, onKeyDown, onClear, hideInput, onChange, ref, }: InputFieldProps$1) => JSX.Element;
|
|
205
228
|
|
|
206
229
|
declare const Logo: React__default.FC<{
|
|
207
230
|
className?: string;
|
|
@@ -211,7 +234,7 @@ declare const SpinnerIcon: React__default.FC<React__default.SVGProps<SVGSVGEleme
|
|
|
211
234
|
|
|
212
235
|
declare const RocketIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
|
|
213
236
|
|
|
214
|
-
interface Props$
|
|
237
|
+
interface Props$8 {
|
|
215
238
|
icon?: JSX.Element;
|
|
216
239
|
label: string;
|
|
217
240
|
registration?: UseFormRegisterReturn;
|
|
@@ -230,7 +253,7 @@ interface Props$7 {
|
|
|
230
253
|
onClear?: () => void;
|
|
231
254
|
popoverOffset?: [number, number];
|
|
232
255
|
}
|
|
233
|
-
declare const DatePickerInput: React.ForwardRefExoticComponent<Props$
|
|
256
|
+
declare const DatePickerInput: React.ForwardRefExoticComponent<Props$8 & React.RefAttributes<unknown>>;
|
|
234
257
|
|
|
235
258
|
type BadgeProps = {
|
|
236
259
|
variant?: keyof typeof variants$1 | string;
|
|
@@ -251,9 +274,9 @@ declare const variants$1: {
|
|
|
251
274
|
outline: string;
|
|
252
275
|
"dark-gray": string;
|
|
253
276
|
};
|
|
254
|
-
declare const Badge: ({ variant, children, className, style, }: BadgeProps) =>
|
|
277
|
+
declare const Badge: ({ variant, children, className, style, }: BadgeProps) => JSX.Element;
|
|
255
278
|
|
|
256
|
-
interface Props$
|
|
279
|
+
interface Props$7 {
|
|
257
280
|
registration?: UseFormRegisterReturn;
|
|
258
281
|
error?: FieldError;
|
|
259
282
|
control: Control<any>;
|
|
@@ -265,7 +288,7 @@ interface Props$6 {
|
|
|
265
288
|
maxDate?: Date;
|
|
266
289
|
singleMonth?: boolean;
|
|
267
290
|
}
|
|
268
|
-
declare const Calendar: ({ registration, error, control, name, rangeCalendar, shortcutsChange, selectedShortcut, setSelectedShortcut, maxDate, singleMonth, }: Props$
|
|
291
|
+
declare const Calendar: ({ registration, error, control, name, rangeCalendar, shortcutsChange, selectedShortcut, setSelectedShortcut, maxDate, singleMonth, }: Props$7) => React__default.JSX.Element;
|
|
269
292
|
|
|
270
293
|
type CheckboxProps = {
|
|
271
294
|
key?: string;
|
|
@@ -273,9 +296,9 @@ type CheckboxProps = {
|
|
|
273
296
|
registration?: UseFormRegisterReturn;
|
|
274
297
|
disabled?: boolean;
|
|
275
298
|
};
|
|
276
|
-
declare const Checkbox: ({ key, label, registration, disabled, }: CheckboxProps) =>
|
|
299
|
+
declare const Checkbox: ({ key, label, registration, disabled, }: CheckboxProps) => React__default.JSX.Element;
|
|
277
300
|
|
|
278
|
-
interface Props$
|
|
301
|
+
interface Props$6 {
|
|
279
302
|
icon?: JSX.Element;
|
|
280
303
|
label?: string;
|
|
281
304
|
onApply?: () => void;
|
|
@@ -290,7 +313,7 @@ interface Props$5 {
|
|
|
290
313
|
/** Sobrescreve a cor do texto do label no estado de repouso (ex.: "text-neutral-700"). */
|
|
291
314
|
labelClassName?: string;
|
|
292
315
|
}
|
|
293
|
-
declare const FilterCalendar: ({ icon, label, onApply, onClear, control, name, rangeCalendar, defaultShortcut, shortcutsChange, singleMonth, maxDate, labelClassName, }: Props$
|
|
316
|
+
declare const FilterCalendar: ({ icon, label, onApply, onClear, control, name, rangeCalendar, defaultShortcut, shortcutsChange, singleMonth, maxDate, labelClassName, }: Props$6) => JSX.Element;
|
|
294
317
|
|
|
295
318
|
interface Options {
|
|
296
319
|
id: any;
|
|
@@ -299,6 +322,40 @@ interface Options {
|
|
|
299
322
|
disabled?: boolean;
|
|
300
323
|
icon?: JSX.Element;
|
|
301
324
|
}
|
|
325
|
+
interface Props$5 {
|
|
326
|
+
icon?: JSX.Element;
|
|
327
|
+
label?: string;
|
|
328
|
+
isMulti?: boolean;
|
|
329
|
+
options: Options[];
|
|
330
|
+
onApply?: () => void;
|
|
331
|
+
onClear?: () => void;
|
|
332
|
+
onSelectAll?: () => void;
|
|
333
|
+
control: Control;
|
|
334
|
+
name: string;
|
|
335
|
+
fetch?: (value: string | number, button: string) => Promise<Options[]>;
|
|
336
|
+
subFilters?: {
|
|
337
|
+
id: string | any;
|
|
338
|
+
name: string;
|
|
339
|
+
}[];
|
|
340
|
+
emptyMessage?: string;
|
|
341
|
+
initialMessage?: string;
|
|
342
|
+
/** Sobrescreve a classe do texto de initialMessage (ex.: "text-center"). Padrão: sem alinhamento. */
|
|
343
|
+
initialMessageClassName?: string;
|
|
344
|
+
applyOnClick?: boolean;
|
|
345
|
+
showFilter?: boolean;
|
|
346
|
+
renderOption?: (option: Options, isSelected: boolean) => JSX.Element;
|
|
347
|
+
/** Placeholder do campo de busca. Padrão: "Pesquisar". */
|
|
348
|
+
searchPlaceholder?: string;
|
|
349
|
+
/** Sobrescreve o padding/classe do painel do dropdown. Padrão: "p-2". */
|
|
350
|
+
panelClassName?: string;
|
|
351
|
+
/** Labels dos botões de ação (sobrescrevem os padrões). */
|
|
352
|
+
applyLabel?: string;
|
|
353
|
+
cancelLabel?: string;
|
|
354
|
+
clearLabel?: string;
|
|
355
|
+
selectAllLabel?: string;
|
|
356
|
+
}
|
|
357
|
+
declare const FilterOptions: ({ icon, label, isMulti, options, onApply, onClear, onSelectAll, control, name, fetch, subFilters, emptyMessage, initialMessage, initialMessageClassName, applyOnClick, showFilter, renderOption, searchPlaceholder, panelClassName, applyLabel, cancelLabel, clearLabel, selectAllLabel, }: Props$5) => JSX.Element;
|
|
358
|
+
|
|
302
359
|
interface Props$4 {
|
|
303
360
|
icon?: JSX.Element;
|
|
304
361
|
label?: string;
|
|
@@ -330,8 +387,10 @@ interface Props$4 {
|
|
|
330
387
|
cancelLabel?: string;
|
|
331
388
|
clearLabel?: string;
|
|
332
389
|
selectAllLabel?: string;
|
|
390
|
+
/** Mostra o botão de limpar (X) no chip fechado, sobre o filtro já selecionado. Padrão: true. */
|
|
391
|
+
clearButton?: boolean;
|
|
333
392
|
}
|
|
334
|
-
declare const
|
|
393
|
+
declare const FilterSelect: ({ icon, label, isMulti, options, onApply, onClear, onSelectAll, control, name, fetch, subFilters, emptyMessage, initialMessage, initialMessageClassName, applyOnClick, showFilter, renderOption, searchPlaceholder, panelClassName, applyLabel, cancelLabel, clearLabel, selectAllLabel, clearButton, }: Props$4) => JSX.Element;
|
|
335
394
|
|
|
336
395
|
type InputMoneyProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
337
396
|
label?: string;
|
|
@@ -348,7 +407,7 @@ type InputMoneyProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,
|
|
|
348
407
|
isWeightField?: boolean;
|
|
349
408
|
minFractionDigits?: number;
|
|
350
409
|
};
|
|
351
|
-
declare function InputMoney({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, isWeightField, minFractionDigits, }: InputMoneyProps):
|
|
410
|
+
declare function InputMoney({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, isWeightField, minFractionDigits, }: InputMoneyProps): JSX.Element;
|
|
352
411
|
declare namespace InputMoney {
|
|
353
412
|
var displayName: string;
|
|
354
413
|
}
|
|
@@ -370,7 +429,7 @@ type InputNumberProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,
|
|
|
370
429
|
showZero?: boolean;
|
|
371
430
|
maxValue?: number;
|
|
372
431
|
};
|
|
373
|
-
declare function InputNumber({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, hideArrows, maxLength, onlyNumbers, showZero, maxValue, }: InputNumberProps):
|
|
432
|
+
declare function InputNumber({ label, type, onClick, error, onBlur, onChangeValue, inputProps, icon, clearField, name, required, disabled, value, placeholder, control, defaultValue, hideArrows, maxLength, onlyNumbers, showZero, maxValue, }: InputNumberProps): JSX.Element;
|
|
374
433
|
declare namespace InputNumber {
|
|
375
434
|
var displayName: string;
|
|
376
435
|
}
|
|
@@ -390,7 +449,7 @@ type InputPercentageProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputEleme
|
|
|
390
449
|
minFractionDigits?: number;
|
|
391
450
|
onChangeValue?: (e: any) => void;
|
|
392
451
|
};
|
|
393
|
-
declare function InputPercentage({ label, onClick, error, onBlur, inputProps, icon, clearField, name, required, disabled, placeholder, control, defaultValue, minFractionDigits, onChangeValue, maxLength, }: InputPercentageProps):
|
|
452
|
+
declare function InputPercentage({ label, onClick, error, onBlur, inputProps, icon, clearField, name, required, disabled, placeholder, control, defaultValue, minFractionDigits, onChangeValue, maxLength, }: InputPercentageProps): JSX.Element;
|
|
394
453
|
declare namespace InputPercentage {
|
|
395
454
|
var displayName: string;
|
|
396
455
|
}
|
|
@@ -410,7 +469,7 @@ type MaskedInputProps = {
|
|
|
410
469
|
defaultValue?: any;
|
|
411
470
|
disabled?: boolean;
|
|
412
471
|
};
|
|
413
|
-
declare const MaskedInput: ({ type, name, label, placeholder, error, mask, control, required, onKeyUp, maskChar, alwaysShowMask, defaultValue, disabled, }: MaskedInputProps) =>
|
|
472
|
+
declare const MaskedInput: ({ type, name, label, placeholder, error, mask, control, required, onKeyUp, maskChar, alwaysShowMask, defaultValue, disabled, }: MaskedInputProps) => React__default.JSX.Element;
|
|
414
473
|
|
|
415
474
|
type ModalProps = {
|
|
416
475
|
open?: boolean;
|
|
@@ -447,14 +506,14 @@ declare const sizes: {
|
|
|
447
506
|
lg: string;
|
|
448
507
|
null: string;
|
|
449
508
|
};
|
|
450
|
-
declare const ModalDialog: ({ open, onOpen, onClose, onCancel, triggerButton, confirmButton, title, cancelButton, icon, alertType, size, info, description, children, showFooter, showHeader, headerBorder, closeOnOverlayClick, }: ModalProps) =>
|
|
509
|
+
declare const ModalDialog: ({ open, onOpen, onClose, onCancel, triggerButton, confirmButton, title, cancelButton, icon, alertType, size, info, description, children, showFooter, showHeader, headerBorder, closeOnOverlayClick, }: ModalProps) => JSX.Element;
|
|
451
510
|
|
|
452
511
|
interface Props$3 {
|
|
453
512
|
id: string;
|
|
454
513
|
displayArrow?: boolean;
|
|
455
514
|
openOnClick?: boolean;
|
|
456
515
|
}
|
|
457
|
-
declare const Popover: ({ id, displayArrow, openOnClick, }: Props$3) =>
|
|
516
|
+
declare const Popover: ({ id, displayArrow, openOnClick, }: Props$3) => React__default.JSX.Element;
|
|
458
517
|
|
|
459
518
|
type OptionType$3 = {
|
|
460
519
|
value: number | string;
|
|
@@ -490,7 +549,7 @@ type SelectFieldProps$3 = {
|
|
|
490
549
|
menuIsEverOpen?: boolean;
|
|
491
550
|
showArrow?: boolean;
|
|
492
551
|
};
|
|
493
|
-
declare const SelectField: ({ name, error, label, defaultValue, control, placeholder, isSearchable, isClearable, onChange, required, debounce, filterOptions, optionsList, disabled, onChangeValue, resize, optionStyle, valueStyle, icon, emptyMessage, small, initialMessage, menuIsEverOpen, clearOnBlur, onMenuClose, clearOnMenuClose, showArrow, }: SelectFieldProps$3) =>
|
|
552
|
+
declare const SelectField: ({ name, error, label, defaultValue, control, placeholder, isSearchable, isClearable, onChange, required, debounce, filterOptions, optionsList, disabled, onChangeValue, resize, optionStyle, valueStyle, icon, emptyMessage, small, initialMessage, menuIsEverOpen, clearOnBlur, onMenuClose, clearOnMenuClose, showArrow, }: SelectFieldProps$3) => JSX.Element;
|
|
494
553
|
|
|
495
554
|
type FieldWrapperProps = {
|
|
496
555
|
label?: string;
|
|
@@ -544,7 +603,7 @@ interface Props$2 {
|
|
|
544
603
|
value?: string | number;
|
|
545
604
|
onChange?: (value: string | number) => void;
|
|
546
605
|
}
|
|
547
|
-
declare const Radio: ({ disabled, control, name, label, defaultChecked, value, onChange, }: Props$2) =>
|
|
606
|
+
declare const Radio: ({ disabled, control, name, label, defaultChecked, value, onChange, }: Props$2) => React__default.JSX.Element;
|
|
548
607
|
|
|
549
608
|
type ToggleProps = {
|
|
550
609
|
name: string;
|
|
@@ -553,13 +612,13 @@ type ToggleProps = {
|
|
|
553
612
|
control: Control<any>;
|
|
554
613
|
disabled?: boolean;
|
|
555
614
|
};
|
|
556
|
-
declare const Toggle: ({ name, label, subLabel, control, disabled, }: ToggleProps) =>
|
|
615
|
+
declare const Toggle: ({ name, label, subLabel, control, disabled, }: ToggleProps) => React__default.JSX.Element;
|
|
557
616
|
|
|
558
617
|
interface Props$1<TData> {
|
|
559
618
|
pageSizeOptions?: number[];
|
|
560
619
|
table: Table$1<TData>;
|
|
561
620
|
}
|
|
562
|
-
declare function PaginationSelect<TData>({ pageSizeOptions, table, }: Props$1<TData>):
|
|
621
|
+
declare function PaginationSelect<TData>({ pageSizeOptions, table, }: Props$1<TData>): React__default.JSX.Element;
|
|
563
622
|
|
|
564
623
|
type CustomTData = {
|
|
565
624
|
_destroy?: string;
|
|
@@ -611,7 +670,7 @@ interface DataTableProps<TData extends CustomTData, TValue> {
|
|
|
611
670
|
pageSizeOptions?: number[];
|
|
612
671
|
onFinishFetch?: () => void;
|
|
613
672
|
}
|
|
614
|
-
declare function DataTable<TData extends CustomTData, TValue>({ columns, tableClass, data, hidePagination, emptyButtonAction, hideBlankState, renderSubComponent, footer, borderFull, withShadow, actionsSelection, backgroundColor, emptyState, totalData, showFilter, placeholder, fetchData, openedSubComponent, getRowCanExpand, enableRowSelection, onScroll, tableContainerRef, setRows, selectAllOption, autoPagination, rowClassName, listUpdate, setRowSelection, rowSelection, perPage, pageSizeOptions, onFinishFetch, }: DataTableProps<TData, TValue>):
|
|
673
|
+
declare function DataTable<TData extends CustomTData, TValue>({ columns, tableClass, data, hidePagination, emptyButtonAction, hideBlankState, renderSubComponent, footer, borderFull, withShadow, actionsSelection, backgroundColor, emptyState, totalData, showFilter, placeholder, fetchData, openedSubComponent, getRowCanExpand, enableRowSelection, onScroll, tableContainerRef, setRows, selectAllOption, autoPagination, rowClassName, listUpdate, setRowSelection, rowSelection, perPage, pageSizeOptions, onFinishFetch, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
615
674
|
|
|
616
675
|
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
617
676
|
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -634,26 +693,26 @@ interface DataTablePaginationProps<TData> {
|
|
|
634
693
|
paginationScroll?: number;
|
|
635
694
|
pageSizeOptions?: number[];
|
|
636
695
|
}
|
|
637
|
-
declare function DataTablePagination<TData>({ table, footer, totalData, selectAllOption, onSelectAll, rowsSelected, onRemoveAll, tableRef, paginationScroll, pageSizeOptions, }: DataTablePaginationProps<TData>):
|
|
696
|
+
declare function DataTablePagination<TData>({ table, footer, totalData, selectAllOption, onSelectAll, rowsSelected, onRemoveAll, tableRef, paginationScroll, pageSizeOptions, }: DataTablePaginationProps<TData>): JSX.Element;
|
|
638
697
|
|
|
639
698
|
interface Props {
|
|
640
699
|
title: string;
|
|
641
700
|
children: ReactNode;
|
|
642
701
|
open: boolean;
|
|
643
702
|
}
|
|
644
|
-
declare const Accordion: ({ title, children, open }: Props) =>
|
|
703
|
+
declare const Accordion: ({ title, children, open }: Props) => React.JSX.Element;
|
|
645
704
|
|
|
646
705
|
declare function CopyPopover({ children, valueToCopy }: {
|
|
647
706
|
children: any;
|
|
648
707
|
valueToCopy: any;
|
|
649
|
-
}):
|
|
708
|
+
}): React.JSX.Element;
|
|
650
709
|
|
|
651
710
|
type MenuProps = {
|
|
652
711
|
triggerElement?: ReactNode;
|
|
653
712
|
children?: ReactNode;
|
|
654
713
|
className?: string;
|
|
655
714
|
};
|
|
656
|
-
declare const Menu: ({ triggerElement, children, className }: MenuProps) =>
|
|
715
|
+
declare const Menu: ({ triggerElement, children, className }: MenuProps) => React.JSX.Element;
|
|
657
716
|
|
|
658
717
|
type ItemProps = {
|
|
659
718
|
index?: number;
|
|
@@ -661,14 +720,14 @@ type ItemProps = {
|
|
|
661
720
|
onClick?: (event: any) => void;
|
|
662
721
|
children?: ReactNode;
|
|
663
722
|
};
|
|
664
|
-
declare const Item: ({ index, isActive, onClick, children }: ItemProps) =>
|
|
723
|
+
declare const Item: ({ index, isActive, onClick, children }: ItemProps) => React.JSX.Element;
|
|
665
724
|
|
|
666
725
|
type EditableTextProps$2 = {
|
|
667
726
|
children?: ReactNode;
|
|
668
727
|
button?: ReactNode;
|
|
669
728
|
onClose?: Function;
|
|
670
729
|
};
|
|
671
|
-
declare const EditableButton: ({ children, button, onClose, }: EditableTextProps$2) =>
|
|
730
|
+
declare const EditableButton: ({ children, button, onClose, }: EditableTextProps$2) => React__default.JSX.Element;
|
|
672
731
|
|
|
673
732
|
type EditableTextProps$1 = {
|
|
674
733
|
control?: any;
|
|
@@ -680,7 +739,7 @@ type EditableTextProps$1 = {
|
|
|
680
739
|
hideEditIcon?: boolean;
|
|
681
740
|
truncate?: boolean;
|
|
682
741
|
};
|
|
683
|
-
declare const EditableText: ({ control, name, emptyLabel, children, onApply, value, hideEditIcon, truncate, }: EditableTextProps$1) =>
|
|
742
|
+
declare const EditableText: ({ control, name, emptyLabel, children, onApply, value, hideEditIcon, truncate, }: EditableTextProps$1) => JSX.Element;
|
|
684
743
|
|
|
685
744
|
type EditableTextProps = {
|
|
686
745
|
control?: any;
|
|
@@ -693,7 +752,7 @@ type EditableTextProps = {
|
|
|
693
752
|
showInputSeach?: boolean;
|
|
694
753
|
onChangeValue?: (value: any) => void;
|
|
695
754
|
};
|
|
696
|
-
declare const EditableTextSelect: ({ control, name, emptyLabel, options, optionStyle, valueStyle, showInputSeach, onChangeValue, }: EditableTextProps) =>
|
|
755
|
+
declare const EditableTextSelect: ({ control, name, emptyLabel, options, optionStyle, valueStyle, showInputSeach, onChangeValue, }: EditableTextProps) => JSX.Element;
|
|
697
756
|
|
|
698
757
|
type FileUploadProps = {
|
|
699
758
|
icon?: "file" | "image";
|
|
@@ -708,12 +767,12 @@ type FileUploadProps = {
|
|
|
708
767
|
name?: string;
|
|
709
768
|
limitMessage?: string;
|
|
710
769
|
};
|
|
711
|
-
declare const FileUpload: ({ icon, multiple, direction, isImage, setFiles, supportedFormats, validationFunction, files, error, name, limitMessage, }: FileUploadProps) =>
|
|
770
|
+
declare const FileUpload: ({ icon, multiple, direction, isImage, setFiles, supportedFormats, validationFunction, files, error, name, limitMessage, }: FileUploadProps) => React__default.JSX.Element;
|
|
712
771
|
|
|
713
772
|
declare function InfoIcon({ content, id, }: {
|
|
714
773
|
content?: string;
|
|
715
774
|
id?: string;
|
|
716
|
-
}):
|
|
775
|
+
}): React.JSX.Element;
|
|
717
776
|
|
|
718
777
|
type OptionType$2 = {
|
|
719
778
|
value: number | string;
|
|
@@ -730,7 +789,7 @@ interface SelectFieldProps$2 {
|
|
|
730
789
|
error?: Merge<FieldError, FieldErrorsImpl<any>>;
|
|
731
790
|
disabled?: boolean;
|
|
732
791
|
}
|
|
733
|
-
declare const MultiSelect: ({ name, options, label, error, defaultValue, control, isSearchable, required, disabled, }: SelectFieldProps$2) =>
|
|
792
|
+
declare const MultiSelect: ({ name, options, label, error, defaultValue, control, isSearchable, required, disabled, }: SelectFieldProps$2) => React.JSX.Element;
|
|
734
793
|
|
|
735
794
|
type OptionType$1 = {
|
|
736
795
|
value: number | string;
|
|
@@ -748,10 +807,10 @@ interface SelectFieldProps$1 {
|
|
|
748
807
|
blockSpaces?: boolean;
|
|
749
808
|
}
|
|
750
809
|
declare const InputTag: {
|
|
751
|
-
({ name, label, error, defaultValue, control, required, placeholder, blockSpaces, }: SelectFieldProps$1):
|
|
810
|
+
({ name, label, error, defaultValue, control, required, placeholder, blockSpaces, }: SelectFieldProps$1): React__default.JSX.Element;
|
|
752
811
|
displayName: string;
|
|
753
812
|
};
|
|
754
|
-
declare const ValueContainer: ({ children, ...props }: ValueContainerProps) =>
|
|
813
|
+
declare const ValueContainer: ({ children, ...props }: ValueContainerProps) => React__default.JSX.Element;
|
|
755
814
|
|
|
756
815
|
type OptionType = {
|
|
757
816
|
value: number | string;
|
|
@@ -773,14 +832,14 @@ interface SelectFieldProps {
|
|
|
773
832
|
debounce?: number;
|
|
774
833
|
}
|
|
775
834
|
declare const MultiSelectBottom: {
|
|
776
|
-
({ name, options, label, error, defaultValue, control, isSearchable, required, disabled, emptyMessage, filterOptions, debounce, }: SelectFieldProps):
|
|
835
|
+
({ name, options, label, error, defaultValue, control, isSearchable, required, disabled, emptyMessage, filterOptions, debounce, }: SelectFieldProps): React.JSX.Element;
|
|
777
836
|
displayName: string;
|
|
778
837
|
};
|
|
779
838
|
|
|
780
839
|
declare function PageBox(props: {
|
|
781
840
|
title?: string;
|
|
782
841
|
children?: React__default.ReactNode;
|
|
783
|
-
}):
|
|
842
|
+
}): React__default.JSX.Element;
|
|
784
843
|
|
|
785
844
|
type PageHeaderProps = {
|
|
786
845
|
title: JSX.Element | string;
|
|
@@ -791,14 +850,14 @@ type PageHeaderProps = {
|
|
|
791
850
|
children?: JSX.Element;
|
|
792
851
|
description?: JSX.Element | string;
|
|
793
852
|
};
|
|
794
|
-
declare const PageHeader: ({ title, breadcrumbs, children, description, }: PageHeaderProps) =>
|
|
853
|
+
declare const PageHeader: ({ title, breadcrumbs, children, description, }: PageHeaderProps) => JSX.Element;
|
|
795
854
|
|
|
796
855
|
type ProgressBarProps = {
|
|
797
856
|
percentage: number;
|
|
798
857
|
variant: "primary" | "success" | "danger" | "info";
|
|
799
858
|
status: string;
|
|
800
859
|
};
|
|
801
|
-
declare const ProgressBar: ({ percentage, variant, status, }: ProgressBarProps) =>
|
|
860
|
+
declare const ProgressBar: ({ percentage, variant, status, }: ProgressBarProps) => React.JSX.Element;
|
|
802
861
|
|
|
803
862
|
type TabsProps = {
|
|
804
863
|
tabs: {
|
|
@@ -810,22 +869,22 @@ type TabsProps = {
|
|
|
810
869
|
}[];
|
|
811
870
|
onClick?: (current: any) => void;
|
|
812
871
|
};
|
|
813
|
-
declare function SimpleTab({ tabs, onClick }: TabsProps):
|
|
872
|
+
declare function SimpleTab({ tabs, onClick }: TabsProps): JSX.Element;
|
|
814
873
|
|
|
815
874
|
declare const SkeletonDetails: ({ loading, ...props }: {
|
|
816
875
|
[x: string]: any;
|
|
817
876
|
loading: any;
|
|
818
|
-
}) =>
|
|
877
|
+
}) => React.JSX.Element;
|
|
819
878
|
|
|
820
879
|
declare const SkeletonList: ({ loading, ...props }: {
|
|
821
880
|
[x: string]: any;
|
|
822
881
|
loading: any;
|
|
823
|
-
}) =>
|
|
882
|
+
}) => React.JSX.Element;
|
|
824
883
|
|
|
825
884
|
declare const SkeletonRegister: ({ loading, ...props }: {
|
|
826
885
|
[x: string]: any;
|
|
827
886
|
loading: any;
|
|
828
|
-
}) =>
|
|
887
|
+
}) => React.JSX.Element;
|
|
829
888
|
|
|
830
889
|
type StatusBallProps = {
|
|
831
890
|
label?: string;
|
|
@@ -854,7 +913,7 @@ declare const variants: {
|
|
|
854
913
|
big: string;
|
|
855
914
|
};
|
|
856
915
|
};
|
|
857
|
-
declare const StatusBall: ({ label, variant, labelPosition, }: StatusBallProps) =>
|
|
916
|
+
declare const StatusBall: ({ label, variant, labelPosition, }: StatusBallProps) => React.JSX.Element;
|
|
858
917
|
|
|
859
918
|
type tab = {
|
|
860
919
|
key: string;
|
|
@@ -878,7 +937,7 @@ type TabProps = {
|
|
|
878
937
|
showNextStep?: boolean;
|
|
879
938
|
};
|
|
880
939
|
declare const Tabs: {
|
|
881
|
-
({ tabs, cancelButton, buttonDisabled, createButtonLabel, buttonLoading, saveButton, onClick, onSave, showNextStep, }: TabProps):
|
|
940
|
+
({ tabs, cancelButton, buttonDisabled, createButtonLabel, buttonLoading, saveButton, onClick, onSave, showNextStep, }: TabProps): JSX.Element;
|
|
882
941
|
displayName: string;
|
|
883
942
|
};
|
|
884
943
|
|
|
@@ -888,7 +947,7 @@ type TextAreaProps = DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElemen
|
|
|
888
947
|
error?: FieldError;
|
|
889
948
|
inputProps?: any;
|
|
890
949
|
};
|
|
891
|
-
declare const TextArea: ({ label, registration, disabled, error, inputProps, name, }: TextAreaProps) =>
|
|
950
|
+
declare const TextArea: ({ label, registration, disabled, error, inputProps, name, }: TextAreaProps) => React.JSX.Element;
|
|
892
951
|
|
|
893
952
|
type TimelineProps = {
|
|
894
953
|
data: {
|
|
@@ -903,7 +962,7 @@ type TimelineProps = {
|
|
|
903
962
|
};
|
|
904
963
|
declare const translateVariant: (variant: any) => "gray" | "success" | "warning" | "info" | "dangerous";
|
|
905
964
|
declare const Timeline: {
|
|
906
|
-
({ data }: TimelineProps):
|
|
965
|
+
({ data }: TimelineProps): JSX.Element;
|
|
907
966
|
displayName: string;
|
|
908
967
|
};
|
|
909
968
|
|
|
@@ -924,9 +983,9 @@ type InputFieldProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>,
|
|
|
924
983
|
control: Control<unknown> | any;
|
|
925
984
|
searchOnClick?: () => void;
|
|
926
985
|
};
|
|
927
|
-
declare function ControlledInput({ label, type, registration, onClick, error, onBlur, onChange, inputProps, icon, clearField, name, required, disabled, value, placeholder, defaultValue, onKeyUp, onKeyDown, onClear, hideInput, control, searchOnClick, }: InputFieldProps):
|
|
986
|
+
declare function ControlledInput({ label, type, registration, onClick, error, onBlur, onChange, inputProps, icon, clearField, name, required, disabled, value, placeholder, defaultValue, onKeyUp, onKeyDown, onClear, hideInput, control, searchOnClick, }: InputFieldProps): JSX.Element;
|
|
928
987
|
declare namespace ControlledInput {
|
|
929
988
|
var displayName: string;
|
|
930
989
|
}
|
|
931
990
|
|
|
932
|
-
export { Accordion, Badge, Button, ButtonLink, Calendar, Checkbox, type CheckboxProps, ControlledInput, CopyPopover, DataTable, DataTablePagination, DatePickerInput, EditableButton, EditableText, EditableTextSelect, FileUpload, FilterCalendar, FilterOptions, InfoIcon, Input, InputMoney, InputNumber, InputPercentage, InputTag, Item, type LinkProp, Logo, MaskedInput, Menu, ModalDialog, type ModalProps, MultiSelect, MultiSelectBottom, type OptionType as MultiSelectBottomOptionType, type OptionType$2 as MultiSelectOptionType, type OptionType$1 as OptionType, type Options, PageBox, PageHeader, PaginationSelect, Popover, ProgressBar, Radio, RocketIcon, SelectField, SelectFieldBip, type SelectFieldBipRef, type OptionType$3 as SelectOptionType, SimpleTab, SkeletonDetails, SkeletonList, SkeletonRegister, SpinnerIcon, StatusBall, type StatusBallProps, type TabProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, type TabsProps, TextArea, Timeline, type TimelineProps, Toggle, ValueContainer, sizes$1 as sizes, translateVariant };
|
|
991
|
+
export { Accordion, Badge, Button, ButtonLink, Calendar, Checkbox, type CheckboxProps, ControlledInput, CopyPopover, DataTable, DataTablePagination, DatePickerInput, EditableButton, EditableText, EditableTextSelect, FileUpload, FilterCalendar, FilterOptions, FilterSelect, InfoIcon, Input, InputMoney, InputNumber, InputPercentage, InputTag, Item, type LinkProp, Logo, MaskedInput, Menu, ModalDialog, type ModalProps, MultiSelect, MultiSelectBottom, type OptionType as MultiSelectBottomOptionType, type OptionType$2 as MultiSelectOptionType, type OptionType$1 as OptionType, type Options, PageBox, PageHeader, PaginationSelect, Popover, ProgressBar, Radio, RocketIcon, SelectField, SelectFieldBip, type SelectFieldBipRef, type OptionType$3 as SelectOptionType, SimpleTab, SkeletonDetails, SkeletonList, SkeletonRegister, SpinnerIcon, StatusBall, type StatusBallProps, type TabProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, type TabsProps, TextArea, Timeline, type TimelineProps, Toggle, ValueContainer, sizes$1 as sizes, translateVariant };
|