@oliasoft-open-source/react-ui-library 3.12.0-beta-11 → 3.12.0-beta-13
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/common-enum.d.ts +73 -0
- package/dist/components/accordion/accordion.d.ts +5 -0
- package/dist/components/accordion/accordion.interface.d.ts +17 -0
- package/dist/components/accordion/accordion.stories.d.ts +11 -0
- package/dist/components/accordion/chevron/chevron.d.ts +6 -0
- package/dist/components/accordion/enum.d.ts +4 -0
- package/dist/components/accordion/helpers/accordion-with-default-toggle.d.ts +12 -0
- package/dist/components/actions/actions.d.ts +14 -0
- package/dist/components/actions/actions.interface.d.ts +25 -0
- package/dist/components/actions/actions.stories.d.ts +25 -0
- package/dist/components/badge/badge.d.ts +10 -0
- package/dist/components/badge/badge.stories.d.ts +7 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +7 -0
- package/dist/components/breadcrumb/breadcrumb.stories.d.ts +5 -0
- package/dist/components/breadcrumb/enum.d.ts +5 -0
- package/dist/components/breadcrumb/link.d.ts +12 -0
- package/dist/components/button/button.d.ts +31 -0
- package/dist/components/button/button.stories.d.ts +13 -0
- package/dist/components/button/enum.d.ts +5 -0
- package/dist/components/button-group/button-group.d.ts +38 -0
- package/dist/components/button-group/button-group.stories-data.d.ts +6 -0
- package/dist/components/button-group/button-group.stories.d.ts +9 -0
- package/dist/components/card/card.d.ts +10 -0
- package/dist/components/card/card.stories.d.ts +8 -0
- package/dist/components/check-box/check-box.d.ts +19 -0
- package/dist/components/check-box/check-box.stories.d.ts +6 -0
- package/dist/components/color/color.stories-data.d.ts +9 -0
- package/dist/components/dialog/dialog.d.ts +17 -0
- package/dist/components/divider/divider.d.ts +9 -0
- package/dist/components/divider/divider.stories.d.ts +7 -0
- package/dist/components/drawer/drawer-resize-wrapper.d.ts +3 -0
- package/dist/components/drawer/drawer-tabs.d.ts +3 -0
- package/dist/components/drawer/drawer.constants.d.ts +2 -0
- package/dist/components/drawer/drawer.d.ts +3 -0
- package/dist/components/drawer/drawer.interface.d.ts +55 -0
- package/dist/components/drawer/drawer.stories.d.ts +41 -0
- package/dist/components/empty/empty.d.ts +8 -0
- package/dist/components/empty/empty.stories.d.ts +5 -0
- package/dist/components/file-input/enum.d.ts +6 -0
- package/dist/components/file-input/file-input.d.ts +18 -0
- package/dist/components/file-input/file-input.stories.d.ts +8 -0
- package/dist/components/form/field.d.ts +16 -0
- package/dist/components/form/field.stories.d.ts +13 -0
- package/dist/components/form/form.stories.d.ts +27 -0
- package/dist/components/heading/heading.d.ts +19 -0
- package/dist/components/heading/heading.stories.d.ts +10 -0
- package/dist/components/help-icon/help-icon.d.ts +10 -0
- package/dist/components/help-icon/help-icon.stories.d.ts +11 -0
- package/dist/components/icon/icon.d.ts +16 -0
- package/dist/components/icon/icon.stories.d.ts +26 -0
- package/dist/components/icon/named-icon.d.ts +7 -0
- package/dist/components/input/input.d.ts +26 -0
- package/dist/components/input/input.stories.d.ts +5 -0
- package/dist/components/input-group/input-group-addon/input-group-addon.d.ts +8 -0
- package/dist/components/input-group/input-group.d.ts +7 -0
- package/dist/components/input-group/input-group.stories.d.ts +8 -0
- package/dist/components/label/label.d.ts +24 -0
- package/dist/components/label/label.stories.d.ts +10 -0
- package/dist/components/layout/column/column.d.ts +18 -0
- package/dist/components/layout/column/styles.d.ts +15 -0
- package/dist/components/layout/column.stories.d.ts +20 -0
- package/dist/components/layout/flex/flex.d.ts +11 -0
- package/dist/components/layout/flex/flex.stories.d.ts +10 -0
- package/dist/components/layout/form-row/form-row.d.ts +5 -0
- package/dist/components/layout/grid/grid.d.ts +11 -0
- package/dist/components/layout/grid/grid.stories.d.ts +9 -0
- package/dist/components/layout/page/page.d.ts +9 -0
- package/dist/components/layout/page.stories.d.ts +10 -0
- package/dist/components/layout/placeholder.d.ts +1 -0
- package/dist/components/layout/print-header/print-header.d.ts +8 -0
- package/dist/components/layout/row/row.d.ts +15 -0
- package/dist/components/layout/spacer/spacer.d.ts +7 -0
- package/dist/components/list/list-row/item-content.d.ts +3 -0
- package/dist/components/list/list-row/label.d.ts +3 -0
- package/dist/components/list/list-row/list-heading.d.ts +3 -0
- package/dist/components/list/list-row/list-row.d.ts +3 -0
- package/dist/components/list/list-row/list-row.interface.d.ts +105 -0
- package/dist/components/list/list-row/list-subheading.d.ts +3 -0
- package/dist/components/list/list-row/meta-content.d.ts +3 -0
- package/dist/components/list/list-row/meta-count.d.ts +3 -0
- package/dist/components/list/list-row/name.d.ts +4 -0
- package/dist/components/list/list.d.ts +3 -0
- package/dist/components/list/list.interface.d.ts +55 -0
- package/dist/components/list/list.stories-data.d.ts +310 -0
- package/dist/components/list/list.stories.d.ts +23 -0
- package/dist/components/list/toggle-narrow.d.ts +3 -0
- package/dist/components/loader/loader.d.ts +14 -0
- package/dist/components/loader/loader.stories.d.ts +33 -0
- package/dist/components/menu/enum.d.ts +11 -0
- package/dist/components/menu/index.d.ts +4 -0
- package/dist/components/menu/layer/divider.d.ts +2 -0
- package/dist/components/menu/layer/heading.d.ts +8 -0
- package/dist/components/menu/layer/layer.d.ts +15 -0
- package/dist/components/menu/layer/option.d.ts +19 -0
- package/dist/components/menu/layer/path.d.ts +5 -0
- package/dist/components/menu/layer/placementOptions.d.ts +3 -0
- package/dist/components/menu/layer/section.d.ts +11 -0
- package/dist/components/menu/menu.d.ts +4 -0
- package/dist/components/menu/menu.interface.d.ts +82 -0
- package/dist/components/menu/menu.stories-data.d.ts +101 -0
- package/dist/components/menu/menu.stories.d.ts +31 -0
- package/dist/components/menu/menu.test.d.ts +1 -0
- package/dist/components/menu/trigger/button.d.ts +15 -0
- package/dist/components/menu/trigger/component.d.ts +8 -0
- package/dist/components/menu/trigger/text.d.ts +11 -0
- package/dist/components/menu/trigger/trigger.d.ts +27 -0
- package/dist/components/message/dismiss.d.ts +8 -0
- package/dist/components/message/enum.d.ts +9 -0
- package/dist/components/message/message.d.ts +19 -0
- package/dist/components/message/message.stories.d.ts +11 -0
- package/dist/components/modal/modal.d.ts +8 -0
- package/dist/components/modal/modal.stories.d.ts +12 -0
- package/dist/components/number-input/number-input.d.ts +26 -0
- package/dist/components/number-input/number-input.stories.d.ts +14 -0
- package/dist/components/option-dropdown/enum.d.ts +5 -0
- package/dist/components/option-dropdown/heading.d.ts +5 -0
- package/dist/components/option-dropdown/layer.d.ts +16 -0
- package/dist/components/option-dropdown/option-dropdown.d.ts +19 -0
- package/dist/components/option-dropdown/option-dropdown.stories.d.ts +5 -0
- package/dist/components/option-dropdown/option.d.ts +10 -0
- package/dist/components/pagination/pagination.d.ts +14 -0
- package/dist/components/pagination/pagination.interface.d.ts +15 -0
- package/dist/components/pagination/pagination.stories.d.ts +8 -0
- package/dist/components/pagination/pagination.test.d.ts +1 -0
- package/dist/components/pagination/pagination.viewdata.d.ts +17 -0
- package/dist/components/pop-confirm/content.d.ts +10 -0
- package/dist/components/pop-confirm/pop-confirm.d.ts +14 -0
- package/dist/components/pop-confirm/pop-confirm.stories.d.ts +4 -0
- package/dist/components/popover/popover.d.ts +14 -0
- package/dist/components/popover/popover.stories.d.ts +7 -0
- package/dist/components/portal/portal.d.ts +6 -0
- package/dist/components/portal/portal.stories.d.ts +7 -0
- package/dist/components/progress-bar/progress-bar.d.ts +10 -0
- package/dist/components/progress-bar/progress-bar.stories.d.ts +4 -0
- package/dist/components/radio-button/radio-button.d.ts +27 -0
- package/dist/components/radio-button/radio-button.stories.d.ts +5 -0
- package/dist/components/radio-button/radio-input.d.ts +16 -0
- package/dist/components/rich-text-input/rich-text-input.d.ts +9 -0
- package/dist/components/rich-text-input/rich-text-input.stories.d.ts +10 -0
- package/dist/components/rich-text-input/rich-text-toolbar/enum.d.ts +7 -0
- package/dist/components/rich-text-input/rich-text-toolbar/rich-text-toolbar.d.ts +6 -0
- package/dist/components/select/custom-select/custom-select.d.ts +3 -0
- package/dist/components/select/custom-select/custom-select.interface.d.ts +47 -0
- package/dist/components/select/custom-select/custom-select.reducer.d.ts +6 -0
- package/dist/components/select/custom-select/enum.d.ts +11 -0
- package/dist/components/select/custom-select/helper.d.ts +3 -0
- package/dist/components/select/custom-select/hooks/enum.d.ts +20 -0
- package/dist/components/select/custom-select/hooks/use-custom-select-logic.d.ts +39 -0
- package/dist/components/select/custom-select/layer/heading.d.ts +4 -0
- package/dist/components/select/custom-select/layer/layer.d.ts +17 -0
- package/dist/components/select/custom-select/layer/option.d.ts +15 -0
- package/dist/components/select/custom-select/layer/placementOptions.d.ts +10 -0
- package/dist/components/select/custom-select/layer/section.d.ts +15 -0
- package/dist/components/select/custom-select/reducer.interface.d.ts +34 -0
- package/dist/components/select/custom-select/trigger/input.d.ts +14 -0
- package/dist/components/select/custom-select/trigger/multi-selected-options.d.ts +9 -0
- package/dist/components/select/custom-select/trigger/trigger.d.ts +34 -0
- package/dist/components/select/native-select/native-select.d.ts +29 -0
- package/dist/components/select/select.d.ts +3 -0
- package/dist/components/select/select.input.d.ts +21 -0
- package/dist/components/select/select.interface.d.ts +39 -0
- package/dist/components/select/select.stories-data.d.ts +25 -0
- package/dist/components/select/select.stories.d.ts +30 -0
- package/dist/components/select/select.test.d.ts +1 -0
- package/dist/components/side-bar/link.d.ts +17 -0
- package/dist/components/side-bar/sections.d.ts +21 -0
- package/dist/components/side-bar/side-bar.d.ts +26 -0
- package/dist/components/side-bar/side-bar.stories.d.ts +5 -0
- package/dist/components/slider/slider-tooltip.d.ts +5 -0
- package/dist/components/slider/slider.d.ts +36 -0
- package/dist/components/slider/slider.stories.d.ts +16 -0
- package/dist/components/spinner/spinner.d.ts +8 -0
- package/dist/components/spinner/spinner.stories.d.ts +4 -0
- package/dist/components/table/cell/cell-types/action-cell.d.ts +6 -0
- package/dist/components/table/cell/cell-types/cell-help-icon.d.ts +6 -0
- package/dist/components/table/cell/cell-types/cell-library-icon.d.ts +6 -0
- package/dist/components/table/cell/cell-types/cell-types.interface.d.ts +150 -0
- package/dist/components/table/cell/cell-types/check-box-cell.d.ts +8 -0
- package/dist/components/table/cell/cell-types/icon-cell.d.ts +6 -0
- package/dist/components/table/cell/cell-types/input-cell.d.ts +9 -0
- package/dist/components/table/cell/cell-types/link-cell.d.ts +8 -0
- package/dist/components/table/cell/cell-types/number-input-cell.d.ts +8 -0
- package/dist/components/table/cell/cell-types/popover-cell.d.ts +7 -0
- package/dist/components/table/cell/cell-types/select-cell.d.ts +9 -0
- package/dist/components/table/cell/cell-types/slider-cell.d.ts +7 -0
- package/dist/components/table/cell/cell-types/sort-cell.d.ts +6 -0
- package/dist/components/table/cell/cell-types/static-cell.d.ts +8 -0
- package/dist/components/table/cell/cell-wrapper.d.ts +9 -0
- package/dist/components/table/cell/cell.d.ts +13 -0
- package/dist/components/table/cell/cell.stories.d.ts +22 -0
- package/dist/components/table/cell/input-cell-wrapper.d.ts +8 -0
- package/dist/components/table/enum.d.ts +9 -0
- package/dist/components/table/footer/footer.d.ts +10 -0
- package/dist/components/table/footer/footer.stories.d.ts +3 -0
- package/dist/components/table/helper.d.ts +22 -0
- package/dist/components/table/helper.test.d.ts +1 -0
- package/dist/components/table/row/expanded-content-row.d.ts +7 -0
- package/dist/components/table/row/row.d.ts +37 -0
- package/dist/components/table/row/row.stories.d.ts +9 -0
- package/dist/components/table/table-scroll-wrapper.d.ts +13 -0
- package/dist/components/table/table.d.ts +34 -0
- package/dist/components/table/table.stories-data.d.ts +1971 -0
- package/dist/components/table/table.stories.d.ts +18 -0
- package/dist/components/table/table.test.d.ts +1 -0
- package/dist/components/table/table.viewdata.d.ts +16 -0
- package/dist/components/table/title/title.d.ts +8 -0
- package/dist/components/table/title/title.stories.d.ts +11 -0
- package/dist/components/tabs/content.d.ts +7 -0
- package/dist/components/tabs/label.d.ts +14 -0
- package/dist/components/tabs/tabs.d.ts +33 -0
- package/dist/components/tabs/tabs.stories.d.ts +11 -0
- package/dist/components/text/text.d.ts +15 -0
- package/dist/components/text/text.stories.d.ts +6 -0
- package/dist/components/text-link/text-link.d.ts +9 -0
- package/dist/components/text-link/text-link.stories.d.ts +5 -0
- package/dist/components/textarea/textarea.d.ts +22 -0
- package/dist/components/textarea/textarea.stories.d.ts +4 -0
- package/dist/components/toaster/toaster.d.ts +18 -0
- package/dist/components/toaster/toaster.stories.d.ts +16 -0
- package/dist/components/toggle/toggle.d.ts +14 -0
- package/dist/components/toggle/toggle.stories.d.ts +10 -0
- package/dist/components/tooltip/tooltip-layer.d.ts +16 -0
- package/dist/components/tooltip/tooltip.d.ts +19 -0
- package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
- package/dist/components/tooltip/tooltip.test-case.stories.d.ts +4 -0
- package/dist/components/top-bar/element/element.d.ts +32 -0
- package/dist/components/top-bar/element/enum.d.ts +6 -0
- package/dist/components/top-bar/element/link.d.ts +11 -0
- package/dist/components/top-bar/title.d.ts +9 -0
- package/dist/components/top-bar/top-bar.d.ts +12 -0
- package/dist/components/top-bar/top-bar.stories.d.ts +6 -0
- package/dist/components/top-bar/top-bar.testcase.stories.d.ts +5 -0
- package/dist/components/top-bar/warning.d.ts +5 -0
- package/dist/components/tree/tree-item.d.ts +11 -0
- package/dist/components/tree/tree-placeholder.d.ts +5 -0
- package/dist/components/tree/tree.d.ts +42 -0
- package/dist/components/tree/tree.stories-data.d.ts +126 -0
- package/dist/components/tree/tree.stories.d.ts +12 -0
- package/dist/helpers/disabled-context.d.ts +2 -0
- package/dist/helpers/text.d.ts +1 -0
- package/dist/helpers/types.d.ts +3 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/use-focus.d.ts +4 -0
- package/dist/hooks/use-fonts-ready.d.ts +1 -0
- package/dist/hooks/use-keyboard-event.d.ts +2 -0
- package/dist/hooks/use-window-width.d.ts +1 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +28147 -0
- package/package.json +8 -7
- package/dist/global.css +0 -28136
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { TSliderMark } from '../../../slider/slider';
|
|
3
|
+
export type StringNumberOrNode = string | number | ReactNode;
|
|
4
|
+
export type TCellType = 'Static' | 'Icon' | 'Select' | 'Input' | 'NumberInput' | 'Popover' | 'CheckBox' | 'Actions' | 'Link' | 'Slider' | 'Unit';
|
|
5
|
+
export interface IPopoverCell {
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
fullWidth: boolean;
|
|
8
|
+
closeOnOutsideClick: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
value?: StringNumberOrNode;
|
|
11
|
+
type: TCellType;
|
|
12
|
+
error?: StringNumberOrNode;
|
|
13
|
+
warning?: StringNumberOrNode;
|
|
14
|
+
tooltip?: StringNumberOrNode;
|
|
15
|
+
maxTooltipWidth?: string | number;
|
|
16
|
+
hasSort?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IStaticCell {
|
|
19
|
+
value?: StringNumberOrNode;
|
|
20
|
+
type: TCellType;
|
|
21
|
+
colSpan?: number;
|
|
22
|
+
rowSpan?: number;
|
|
23
|
+
error?: StringNumberOrNode;
|
|
24
|
+
warning?: StringNumberOrNode;
|
|
25
|
+
tooltip?: StringNumberOrNode;
|
|
26
|
+
maxTooltipWidth?: string | number;
|
|
27
|
+
breakWord?: boolean;
|
|
28
|
+
libraryIcon?: {
|
|
29
|
+
onClick: () => void;
|
|
30
|
+
tooltip: StringNumberOrNode;
|
|
31
|
+
};
|
|
32
|
+
helpIcon?: {
|
|
33
|
+
onClick: () => void;
|
|
34
|
+
tooltip: StringNumberOrNode;
|
|
35
|
+
};
|
|
36
|
+
testId?: string;
|
|
37
|
+
hasSort?: boolean;
|
|
38
|
+
onSort?: (evt: React.MouseEvent<HTMLDivElement>) => void;
|
|
39
|
+
}
|
|
40
|
+
export interface ISelectCell {
|
|
41
|
+
type: TCellType;
|
|
42
|
+
name?: string;
|
|
43
|
+
value?: string | number;
|
|
44
|
+
onChange?: (ev: any) => void;
|
|
45
|
+
onCreate?: (ev: any) => void;
|
|
46
|
+
error?: StringNumberOrNode;
|
|
47
|
+
warning?: StringNumberOrNode;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
menu?: any;
|
|
51
|
+
options?: any;
|
|
52
|
+
native?: boolean;
|
|
53
|
+
clearable?: boolean;
|
|
54
|
+
searchable?: boolean;
|
|
55
|
+
deprecatedEventHandler?: boolean;
|
|
56
|
+
maxTooltipWidth?: string | number;
|
|
57
|
+
autoLayerWidth?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface IHelpIconCell {
|
|
60
|
+
type: TCellType;
|
|
61
|
+
helpIcon?: {
|
|
62
|
+
onClick: () => void;
|
|
63
|
+
tooltip: StringNumberOrNode;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export interface ILibraryIconCell {
|
|
67
|
+
type: TCellType;
|
|
68
|
+
libraryIcon?: {
|
|
69
|
+
onClick: () => void;
|
|
70
|
+
tooltip: StringNumberOrNode;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export interface ICheckBoxCell {
|
|
74
|
+
label?: string;
|
|
75
|
+
checked: boolean;
|
|
76
|
+
type: TCellType;
|
|
77
|
+
onChange: (ev: React.ChangeEvent<HTMLInputElement>) => void;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
colSpan?: number;
|
|
80
|
+
testId?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface IIconCell {
|
|
83
|
+
type: TCellType;
|
|
84
|
+
icon: any;
|
|
85
|
+
tooltip?: StringNumberOrNode;
|
|
86
|
+
}
|
|
87
|
+
export interface IInputCell {
|
|
88
|
+
type: TCellType;
|
|
89
|
+
name?: string;
|
|
90
|
+
value?: string;
|
|
91
|
+
onChange?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
|
|
92
|
+
placeholder?: string;
|
|
93
|
+
error?: string;
|
|
94
|
+
warning?: string;
|
|
95
|
+
disabled?: boolean;
|
|
96
|
+
maxTooltipWidth?: string | number;
|
|
97
|
+
tooltip?: StringNumberOrNode;
|
|
98
|
+
}
|
|
99
|
+
export interface ILinkCell {
|
|
100
|
+
value?: string | number;
|
|
101
|
+
type: TCellType;
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
onClick?: (evt: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
104
|
+
colSpan?: number;
|
|
105
|
+
testId?: string;
|
|
106
|
+
error?: StringNumberOrNode;
|
|
107
|
+
warning?: StringNumberOrNode;
|
|
108
|
+
tooltip?: StringNumberOrNode;
|
|
109
|
+
maxTooltipWidth?: string | number;
|
|
110
|
+
}
|
|
111
|
+
export interface INumberInputCell {
|
|
112
|
+
name?: string;
|
|
113
|
+
value?: string | number;
|
|
114
|
+
type: TCellType;
|
|
115
|
+
onChange?: (ev: any) => void;
|
|
116
|
+
placeholder?: string;
|
|
117
|
+
error?: string | boolean;
|
|
118
|
+
warning?: string | boolean;
|
|
119
|
+
disabled?: boolean;
|
|
120
|
+
tooltip?: StringNumberOrNode;
|
|
121
|
+
left?: boolean;
|
|
122
|
+
testId?: string;
|
|
123
|
+
validationCallback?: () => void;
|
|
124
|
+
allowEmpty?: boolean;
|
|
125
|
+
}
|
|
126
|
+
export interface ISliderCell {
|
|
127
|
+
type: TCellType;
|
|
128
|
+
label?: string;
|
|
129
|
+
value: number;
|
|
130
|
+
min: number;
|
|
131
|
+
max: number;
|
|
132
|
+
step?: number;
|
|
133
|
+
marks?: TSliderMark[];
|
|
134
|
+
onChange: (ev: any) => void;
|
|
135
|
+
showArrows?: boolean;
|
|
136
|
+
showTooltip?: boolean;
|
|
137
|
+
tooltipFormatter?: (value: any) => any;
|
|
138
|
+
disabled?: boolean;
|
|
139
|
+
}
|
|
140
|
+
export interface IActionCell {
|
|
141
|
+
type: TCellType;
|
|
142
|
+
actions: any;
|
|
143
|
+
}
|
|
144
|
+
export interface ISortCell {
|
|
145
|
+
type: TCellType;
|
|
146
|
+
hasSort?: boolean;
|
|
147
|
+
sort?: 'up' | 'down';
|
|
148
|
+
sortPriority?: number;
|
|
149
|
+
}
|
|
150
|
+
export type TCellShape = IPopoverCell | IStaticCell | ISelectCell | IHelpIconCell | ILibraryIconCell | ICheckBoxCell | IIconCell | IInputCell | ILinkCell | INumberInputCell | IActionCell | ISortCell | ISliderCell;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ICheckBoxCell } from './cell-types.interface';
|
|
3
|
+
interface ICheckBoxCellProps {
|
|
4
|
+
cell: ICheckBoxCell;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const CheckBoxCell: ({ cell, testId }: ICheckBoxCellProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IInputCell } from './cell-types.interface';
|
|
3
|
+
import { Align } from "../../../../common-enum";
|
|
4
|
+
export interface IInputCellProps {
|
|
5
|
+
cell: IInputCell;
|
|
6
|
+
columnAlignment?: Align.LEFT | Align.RIGHT;
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const InputCell: ({ cell, columnAlignment, testId, }: IInputCellProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { INumberInputCell } from './cell-types.interface';
|
|
3
|
+
interface INumberInputCellProps {
|
|
4
|
+
cell: INumberInputCell;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const NumberInputCell: ({ cell, testId, }: INumberInputCellProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ISelectCell } from './cell-types.interface';
|
|
3
|
+
import { Align } from "../../../../common-enum";
|
|
4
|
+
export interface ISelectCellProps {
|
|
5
|
+
cell: ISelectCell;
|
|
6
|
+
columnAlignment?: Align.LEFT | Align.RIGHT;
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SelectCell: ({ cell, columnAlignment, testId, }: ISelectCellProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IStaticCell } from './cell-types.interface';
|
|
3
|
+
export interface IStaticCellProps {
|
|
4
|
+
cell: IStaticCell;
|
|
5
|
+
isHeader?: boolean;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const StaticCell: ({ cell, isHeader, testId, }: IStaticCellProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Align } from "../../../common-enum";
|
|
3
|
+
export interface ICellWrapperProps {
|
|
4
|
+
cell: any;
|
|
5
|
+
isHeader: boolean;
|
|
6
|
+
columnAlignment: Align.LEFT | Align.RIGHT;
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const CellWrapper: ({ cell, isHeader, columnAlignment, testId, }: ICellWrapperProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TCellShape } from "./cell-types/cell-types.interface";
|
|
3
|
+
import { Align } from "../../../common-enum";
|
|
4
|
+
export interface ICellProps {
|
|
5
|
+
cell?: TCellShape | any;
|
|
6
|
+
isHeader: boolean;
|
|
7
|
+
columnHeaderAlignment?: string;
|
|
8
|
+
columnAlignment?: Align.LEFT | Align.RIGHT;
|
|
9
|
+
width?: string | number;
|
|
10
|
+
snapshot?: any;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Cell: ({ cell, isHeader, columnHeaderAlignment, columnAlignment, width: columnWidthProp, snapshot, testId, }: ICellProps) => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Editable: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
5
|
+
export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
6
|
+
export declare const Colspan: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
7
|
+
export declare const ColspanWithWidths: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
8
|
+
export declare const CellWidths: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
9
|
+
export declare const CellStyleProp: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
10
|
+
export declare const Rowspan: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
11
|
+
export declare const Checkboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
12
|
+
export declare const Icons: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
13
|
+
export declare const Links: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
14
|
+
export declare const Actions: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
15
|
+
export declare const Menus: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
16
|
+
export declare const JSXContent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
17
|
+
export declare const StaticCellTooltips: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
18
|
+
export declare const WordbreakLongContent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
19
|
+
export declare const Popover: () => React.JSX.Element;
|
|
20
|
+
export declare const SinglePopoverAtOnce: () => React.JSX.Element;
|
|
21
|
+
export declare const OverflowingCells: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
22
|
+
export declare const TestScrolling: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Align } from "../../../common-enum";
|
|
3
|
+
export interface IInputCellWrapperProps {
|
|
4
|
+
cell: any;
|
|
5
|
+
columnAlignment: Align.LEFT | Align.RIGHT;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const InputCellWrapper: ({ cell, columnAlignment, testId, }: IInputCellWrapperProps) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { IPagination } from '../../pagination/pagination';
|
|
3
|
+
import { IAction } from '../../actions/actions.interface';
|
|
4
|
+
export interface IFooterProps {
|
|
5
|
+
colSpan?: number;
|
|
6
|
+
pagination: IPagination;
|
|
7
|
+
actions?: IAction[];
|
|
8
|
+
content?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const Footer: ({ colSpan, pagination, actions, content, }: IFooterProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
2
|
+
export default _default;
|
|
3
|
+
export declare const Footer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface IAlignmentProps {
|
|
2
|
+
bodyAlignment?: string;
|
|
3
|
+
headerAlignment?: string;
|
|
4
|
+
isHeader: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* getCellAlignment - returns string or class name
|
|
8
|
+
* @param {IAlignmentProps} alignment - body cell alignment
|
|
9
|
+
* @param {Record<string, string>} styles - styles object
|
|
10
|
+
* @param {boolean} isGetText - get text for example ('left', 'right' or 'center') or class name. Default value false.
|
|
11
|
+
* @returns {string|null}
|
|
12
|
+
*/
|
|
13
|
+
export declare const getCellAlignment: (alignment?: IAlignmentProps, styles?: Record<string, string>, isGetText?: boolean) => string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Returns alignments or empty array
|
|
16
|
+
* @param {Array<string | string[]>} alignments can be array of arrays or array of strings
|
|
17
|
+
* @param {boolean} isHeader
|
|
18
|
+
* @param {number} rowIndex
|
|
19
|
+
* @returns {Array<string>}
|
|
20
|
+
*/
|
|
21
|
+
export declare const getHeaderAlignment: (alignments?: Array<string | string[]>, isHeader?: boolean, rowIndex?: number) => string[];
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface IExpandedContentRowProps {
|
|
3
|
+
colSpan: number;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
flush?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ExpandedContentRow: ({ colSpan, children, flush, }: IExpandedContentRowProps) => React.JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ICellProps } from '../cell/cell';
|
|
3
|
+
interface IOnRowClickFunction {
|
|
4
|
+
(): any;
|
|
5
|
+
noStyle?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface IRowProps {
|
|
8
|
+
row: {
|
|
9
|
+
active?: boolean;
|
|
10
|
+
cells: ICellProps['cell'][];
|
|
11
|
+
noDrag?: boolean;
|
|
12
|
+
onRowClick?: IOnRowClickFunction;
|
|
13
|
+
onRowFocus?: IOnRowClickFunction;
|
|
14
|
+
onRowMouseEnter?: IOnRowClickFunction;
|
|
15
|
+
onRowMouseLeave?: IOnRowClickFunction;
|
|
16
|
+
expandedContent?: {
|
|
17
|
+
content: ReactNode;
|
|
18
|
+
flush?: boolean;
|
|
19
|
+
};
|
|
20
|
+
actions?: any[];
|
|
21
|
+
};
|
|
22
|
+
rowIndex: number;
|
|
23
|
+
isHeader?: boolean;
|
|
24
|
+
columnCount: number;
|
|
25
|
+
colSpan: number;
|
|
26
|
+
columnHeaderAlignments?: string[] | string[][];
|
|
27
|
+
columnAlignment?: string[];
|
|
28
|
+
hasRowActions: boolean;
|
|
29
|
+
draggableTable?: boolean;
|
|
30
|
+
snapshot?: any;
|
|
31
|
+
provided?: any;
|
|
32
|
+
width?: string | number;
|
|
33
|
+
columnWidths?: string[];
|
|
34
|
+
testId?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const Row: ({ row, rowIndex, isHeader, columnCount, colSpan, columnHeaderAlignments, columnAlignment, hasRowActions, draggableTable, snapshot, provided, width, columnWidths, testId, }: IRowProps) => React.JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const ActiveRow: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
5
|
+
export declare const RowFocusEvent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
6
|
+
export declare const NotStriped: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
|
7
|
+
export declare const Expandable: StoryFn<any>;
|
|
8
|
+
export declare const DragAndDrop: StoryFn<any>;
|
|
9
|
+
export declare const OnRowEnter: StoryFn<any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface ITableProps {
|
|
3
|
+
rows: any[];
|
|
4
|
+
infiniteScroll?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ITableScrollWrapperProps {
|
|
7
|
+
table: ITableProps;
|
|
8
|
+
children: (props: {
|
|
9
|
+
visibleRows: number;
|
|
10
|
+
}) => ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const TableScrollWrapper: ({ table, children, }: ITableScrollWrapperProps) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { IFooterProps } from "./footer/footer";
|
|
3
|
+
import { TRowsType } from "./table.viewdata";
|
|
4
|
+
import { Align } from "../../common-enum";
|
|
5
|
+
interface ITableProps {
|
|
6
|
+
onListReorder?: (obj: {
|
|
7
|
+
from: number;
|
|
8
|
+
to: number;
|
|
9
|
+
}) => void;
|
|
10
|
+
table: {
|
|
11
|
+
name?: string | number | ReactNode;
|
|
12
|
+
actionsRight?: boolean;
|
|
13
|
+
fixedWidth?: string | number;
|
|
14
|
+
maxHeight?: string | number;
|
|
15
|
+
columnWidths?: string[];
|
|
16
|
+
className?: string;
|
|
17
|
+
columnHeaderAlignments?: Array<Align>;
|
|
18
|
+
columnAlignment?: Array<Align>;
|
|
19
|
+
infiniteScroll?: boolean;
|
|
20
|
+
headers?: any[];
|
|
21
|
+
rows?: TRowsType;
|
|
22
|
+
footer?: IFooterProps;
|
|
23
|
+
draggable?: boolean;
|
|
24
|
+
bordered?: boolean;
|
|
25
|
+
striped?: boolean;
|
|
26
|
+
testId?: string;
|
|
27
|
+
onAddRow?: any;
|
|
28
|
+
defaultEmptyRow?: any;
|
|
29
|
+
stickyHeaders?: string | boolean;
|
|
30
|
+
actions?: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare const Table: (props: ITableProps) => React.JSX.Element;
|
|
34
|
+
export {};
|