pixel-react 1.5.9 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
- package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
- package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
- package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/lib/components/AddButton/AddButton.d.ts +5 -0
- package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
- package/lib/components/AddButton/index.d.ts +1 -0
- package/lib/components/AddButton/types.d.ts +4 -0
- package/lib/components/AttachImage/AttachImage.stories.d.ts +7 -0
- package/lib/components/Charts/BarChart/BarChart.stories.d.ts +6 -0
- package/lib/components/Charts/IconRadialChart/IconRadialChart.stories.d.ts +8 -0
- package/lib/components/Charts/LineChart/LineChart.stories.d.ts +7 -0
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.stories.d.ts +8 -0
- package/lib/components/ConnectingBranch/ConnectingBranch.stories.d.ts +6 -0
- package/lib/components/EditTextField/EditTextField.stories.d.ts +10 -0
- package/lib/components/Editor/Editor.stories.d.ts +6 -0
- package/lib/components/Excel/ContextMenu/ContextMenu.d.ts +4 -0
- package/lib/components/Excel/ExcelFile.stories.d.ts +6 -0
- package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +14 -0
- package/lib/components/ExcelFile/ImportExcelStyles.d.ts +24 -0
- 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/LabelEditTextField/LabelEditTextField.stories.d.ts +2 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/lib/components/MultiSelect/MultiSelect.stories.d.ts +1 -0
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +1 -0
- package/lib/components/Select/Select.stories.d.ts +1 -0
- package/lib/components/StatusCard/StatusCard.stories.d.ts +11 -0
- package/lib/components/TableTree/TableTree.d.ts +4 -24
- package/lib/components/TableTree/data.d.ts +78 -273
- package/lib/components/TableTree/types.d.ts +29 -0
- package/lib/index.d.ts +98 -20
- package/lib/index.esm.js +367 -370
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +371 -370
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +10 -0
- package/package.json +2 -2
- package/src/assets/icons/approval_pending.svg +8 -8
- package/src/assets/icons/configuration.svg +3 -3
- package/src/assets/icons/defects.svg +8 -8
- package/src/assets/icons/element.svg +4 -4
- 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/project_element.svg +4 -4
- package/src/assets/icons/replace_file.svg +14 -0
- package/src/assets/icons/step_group.svg +10 -10
- package/src/assets/icons/variable.svg +3 -3
- package/src/assets/icons/web_service_icon.svg +3 -0
- package/src/components/Checkbox/Checkbox.tsx +1 -7
- package/src/components/DragAndDrop/DragAndDropList.tsx +5 -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/iconList.ts +11 -7
- 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/TableTree/TableTree.scss +154 -123
- package/src/components/TableTree/TableTree.stories.tsx +10 -5
- package/src/components/TableTree/TableTree.tsx +220 -287
- package/src/components/TableTree/data.ts +677 -569
- package/src/components/TableTree/types.ts +31 -0
- package/src/components/Toast/Toast.tsx +1 -1
- package/src/index.ts +8 -0
- /package/lib/components/ExcelFile/{ColorBarselector → ColorBarSelector}/ColorBarSelector.d.ts +0 -0
@@ -0,0 +1,31 @@
|
|
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?: (e: React.ChangeEvent<HTMLInputElement>, node: TreeNode) => void;
|
26
|
+
onPagination?: (node: TreeNode) => void;
|
27
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
|
28
|
+
expandedNodes: string[];
|
29
|
+
onExpand?: (_isExpanded: boolean, node: string) => void;
|
30
|
+
onPaginate: (_direction: 'up' | 'down', id: string) => void;
|
31
|
+
}
|
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,7 @@ 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';
|
88
92
|
|
89
93
|
export {
|
90
94
|
Button,
|
@@ -105,6 +109,8 @@ export {
|
|
105
109
|
AddResourceButton,
|
106
110
|
DonutChart,
|
107
111
|
FileDropzone,
|
112
|
+
Dropzone,
|
113
|
+
FilePreview,
|
108
114
|
LazyLoad,
|
109
115
|
ThemeProvider,
|
110
116
|
Typography,
|
@@ -159,6 +165,7 @@ export {
|
|
159
165
|
Avatar,
|
160
166
|
VariableDropdown,
|
161
167
|
DownloadClient,
|
168
|
+
FieldSet,
|
162
169
|
// utils exports
|
163
170
|
checkEmpty,
|
164
171
|
getExtension,
|
@@ -173,4 +180,5 @@ export {
|
|
173
180
|
truncateText,
|
174
181
|
getSequentialPayload,
|
175
182
|
saveFileFromBlob,
|
183
|
+
useFileDropzone,
|
176
184
|
};
|
/package/lib/components/ExcelFile/{ColorBarselector → ColorBarSelector}/ColorBarSelector.d.ts
RENAMED
File without changes
|