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.
Files changed (110) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/components/AppHeader/AppHeader.d.ts +1 -0
  3. package/lib/components/AppHeader/types.d.ts +18 -6
  4. package/lib/components/Charts/BarChart/BarChart.d.ts +1 -0
  5. package/lib/components/Charts/DashboardDonutChart/types.d.ts +2 -0
  6. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.d.ts +0 -1
  7. package/lib/components/FieldSet/FieldSet.d.ts +5 -0
  8. package/lib/components/FieldSet/index.d.ts +1 -0
  9. package/lib/components/FieldSet/types.d.ts +7 -0
  10. package/lib/components/FileDropzone/types.d.ts +8 -0
  11. package/lib/components/MachineInputField/types.d.ts +1 -1
  12. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
  13. package/lib/components/MultiSelect/MultiSelectTypes.d.ts +1 -0
  14. package/lib/components/PopUpModal/PopUpModal.d.ts +5 -0
  15. package/lib/components/PopUpModal/types.d.ts +14 -0
  16. package/lib/components/RadioGroup/radioGroupTypes.d.ts +20 -0
  17. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.d.ts +2 -1
  18. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.d.ts +1 -1
  19. package/lib/components/SequentialConnectingBranch/components/Branches/types.d.ts +3 -2
  20. package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.d.ts +1 -1
  21. package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/types.d.ts +3 -2
  22. package/lib/components/SequentialConnectingBranch/types.d.ts +11 -3
  23. package/lib/components/TableTree/TableTree.d.ts +4 -24
  24. package/lib/components/TableTree/data.d.ts +112 -273
  25. package/lib/components/TableTree/types.d.ts +28 -0
  26. package/lib/index.d.ts +149 -32
  27. package/lib/index.esm.js +1104 -742
  28. package/lib/index.esm.js.map +1 -1
  29. package/lib/index.js +1109 -742
  30. package/lib/index.js.map +1 -1
  31. package/lib/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +2 -2
  33. package/src/assets/Themes/BaseTheme.scss +5 -14
  34. package/src/assets/Themes/DarkTheme.scss +5 -2
  35. package/src/assets/icons/arrow_up.svg +1 -1
  36. package/src/assets/icons/export.svg +5 -0
  37. package/src/assets/icons/import.svg +5 -0
  38. package/src/assets/icons/info_icon.svg +4 -16
  39. package/src/assets/icons/replace_file.svg +14 -0
  40. package/src/assets/icons/web_service_icon.svg +3 -0
  41. package/src/assets/styles/_fonts.scss +4 -2
  42. package/src/components/AppHeader/AppHeader.stories.tsx +242 -39
  43. package/src/components/AppHeader/AppHeader.tsx +158 -139
  44. package/src/components/AppHeader/types.ts +19 -6
  45. package/src/components/Charts/BarChart/BarChart.scss +34 -34
  46. package/src/components/Charts/BarChart/BarChart.stories.tsx +3 -2
  47. package/src/components/Charts/BarChart/BarChart.tsx +79 -55
  48. package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +25 -18
  49. package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +31 -11
  50. package/src/components/Charts/DashboardDonutChart/types.ts +2 -0
  51. package/src/components/Charts/IconRadialChart/IconRadialChart.tsx +3 -0
  52. package/src/components/Charts/LineChart/LineChart.scss +13 -4
  53. package/src/components/Charts/LineChart/LineChart.stories.tsx +100 -102
  54. package/src/components/Charts/LineChart/LineChart.tsx +143 -131
  55. package/src/components/Charts/MultiRadialChart/MultiRadialChart.scss +23 -2
  56. package/src/components/Charts/MultiRadialChart/MultiRadialChart.tsx +109 -24
  57. package/src/components/Charts/PieChart/PieChart.scss +5 -3
  58. package/src/components/Charts/PieChart/PieChart.tsx +1 -2
  59. package/src/components/Checkbox/Checkbox.tsx +1 -7
  60. package/src/components/DatePicker/DatePicker.scss +15 -1
  61. package/src/components/DragAndDrop/DragAndDropList.tsx +5 -4
  62. package/src/components/Excel/ExcelFile/ExcelFile.scss +1 -1
  63. package/src/components/Excel/ExcelFile/ExcelFile.tsx +34 -20
  64. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +0 -1
  65. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +44 -15
  66. package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +47 -4
  67. package/src/components/FieldSet/FieldSet.scss +9 -0
  68. package/src/components/FieldSet/FieldSet.stories.tsx +103 -0
  69. package/src/components/FieldSet/FieldSet.tsx +29 -0
  70. package/src/components/FieldSet/index.ts +1 -0
  71. package/src/components/FieldSet/types.ts +8 -0
  72. package/src/components/FileDropzone/FileDropzone.scss +1 -1
  73. package/src/components/FileDropzone/FileDropzone.stories.tsx +15 -3
  74. package/src/components/FileDropzone/FileDropzone.tsx +5 -0
  75. package/src/components/FileDropzone/FilePreview.tsx +1 -1
  76. package/src/components/FileDropzone/types.ts +8 -0
  77. package/src/components/Icon/Icons.scss +1 -1
  78. package/src/components/Icon/iconList.ts +11 -7
  79. package/src/components/MachineInputField/MachineInputField.scss +15 -2
  80. package/src/components/MachineInputField/MachineInputField.tsx +17 -3
  81. package/src/components/MachineInputField/types.ts +1 -1
  82. package/src/components/MultiSelect/Dropdown.tsx +7 -3
  83. package/src/components/MultiSelect/MultiSelect.stories.tsx +6 -1
  84. package/src/components/MultiSelect/MultiSelect.tsx +4 -20
  85. package/src/components/MultiSelect/MultiSelectTypes.ts +2 -0
  86. package/src/components/PopUpModal/PopUpModal.scss +36 -0
  87. package/src/components/PopUpModal/PopUpModal.stories.tsx +61 -0
  88. package/src/components/PopUpModal/PopUpModal.tsx +85 -0
  89. package/src/components/PopUpModal/types.ts +14 -0
  90. package/src/components/RadioGroup/RadioGroup.scss +7 -0
  91. package/src/components/RadioGroup/RadioGroup.stories.tsx +26 -0
  92. package/src/components/RadioGroup/RadioGroup.tsx +16 -0
  93. package/src/components/RadioGroup/radioGroupTypes.tsx +24 -0
  94. package/src/components/Select/Select.tsx +3 -4
  95. package/src/components/Select/components/Dropdown.tsx +34 -34
  96. package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.scss +9 -0
  97. package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.tsx +74 -43
  98. package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +9 -3
  99. package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +45 -14
  100. package/src/components/SequentialConnectingBranch/components/Branches/types.ts +9 -2
  101. package/src/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.tsx +3 -1
  102. package/src/components/SequentialConnectingBranch/components/ConnectingBranches/types.ts +9 -2
  103. package/src/components/SequentialConnectingBranch/types.ts +18 -3
  104. package/src/components/TableTree/TableTree.scss +154 -123
  105. package/src/components/TableTree/TableTree.stories.tsx +148 -96
  106. package/src/components/TableTree/TableTree.tsx +250 -282
  107. package/src/components/TableTree/data.ts +318 -569
  108. package/src/components/TableTree/types.ts +30 -0
  109. package/src/components/Toast/Toast.tsx +1 -1
  110. 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
+ }
@@ -22,7 +22,7 @@ const Toaster: React.FC<ToasterProps> = ({
22
22
 
23
23
  const iconMap = {
24
24
  success: 'success',
25
- info: 'info',
25
+ info: 'toast_info',
26
26
  warning: 'warning',
27
27
  danger: 'error',
28
28
  confirm: 'delete',
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
  };