pixel-react 1.5.9 → 1.6.1
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/.yarn/install-state.gz +0 -0
- package/lib/components/AppHeader/AppHeader.d.ts +1 -0
- package/lib/components/AppHeader/types.d.ts +18 -6
- package/lib/components/Charts/BarChart/BarChart.d.ts +1 -0
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +2 -0
- package/lib/components/Excel/ExcelToolBar/ExcelToolBar.d.ts +0 -1
- package/lib/components/FieldSet/FieldSet.d.ts +5 -0
- package/lib/components/FieldSet/index.d.ts +1 -0
- package/lib/components/FieldSet/types.d.ts +7 -0
- package/lib/components/FileDropzone/types.d.ts +8 -0
- package/lib/components/MachineInputField/types.d.ts +1 -1
- package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +1 -0
- package/lib/components/PopUpModal/PopUpModal.d.ts +5 -0
- package/lib/components/PopUpModal/types.d.ts +14 -0
- package/lib/components/RadioGroup/radioGroupTypes.d.ts +20 -0
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.d.ts +2 -1
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.d.ts +1 -1
- package/lib/components/SequentialConnectingBranch/components/Branches/types.d.ts +3 -2
- package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.d.ts +1 -1
- package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/types.d.ts +3 -2
- package/lib/components/SequentialConnectingBranch/types.d.ts +11 -3
- package/lib/components/TableTree/TableTree.d.ts +4 -24
- package/lib/components/TableTree/data.d.ts +112 -273
- package/lib/components/TableTree/types.d.ts +28 -0
- package/lib/index.d.ts +149 -32
- package/lib/index.esm.js +1104 -742
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1109 -742
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/assets/Themes/BaseTheme.scss +5 -14
- package/src/assets/Themes/DarkTheme.scss +5 -2
- package/src/assets/icons/arrow_up.svg +1 -1
- package/src/assets/icons/export.svg +5 -0
- package/src/assets/icons/import.svg +5 -0
- package/src/assets/icons/info_icon.svg +4 -16
- package/src/assets/icons/replace_file.svg +14 -0
- package/src/assets/icons/web_service_icon.svg +3 -0
- package/src/assets/styles/_fonts.scss +4 -2
- package/src/components/AppHeader/AppHeader.stories.tsx +242 -39
- package/src/components/AppHeader/AppHeader.tsx +158 -139
- package/src/components/AppHeader/types.ts +19 -6
- package/src/components/Charts/BarChart/BarChart.scss +34 -34
- package/src/components/Charts/BarChart/BarChart.stories.tsx +3 -2
- package/src/components/Charts/BarChart/BarChart.tsx +79 -55
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +25 -18
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +31 -11
- package/src/components/Charts/DashboardDonutChart/types.ts +2 -0
- package/src/components/Charts/IconRadialChart/IconRadialChart.tsx +3 -0
- package/src/components/Charts/LineChart/LineChart.scss +13 -4
- package/src/components/Charts/LineChart/LineChart.stories.tsx +100 -102
- package/src/components/Charts/LineChart/LineChart.tsx +143 -131
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.scss +23 -2
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.tsx +109 -24
- package/src/components/Charts/PieChart/PieChart.scss +5 -3
- package/src/components/Charts/PieChart/PieChart.tsx +1 -2
- package/src/components/Checkbox/Checkbox.tsx +1 -7
- package/src/components/DatePicker/DatePicker.scss +15 -1
- package/src/components/DragAndDrop/DragAndDropList.tsx +5 -4
- package/src/components/Excel/ExcelFile/ExcelFile.scss +1 -1
- package/src/components/Excel/ExcelFile/ExcelFile.tsx +34 -20
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +0 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +44 -15
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +47 -4
- package/src/components/FieldSet/FieldSet.scss +9 -0
- package/src/components/FieldSet/FieldSet.stories.tsx +103 -0
- package/src/components/FieldSet/FieldSet.tsx +29 -0
- package/src/components/FieldSet/index.ts +1 -0
- package/src/components/FieldSet/types.ts +8 -0
- package/src/components/FileDropzone/FileDropzone.scss +1 -1
- package/src/components/FileDropzone/FileDropzone.stories.tsx +15 -3
- package/src/components/FileDropzone/FileDropzone.tsx +5 -0
- package/src/components/FileDropzone/FilePreview.tsx +1 -1
- package/src/components/FileDropzone/types.ts +8 -0
- package/src/components/Icon/Icons.scss +1 -1
- package/src/components/Icon/iconList.ts +11 -7
- package/src/components/MachineInputField/MachineInputField.scss +15 -2
- package/src/components/MachineInputField/MachineInputField.tsx +17 -3
- package/src/components/MachineInputField/types.ts +1 -1
- package/src/components/MultiSelect/Dropdown.tsx +7 -3
- package/src/components/MultiSelect/MultiSelect.stories.tsx +6 -1
- package/src/components/MultiSelect/MultiSelect.tsx +4 -20
- package/src/components/MultiSelect/MultiSelectTypes.ts +2 -0
- package/src/components/PopUpModal/PopUpModal.scss +36 -0
- package/src/components/PopUpModal/PopUpModal.stories.tsx +61 -0
- package/src/components/PopUpModal/PopUpModal.tsx +85 -0
- package/src/components/PopUpModal/types.ts +14 -0
- package/src/components/RadioGroup/RadioGroup.scss +7 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +26 -0
- package/src/components/RadioGroup/RadioGroup.tsx +16 -0
- package/src/components/RadioGroup/radioGroupTypes.tsx +24 -0
- package/src/components/Select/Select.tsx +3 -4
- package/src/components/Select/components/Dropdown.tsx +34 -34
- package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.scss +9 -0
- package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.tsx +74 -43
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +9 -3
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +45 -14
- package/src/components/SequentialConnectingBranch/components/Branches/types.ts +9 -2
- package/src/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.tsx +3 -1
- package/src/components/SequentialConnectingBranch/components/ConnectingBranches/types.ts +9 -2
- package/src/components/SequentialConnectingBranch/types.ts +18 -3
- package/src/components/TableTree/TableTree.scss +154 -123
- package/src/components/TableTree/TableTree.stories.tsx +148 -96
- package/src/components/TableTree/TableTree.tsx +250 -282
- package/src/components/TableTree/data.ts +318 -569
- package/src/components/TableTree/types.ts +30 -0
- package/src/components/Toast/Toast.tsx +1 -1
- package/src/index.ts +11 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
export interface TreeNode {
|
2
|
+
key: string;
|
3
|
+
[key: string]: any;
|
4
|
+
children?: TreeNode[];
|
5
|
+
expanded?: boolean;
|
6
|
+
}
|
7
|
+
|
8
|
+
export interface Column {
|
9
|
+
name: string;
|
10
|
+
accessor: string;
|
11
|
+
width: string;
|
12
|
+
isClickable?: boolean;
|
13
|
+
cell?: (row: any) => JSX.Element | string | null;
|
14
|
+
actions?: (row: any) => JSX.Element[];
|
15
|
+
isTree?: boolean;
|
16
|
+
defaultValue?: string;
|
17
|
+
defaultActions?: () => JSX.Element[];
|
18
|
+
}
|
19
|
+
|
20
|
+
export interface TreeTableProps {
|
21
|
+
treeData: any;
|
22
|
+
columnsData: Column[];
|
23
|
+
selected?: string[];
|
24
|
+
select?: 'radio' | 'checkbox' | null;
|
25
|
+
onChange?: (nodes: string[]) => void;
|
26
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
|
27
|
+
expandedNodes: string[];
|
28
|
+
onExpand?: (_isExpanded: boolean, node: string) => void;
|
29
|
+
onPagination?: (_direction: string) => void;
|
30
|
+
}
|
package/src/index.ts
CHANGED
@@ -19,6 +19,8 @@ import Table from './components/Table/Table';
|
|
19
19
|
import AddResourceButton from './components/AddResourceButton';
|
20
20
|
import DonutChart from './components/Charts/DonutChart';
|
21
21
|
import FileDropzone from './components/FileDropzone';
|
22
|
+
import Dropzone from './components/FileDropzone/Dropzone';
|
23
|
+
import FilePreview from './components/FileDropzone/FilePreview';
|
22
24
|
import LazyLoad from './components/LazyLoad/LazyLoad';
|
23
25
|
import ThemeProvider from './components/ThemeProvider';
|
24
26
|
import Typography from './components/Typography';
|
@@ -65,6 +67,7 @@ import VariableDropdown from './components/Editor/VariableDropdown';
|
|
65
67
|
|
66
68
|
import LineChart from './components/Charts/LineChart';
|
67
69
|
import DownloadClient from './components/DownloadClient/DownloadClient';
|
70
|
+
import FieldSet from './components/FieldSet';
|
68
71
|
// Utils imports
|
69
72
|
import { checkEmpty } from './utils/checkEmpty/checkEmpty';
|
70
73
|
import {
|
@@ -85,6 +88,8 @@ import Editor from './components/Editor/Editor';
|
|
85
88
|
import { getSequentialPayload } from './utils/getSequentialPayload/getSequentialPayload';
|
86
89
|
import ConnectingBranch from './components/ConnectingBranch/ConnectingBranch';
|
87
90
|
import { saveFileFromBlob } from './utils/downloadFile/saveFileFromBlob';
|
91
|
+
import useFileDropzone from './hooks/useFileDropzone';
|
92
|
+
import PopUpModal from './components/PopUpModal/PopUpModal';
|
88
93
|
|
89
94
|
export {
|
90
95
|
Button,
|
@@ -105,6 +110,8 @@ export {
|
|
105
110
|
AddResourceButton,
|
106
111
|
DonutChart,
|
107
112
|
FileDropzone,
|
113
|
+
Dropzone,
|
114
|
+
FilePreview,
|
108
115
|
LazyLoad,
|
109
116
|
ThemeProvider,
|
110
117
|
Typography,
|
@@ -159,6 +166,9 @@ export {
|
|
159
166
|
Avatar,
|
160
167
|
VariableDropdown,
|
161
168
|
DownloadClient,
|
169
|
+
FieldSet,
|
170
|
+
PopUpModal,
|
171
|
+
|
162
172
|
// utils exports
|
163
173
|
checkEmpty,
|
164
174
|
getExtension,
|
@@ -173,4 +183,5 @@ export {
|
|
173
183
|
truncateText,
|
174
184
|
getSequentialPayload,
|
175
185
|
saveFileFromBlob,
|
186
|
+
useFileDropzone,
|
176
187
|
};
|