@oliasoft-open-source/react-ui-library 3.12.0-beta-15 → 3.12.0-beta-16
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.d.ts +1466 -78
- package/package.json +10 -11
- package/dist/common-enum.d.ts +0 -73
- package/dist/components/accordion/accordion.d.ts +0 -5
- package/dist/components/accordion/accordion.interface.d.ts +0 -17
- package/dist/components/accordion/accordion.stories.d.ts +0 -11
- package/dist/components/accordion/chevron/chevron.d.ts +0 -6
- package/dist/components/accordion/enum.d.ts +0 -4
- package/dist/components/accordion/helpers/accordion-with-default-toggle.d.ts +0 -12
- package/dist/components/actions/actions.d.ts +0 -14
- package/dist/components/actions/actions.interface.d.ts +0 -25
- package/dist/components/actions/actions.stories.d.ts +0 -25
- package/dist/components/badge/badge.d.ts +0 -10
- package/dist/components/badge/badge.stories.d.ts +0 -7
- package/dist/components/breadcrumb/breadcrumb.d.ts +0 -7
- package/dist/components/breadcrumb/breadcrumb.stories.d.ts +0 -5
- package/dist/components/breadcrumb/enum.d.ts +0 -5
- package/dist/components/breadcrumb/link.d.ts +0 -12
- package/dist/components/button/button.d.ts +0 -31
- package/dist/components/button/button.stories.d.ts +0 -13
- package/dist/components/button/enum.d.ts +0 -5
- package/dist/components/button-group/button-group.d.ts +0 -38
- package/dist/components/button-group/button-group.stories-data.d.ts +0 -6
- package/dist/components/button-group/button-group.stories.d.ts +0 -9
- package/dist/components/card/card.d.ts +0 -10
- package/dist/components/card/card.stories.d.ts +0 -8
- package/dist/components/check-box/check-box.d.ts +0 -19
- package/dist/components/check-box/check-box.stories.d.ts +0 -6
- package/dist/components/color/color.stories-data.d.ts +0 -9
- package/dist/components/dialog/dialog.d.ts +0 -17
- package/dist/components/divider/divider.d.ts +0 -9
- package/dist/components/divider/divider.stories.d.ts +0 -7
- package/dist/components/drawer/drawer-resize-wrapper.d.ts +0 -3
- package/dist/components/drawer/drawer-tabs.d.ts +0 -3
- package/dist/components/drawer/drawer.constants.d.ts +0 -2
- package/dist/components/drawer/drawer.d.ts +0 -3
- package/dist/components/drawer/drawer.interface.d.ts +0 -55
- package/dist/components/drawer/drawer.stories.d.ts +0 -41
- package/dist/components/empty/empty.d.ts +0 -8
- package/dist/components/empty/empty.stories.d.ts +0 -5
- package/dist/components/file-input/enum.d.ts +0 -6
- package/dist/components/file-input/file-input.d.ts +0 -18
- package/dist/components/file-input/file-input.stories.d.ts +0 -8
- package/dist/components/form/field.d.ts +0 -16
- package/dist/components/form/field.stories.d.ts +0 -13
- package/dist/components/form/form.stories.d.ts +0 -27
- package/dist/components/heading/heading.d.ts +0 -19
- package/dist/components/heading/heading.stories.d.ts +0 -10
- package/dist/components/help-icon/help-icon.d.ts +0 -10
- package/dist/components/help-icon/help-icon.stories.d.ts +0 -11
- package/dist/components/icon/icon.d.ts +0 -16
- package/dist/components/icon/icon.stories.d.ts +0 -26
- package/dist/components/icon/named-icon.d.ts +0 -7
- package/dist/components/input/input.d.ts +0 -26
- package/dist/components/input/input.stories.d.ts +0 -5
- package/dist/components/input-group/input-group-addon/input-group-addon.d.ts +0 -8
- package/dist/components/input-group/input-group.d.ts +0 -7
- package/dist/components/input-group/input-group.stories.d.ts +0 -8
- package/dist/components/label/label.d.ts +0 -24
- package/dist/components/label/label.stories.d.ts +0 -10
- package/dist/components/layout/column/column.d.ts +0 -18
- package/dist/components/layout/column/styles.d.ts +0 -15
- package/dist/components/layout/column.stories.d.ts +0 -20
- package/dist/components/layout/flex/flex.d.ts +0 -11
- package/dist/components/layout/flex/flex.stories.d.ts +0 -10
- package/dist/components/layout/form-row/form-row.d.ts +0 -5
- package/dist/components/layout/grid/grid.d.ts +0 -11
- package/dist/components/layout/grid/grid.stories.d.ts +0 -9
- package/dist/components/layout/page/page.d.ts +0 -9
- package/dist/components/layout/page.stories.d.ts +0 -10
- package/dist/components/layout/placeholder.d.ts +0 -1
- package/dist/components/layout/print-header/print-header.d.ts +0 -8
- package/dist/components/layout/row/row.d.ts +0 -15
- package/dist/components/layout/spacer/spacer.d.ts +0 -7
- package/dist/components/list/list-row/item-content.d.ts +0 -3
- package/dist/components/list/list-row/label.d.ts +0 -3
- package/dist/components/list/list-row/list-heading.d.ts +0 -3
- package/dist/components/list/list-row/list-row.d.ts +0 -3
- package/dist/components/list/list-row/list-row.interface.d.ts +0 -105
- package/dist/components/list/list-row/list-subheading.d.ts +0 -3
- package/dist/components/list/list-row/meta-content.d.ts +0 -3
- package/dist/components/list/list-row/meta-count.d.ts +0 -3
- package/dist/components/list/list-row/name.d.ts +0 -4
- package/dist/components/list/list.d.ts +0 -3
- package/dist/components/list/list.interface.d.ts +0 -55
- package/dist/components/list/list.stories-data.d.ts +0 -310
- package/dist/components/list/list.stories.d.ts +0 -23
- package/dist/components/list/toggle-narrow.d.ts +0 -3
- package/dist/components/loader/loader.d.ts +0 -14
- package/dist/components/loader/loader.stories.d.ts +0 -33
- package/dist/components/menu/enum.d.ts +0 -11
- package/dist/components/menu/index.d.ts +0 -4
- package/dist/components/menu/layer/divider.d.ts +0 -2
- package/dist/components/menu/layer/heading.d.ts +0 -8
- package/dist/components/menu/layer/layer.d.ts +0 -15
- package/dist/components/menu/layer/option.d.ts +0 -19
- package/dist/components/menu/layer/path.d.ts +0 -5
- package/dist/components/menu/layer/placementOptions.d.ts +0 -3
- package/dist/components/menu/layer/section.d.ts +0 -11
- package/dist/components/menu/menu.d.ts +0 -4
- package/dist/components/menu/menu.interface.d.ts +0 -82
- package/dist/components/menu/menu.stories-data.d.ts +0 -101
- package/dist/components/menu/menu.stories.d.ts +0 -31
- package/dist/components/menu/menu.test.d.ts +0 -1
- package/dist/components/menu/trigger/button.d.ts +0 -15
- package/dist/components/menu/trigger/component.d.ts +0 -8
- package/dist/components/menu/trigger/text.d.ts +0 -11
- package/dist/components/menu/trigger/trigger.d.ts +0 -27
- package/dist/components/message/dismiss.d.ts +0 -8
- package/dist/components/message/enum.d.ts +0 -9
- package/dist/components/message/message.d.ts +0 -19
- package/dist/components/message/message.stories.d.ts +0 -11
- package/dist/components/modal/modal.d.ts +0 -8
- package/dist/components/modal/modal.stories.d.ts +0 -12
- package/dist/components/number-input/number-input.d.ts +0 -26
- package/dist/components/number-input/number-input.stories.d.ts +0 -14
- package/dist/components/option-dropdown/enum.d.ts +0 -5
- package/dist/components/option-dropdown/heading.d.ts +0 -5
- package/dist/components/option-dropdown/layer.d.ts +0 -16
- package/dist/components/option-dropdown/option-dropdown.d.ts +0 -19
- package/dist/components/option-dropdown/option-dropdown.stories.d.ts +0 -5
- package/dist/components/option-dropdown/option.d.ts +0 -10
- package/dist/components/pagination/pagination.d.ts +0 -14
- package/dist/components/pagination/pagination.interface.d.ts +0 -15
- package/dist/components/pagination/pagination.stories.d.ts +0 -8
- package/dist/components/pagination/pagination.test.d.ts +0 -1
- package/dist/components/pagination/pagination.viewdata.d.ts +0 -17
- package/dist/components/pop-confirm/content.d.ts +0 -10
- package/dist/components/pop-confirm/pop-confirm.d.ts +0 -14
- package/dist/components/pop-confirm/pop-confirm.stories.d.ts +0 -4
- package/dist/components/popover/popover.d.ts +0 -14
- package/dist/components/popover/popover.stories.d.ts +0 -7
- package/dist/components/portal/portal.d.ts +0 -6
- package/dist/components/portal/portal.stories.d.ts +0 -7
- package/dist/components/progress-bar/progress-bar.d.ts +0 -10
- package/dist/components/progress-bar/progress-bar.stories.d.ts +0 -4
- package/dist/components/radio-button/radio-button.d.ts +0 -27
- package/dist/components/radio-button/radio-button.stories.d.ts +0 -5
- package/dist/components/radio-button/radio-input.d.ts +0 -16
- package/dist/components/rich-text-input/rich-text-input.d.ts +0 -9
- package/dist/components/rich-text-input/rich-text-input.stories.d.ts +0 -10
- package/dist/components/rich-text-input/rich-text-toolbar/enum.d.ts +0 -7
- package/dist/components/rich-text-input/rich-text-toolbar/rich-text-toolbar.d.ts +0 -6
- package/dist/components/select/custom-select/custom-select.d.ts +0 -3
- package/dist/components/select/custom-select/custom-select.interface.d.ts +0 -47
- package/dist/components/select/custom-select/custom-select.reducer.d.ts +0 -6
- package/dist/components/select/custom-select/enum.d.ts +0 -11
- package/dist/components/select/custom-select/helper.d.ts +0 -3
- package/dist/components/select/custom-select/hooks/enum.d.ts +0 -20
- package/dist/components/select/custom-select/hooks/use-custom-select-logic.d.ts +0 -39
- package/dist/components/select/custom-select/layer/heading.d.ts +0 -4
- package/dist/components/select/custom-select/layer/layer.d.ts +0 -17
- package/dist/components/select/custom-select/layer/option.d.ts +0 -15
- package/dist/components/select/custom-select/layer/placementOptions.d.ts +0 -10
- package/dist/components/select/custom-select/layer/section.d.ts +0 -15
- package/dist/components/select/custom-select/reducer.interface.d.ts +0 -34
- package/dist/components/select/custom-select/trigger/input.d.ts +0 -14
- package/dist/components/select/custom-select/trigger/multi-selected-options.d.ts +0 -9
- package/dist/components/select/custom-select/trigger/trigger.d.ts +0 -34
- package/dist/components/select/native-select/native-select.d.ts +0 -29
- package/dist/components/select/select.d.ts +0 -3
- package/dist/components/select/select.input.d.ts +0 -21
- package/dist/components/select/select.interface.d.ts +0 -39
- package/dist/components/select/select.stories-data.d.ts +0 -25
- package/dist/components/select/select.stories.d.ts +0 -30
- package/dist/components/select/select.test.d.ts +0 -1
- package/dist/components/side-bar/link.d.ts +0 -17
- package/dist/components/side-bar/sections.d.ts +0 -21
- package/dist/components/side-bar/side-bar.d.ts +0 -26
- package/dist/components/side-bar/side-bar.stories.d.ts +0 -5
- package/dist/components/slider/slider-tooltip.d.ts +0 -5
- package/dist/components/slider/slider.d.ts +0 -36
- package/dist/components/slider/slider.stories.d.ts +0 -16
- package/dist/components/spinner/spinner.d.ts +0 -8
- package/dist/components/spinner/spinner.stories.d.ts +0 -4
- package/dist/components/table/cell/cell-types/action-cell.d.ts +0 -6
- package/dist/components/table/cell/cell-types/cell-help-icon.d.ts +0 -6
- package/dist/components/table/cell/cell-types/cell-library-icon.d.ts +0 -6
- package/dist/components/table/cell/cell-types/cell-types.interface.d.ts +0 -150
- package/dist/components/table/cell/cell-types/check-box-cell.d.ts +0 -8
- package/dist/components/table/cell/cell-types/icon-cell.d.ts +0 -6
- package/dist/components/table/cell/cell-types/input-cell.d.ts +0 -9
- package/dist/components/table/cell/cell-types/link-cell.d.ts +0 -8
- package/dist/components/table/cell/cell-types/number-input-cell.d.ts +0 -8
- package/dist/components/table/cell/cell-types/popover-cell.d.ts +0 -7
- package/dist/components/table/cell/cell-types/select-cell.d.ts +0 -9
- package/dist/components/table/cell/cell-types/slider-cell.d.ts +0 -7
- package/dist/components/table/cell/cell-types/sort-cell.d.ts +0 -6
- package/dist/components/table/cell/cell-types/static-cell.d.ts +0 -8
- package/dist/components/table/cell/cell-wrapper.d.ts +0 -9
- package/dist/components/table/cell/cell.d.ts +0 -13
- package/dist/components/table/cell/cell.stories.d.ts +0 -22
- package/dist/components/table/cell/input-cell-wrapper.d.ts +0 -8
- package/dist/components/table/enum.d.ts +0 -9
- package/dist/components/table/footer/footer.d.ts +0 -10
- package/dist/components/table/footer/footer.stories.d.ts +0 -3
- package/dist/components/table/helper.d.ts +0 -22
- package/dist/components/table/helper.test.d.ts +0 -1
- package/dist/components/table/row/expanded-content-row.d.ts +0 -7
- package/dist/components/table/row/row.d.ts +0 -37
- package/dist/components/table/row/row.stories.d.ts +0 -9
- package/dist/components/table/table-scroll-wrapper.d.ts +0 -13
- package/dist/components/table/table.d.ts +0 -34
- package/dist/components/table/table.stories-data.d.ts +0 -1971
- package/dist/components/table/table.stories.d.ts +0 -18
- package/dist/components/table/table.test.d.ts +0 -1
- package/dist/components/table/table.viewdata.d.ts +0 -16
- package/dist/components/table/title/title.d.ts +0 -8
- package/dist/components/table/title/title.stories.d.ts +0 -11
- package/dist/components/tabs/content.d.ts +0 -7
- package/dist/components/tabs/label.d.ts +0 -14
- package/dist/components/tabs/tabs.d.ts +0 -33
- package/dist/components/tabs/tabs.stories.d.ts +0 -11
- package/dist/components/text/text.d.ts +0 -15
- package/dist/components/text/text.stories.d.ts +0 -6
- package/dist/components/text-link/text-link.d.ts +0 -9
- package/dist/components/text-link/text-link.stories.d.ts +0 -5
- package/dist/components/textarea/textarea.d.ts +0 -22
- package/dist/components/textarea/textarea.stories.d.ts +0 -4
- package/dist/components/toaster/toaster.d.ts +0 -18
- package/dist/components/toaster/toaster.stories.d.ts +0 -16
- package/dist/components/toggle/toggle.d.ts +0 -14
- package/dist/components/toggle/toggle.stories.d.ts +0 -10
- package/dist/components/tooltip/tooltip-layer.d.ts +0 -16
- package/dist/components/tooltip/tooltip.d.ts +0 -19
- package/dist/components/tooltip/tooltip.stories.d.ts +0 -11
- package/dist/components/tooltip/tooltip.test-case.stories.d.ts +0 -4
- package/dist/components/top-bar/element/element.d.ts +0 -32
- package/dist/components/top-bar/element/enum.d.ts +0 -6
- package/dist/components/top-bar/element/link.d.ts +0 -11
- package/dist/components/top-bar/title.d.ts +0 -9
- package/dist/components/top-bar/top-bar.d.ts +0 -12
- package/dist/components/top-bar/top-bar.stories.d.ts +0 -6
- package/dist/components/top-bar/top-bar.testcase.stories.d.ts +0 -5
- package/dist/components/top-bar/warning.d.ts +0 -5
- package/dist/components/tree/tree-item.d.ts +0 -11
- package/dist/components/tree/tree-placeholder.d.ts +0 -5
- package/dist/components/tree/tree.d.ts +0 -42
- package/dist/components/tree/tree.stories-data.d.ts +0 -126
- package/dist/components/tree/tree.stories.d.ts +0 -12
- package/dist/helpers/disabled-context.d.ts +0 -2
- package/dist/helpers/text.d.ts +0 -1
- package/dist/helpers/types.d.ts +0 -3
- package/dist/hooks/index.d.ts +0 -4
- package/dist/hooks/use-focus.d.ts +0 -4
- package/dist/hooks/use-fonts-ready.d.ts +0 -1
- package/dist/hooks/use-keyboard-event.d.ts +0 -2
- package/dist/hooks/use-window-width.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,78 +1,1466 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export {
|
|
40
|
-
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export
|
|
56
|
-
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
|
|
70
|
-
export {
|
|
71
|
-
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { DependencyList } from 'react';
|
|
4
|
+
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
5
|
+
import { Id } from 'react-toastify';
|
|
6
|
+
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
7
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
8
|
+
import { MouseEventHandler } from 'react';
|
|
9
|
+
import { MutableRefObject } from 'react';
|
|
10
|
+
import { Placement } from 'react-laag';
|
|
11
|
+
import { default as React_2 } from 'react';
|
|
12
|
+
import { ReactElement } from 'react';
|
|
13
|
+
import { ReactNode } from 'react';
|
|
14
|
+
import { ReactPortal } from 'react';
|
|
15
|
+
import { RefObject } from 'react';
|
|
16
|
+
import { ToastContainer as Toaster } from 'react-toastify';
|
|
17
|
+
|
|
18
|
+
export declare const Accordion: ({ heading, expanded, managed, bordered, padding, children, onClick, squareBottom, testId, }: IAccordionProps) => React_2.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export declare const AccordionWithDefaultToggle: ({ heading, toggleLabel, onClickDefaultToggle, expanded, defaultEnabled, padding, children, }: IAccordionWithDefaultToggleProps) => React_2.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export declare const Actions: (props: IActionProps) => React_2.JSX.Element;
|
|
23
|
+
|
|
24
|
+
export declare enum Align {
|
|
25
|
+
LEFT = "left",
|
|
26
|
+
RIGHT = "right",
|
|
27
|
+
CENTER = "center"
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare const Badge: ({ children, color, title, dot, margin, small, }: IBadgeProps) => React_2.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare type BaseElementProps = {
|
|
33
|
+
label?: string;
|
|
34
|
+
icon?: ReactNode;
|
|
35
|
+
onClick?: () => void;
|
|
36
|
+
testId?: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export declare const Breadcrumb: ({ links, small }: IBreadcrumbProps) => React_2.JSX.Element;
|
|
40
|
+
|
|
41
|
+
export declare enum BreadcrumbLinkType {
|
|
42
|
+
LABEL = "label",
|
|
43
|
+
LINK = "link",
|
|
44
|
+
CUSTOM = "custom"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, }: IButtonProps) => React_2.JSX.Element;
|
|
48
|
+
|
|
49
|
+
declare type ButtonElement = BaseElementProps & {
|
|
50
|
+
type: TopBarElementType.BUTTON;
|
|
51
|
+
colored?: boolean;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export declare const ButtonGroup: (props: IButtonGroupProps) => React_2.JSX.Element;
|
|
56
|
+
|
|
57
|
+
export declare enum ButtonPosition {
|
|
58
|
+
TOP = "top",
|
|
59
|
+
BOTTOM = "bottom"
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export declare enum ButtonType {
|
|
63
|
+
SUBMIT = "submit",
|
|
64
|
+
BUTTON = "button",
|
|
65
|
+
RESET = "reset"
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare const Card: ({ bordered, heading, children, margin, padding, raised, }: ICardProps) => React_2.JSX.Element;
|
|
69
|
+
|
|
70
|
+
export declare const CheckBox: ({ noMargin, dataix, isInTable, tabIndex, checked, name, key, label, disabled, small, onChange, testId, value, helpText, onClickHelp, }: ICheckBoxProps) => React_2.JSX.Element;
|
|
71
|
+
|
|
72
|
+
export declare enum Color {
|
|
73
|
+
DANGER = "danger",
|
|
74
|
+
RED = "red",
|
|
75
|
+
WHITE = "white",
|
|
76
|
+
SUCCESS = "success",
|
|
77
|
+
GREEN = "green",
|
|
78
|
+
MUTED = "muted"
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export declare const Column: ({ background, borderLeft, borderRight, children, flex, flexbox, padding, scroll, showScrollbar, spacing, width, widthMobile, widthTablet, testId, }: ILayoutColumnProps) => React_2.JSX.Element;
|
|
82
|
+
|
|
83
|
+
declare type ComponentElement = {
|
|
84
|
+
type: TopBarElementType.COMPONENT;
|
|
85
|
+
component: ReactNode;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare const Dialog: ({ dialog }: IDialogProps) => React_2.JSX.Element;
|
|
89
|
+
|
|
90
|
+
export declare const DisabledContext: React_2.Context<boolean>;
|
|
91
|
+
|
|
92
|
+
export declare const Divider: ({ children, margin, color, align, }: IDividerProps) => React_2.JSX.Element;
|
|
93
|
+
|
|
94
|
+
export declare const Drawer: ({ background, fixed, open: openProp, setOpen: setOpenProp, right, width, closedWidth, shadow, top, button, buttonAnimate, buttonPosition, border, children, tabs, defaultTabIndex, activeTab: activeTabProp, setActiveTab: setActiveTabProp, testId, onResize, getActiveTab, onClose, onOpen, }: IDrawerProps) => React_2.JSX.Element;
|
|
95
|
+
|
|
96
|
+
export declare const Empty: ({ width, height, text, children, }: IEmptyProps) => React_2.JSX.Element;
|
|
97
|
+
|
|
98
|
+
export declare const Field: ({ label, labelLeft, labelWidth, children, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, testId, }: IFieldProps) => React_2.JSX.Element;
|
|
99
|
+
|
|
100
|
+
export declare const FileInput: ({ label, loading, placeholder, disabled, file, accept, multi, name, width, onChange, testId, }: IFileInputProps) => ReactElement;
|
|
101
|
+
|
|
102
|
+
declare type FileReaderMethod = InputReaderMethods;
|
|
103
|
+
|
|
104
|
+
export declare const Flex: ({ alignItems, justifyContent, direction, height, children, wrap, gap, }: ILayoutFlexProps) => React_2.JSX.Element;
|
|
105
|
+
|
|
106
|
+
export declare const FormRow: ({ children }: ILayoutFormRowProps) => React_2.JSX.Element;
|
|
107
|
+
|
|
108
|
+
export declare const Grid: ({ rows, columns, columnsTablet, columnsMobile, gap, height, children, }: ILayoutGridProps) => React_2.JSX.Element;
|
|
109
|
+
|
|
110
|
+
export declare enum GroupOrder {
|
|
111
|
+
FIRST = "first",
|
|
112
|
+
MIDDLE = "middle",
|
|
113
|
+
LAST = "last"
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare const Heading: ({ children, helpText, onClick, onClickHelp, onIconClick, icon, libraryIcon, marginBottom, top, testId, }: IHeadingProps) => React_2.JSX.Element;
|
|
117
|
+
|
|
118
|
+
export declare const HelpIcon: ({ text, onClick, icon, active, maxWidth, testId, }: IHelpIconProps) => React_2.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare interface IAccordionBaseProps {
|
|
121
|
+
heading: ReactNode;
|
|
122
|
+
expanded?: boolean;
|
|
123
|
+
bordered?: boolean;
|
|
124
|
+
padding?: boolean;
|
|
125
|
+
children?: ReactNode;
|
|
126
|
+
squareBottom?: boolean;
|
|
127
|
+
onClick?: () => void;
|
|
128
|
+
testId?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare interface IAccordionProps extends IAccordionBaseProps {
|
|
132
|
+
managed?: boolean;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare interface IAccordionWithDefaultToggleProps {
|
|
136
|
+
heading: ReactNode;
|
|
137
|
+
toggleLabel: string;
|
|
138
|
+
expanded?: boolean;
|
|
139
|
+
defaultEnabled?: boolean;
|
|
140
|
+
onClickDefaultToggle?: (evt: ChangeEvent<HTMLInputElement>) => void;
|
|
141
|
+
padding?: boolean;
|
|
142
|
+
children?: ReactNode;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare interface IAction {
|
|
146
|
+
label?: string;
|
|
147
|
+
childComponent?: ReactNode;
|
|
148
|
+
subActions?: ISubAction[];
|
|
149
|
+
primary?: boolean;
|
|
150
|
+
icon?: ReactNode;
|
|
151
|
+
testId?: string;
|
|
152
|
+
hidden?: boolean;
|
|
153
|
+
disabled?: boolean;
|
|
154
|
+
onClick?: (evt: React_2.MouseEvent, id?: string | number) => void;
|
|
155
|
+
tooltip?: ReactNode | string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare interface IActionProps {
|
|
159
|
+
actions: IAction[];
|
|
160
|
+
closeLayer?: () => void;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
declare interface IBadgeProps {
|
|
164
|
+
children?: ReactNode;
|
|
165
|
+
color?: string;
|
|
166
|
+
title?: string | number | null;
|
|
167
|
+
dot?: boolean;
|
|
168
|
+
margin?: string | number | null;
|
|
169
|
+
small?: boolean;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare interface IBreadcrumbProps {
|
|
173
|
+
links: ILinkProps[];
|
|
174
|
+
small?: boolean;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare interface IBtnGroupItemProps {
|
|
178
|
+
label: string;
|
|
179
|
+
value: string;
|
|
180
|
+
key?: string | number;
|
|
181
|
+
hidden?: boolean;
|
|
182
|
+
icon?: any;
|
|
183
|
+
error?: any;
|
|
184
|
+
maxTooltipWidth?: any;
|
|
185
|
+
testId?: string;
|
|
186
|
+
tooltip?: any;
|
|
187
|
+
warning?: any;
|
|
188
|
+
disabled?: boolean;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare interface IButtonGroupProps {
|
|
192
|
+
disabled?: boolean;
|
|
193
|
+
basic?: boolean;
|
|
194
|
+
items?: (string[] | IBtnGroupItemProps)[];
|
|
195
|
+
header?: string;
|
|
196
|
+
onSelected?: (key: string | number, value: string, label: string) => void;
|
|
197
|
+
small?: boolean;
|
|
198
|
+
value?: string | number;
|
|
199
|
+
testId?: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare interface IButtonProps {
|
|
203
|
+
active?: boolean;
|
|
204
|
+
basic?: boolean;
|
|
205
|
+
colored?: boolean | string;
|
|
206
|
+
disabled?: boolean;
|
|
207
|
+
groupOrder?: string | null;
|
|
208
|
+
icon?: ReactNode | string;
|
|
209
|
+
label?: ReactNode | string;
|
|
210
|
+
loading?: boolean;
|
|
211
|
+
name?: string;
|
|
212
|
+
onClick?: (evt: MouseEvent_2<HTMLButtonElement>) => void;
|
|
213
|
+
pill?: boolean;
|
|
214
|
+
round?: boolean;
|
|
215
|
+
small?: boolean;
|
|
216
|
+
styles?: string;
|
|
217
|
+
width?: string | number;
|
|
218
|
+
title?: string;
|
|
219
|
+
type?: ButtonType;
|
|
220
|
+
error?: string;
|
|
221
|
+
warning?: string;
|
|
222
|
+
testId?: string;
|
|
223
|
+
tooltip?: ReactNode | string;
|
|
224
|
+
inverted?: boolean;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
declare interface ICardProps {
|
|
228
|
+
bordered?: boolean;
|
|
229
|
+
heading?: ReactNode;
|
|
230
|
+
margin?: string;
|
|
231
|
+
padding?: boolean;
|
|
232
|
+
raised?: boolean;
|
|
233
|
+
children?: ReactNode;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
declare interface ICheckBoxProps {
|
|
237
|
+
checked?: boolean;
|
|
238
|
+
isInTable?: boolean;
|
|
239
|
+
label?: string;
|
|
240
|
+
name?: string;
|
|
241
|
+
noMargin?: boolean;
|
|
242
|
+
onChange: (evt: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
243
|
+
tabIndex?: number;
|
|
244
|
+
disabled?: boolean;
|
|
245
|
+
small?: boolean;
|
|
246
|
+
testId?: string;
|
|
247
|
+
key?: string;
|
|
248
|
+
dataix?: number;
|
|
249
|
+
value?: string;
|
|
250
|
+
helpText?: string;
|
|
251
|
+
onClickHelp?: () => void;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Icon wrapper component to support different icon formats:
|
|
256
|
+
* - string names (default recommendation)
|
|
257
|
+
* - react-icons
|
|
258
|
+
* - SVG (for special cases)
|
|
259
|
+
*/
|
|
260
|
+
export declare const Icon: ({ icon, onClick, clickable, color, size, testId, }: IconProps) => React_2.JSX.Element;
|
|
261
|
+
|
|
262
|
+
declare interface IconProps {
|
|
263
|
+
icon: ReactNode | string;
|
|
264
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
265
|
+
clickable?: boolean;
|
|
266
|
+
color?: string;
|
|
267
|
+
size?: string | number;
|
|
268
|
+
testId?: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export declare enum IconType {
|
|
272
|
+
LIBRARY = "library",
|
|
273
|
+
ADD = "add",
|
|
274
|
+
DRAG = "drag",
|
|
275
|
+
DRAG_HORIZONTAL = "drag horizontal",
|
|
276
|
+
HELP = "help",
|
|
277
|
+
NOTIFICATION = "notification",
|
|
278
|
+
MENU = "menu",
|
|
279
|
+
EDIT = "edit",
|
|
280
|
+
FAST_FORWARD = "fast forward",
|
|
281
|
+
INDENT = "indent",
|
|
282
|
+
STAR = "star",
|
|
283
|
+
LIST = "list",
|
|
284
|
+
SETTINGS = "settings",
|
|
285
|
+
CHECK = "check",
|
|
286
|
+
LOCK = "lock",
|
|
287
|
+
UNLOCK = "unlock",
|
|
288
|
+
CLOSE = "close",
|
|
289
|
+
SUCCESS = "success",
|
|
290
|
+
WARNING = "warning",
|
|
291
|
+
ERROR = "error",
|
|
292
|
+
INFO = "info",
|
|
293
|
+
LEFT = "left",
|
|
294
|
+
COLLAPSE = "collapse",
|
|
295
|
+
EXPAND = "expand",
|
|
296
|
+
SORT_ASCENDING = "sort ascending",
|
|
297
|
+
SORT_DESCENDING = "sort descending",
|
|
298
|
+
FAST_BACKWARD = "fast backward",
|
|
299
|
+
CHEVRON_DOWN = "chevron down",
|
|
300
|
+
CHEVRON_RIGHT = "chevron right",
|
|
301
|
+
CHEVRON_LEFT = "chevron left",
|
|
302
|
+
CHEVRON_DOUBLE_LEFT = "chevron double left",
|
|
303
|
+
CHEVRON_DOUBLE_RIGHT = "chevron double right"
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
declare interface IDialog {
|
|
307
|
+
heading?: string;
|
|
308
|
+
content?: ReactNode | string[];
|
|
309
|
+
contentPadding?: number | string;
|
|
310
|
+
footer?: ReactNode;
|
|
311
|
+
width?: number | string;
|
|
312
|
+
height?: number | string;
|
|
313
|
+
bordered?: boolean;
|
|
314
|
+
onClose?: () => void;
|
|
315
|
+
scroll?: boolean;
|
|
316
|
+
testId?: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
declare interface IDialogProps {
|
|
320
|
+
dialog: IDialog;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare interface IDividerProps {
|
|
324
|
+
margin?: number | string;
|
|
325
|
+
color?: string;
|
|
326
|
+
align?: Align;
|
|
327
|
+
children?: React_2.ReactNode;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare interface IDrawerProps {
|
|
331
|
+
background?: string;
|
|
332
|
+
children?: ReactNode;
|
|
333
|
+
fixed?: boolean;
|
|
334
|
+
open?: boolean;
|
|
335
|
+
setOpen?: (openState: boolean) => void;
|
|
336
|
+
right?: boolean;
|
|
337
|
+
shadow?: boolean;
|
|
338
|
+
top?: string | number;
|
|
339
|
+
width?: string | number | Array<string | number>;
|
|
340
|
+
closedWidth?: string | number;
|
|
341
|
+
button?: boolean | ReactNode;
|
|
342
|
+
buttonAnimate?: boolean;
|
|
343
|
+
buttonPosition?: ButtonPosition;
|
|
344
|
+
border?: boolean | string;
|
|
345
|
+
tabs?: IDrawerTab[];
|
|
346
|
+
defaultTabIndex?: number;
|
|
347
|
+
activeTab?: number;
|
|
348
|
+
setActiveTab?: (index: number) => void;
|
|
349
|
+
testId?: string;
|
|
350
|
+
onResize?: (width: number | string | (number | string)[]) => void;
|
|
351
|
+
getActiveTab?: (tab: IDrawerTab) => void;
|
|
352
|
+
onClose?: (tab?: IDrawerTab) => any;
|
|
353
|
+
onOpen?: (tab?: IDrawerTab) => any;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare interface IDrawerTab {
|
|
357
|
+
icon?: ReactNode | React_2.JSX.Element;
|
|
358
|
+
content?: ReactNode;
|
|
359
|
+
badge?: string | number;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
declare interface IEmptyProps {
|
|
363
|
+
width?: string | number;
|
|
364
|
+
height?: string | number;
|
|
365
|
+
text?: string | ReactNode;
|
|
366
|
+
children?: ReactNode;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
declare interface IFieldProps {
|
|
370
|
+
label?: string | number | ReactNode;
|
|
371
|
+
labelLeft?: boolean;
|
|
372
|
+
labelWidth?: string | number;
|
|
373
|
+
children: ReactNode;
|
|
374
|
+
helpText?: string | number | ReactNode;
|
|
375
|
+
helpTextMaxWidth?: string | number;
|
|
376
|
+
onClickHelp?: (event?: MouseEvent_2<HTMLDivElement>) => void;
|
|
377
|
+
lock?: ILabelLockProps;
|
|
378
|
+
info?: string;
|
|
379
|
+
libraryIcon?: ILabelIcon;
|
|
380
|
+
testId?: string;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
declare interface IFileInputProps {
|
|
384
|
+
label?: string;
|
|
385
|
+
loading?: boolean;
|
|
386
|
+
placeholder?: string;
|
|
387
|
+
disabled?: boolean;
|
|
388
|
+
file?: File;
|
|
389
|
+
accept?: string;
|
|
390
|
+
multi?: boolean;
|
|
391
|
+
name?: string;
|
|
392
|
+
width?: string | number;
|
|
393
|
+
onChange?: (event: any) => void;
|
|
394
|
+
testId?: string;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
declare interface IFooterProps {
|
|
398
|
+
colSpan?: number;
|
|
399
|
+
pagination: IPagination;
|
|
400
|
+
actions?: IAction[];
|
|
401
|
+
content?: ReactNode;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
declare interface IHeadingProps {
|
|
405
|
+
children: ReactNode;
|
|
406
|
+
helpText?: string;
|
|
407
|
+
onClick?: (evt: MouseEvent_2<HTMLDivElement>) => void;
|
|
408
|
+
onClickHelp?: () => void;
|
|
409
|
+
onIconClick?: () => void;
|
|
410
|
+
icon?: ReactNode;
|
|
411
|
+
libraryIcon?: ILibraryIconProps;
|
|
412
|
+
marginBottom?: string | number;
|
|
413
|
+
top?: boolean;
|
|
414
|
+
testId?: string;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare interface IHelpIconProps {
|
|
418
|
+
text?: string | number | ReactNode;
|
|
419
|
+
onClick?: (event?: MouseEvent_2<HTMLDivElement>) => void;
|
|
420
|
+
icon?: ReactNode;
|
|
421
|
+
active?: boolean;
|
|
422
|
+
maxWidth?: string | number;
|
|
423
|
+
testId?: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare interface IInputGroupAddonProps {
|
|
427
|
+
children: ReactNode;
|
|
428
|
+
groupOrder?: GroupOrder | null;
|
|
429
|
+
small?: boolean;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
declare interface IInputGroupProps {
|
|
433
|
+
children: ReactNode;
|
|
434
|
+
small?: boolean;
|
|
435
|
+
width?: string | number;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare interface IInputProps {
|
|
439
|
+
error?: string | number | React_2.ReactNode;
|
|
440
|
+
warning?: string | number | React_2.ReactNode;
|
|
441
|
+
tooltip?: string | number | React_2.ReactNode;
|
|
442
|
+
name?: string;
|
|
443
|
+
type?: string;
|
|
444
|
+
onChange?: React_2.ChangeEventHandler<HTMLInputElement>;
|
|
445
|
+
onKeyPress?: React_2.KeyboardEventHandler<HTMLInputElement>;
|
|
446
|
+
onFocus?: React_2.FocusEventHandler<HTMLInputElement>;
|
|
447
|
+
onBlur?: React_2.FocusEventHandler<HTMLInputElement>;
|
|
448
|
+
small?: boolean;
|
|
449
|
+
placeholder?: string;
|
|
450
|
+
tabIndex?: number;
|
|
451
|
+
value?: string | number;
|
|
452
|
+
disabled?: boolean;
|
|
453
|
+
right?: boolean;
|
|
454
|
+
groupOrder?: string;
|
|
455
|
+
maxTooltipWidth?: string | number;
|
|
456
|
+
width?: string | number;
|
|
457
|
+
testId?: string;
|
|
458
|
+
size?: number;
|
|
459
|
+
isInTable?: boolean;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
declare interface ILabel {
|
|
463
|
+
color: string;
|
|
464
|
+
value: string;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
declare interface ILabelIcon {
|
|
468
|
+
onClick: () => void;
|
|
469
|
+
tooltip?: string;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
declare interface ILabelLockProps {
|
|
473
|
+
visible?: boolean;
|
|
474
|
+
active?: boolean;
|
|
475
|
+
onClick?: () => void;
|
|
476
|
+
tooltip?: string;
|
|
477
|
+
testId?: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
declare interface ILabelProps {
|
|
481
|
+
label?: string | number | ReactNode;
|
|
482
|
+
helpText?: string | number | ReactNode;
|
|
483
|
+
helpTextMaxWidth?: string | number;
|
|
484
|
+
width?: string | number;
|
|
485
|
+
info?: string;
|
|
486
|
+
onClickHelp?: (event?: MouseEvent_2<HTMLDivElement>) => void;
|
|
487
|
+
lock?: ILabelLockProps;
|
|
488
|
+
libraryIcon?: ILabelIcon;
|
|
489
|
+
labelLeft?: boolean;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
declare interface ILayoutColumnProps {
|
|
493
|
+
background?: string;
|
|
494
|
+
borderLeft?: boolean | string;
|
|
495
|
+
borderRight?: boolean | string;
|
|
496
|
+
children?: React_2.ReactNode;
|
|
497
|
+
flex?: boolean;
|
|
498
|
+
flexbox?: boolean;
|
|
499
|
+
padding?: boolean | string;
|
|
500
|
+
scroll?: boolean;
|
|
501
|
+
showScrollbar?: boolean;
|
|
502
|
+
spacing?: number | string;
|
|
503
|
+
width?: number | string;
|
|
504
|
+
widthMobile?: number | string;
|
|
505
|
+
widthTablet?: number | string;
|
|
506
|
+
testId?: string;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
declare interface ILayoutFlexProps {
|
|
510
|
+
alignItems?: string;
|
|
511
|
+
justifyContent?: string;
|
|
512
|
+
direction?: string;
|
|
513
|
+
height?: string | number;
|
|
514
|
+
children?: React_2.ReactNode;
|
|
515
|
+
wrap?: boolean;
|
|
516
|
+
gap?: boolean | string | number;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare interface ILayoutFormRowProps {
|
|
520
|
+
children?: ReactNode;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
declare interface ILayoutGridProps {
|
|
524
|
+
rows?: string;
|
|
525
|
+
columns?: string;
|
|
526
|
+
columnsTablet?: string | null;
|
|
527
|
+
columnsMobile?: string | null;
|
|
528
|
+
gap?: boolean | string | number;
|
|
529
|
+
height?: string | number;
|
|
530
|
+
children?: ReactNode;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
declare interface ILayoutPageProps {
|
|
534
|
+
children?: ReactNode;
|
|
535
|
+
padding?: boolean | string | number;
|
|
536
|
+
left?: string | number;
|
|
537
|
+
scroll?: boolean;
|
|
538
|
+
top?: string | number;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
declare interface ILayoutRowProps {
|
|
542
|
+
alignItems?: CSSProperties['alignItems'];
|
|
543
|
+
justifyContent?: CSSProperties['justifyContent'];
|
|
544
|
+
children?: ReactNode;
|
|
545
|
+
flex?: boolean;
|
|
546
|
+
height?: string | number;
|
|
547
|
+
marginBottom?: string | number;
|
|
548
|
+
marginTop?: string | number;
|
|
549
|
+
spacing?: number;
|
|
550
|
+
wrap?: boolean;
|
|
551
|
+
testId?: string | null;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
declare interface ILayoutSpacerProps {
|
|
555
|
+
height?: string | number;
|
|
556
|
+
width?: string | number | null;
|
|
557
|
+
flex?: boolean;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
declare interface ILibraryIconProps {
|
|
561
|
+
onClick: () => void;
|
|
562
|
+
tooltip?: string;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare interface ILinkProps {
|
|
566
|
+
type?: BreadcrumbLinkType;
|
|
567
|
+
label?: string | number;
|
|
568
|
+
url?: string;
|
|
569
|
+
onClick?: () => void;
|
|
570
|
+
active?: boolean;
|
|
571
|
+
disabled?: boolean;
|
|
572
|
+
element?: ReactNode;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
declare interface IListAction {
|
|
576
|
+
label: string;
|
|
577
|
+
icon?: ReactNode;
|
|
578
|
+
onClick?: () => void;
|
|
579
|
+
primary?: boolean;
|
|
580
|
+
subActions?: ISubAction_2[];
|
|
581
|
+
childComponent?: ReactNode;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare interface IListData {
|
|
585
|
+
name?: ReactNode | string;
|
|
586
|
+
actions?: IListAction[];
|
|
587
|
+
items: IListItem[];
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
declare interface IListHeadingProps {
|
|
591
|
+
name: string | number | ReactNode;
|
|
592
|
+
actions?: any[];
|
|
593
|
+
toggleNarrow?: boolean;
|
|
594
|
+
onToggleNarrow?: () => void;
|
|
595
|
+
stickyHeader?: boolean;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
declare interface IListItem {
|
|
599
|
+
name?: string | ReactElement;
|
|
600
|
+
cursor?: string;
|
|
601
|
+
url?: string;
|
|
602
|
+
active?: boolean;
|
|
603
|
+
disabled?: boolean;
|
|
604
|
+
onClick?: (evt: any) => void;
|
|
605
|
+
title?: string;
|
|
606
|
+
testId?: string;
|
|
607
|
+
level?: number;
|
|
608
|
+
label?: ILabel;
|
|
609
|
+
actions?: IAction[];
|
|
610
|
+
id: string | number;
|
|
611
|
+
type?: string;
|
|
612
|
+
metaCount?: number;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
declare interface IListProps {
|
|
616
|
+
drawer?: boolean;
|
|
617
|
+
list: IListData;
|
|
618
|
+
bordered?: boolean;
|
|
619
|
+
expanding?: boolean;
|
|
620
|
+
narrow?: boolean;
|
|
621
|
+
toggleNarrow?: boolean;
|
|
622
|
+
onToggleNarrow?: () => void;
|
|
623
|
+
invokeEditOnRowClick?: boolean;
|
|
624
|
+
noHeader?: boolean;
|
|
625
|
+
stickyHeader?: boolean;
|
|
626
|
+
draggable?: boolean;
|
|
627
|
+
onListReorder?: (args: IReorderData) => void;
|
|
628
|
+
marginBottom?: number | string;
|
|
629
|
+
height?: number | string;
|
|
630
|
+
testId?: string;
|
|
631
|
+
scrollDetails?: IScrollDetails;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
declare interface IListSubheadingItem extends Partial<IMetaContentItem> {
|
|
635
|
+
actions?: any;
|
|
636
|
+
disabled?: boolean;
|
|
637
|
+
expanded?: boolean;
|
|
638
|
+
onClick?: (evt: MouseEvent_2<HTMLDivElement>) => void;
|
|
639
|
+
title?: string;
|
|
640
|
+
testId?: string;
|
|
641
|
+
metaCount?: number;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
declare interface IListSubheadingProps {
|
|
645
|
+
item: IListSubheadingItem;
|
|
646
|
+
index?: number;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
declare interface ILoaderProps {
|
|
650
|
+
fullViewPortSize?: boolean;
|
|
651
|
+
cover?: boolean;
|
|
652
|
+
width?: string | number;
|
|
653
|
+
height?: string | number;
|
|
654
|
+
text?: string;
|
|
655
|
+
details?: string | ReactNode;
|
|
656
|
+
children?: ReactNode;
|
|
657
|
+
testId?: string | null;
|
|
658
|
+
theme?: Theme;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare interface IMenuProps {
|
|
662
|
+
menu: {
|
|
663
|
+
trigger: TriggerType;
|
|
664
|
+
title?: string;
|
|
665
|
+
colored?: boolean | string;
|
|
666
|
+
small?: boolean;
|
|
667
|
+
label?: string;
|
|
668
|
+
component?: ReactNode;
|
|
669
|
+
sections?: ReactNode | IMenuSection[];
|
|
670
|
+
placement?: string;
|
|
671
|
+
possiblePlacements?: Placement[];
|
|
672
|
+
showAllButton?: IMenuShowAllButton;
|
|
673
|
+
testId?: string;
|
|
674
|
+
fullHeightTrigger?: boolean;
|
|
675
|
+
};
|
|
676
|
+
contextMenu?: boolean;
|
|
677
|
+
width?: string | number;
|
|
678
|
+
disabled?: boolean;
|
|
679
|
+
badgeTitle?: string;
|
|
680
|
+
badgeDot?: boolean;
|
|
681
|
+
loading?: boolean;
|
|
682
|
+
fullHeightTrigger?: boolean;
|
|
683
|
+
closeOnOptionClick?: boolean;
|
|
684
|
+
groupOrder?: GroupOrder;
|
|
685
|
+
overflowContainer?: boolean;
|
|
686
|
+
maxHeight?: string | number;
|
|
687
|
+
testId?: string;
|
|
688
|
+
open?: boolean;
|
|
689
|
+
setOpen?: (state: boolean) => void;
|
|
690
|
+
closeParent?: () => void;
|
|
691
|
+
tree?: any;
|
|
692
|
+
path?: any;
|
|
693
|
+
isNested?: boolean;
|
|
694
|
+
tooltip?: any;
|
|
695
|
+
error?: any;
|
|
696
|
+
warning?: any;
|
|
697
|
+
title?: string;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
declare interface IMenuSection {
|
|
701
|
+
type: MenuType;
|
|
702
|
+
label?: string | number;
|
|
703
|
+
icon?: string | ReactNode;
|
|
704
|
+
onClick?: () => void;
|
|
705
|
+
testId?: string;
|
|
706
|
+
description?: string;
|
|
707
|
+
selected?: boolean;
|
|
708
|
+
disabled?: boolean;
|
|
709
|
+
inline?: boolean;
|
|
710
|
+
title?: string;
|
|
711
|
+
download?: boolean;
|
|
712
|
+
onChange?: () => void;
|
|
713
|
+
menu?: any;
|
|
714
|
+
visible?: boolean;
|
|
715
|
+
closeOnOptionClick?: boolean;
|
|
716
|
+
actions?: any[];
|
|
717
|
+
url?: string;
|
|
718
|
+
upload?: boolean;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
declare interface IMenuShowAllButton {
|
|
722
|
+
visible: boolean;
|
|
723
|
+
showAllTitle: string;
|
|
724
|
+
showLessTitle: string;
|
|
725
|
+
additionalSections: IMenuSection[];
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
declare interface IMessage {
|
|
729
|
+
visible?: boolean;
|
|
730
|
+
type: MessageType;
|
|
731
|
+
icon?: boolean;
|
|
732
|
+
heading?: ReactNode;
|
|
733
|
+
content: ReactNode;
|
|
734
|
+
details?: ReactNode;
|
|
735
|
+
footer?: ReactNode;
|
|
736
|
+
withDismiss?: boolean;
|
|
737
|
+
onClose?: (evt: MouseEvent_2<SVGSVGElement>) => void;
|
|
738
|
+
width?: string | number;
|
|
739
|
+
maxHeight?: string | number;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
declare interface IMessageProps {
|
|
743
|
+
message: IMessage;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
declare type IMessageType = {
|
|
747
|
+
type: MessageType;
|
|
748
|
+
icon: boolean;
|
|
749
|
+
heading: string;
|
|
750
|
+
content: string;
|
|
751
|
+
details?: string;
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
declare interface IMetaContentItem {
|
|
755
|
+
name?: string | number | ReactNode;
|
|
756
|
+
icon?: {
|
|
757
|
+
icon: ReactNode;
|
|
758
|
+
color?: string;
|
|
759
|
+
tooltip?: {
|
|
760
|
+
text: string | ReactNode;
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
details?: string | ReactNode;
|
|
764
|
+
metadata?: string | ReactNode;
|
|
765
|
+
invalid?: boolean;
|
|
766
|
+
testId?: string;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
declare interface IModalProps {
|
|
770
|
+
children: ReactNode;
|
|
771
|
+
visible?: boolean;
|
|
772
|
+
centered?: boolean;
|
|
773
|
+
width?: string | number;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export declare const Input: React_2.ForwardRefExoticComponent<IInputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
777
|
+
|
|
778
|
+
export declare const InputGroup: ({ children, small, width, }: IInputGroupProps) => ReactElement;
|
|
779
|
+
|
|
780
|
+
export declare const InputGroupAddon: ({ children, groupOrder, small, }: IInputGroupAddonProps) => React_2.ReactElement;
|
|
781
|
+
|
|
782
|
+
export declare enum InputReaderMethods {
|
|
783
|
+
READ_AS_TEXT = "readAsText",
|
|
784
|
+
READ_AS_ARRAY_BUFFER = "readAsArrayBuffer",
|
|
785
|
+
READ_AS_DATA_URL = "readAsDataURL",
|
|
786
|
+
READ_AS_BINARY_STRING = "readAsBinaryString"
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export declare enum InputType {
|
|
790
|
+
TEXT = "text",
|
|
791
|
+
RADIO = "radio",
|
|
792
|
+
CHECKBOX = "checkbox"
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
declare interface INumberInputProps {
|
|
796
|
+
name?: string | {
|
|
797
|
+
fieldName: string;
|
|
798
|
+
};
|
|
799
|
+
placeholder?: string;
|
|
800
|
+
disabled?: boolean;
|
|
801
|
+
error?: string | boolean;
|
|
802
|
+
left?: boolean;
|
|
803
|
+
small?: boolean;
|
|
804
|
+
width?: string | number;
|
|
805
|
+
value?: string | number;
|
|
806
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
807
|
+
onFocus?: (event: FocusEvent_2<HTMLInputElement>) => void;
|
|
808
|
+
tabIndex?: number;
|
|
809
|
+
testId?: string;
|
|
810
|
+
tooltip?: string | number | React_2.ReactNode;
|
|
811
|
+
warning?: string | boolean;
|
|
812
|
+
validationCallback?: (name: string | {
|
|
813
|
+
fieldName: string;
|
|
814
|
+
}, error: string | null) => void;
|
|
815
|
+
allowEmpty?: boolean;
|
|
816
|
+
isInTable?: boolean;
|
|
817
|
+
groupOrder?: any;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
declare interface IOptionDropdownProps {
|
|
821
|
+
name?: string;
|
|
822
|
+
label: string;
|
|
823
|
+
options: IOptionType[];
|
|
824
|
+
onChange: (event: ChangeEvent<HTMLInputElement & {
|
|
825
|
+
name?: string;
|
|
826
|
+
value: IOptionType[];
|
|
827
|
+
}>) => void;
|
|
828
|
+
showHeader?: boolean;
|
|
829
|
+
maxHeight?: string;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
declare interface IOptionItem {
|
|
833
|
+
label: ReactNode;
|
|
834
|
+
value: string;
|
|
835
|
+
icon: ReactNode;
|
|
836
|
+
onClick: (event: MouseEvent_2<HTMLAnchorElement, globalThis.MouseEvent>) => void;
|
|
837
|
+
isActive?: boolean;
|
|
838
|
+
isExperimental?: boolean;
|
|
839
|
+
invalid?: boolean;
|
|
840
|
+
testId?: string;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare interface IOptionSection {
|
|
844
|
+
heading: string;
|
|
845
|
+
items: IOptionItem[];
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
declare interface IOptionType {
|
|
849
|
+
label?: string;
|
|
850
|
+
value?: string | number;
|
|
851
|
+
selected?: boolean;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
declare interface IPagination {
|
|
855
|
+
rowCount: number;
|
|
856
|
+
selectedPage: string | number;
|
|
857
|
+
onSelectPage?: (value: number) => void;
|
|
858
|
+
rowsPerPage?: IPaginationPerPageType;
|
|
859
|
+
small?: boolean;
|
|
860
|
+
errorMessageTemplate?: string;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
declare interface IPaginationOptionType {
|
|
864
|
+
label?: string;
|
|
865
|
+
value?: string | number;
|
|
866
|
+
selected?: boolean;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
declare interface IPaginationPerPageType {
|
|
870
|
+
onChange?: (event: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
871
|
+
options?: IPaginationOptionType[];
|
|
872
|
+
value?: string | number;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
declare interface IPaginationProps {
|
|
876
|
+
pagination: IPagination;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
declare interface IPopConfirmProps {
|
|
880
|
+
children?: ReactNode;
|
|
881
|
+
placement?: Placement;
|
|
882
|
+
closeOnOutsideClick?: boolean;
|
|
883
|
+
fullWidth?: boolean;
|
|
884
|
+
title?: string;
|
|
885
|
+
cancelText?: string;
|
|
886
|
+
onClickCancel?: (close: () => void) => void;
|
|
887
|
+
okText?: string;
|
|
888
|
+
onClickOk?: (close: () => void) => void;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
declare interface IPopoverProps {
|
|
892
|
+
children: ReactNode;
|
|
893
|
+
content?: ReactNode;
|
|
894
|
+
placement?: Placement;
|
|
895
|
+
closeOnOutsideClick?: boolean;
|
|
896
|
+
fullWidth?: boolean;
|
|
897
|
+
showCloseButton?: boolean;
|
|
898
|
+
testId?: string;
|
|
899
|
+
disabled?: boolean;
|
|
900
|
+
overflowContainer?: boolean;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
declare interface IPortalProps {
|
|
904
|
+
id: string;
|
|
905
|
+
children: ReactNode | any;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
declare interface IProgressBarProps {
|
|
909
|
+
width?: string | number;
|
|
910
|
+
inverted?: boolean;
|
|
911
|
+
colored?: boolean;
|
|
912
|
+
showProgressColors?: boolean;
|
|
913
|
+
percentage?: number;
|
|
914
|
+
noLabel?: boolean;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
declare interface IRadioButtonOption {
|
|
918
|
+
label: string | number;
|
|
919
|
+
value: string | number;
|
|
920
|
+
testId?: string;
|
|
921
|
+
helpText?: string;
|
|
922
|
+
onClickHelp?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
923
|
+
name?: string;
|
|
924
|
+
checked?: boolean;
|
|
925
|
+
disabled?: boolean;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
declare interface IRadioButtonProps {
|
|
929
|
+
name?: string;
|
|
930
|
+
label?: string;
|
|
931
|
+
options: IRadioButtonOption[];
|
|
932
|
+
value: IRadioButtonOption;
|
|
933
|
+
inline?: boolean;
|
|
934
|
+
disabled?: boolean;
|
|
935
|
+
small?: boolean;
|
|
936
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
937
|
+
noMargin?: boolean;
|
|
938
|
+
mainLabel?: string;
|
|
939
|
+
onClick?: (target: HTMLInputElement) => void;
|
|
940
|
+
radioButtonsData?: IRadioButtonOption[];
|
|
941
|
+
classForContainer?: 'grouped fields' | 'inline fields';
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
declare interface IReorderData {
|
|
945
|
+
from?: number;
|
|
946
|
+
to?: number;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
declare interface IRichTextInputProps {
|
|
950
|
+
disabled?: boolean;
|
|
951
|
+
onChange?: (markdown: string) => void;
|
|
952
|
+
placeholder?: string;
|
|
953
|
+
value?: string;
|
|
954
|
+
toolbarComponent?: ReactNode;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
declare interface IScrollDetails {
|
|
958
|
+
scrollable?: boolean;
|
|
959
|
+
hideScrollbar?: boolean;
|
|
960
|
+
triggerScrollToActiveItem?: boolean;
|
|
961
|
+
infiniteScroll?: boolean;
|
|
962
|
+
infiniteScrollTarget?: string;
|
|
963
|
+
limit?: number;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
declare interface ISelectProps {
|
|
967
|
+
name?: string;
|
|
968
|
+
multi?: boolean;
|
|
969
|
+
options?: ISelectSelectedOption[];
|
|
970
|
+
value?: any;
|
|
971
|
+
native?: boolean;
|
|
972
|
+
onChange?: (value: any) => void;
|
|
973
|
+
deprecatedEventHandler?: boolean;
|
|
974
|
+
autoScroll?: boolean;
|
|
975
|
+
warning?: string | number | ReactNode;
|
|
976
|
+
error?: string | number | ReactNode;
|
|
977
|
+
checkNonExistentValues?: boolean;
|
|
978
|
+
closeOnOptionActionClick?: boolean;
|
|
979
|
+
small?: boolean;
|
|
980
|
+
width?: string | number | null;
|
|
981
|
+
borderRadius?: string | number;
|
|
982
|
+
onCreate?: (evt: any) => any;
|
|
983
|
+
disabled?: boolean;
|
|
984
|
+
placeholder?: string;
|
|
985
|
+
isInTable?: boolean;
|
|
986
|
+
clearable?: boolean;
|
|
987
|
+
searchable?: boolean;
|
|
988
|
+
maxTooltipWidth?: string | number;
|
|
989
|
+
autoLayerWidth?: boolean;
|
|
990
|
+
right?: boolean;
|
|
991
|
+
tabIndex?: number;
|
|
992
|
+
testId?: string;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
declare interface ISelectSelectedOption {
|
|
996
|
+
value?: string | number | boolean;
|
|
997
|
+
label?: string | ReactNode;
|
|
998
|
+
details?: string;
|
|
999
|
+
actions?: any[];
|
|
1000
|
+
icon?: boolean | ReactNode;
|
|
1001
|
+
type?: string;
|
|
1002
|
+
disabled?: boolean;
|
|
1003
|
+
testId?: string;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
declare interface ISideBarProps {
|
|
1007
|
+
options: {
|
|
1008
|
+
title: string;
|
|
1009
|
+
sections: IOptionSection[];
|
|
1010
|
+
};
|
|
1011
|
+
startOpen?: boolean;
|
|
1012
|
+
onShiftClickToggleOpen?: (event: MouseEvent_2<HTMLButtonElement, globalThis.MouseEvent>) => void;
|
|
1013
|
+
top?: string | number;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
declare interface ISliderProps {
|
|
1017
|
+
name?: string;
|
|
1018
|
+
label?: string | number | ReactNode;
|
|
1019
|
+
width?: string | number;
|
|
1020
|
+
labelWidth?: string | number;
|
|
1021
|
+
value: number | number[];
|
|
1022
|
+
min: number;
|
|
1023
|
+
max: number;
|
|
1024
|
+
step?: number;
|
|
1025
|
+
marks?: TSliderMark[];
|
|
1026
|
+
showArrows?: boolean;
|
|
1027
|
+
showTooltip?: boolean;
|
|
1028
|
+
tooltipFormatter?: (value: number | number[]) => string | number | ReactNode;
|
|
1029
|
+
disabled?: boolean;
|
|
1030
|
+
range?: boolean;
|
|
1031
|
+
small?: boolean;
|
|
1032
|
+
vertical?: {
|
|
1033
|
+
enabled: boolean;
|
|
1034
|
+
width?: string;
|
|
1035
|
+
height?: string;
|
|
1036
|
+
};
|
|
1037
|
+
onChange: (event: {
|
|
1038
|
+
target: {
|
|
1039
|
+
name?: string;
|
|
1040
|
+
value: number | number[];
|
|
1041
|
+
label?: string | number | ReactNode;
|
|
1042
|
+
};
|
|
1043
|
+
}) => void;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
declare interface ISpinnerProps {
|
|
1047
|
+
small?: boolean;
|
|
1048
|
+
colored?: boolean;
|
|
1049
|
+
dark?: boolean;
|
|
1050
|
+
tiny?: boolean;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
declare interface ISubAction {
|
|
1054
|
+
label: string | ReactNode;
|
|
1055
|
+
icon?: ReactNode;
|
|
1056
|
+
onClick: (evt: React_2.MouseEvent) => void;
|
|
1057
|
+
testId?: string;
|
|
1058
|
+
disabled?: boolean;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
declare interface ISubAction_2 {
|
|
1062
|
+
label: string;
|
|
1063
|
+
icon: ReactNode;
|
|
1064
|
+
onClick: () => void;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
declare interface ITableProps {
|
|
1068
|
+
onListReorder?: (obj: {
|
|
1069
|
+
from: number;
|
|
1070
|
+
to: number;
|
|
1071
|
+
}) => void;
|
|
1072
|
+
table: {
|
|
1073
|
+
name?: string | number | ReactNode;
|
|
1074
|
+
actionsRight?: boolean;
|
|
1075
|
+
fixedWidth?: string | number;
|
|
1076
|
+
maxHeight?: string | number;
|
|
1077
|
+
columnWidths?: string[];
|
|
1078
|
+
className?: string;
|
|
1079
|
+
columnHeaderAlignments?: Array<Align>;
|
|
1080
|
+
columnAlignment?: Array<Align>;
|
|
1081
|
+
infiniteScroll?: boolean;
|
|
1082
|
+
headers?: any[];
|
|
1083
|
+
rows?: TRowsType;
|
|
1084
|
+
footer?: IFooterProps;
|
|
1085
|
+
draggable?: boolean;
|
|
1086
|
+
bordered?: boolean;
|
|
1087
|
+
striped?: boolean;
|
|
1088
|
+
testId?: string;
|
|
1089
|
+
onAddRow?: any;
|
|
1090
|
+
defaultEmptyRow?: any;
|
|
1091
|
+
stickyHeaders?: string | boolean;
|
|
1092
|
+
actions?: any;
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
declare interface ITabOption {
|
|
1097
|
+
key?: string;
|
|
1098
|
+
label: string | number;
|
|
1099
|
+
value: string | number;
|
|
1100
|
+
url?: string;
|
|
1101
|
+
hidden?: boolean;
|
|
1102
|
+
disabled?: boolean;
|
|
1103
|
+
invalid?: boolean;
|
|
1104
|
+
badge?: string | number;
|
|
1105
|
+
right?: boolean;
|
|
1106
|
+
testId?: string;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
declare interface ITabSelectedOption {
|
|
1110
|
+
label: string | number;
|
|
1111
|
+
value: string | number;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
declare interface ITabsProps {
|
|
1115
|
+
name?: string;
|
|
1116
|
+
options?: ITabOption[] | null;
|
|
1117
|
+
children?: any;
|
|
1118
|
+
value?: ITabSelectedOption;
|
|
1119
|
+
onChange?: (event: ChangeEvent<any>) => void;
|
|
1120
|
+
padding?: boolean;
|
|
1121
|
+
margin?: boolean;
|
|
1122
|
+
contentPadding?: boolean;
|
|
1123
|
+
activeTabIndex?: number;
|
|
1124
|
+
tabs?: ITabOption[] | undefined;
|
|
1125
|
+
onChangeTab?: (index: number, value: string | number | null) => void;
|
|
1126
|
+
testId?: string;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
declare interface ITextAreaProps {
|
|
1130
|
+
name?: string;
|
|
1131
|
+
value?: string | number;
|
|
1132
|
+
placeholder?: string;
|
|
1133
|
+
cols?: number;
|
|
1134
|
+
rows?: number;
|
|
1135
|
+
disabled?: boolean;
|
|
1136
|
+
onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
1137
|
+
onKeyPress?: (event: KeyboardEvent_2<HTMLTextAreaElement>) => void;
|
|
1138
|
+
onFocus?: (event: FocusEvent_2<HTMLTextAreaElement>) => void;
|
|
1139
|
+
onBlur?: (event: FocusEvent_2<HTMLTextAreaElement>) => void;
|
|
1140
|
+
tabIndex?: number;
|
|
1141
|
+
error?: string | number | React_2.ReactNode;
|
|
1142
|
+
warning?: string | number | React_2.ReactNode;
|
|
1143
|
+
tooltip?: string | number | React_2.ReactNode;
|
|
1144
|
+
maxTooltipWidth?: string | number;
|
|
1145
|
+
resize?: any;
|
|
1146
|
+
monospace?: boolean;
|
|
1147
|
+
testId?: string;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
declare interface ITextLinkProps {
|
|
1151
|
+
href?: string;
|
|
1152
|
+
target?: string;
|
|
1153
|
+
testId?: string;
|
|
1154
|
+
onClick?: (e: React_2.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
1155
|
+
children?: React_2.ReactNode;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
declare interface ITextProps {
|
|
1159
|
+
bold?: boolean;
|
|
1160
|
+
center?: boolean;
|
|
1161
|
+
error?: boolean;
|
|
1162
|
+
faint?: boolean;
|
|
1163
|
+
link?: boolean;
|
|
1164
|
+
muted?: boolean;
|
|
1165
|
+
onClick?: (e: React_2.MouseEvent<HTMLSpanElement>) => void;
|
|
1166
|
+
small?: boolean;
|
|
1167
|
+
success?: boolean;
|
|
1168
|
+
warning?: boolean;
|
|
1169
|
+
children?: React_2.ReactNode;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
declare interface IToastProps {
|
|
1173
|
+
id?: Id;
|
|
1174
|
+
message: IMessageType;
|
|
1175
|
+
autoClose?: number;
|
|
1176
|
+
onClose?: () => void;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
declare interface IToggleProps {
|
|
1180
|
+
name?: string;
|
|
1181
|
+
label?: string | React_2.ReactElement;
|
|
1182
|
+
checked?: boolean;
|
|
1183
|
+
disabled?: boolean;
|
|
1184
|
+
small?: boolean;
|
|
1185
|
+
onChange: (event: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
1186
|
+
noMargin?: boolean;
|
|
1187
|
+
testId?: string;
|
|
1188
|
+
helpText?: string;
|
|
1189
|
+
onClickHelp?: (event: any) => void;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
declare interface ITooltipProps {
|
|
1193
|
+
text?: string | number | ReactNode;
|
|
1194
|
+
error?: boolean;
|
|
1195
|
+
warning?: boolean;
|
|
1196
|
+
placement?: Placement;
|
|
1197
|
+
possiblePlacements?: Placement[];
|
|
1198
|
+
enabled?: boolean;
|
|
1199
|
+
maxWidth?: string | number;
|
|
1200
|
+
triggerOffset?: number;
|
|
1201
|
+
fontSize?: string | number;
|
|
1202
|
+
padding?: string | number;
|
|
1203
|
+
display?: string;
|
|
1204
|
+
flex?: string;
|
|
1205
|
+
forceOpen?: boolean;
|
|
1206
|
+
children?: ReactNode;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
declare interface ITopBarProps {
|
|
1210
|
+
title?: ITopBarTitleProps;
|
|
1211
|
+
content?: TTopBarElementProps[];
|
|
1212
|
+
contentRight?: TTopBarElementProps[];
|
|
1213
|
+
warning?: string;
|
|
1214
|
+
height?: string | number;
|
|
1215
|
+
fixedPosition?: boolean;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
declare interface ITopBarTitleProps {
|
|
1219
|
+
label?: string;
|
|
1220
|
+
logo?: React_2.ReactNode;
|
|
1221
|
+
url?: string;
|
|
1222
|
+
version?: string | number;
|
|
1223
|
+
onClick?: MouseEventHandler<HTMLDivElement | HTMLAnchorElement>;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
declare interface ITreeListProps {
|
|
1227
|
+
name?: string | React_2.ReactNode;
|
|
1228
|
+
noHeader?: boolean;
|
|
1229
|
+
items: {
|
|
1230
|
+
id: string | number;
|
|
1231
|
+
name: string | React_2.ReactNode;
|
|
1232
|
+
parent: string | number;
|
|
1233
|
+
droppable?: boolean;
|
|
1234
|
+
details?: string | React_2.ReactNode;
|
|
1235
|
+
active?: boolean;
|
|
1236
|
+
testId?: string;
|
|
1237
|
+
icon?: {
|
|
1238
|
+
icon: React_2.ReactNode;
|
|
1239
|
+
color: string;
|
|
1240
|
+
tooltip?: {
|
|
1241
|
+
text: string | number | React_2.ReactNode;
|
|
1242
|
+
error?: boolean;
|
|
1243
|
+
warning?: boolean;
|
|
1244
|
+
placement?: string;
|
|
1245
|
+
enabled?: boolean;
|
|
1246
|
+
maxWidth?: string | number;
|
|
1247
|
+
triggerOffset?: string | number;
|
|
1248
|
+
possiblePlacements?: string[];
|
|
1249
|
+
fontSize?: string | number;
|
|
1250
|
+
padding?: string | number;
|
|
1251
|
+
};
|
|
1252
|
+
};
|
|
1253
|
+
}[];
|
|
1254
|
+
onClick?: () => void;
|
|
1255
|
+
actions?: any[];
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
declare interface ITreeProps {
|
|
1259
|
+
list: ITreeListProps;
|
|
1260
|
+
draggable?: boolean;
|
|
1261
|
+
onListReorder?: (newList: any[]) => void;
|
|
1262
|
+
onChangeOpen?: (id: string | number) => void;
|
|
1263
|
+
testId?: string;
|
|
1264
|
+
isInitialOpen?: boolean;
|
|
1265
|
+
treeRef?: RefObject<any>;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
export declare const Label: ({ label, width, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, labelLeft, }: ILabelProps) => React_2.JSX.Element;
|
|
1269
|
+
|
|
1270
|
+
declare type LinkElement = BaseElementProps & {
|
|
1271
|
+
type: TopBarElementType.LINK;
|
|
1272
|
+
url: string;
|
|
1273
|
+
active?: boolean;
|
|
1274
|
+
disabled?: boolean;
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
export declare const List: ({ list, bordered, expanding, narrow, toggleNarrow, onToggleNarrow, invokeEditOnRowClick, noHeader, stickyHeader, draggable, onListReorder, marginBottom, height, testId, scrollDetails, }: IListProps) => React_2.JSX.Element;
|
|
1278
|
+
|
|
1279
|
+
export declare const ListHeading: React_2.ForwardRefExoticComponent<IListHeadingProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1280
|
+
|
|
1281
|
+
export declare const ListSubheading: React_2.ForwardRefExoticComponent<IListSubheadingProps & React_2.RefAttributes<(HTMLDivElement | null)[]>>;
|
|
1282
|
+
|
|
1283
|
+
export declare const Loader: ({ width, height, text, details, fullViewPortSize, cover, children, theme, testId, }: ILoaderProps) => React_2.JSX.Element;
|
|
1284
|
+
|
|
1285
|
+
export declare const Menu: (props: IMenuProps) => React_2.JSX.Element;
|
|
1286
|
+
|
|
1287
|
+
export declare enum MenuCarat {
|
|
1288
|
+
FALSE = "false",
|
|
1289
|
+
RIGHT = "right",
|
|
1290
|
+
DOWN = "down"
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
declare type MenuElement = BaseElementProps & {
|
|
1294
|
+
type: TopBarElementType.MENU;
|
|
1295
|
+
sections: any[] | ReactNode;
|
|
1296
|
+
};
|
|
1297
|
+
|
|
1298
|
+
export declare enum MenuType {
|
|
1299
|
+
HEADING = "Heading",
|
|
1300
|
+
DIVIDER = "Divider",
|
|
1301
|
+
OPTION = "Option",
|
|
1302
|
+
MENU = "Menu"
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
export declare const Message: ({ message }: IMessageProps) => React_2.JSX.Element;
|
|
1306
|
+
|
|
1307
|
+
export declare enum MessageType {
|
|
1308
|
+
INFO = "Info",
|
|
1309
|
+
SUCCESS = "Success",
|
|
1310
|
+
WARNING = "Warning",
|
|
1311
|
+
ERROR = "Error"
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
export declare const Modal: ({ children, visible, centered, width, }: IModalProps) => React_2.JSX.Element;
|
|
1315
|
+
|
|
1316
|
+
export declare const NativeSelect: ({ disabled, error, warning, tooltip, options, onChange, onFocus, onBlur, right, small, tabIndex, selectedOption, width, groupOrder, testId, isInTable, clearable, placeholder, hasNonExistentValue, maxTooltipWidth, borderRadius, }: NativeSelectProps) => React_2.JSX.Element;
|
|
1317
|
+
|
|
1318
|
+
declare interface NativeSelectProps {
|
|
1319
|
+
borderRadius?: string | number;
|
|
1320
|
+
disabled?: boolean;
|
|
1321
|
+
error?: string | number | React_2.ReactNode | null;
|
|
1322
|
+
warning?: string | number | React_2.ReactNode | null;
|
|
1323
|
+
tooltip?: string | number | React_2.ReactNode | null;
|
|
1324
|
+
options: ISelectSelectedOption[];
|
|
1325
|
+
onChange?: (event: ChangeEvent<HTMLSelectElement>, value: ISelectSelectedOption | {
|
|
1326
|
+
value: null;
|
|
1327
|
+
}) => void;
|
|
1328
|
+
onFocus?: () => void;
|
|
1329
|
+
onBlur?: () => void;
|
|
1330
|
+
right?: boolean;
|
|
1331
|
+
small?: boolean;
|
|
1332
|
+
tabIndex?: number;
|
|
1333
|
+
selectedOption?: ISelectSelectedOption;
|
|
1334
|
+
width?: string | number | null;
|
|
1335
|
+
groupOrder?: string | null;
|
|
1336
|
+
testId?: string | undefined;
|
|
1337
|
+
isInTable?: boolean;
|
|
1338
|
+
clearable?: boolean;
|
|
1339
|
+
placeholder?: string;
|
|
1340
|
+
hasNonExistentValue?: boolean;
|
|
1341
|
+
maxTooltipWidth?: string | number;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, }: INumberInputProps) => React_2.JSX.Element;
|
|
1345
|
+
|
|
1346
|
+
export declare const OptionDropdown: ({ name, label, options, onChange, showHeader, maxHeight, }: IOptionDropdownProps) => ReactElement;
|
|
1347
|
+
|
|
1348
|
+
export declare const Page: ({ children, left, padding: paddingProp, scroll, top, }: ILayoutPageProps) => React_2.JSX.Element;
|
|
1349
|
+
|
|
1350
|
+
export declare const Pagination: ({ pagination }: IPaginationProps) => React_2.JSX.Element;
|
|
1351
|
+
|
|
1352
|
+
export declare const PopConfirm: ({ children, placement, closeOnOutsideClick, fullWidth, title, cancelText, onClickCancel, okText, onClickOk, }: IPopConfirmProps) => React_2.JSX.Element;
|
|
1353
|
+
|
|
1354
|
+
export declare const Popover: ({ children, content, placement, closeOnOutsideClick, fullWidth, showCloseButton, testId, disabled, overflowContainer, }: IPopoverProps) => React_2.JSX.Element;
|
|
1355
|
+
|
|
1356
|
+
export declare const Portal: ({ id, children }: IPortalProps) => ReactPortal | null;
|
|
1357
|
+
|
|
1358
|
+
export declare const PrintHeader: ({ logo, alt, logoWidth, }: PrintHeaderProps) => React_2.JSX.Element;
|
|
1359
|
+
|
|
1360
|
+
declare interface PrintHeaderProps {
|
|
1361
|
+
logo: string;
|
|
1362
|
+
logoWidth?: string | number;
|
|
1363
|
+
alt: string;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
export declare const ProgressBar: ({ width, inverted, colored, showProgressColors, percentage, noLabel, }: IProgressBarProps) => React_2.JSX.Element;
|
|
1367
|
+
|
|
1368
|
+
export declare const RadioButton: ({ name, label: rawLabel, options: rawOptions, value: rawValue, onChange, disabled, small, noMargin, onClick, inline, mainLabel, radioButtonsData, classForContainer, }: IRadioButtonProps) => React_2.JSX.Element;
|
|
1369
|
+
|
|
1370
|
+
export declare const readFile: (file?: Blob, method?: FileReaderMethod) => Promise<string | ArrayBuffer | null>;
|
|
1371
|
+
|
|
1372
|
+
export declare const RichTextInput: React_2.ForwardRefExoticComponent<IRichTextInputProps & React_2.RefAttributes<any>>;
|
|
1373
|
+
|
|
1374
|
+
export declare const Row: ({ alignItems, justifyContent, children, flex, height, marginBottom, marginTop, spacing, wrap, testId, }: ILayoutRowProps) => React_2.JSX.Element;
|
|
1375
|
+
|
|
1376
|
+
export declare const Select: (props: ISelectProps) => React_2.JSX.Element;
|
|
1377
|
+
|
|
1378
|
+
export declare const SideBar: React_2.MemoExoticComponent<({ options, startOpen, onShiftClickToggleOpen, top }: ISideBarProps) => React_2.JSX.Element>;
|
|
1379
|
+
|
|
1380
|
+
export declare const Slider: ({ name, label, width, labelWidth, value, min, max, step, marks, showArrows, showTooltip, tooltipFormatter, disabled, range, small, vertical, onChange, }: ISliderProps) => React_2.JSX.Element;
|
|
1381
|
+
|
|
1382
|
+
export declare const Spacer: ({ height, width, flex, }: ILayoutSpacerProps) => React_2.JSX.Element;
|
|
1383
|
+
|
|
1384
|
+
export declare const Spinner: ({ small, colored, dark, tiny, }: ISpinnerProps) => React_2.JSX.Element;
|
|
1385
|
+
|
|
1386
|
+
export declare const Table: (props: ITableProps) => React_2.JSX.Element;
|
|
1387
|
+
|
|
1388
|
+
export declare const Tabs: ({ name, options: rawOptions, children, value: rawValue, onChange, padding, margin, contentPadding, onChangeTab, activeTabIndex: rawActiveTabIndex, tabs: tabsConfig, testId, }: ITabsProps) => React_2.JSX.Element | null;
|
|
1389
|
+
|
|
1390
|
+
declare type TCellType = {
|
|
1391
|
+
colSpan?: number;
|
|
1392
|
+
value: string;
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
declare const Text_2: ({ children, bold, center, error, faint, link, muted, onClick, small, success, warning, }: ITextProps) => React_2.JSX.Element;
|
|
1396
|
+
export { Text_2 as Text }
|
|
1397
|
+
|
|
1398
|
+
export declare const TextArea: ({ name, value, placeholder, cols, rows, disabled, onChange, onKeyPress, onFocus, onBlur, tabIndex, error, warning, tooltip, maxTooltipWidth, resize, monospace, testId, }: ITextAreaProps) => React_2.JSX.Element;
|
|
1399
|
+
|
|
1400
|
+
export declare const TextLink: ({ children, href, target, testId, onClick, }: ITextLinkProps) => React_2.JSX.Element;
|
|
1401
|
+
|
|
1402
|
+
export declare enum Theme {
|
|
1403
|
+
DARK = "dark",
|
|
1404
|
+
WHITE = "white",
|
|
1405
|
+
LIGHT = "light",
|
|
1406
|
+
INHERIT = "inherit"
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
export declare const toast: ({ id, message, autoClose, onClose, }: IToastProps) => void | React_2.ReactText;
|
|
1410
|
+
|
|
1411
|
+
export { Toaster }
|
|
1412
|
+
|
|
1413
|
+
export declare const Toggle: ({ name, label, checked, disabled, small, onChange, noMargin, testId, helpText, onClickHelp, }: IToggleProps) => React_2.JSX.Element;
|
|
1414
|
+
|
|
1415
|
+
export declare const Tooltip: ({ children, text, error, placement, possiblePlacements, enabled, warning, maxWidth, triggerOffset, fontSize, padding, display, flex, forceOpen, }: ITooltipProps) => React_2.JSX.Element;
|
|
1416
|
+
|
|
1417
|
+
export declare const TopBar: ({ title, content, contentRight, warning, height, fixedPosition, }: ITopBarProps) => React_2.JSX.Element;
|
|
1418
|
+
|
|
1419
|
+
declare enum TopBarElementType {
|
|
1420
|
+
LINK = "Link",
|
|
1421
|
+
BUTTON = "Button",
|
|
1422
|
+
MENU = "Menu",
|
|
1423
|
+
COMPONENT = "Component"
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
export declare const Tree: ({ list, draggable, onListReorder, onChangeOpen, testId, isInitialOpen, treeRef, }: ITreeProps) => React_2.JSX.Element;
|
|
1427
|
+
|
|
1428
|
+
export declare enum TriggerType {
|
|
1429
|
+
TEXT = "Text",
|
|
1430
|
+
BUTTON = "Button",
|
|
1431
|
+
DROP_DOWN_BUTTON = "DropDownButton",
|
|
1432
|
+
COMPONENT = "Component"
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
declare type TRowsType = TRowType[];
|
|
1436
|
+
|
|
1437
|
+
declare type TRowType = {
|
|
1438
|
+
cells: TCellType[];
|
|
1439
|
+
actions?: any[];
|
|
1440
|
+
testId?: string;
|
|
1441
|
+
noDrag?: boolean;
|
|
1442
|
+
onRowMouseEnter?: () => void;
|
|
1443
|
+
onRowMouseLeave?: () => void;
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1446
|
+
declare type TSliderMark = {
|
|
1447
|
+
value: number | string;
|
|
1448
|
+
label?: number | string | ReactNode;
|
|
1449
|
+
tooltip?: number | string | ReactNode;
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
declare type TTopBarElementProps = {
|
|
1453
|
+
element: LinkElement | ButtonElement | MenuElement | ComponentElement;
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
export declare const useFocus: () => UseFocusReturnType;
|
|
1457
|
+
|
|
1458
|
+
declare type UseFocusReturnType = [MutableRefObject<HTMLInputElement | null>, () => void];
|
|
1459
|
+
|
|
1460
|
+
export declare const useKeyboardEvent: (key: string, fn: () => void, dependencyList?: DependencyList) => void;
|
|
1461
|
+
|
|
1462
|
+
export declare const useWindowWidth: () => number;
|
|
1463
|
+
|
|
1464
|
+
export declare const widthOfCharacters: (characterCount: number) => string;
|
|
1465
|
+
|
|
1466
|
+
export { }
|