pixel-react-excel-sheet 1.0.10 → 1.0.12

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 (202) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/1fb4472b34e4fe07.css +1 -0
  3. package/lib/components/Accordion/Accordion.d.ts +1 -1
  4. package/lib/components/Accordion/types.d.ts +12 -0
  5. package/lib/components/AddVariables/AddVariables.d.ts +5 -0
  6. package/lib/components/AddVariables/index.d.ts +1 -0
  7. package/lib/components/AddVariables/types.d.ts +35 -0
  8. package/lib/components/AppHeader/types.d.ts +2 -0
  9. package/lib/components/AttachImage/AttachImage.d.ts +1 -6
  10. package/lib/components/AttachImage/types.d.ts +8 -0
  11. package/lib/components/Avatar/types.d.ts +9 -1
  12. package/lib/components/Checkbox/types.d.ts +4 -0
  13. package/lib/components/Comment/Comments.d.ts +4 -0
  14. package/lib/components/Comment/comment/Comment.d.ts +11 -0
  15. package/lib/components/Comment/comment/useNode.d.ts +7 -0
  16. package/lib/components/Comment/index.d.ts +1 -0
  17. package/lib/components/Comment/type.d.ts +25 -0
  18. package/lib/components/CreateVariable/CreateVariableSlider.d.ts +5 -0
  19. package/lib/components/CreateVariable/index.d.ts +1 -0
  20. package/lib/components/CreateVariable/types.d.ts +56 -0
  21. package/lib/components/Drawer/Types.d.ts +13 -0
  22. package/lib/components/Editor/constants.d.ts +1 -1
  23. package/lib/components/Editor/types.d.ts +10 -2
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +8 -1
  25. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.d.ts +2 -0
  26. package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +13 -6
  27. package/lib/components/IconButton/IconButton.d.ts +1 -2
  28. package/lib/components/IconButton/types.d.ts +1 -0
  29. package/lib/components/Input/Input.d.ts +1 -1
  30. package/lib/components/MiniModal/types.d.ts +7 -0
  31. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
  32. package/lib/components/PhoneInput/PhoneInput.d.ts +6 -0
  33. package/lib/components/PhoneInput/index.d.ts +1 -0
  34. package/lib/components/PhoneInput/types.d.ts +10 -0
  35. package/lib/components/PopUpModal/types.d.ts +1 -0
  36. package/lib/components/Select/components/types.d.ts +1 -0
  37. package/lib/components/Select/types.d.ts +2 -0
  38. package/lib/components/TableTree/Components/TableBody.d.ts +4 -0
  39. package/lib/components/TableTree/Components/TableCell.d.ts +4 -0
  40. package/lib/components/TableTree/Components/TableHead.d.ts +4 -0
  41. package/lib/components/TableTree/Components/TableRow.d.ts +4 -0
  42. package/lib/components/TableTree/Utils/getAllChildIds.d.ts +1 -0
  43. package/lib/components/TableTree/types.d.ts +38 -5
  44. package/lib/components/TableWithAccordion/TableWithAccordion.d.ts +5 -0
  45. package/lib/components/TableWithAccordion/data.d.ts +8 -0
  46. package/lib/components/TableWithAccordion/index.d.ts +1 -0
  47. package/lib/components/TableWithAccordion/types.d.ts +67 -0
  48. package/lib/index.d.ts +303 -17
  49. package/lib/index.esm.js +3372 -747
  50. package/lib/index.esm.js.map +1 -1
  51. package/lib/index.js +3377 -746
  52. package/lib/index.js.map +1 -1
  53. package/lib/tsconfig.tsbuildinfo +1 -1
  54. package/lib/utils/checkDuplicates/checkDuplicates.d.ts +1 -0
  55. package/package.json +2 -1
  56. package/src/assets/Themes/BaseTheme.scss +14 -0
  57. package/src/assets/Themes/DarkTheme.scss +68 -41
  58. package/src/assets/icons/add_file.svg +4 -17
  59. package/src/assets/icons/add_variable.svg +11 -0
  60. package/src/assets/icons/authorization.svg +4 -0
  61. package/src/assets/icons/authorization_icon.svg +1 -0
  62. package/src/assets/icons/backward.svg +10 -0
  63. package/src/assets/icons/capture_icon.svg +3 -0
  64. package/src/assets/icons/depends_on_script.svg +7 -0
  65. package/src/assets/icons/download_file_icon.svg +2 -9
  66. package/src/assets/icons/email_group.svg +3 -0
  67. package/src/assets/icons/executions_icon.svg +3 -0
  68. package/src/assets/icons/forward.svg +3 -0
  69. package/src/assets/icons/labels.svg +8 -0
  70. package/src/assets/icons/machine_disable_icon.svg +18 -0
  71. package/src/assets/icons/machine_enable_icon.svg +10 -0
  72. package/src/assets/icons/parameters.svg +3 -0
  73. package/src/assets/icons/pre_post_condition.svg +8 -0
  74. package/src/assets/icons/program_element.svg +8 -0
  75. package/src/assets/icons/project_status_icon.svg +10 -0
  76. package/src/assets/icons/refresh_icon.svg +4 -0
  77. package/src/assets/icons/rotate_icon.svg +10 -0
  78. package/src/assets/icons/suites_icon.svg +3 -0
  79. package/src/assets/icons/swipe_icon.svg +9 -0
  80. package/src/assets/icons/tap_icon.svg +4 -0
  81. package/src/assets/icons/test_data.svg +5 -0
  82. package/src/assets/icons/test_data_set.svg +7 -0
  83. package/src/assets/icons/variable_set.svg +5 -0
  84. package/src/assets/styles/_colors.scss +0 -1
  85. package/src/components/Accordion/Accordion.stories.tsx +4 -0
  86. package/src/components/Accordion/Accordion.tsx +7 -1
  87. package/src/components/Accordion/types.ts +12 -0
  88. package/src/components/AddVariables/AddVariables.scss +14 -0
  89. package/src/components/AddVariables/AddVariables.stories.tsx +44 -0
  90. package/src/components/AddVariables/AddVariables.tsx +113 -0
  91. package/src/components/AddVariables/index.ts +1 -0
  92. package/src/components/AddVariables/types.ts +36 -0
  93. package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +1 -1
  94. package/src/components/AppHeader/AppHeader.scss +40 -1
  95. package/src/components/AppHeader/AppHeader.stories.tsx +133 -5
  96. package/src/components/AppHeader/AppHeader.tsx +111 -112
  97. package/src/components/AppHeader/types.ts +10 -9
  98. package/src/components/AttachImage/AttachImage.stories.tsx +2 -0
  99. package/src/components/AttachImage/AttachImage.tsx +5 -9
  100. package/src/components/AttachImage/types.ts +25 -18
  101. package/src/components/Avatar/Avatar.scss +4 -0
  102. package/src/components/Avatar/Avatar.stories.tsx +38 -18
  103. package/src/components/Avatar/Avatar.tsx +19 -3
  104. package/src/components/Avatar/types.ts +9 -1
  105. package/src/components/Charts/DonutChart/DonutChart.tsx +8 -3
  106. package/src/components/Charts/RadialChart/RadialChart.scss +4 -0
  107. package/src/components/Charts/RadialChart/RadialChart.tsx +51 -45
  108. package/src/components/Checkbox/Checkbox.scss +57 -0
  109. package/src/components/Checkbox/Checkbox.stories.tsx +91 -15
  110. package/src/components/Checkbox/Checkbox.tsx +4 -1
  111. package/src/components/Checkbox/types.ts +4 -0
  112. package/src/components/Comment/Comments.scss +166 -0
  113. package/src/components/Comment/Comments.stories.tsx +212 -0
  114. package/src/components/Comment/Comments.tsx +51 -0
  115. package/src/components/Comment/comment/Comment.tsx +206 -0
  116. package/src/components/Comment/comment/useNode.ts +51 -0
  117. package/src/components/Comment/index.ts +1 -0
  118. package/src/components/Comment/type.ts +36 -0
  119. package/src/components/CreateVariable/CreateVariableSlider.scss +18 -0
  120. package/src/components/CreateVariable/CreateVariableSlider.stories.tsx +66 -0
  121. package/src/components/CreateVariable/CreateVariableSlider.tsx +95 -0
  122. package/src/components/CreateVariable/index.ts +1 -0
  123. package/src/components/CreateVariable/types.ts +58 -0
  124. package/src/components/Drawer/Drawer.scss +3 -2
  125. package/src/components/Drawer/Drawer.stories.tsx +0 -1
  126. package/src/components/Drawer/Drawer.tsx +4 -1
  127. package/src/components/Drawer/Types.ts +13 -0
  128. package/src/components/Editor/Editor.stories.tsx +2 -2
  129. package/src/components/Editor/Editor.tsx +4 -2
  130. package/src/components/Editor/VariableDropdown.scss +8 -2
  131. package/src/components/Editor/VariableDropdown.tsx +15 -7
  132. package/src/components/Editor/constants.ts +1 -1
  133. package/src/components/Editor/types.ts +12 -2
  134. package/src/components/Excel/ExcelFile/ExcelFile.scss +3 -1
  135. package/src/components/Excel/ExcelFile/ExcelFile.tsx +37 -21
  136. package/src/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.tsx +12 -0
  137. package/src/components/Excel/ExcelFile/ExcelFileComponents/Cell.tsx +2 -34
  138. package/src/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.tsx +26 -1
  139. package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +1 -1
  140. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +25 -21
  141. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +1 -3
  142. package/src/components/Excel/ExcelFile/ExcelFileComponents/actions.ts +13 -0
  143. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +53 -26
  144. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +81 -14
  145. package/src/components/Excel/ExcelFile/ExcelFileComponents/types.ts +17 -6
  146. package/src/components/Excel/ExcelFile.stories.tsx +4 -4
  147. package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +36 -19
  148. package/src/components/Excel/dataConversion.ts +43 -20
  149. package/src/components/FieldSet/FieldSet.scss +2 -1
  150. package/src/components/FieldSet/FieldSet.stories.tsx +2 -1
  151. package/src/components/FileDropzone/FileDropzone.scss +0 -1
  152. package/src/components/Icon/iconList.ts +45 -2
  153. package/src/components/IconButton/IconButton.scss +11 -11
  154. package/src/components/IconButton/IconButton.stories.tsx +1 -0
  155. package/src/components/IconButton/IconButton.tsx +6 -8
  156. package/src/components/IconButton/types.ts +2 -1
  157. package/src/components/IconRadioGroup/IconRadioGroup.scss +2 -1
  158. package/src/components/Input/Input.tsx +99 -88
  159. package/src/components/LabelEditTextField/LabelEditTextField.tsx +1 -1
  160. package/src/components/MiniModal/MiniModal.scss +0 -4
  161. package/src/components/MiniModal/MiniModal.stories.tsx +3 -2
  162. package/src/components/MiniModal/MiniModal.tsx +28 -10
  163. package/src/components/MiniModal/types.ts +7 -0
  164. package/src/components/Modal/Modal.stories.tsx +2 -1
  165. package/src/components/MultiSelect/MultiSelect.scss +29 -0
  166. package/src/components/MultiSelect/MultiSelect.stories.tsx +19 -5
  167. package/src/components/MultiSelect/MultiSelect.tsx +29 -19
  168. package/src/components/PhoneInput/PhoneInput.d.ts +3 -0
  169. package/src/components/PhoneInput/PhoneInput.stories.tsx +95 -0
  170. package/src/components/PhoneInput/PhoneInput.tsx +90 -0
  171. package/src/components/PhoneInput/index.ts +1 -0
  172. package/src/components/PhoneInput/phoneInput.scss +3 -0
  173. package/src/components/PhoneInput/types.ts +10 -0
  174. package/src/components/PopUpModal/PopUpModal.stories.tsx +14 -13
  175. package/src/components/PopUpModal/PopUpModal.tsx +2 -1
  176. package/src/components/PopUpModal/types.ts +14 -13
  177. package/src/components/Select/Select.scss +20 -0
  178. package/src/components/Select/Select.stories.tsx +50 -1
  179. package/src/components/Select/Select.tsx +34 -7
  180. package/src/components/Select/components/Dropdown.scss +9 -0
  181. package/src/components/Select/components/Dropdown.tsx +20 -6
  182. package/src/components/Select/components/types.ts +1 -0
  183. package/src/components/Select/types.ts +12 -2
  184. package/src/components/TableTree/Components/TableBody.tsx +35 -0
  185. package/src/components/TableTree/Components/TableCell.tsx +59 -0
  186. package/src/components/TableTree/Components/TableHead.tsx +39 -0
  187. package/src/components/TableTree/Components/TableRow.tsx +37 -0
  188. package/src/components/TableTree/TableTree.scss +8 -5
  189. package/src/components/TableTree/TableTree.tsx +16 -46
  190. package/src/components/TableTree/Utils/getAllChildIds.ts +12 -0
  191. package/src/components/TableTree/Utils/renderSpaces.ts +0 -0
  192. package/src/components/TableTree/types.ts +43 -5
  193. package/src/components/TableWithAccordion/TableWithAccordion.scss +54 -0
  194. package/src/components/TableWithAccordion/TableWithAccordion.stories.tsx +94 -0
  195. package/src/components/TableWithAccordion/TableWithAccordion.tsx +174 -0
  196. package/src/components/TableWithAccordion/data.ts +37 -0
  197. package/src/components/TableWithAccordion/index.ts +1 -0
  198. package/src/components/TableWithAccordion/types.ts +70 -0
  199. package/src/components/Tabs/Tabs.scss +0 -1
  200. package/src/index.ts +14 -1
  201. package/src/utils/checkDuplicates/CheckDuplicates.stories.tsx +40 -0
  202. package/src/utils/checkDuplicates/checkDuplicates.ts +13 -0
@@ -0,0 +1 @@
1
+ declare const getAllChildIds: (nodeId: string, data: any[]) => string[];
@@ -1,28 +1,61 @@
1
+ import { ReactNode } from 'react';
1
2
  export interface TreeNode {
2
3
  key: string;
3
4
  [key: string]: any;
4
5
  children?: TreeNode[];
5
6
  expanded?: boolean;
6
7
  }
8
+ declare type JSX = ReactNode | JSX.Element[] | string | null;
9
+ export interface TableCellProps {
10
+ col: any;
11
+ node: any;
12
+ level: number;
13
+ selected: string[];
14
+ select: string | null;
15
+ onCheckBoxChange: (type: string, node: any) => void;
16
+ onToggleExpand: (node: any) => void;
17
+ }
18
+ export interface TableHeadProps {
19
+ columnsData: any[];
20
+ }
21
+ export interface TableBodyProps {
22
+ flattenedTreeData: any[];
23
+ columnsData: any[];
24
+ selected: string[];
25
+ select: string | null;
26
+ onRowClick: (e: any, node: any) => void;
27
+ onToggleExpand: (node: any) => void;
28
+ onCheckBoxChange: (type: string, node: any) => void;
29
+ }
30
+ export interface TableRowProps {
31
+ node: any;
32
+ level: number;
33
+ columnsData: any[];
34
+ selected: string[];
35
+ select: string | null;
36
+ onRowClick: (e: any, node: any) => void;
37
+ onToggleExpand: (node: any) => void;
38
+ onCheckBoxChange: (type: string, node: any) => void;
39
+ }
7
40
  export interface Column {
8
41
  name: string;
9
42
  accessor: string;
10
43
  width: string;
11
44
  isClickable?: boolean;
12
- cell?: (row: any) => JSX.Element | string | null;
13
- actions?: (row: any) => JSX.Element[];
45
+ cell?: (row: any) => JSX;
46
+ actions?: (row: any) => JSX;
14
47
  isTree?: boolean;
15
48
  defaultValue?: string;
16
- defaultActions?: () => JSX.Element[];
49
+ defaultActions?: () => JSX;
17
50
  }
18
51
  export interface TreeTableProps {
19
52
  treeData: any;
20
53
  columnsData: Column[];
21
54
  selected?: string[];
22
55
  select?: 'radio' | 'checkbox' | 'none';
23
- onChange?: (nodes: string[]) => void;
56
+ onChange?: (e: any, node: string[]) => void;
24
57
  onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
25
- expandedNodes: string[];
26
58
  onExpand?: (_isExpanded: boolean, node: string) => void;
27
59
  onPagination?: (_direction: string) => void;
28
60
  }
61
+ export {};
@@ -0,0 +1,5 @@
1
+ import './TableWithAccordion.scss';
2
+ import '../../../index.scss';
3
+ import { TableProps } from './types';
4
+ declare const TableWithAccordion: ({ tableMeta, tableData, accordionType, noDataContent, height, withFixedHeader, headerType, TableAccordionStateIconWidth, TableAccordionStateIconHeight, }: TableProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default TableWithAccordion;
@@ -0,0 +1,8 @@
1
+ export declare const sampleData: {
2
+ title: string;
3
+ data: {
4
+ desc: string;
5
+ modifiedBy: string;
6
+ suiteName: string;
7
+ }[];
8
+ }[];
@@ -0,0 +1 @@
1
+ export { default } from './TableWithAccordion';
@@ -0,0 +1,67 @@
1
+ import { ReactNode } from "react";
2
+ export interface ColumnProps {
3
+ /**
4
+ * column name
5
+ */
6
+ header: string;
7
+ /**
8
+ * data key for particular column
9
+ */
10
+ accessor: string;
11
+ /**
12
+ * className for a column
13
+ */
14
+ className?: string;
15
+ /**
16
+ * width of a column
17
+ */
18
+ width?: number;
19
+ /**
20
+ * data for the column
21
+ */
22
+ cell?: (e: any) => JSX.Element | string | ReactNode;
23
+ }
24
+ export interface DataProps {
25
+ /**
26
+ * data for each row
27
+ */
28
+ [key: string]: any;
29
+ }
30
+ export interface TableProps {
31
+ /**
32
+ * Column details for table
33
+ */
34
+ tableMeta: Array<ColumnProps>;
35
+ /**
36
+ * Data for table
37
+ */
38
+ tableData: Array<DataProps>;
39
+ /**
40
+ * Table type
41
+ */
42
+ accordionType: 'row' | 'column';
43
+ /**
44
+ * Specific sentence to be displayed data not found
45
+ */
46
+ noDataContent?: string | ReactNode;
47
+ /**
48
+ * withFixedHeader prop to have non-scrollable fixed accordion table header
49
+ */
50
+ withFixedHeader?: boolean;
51
+ /**
52
+ * Height of the table in string
53
+ */
54
+ height?: string;
55
+ /**
56
+ * Header type to have different background color
57
+ */
58
+ headerType: 'default' | 'primary' | 'secondary';
59
+ /**
60
+ * Accordion collapse and expand Icon width
61
+ */
62
+ TableAccordionStateIconWidth: number;
63
+ /**
64
+ * Accordion collapse and expand Icon height
65
+ */
66
+ TableAccordionStateIconHeight: number;
67
+ }
package/lib/index.d.ts CHANGED
@@ -214,6 +214,19 @@ interface DrawerProps {
214
214
  * Custom top for the drawer
215
215
  */
216
216
  top?: string;
217
+ /**
218
+ * Height of the drawer
219
+ */
220
+ height?: string;
221
+ /**
222
+ *
223
+ * width of the drawer
224
+ */
225
+ width?: string;
226
+ /**
227
+ * Position from right
228
+ */
229
+ right?: string | number;
217
230
  }
218
231
 
219
232
  declare const Drawer: FC<DrawerProps>;
@@ -260,12 +273,24 @@ interface AccordionProps {
260
273
  * Info message to user for disabling accordion
261
274
  */
262
275
  disableInfoMessage?: string;
276
+ /**
277
+ * Icon name for the Accordion state like expand and collapse
278
+ */
279
+ accordionStateIconName?: string;
280
+ /**
281
+ * Accordion collapse and expand Icon width
282
+ */
283
+ AccordionStateIconWidth: number;
284
+ /**
285
+ * Accordion collapse and expand Icon height
286
+ */
287
+ AccordionStateIconHeight: number;
263
288
  }
264
289
 
265
290
  /**
266
291
  * Accordion UI component
267
292
  */
268
- declare const Accordion: ({ headerTitle, color, minHeight, accordionContent, disable, disableInfoMessage, }: AccordionProps) => react_jsx_runtime.JSX.Element;
293
+ declare const Accordion: ({ headerTitle, color, minHeight, accordionContent, disable, disableInfoMessage, accordionStateIconName, AccordionStateIconWidth, AccordionStateIconHeight, }: AccordionProps) => react_jsx_runtime.JSX.Element;
269
294
 
270
295
  type OptionValue$1 = any;
271
296
  interface Option$3 {
@@ -302,7 +327,7 @@ interface MultiSelectProps {
302
327
  onEnter?: (newOption: string) => void;
303
328
  }
304
329
 
305
- declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, displayCount, placeholderForSearching, variant, onLabelPlusIconClick, onManageLabelsClick, className, highlightedMachine, onSelectButtonClick, labelAccessor, valueAccessor, withSelectButton, onEnter }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
330
+ declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, displayCount: initialDisplayCount, placeholderForSearching, variant, onLabelPlusIconClick, onManageLabelsClick, className, highlightedMachine, onSelectButtonClick, labelAccessor, valueAccessor, withSelectButton, onEnter, }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
306
331
 
307
332
  interface ToasterProps {
308
333
  /**Boolean value to handle state of toaster. */
@@ -597,7 +622,7 @@ interface InputProps {
597
622
  isLabelRequired?: boolean;
598
623
  }
599
624
 
600
- declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, size, isLabelRequired, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
625
+ declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
601
626
 
602
627
  type Status$1 = {
603
628
  status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'passed' | 'failed' | 'warning' | 'skipped';
@@ -674,6 +699,8 @@ interface SelectProps$1 {
674
699
  width?: number | string;
675
700
  onBlur?: () => void;
676
701
  disableInput?: boolean;
702
+ showIcon?: boolean;
703
+ iconName?: string;
677
704
  }
678
705
  type OptionValue = any;
679
706
  interface Option$2 {
@@ -921,7 +948,7 @@ interface MenuOptionProps {
921
948
 
922
949
  declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, dropdownPlacement, optionCardVariant }: MenuOptionProps) => react_jsx_runtime.JSX.Element;
923
950
 
924
- interface DataProps {
951
+ interface DataProps$1 {
925
952
  /**
926
953
  * data for each row
927
954
  */
@@ -933,11 +960,11 @@ interface SelectedItemProps {
933
960
  */
934
961
  [key: string]: string | number | boolean;
935
962
  }
936
- interface TableProps {
963
+ interface TableProps$1 {
937
964
  /**
938
965
  * Data for table
939
966
  */
940
- data: Array<number | string | DataProps>;
967
+ data: Array<number | string | DataProps$1>;
941
968
  /**
942
969
  * Column details for table
943
970
  */
@@ -1020,7 +1047,7 @@ interface TableProps {
1020
1047
  headerIconOnClick?: () => void;
1021
1048
  }
1022
1049
 
1023
- declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, noDataContent, height, className, tableHeadClass, tableBodyRowClass, headerTextColor, tableDataTextColor, headerIconName, headerIconOnClick, }: TableProps) => react_jsx_runtime.JSX.Element;
1050
+ declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, noDataContent, height, className, tableHeadClass, tableBodyRowClass, headerTextColor, tableDataTextColor, headerIconName, headerIconOnClick, }: TableProps$1) => react_jsx_runtime.JSX.Element;
1024
1051
 
1025
1052
  /**
1026
1053
  * Props for the Add Resource Button component.
@@ -1411,6 +1438,8 @@ interface ModalDimensions {
1411
1438
  borderRadius?: number;
1412
1439
  zIndex?: number;
1413
1440
  boxShadow?: string;
1441
+ left?: number;
1442
+ top?: number;
1414
1443
  }
1415
1444
  interface MiniEditModalProps {
1416
1445
  /**
@@ -1500,6 +1529,11 @@ interface MiniEditModalProps {
1500
1529
  boxShadow?: string;
1501
1530
  };
1502
1531
  arrowZIndex?: number;
1532
+ arrowProperties?: {
1533
+ left?: number;
1534
+ top?: number;
1535
+ size?: number;
1536
+ };
1503
1537
  overlay?: {
1504
1538
  isOverlay?: boolean;
1505
1539
  zIndexOverlay?: number;
@@ -1516,25 +1550,25 @@ interface TreeNode {
1516
1550
  children?: TreeNode[];
1517
1551
  expanded?: boolean;
1518
1552
  }
1553
+ declare type JSX$1 = ReactNode | JSX$1.Element[] | string | null;
1519
1554
  interface Column {
1520
1555
  name: string;
1521
1556
  accessor: string;
1522
1557
  width: string;
1523
1558
  isClickable?: boolean;
1524
- cell?: (row: any) => JSX.Element | string | null;
1525
- actions?: (row: any) => JSX.Element[];
1559
+ cell?: (row: any) => JSX$1;
1560
+ actions?: (row: any) => JSX$1;
1526
1561
  isTree?: boolean;
1527
1562
  defaultValue?: string;
1528
- defaultActions?: () => JSX.Element[];
1563
+ defaultActions?: () => JSX$1;
1529
1564
  }
1530
1565
  interface TreeTableProps {
1531
1566
  treeData: any;
1532
1567
  columnsData: Column[];
1533
1568
  selected?: string[];
1534
1569
  select?: 'radio' | 'checkbox' | 'none';
1535
- onChange?: (nodes: string[]) => void;
1570
+ onChange?: (e: any, node: string[]) => void;
1536
1571
  onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
1537
- expandedNodes: string[];
1538
1572
  onExpand?: (_isExpanded: boolean, node: string) => void;
1539
1573
  onPagination?: (_direction: string) => void;
1540
1574
  }
@@ -1607,6 +1641,10 @@ interface CheckboxProps {
1607
1641
  * For partially checked checkbox
1608
1642
  */
1609
1643
  partial?: boolean;
1644
+ /**
1645
+ * For variant color
1646
+ */
1647
+ variant?: 'passed' | 'failed' | 'warning' | 'skipped' | 'flaky';
1610
1648
  }
1611
1649
 
1612
1650
  declare const Checkbox: React__default.FC<CheckboxProps>;
@@ -1708,9 +1746,10 @@ interface IconButtonProps {
1708
1746
  label: string;
1709
1747
  iconName: string;
1710
1748
  onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
1749
+ ref?: React.Ref<HTMLButtonElement>;
1711
1750
  }
1712
1751
 
1713
- declare const IconButton: React__default.FC<IconButtonProps>;
1752
+ declare const IconButton: React$1.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1714
1753
 
1715
1754
  interface ModalProps {
1716
1755
  isOpen: boolean;
@@ -1836,11 +1875,13 @@ interface PieChartProps {
1836
1875
  declare const PieChart: React__default.FC<PieChartProps>;
1837
1876
 
1838
1877
  interface AppHeaderProps {
1878
+ width?: string;
1839
1879
  logoIconName: string;
1840
1880
  leftContent?: ReactNode;
1841
1881
  rightContent?: ReactNode;
1842
1882
  projectsList?: optionsType[];
1843
1883
  appHeaderMenuItems: appHeaderMenuItemProps[];
1884
+ appHeaderHiddenMenuItems?: appHeaderHiddenMenuItemProps[];
1844
1885
  selectedMenu: string;
1845
1886
  selectedSubMenu?: string;
1846
1887
  selectedQuickMenu?: string;
@@ -2128,7 +2169,7 @@ interface AvatarProps {
2128
2169
  /**
2129
2170
  * This property specifies the name of the icon to be displayed within the avatar.
2130
2171
  */
2131
- iconName: string;
2172
+ iconName?: string;
2132
2173
  /**
2133
2174
  * This property allows you to customize the color of the icon within the avatar.
2134
2175
  */
@@ -2141,6 +2182,14 @@ interface AvatarProps {
2141
2182
  * This property allows you to set a custom size for the icon within the avatar.
2142
2183
  */
2143
2184
  customIconSize?: number;
2185
+ /**
2186
+ * This property specifies the label to display inside the avatar, used as an alternative to the icon.
2187
+ */
2188
+ label?: string;
2189
+ /**
2190
+ * This property allows you to customize the font size of the label inside the avatar.
2191
+ */
2192
+ labelFontSize?: string;
2144
2193
  }
2145
2194
 
2146
2195
  declare const Avatar: React__default.FC<AvatarProps>;
@@ -2298,11 +2347,32 @@ interface IconRadialChartProps {
2298
2347
  declare const IconRadialChart: React__default.FC<IconRadialChartProps>;
2299
2348
 
2300
2349
  interface AttachImageProps {
2350
+ /**
2351
+ * The image source to display.
2352
+ */
2301
2353
  imageSrc: string;
2354
+ /**
2355
+ * Function triggered when the expand icon is clicked.
2356
+ */
2302
2357
  onExpandClick: () => void;
2358
+ /**
2359
+ * Function triggered when the delete icon is clicked.
2360
+ */
2303
2361
  onDeleteClick: () => void;
2362
+ /**
2363
+ * Function triggered when the download icon is clicked.
2364
+ */
2304
2365
  onDownloadClick: () => void;
2366
+ /**
2367
+ * Custom height for the component.
2368
+ */
2369
+ height?: string;
2370
+ /**
2371
+ * Custom width for the component.
2372
+ */
2373
+ width?: string;
2305
2374
  }
2375
+
2306
2376
  declare const AttachImage: React__default.FC<AttachImageProps>;
2307
2377
 
2308
2378
  interface CardProps {
@@ -2366,10 +2436,18 @@ interface dropdownPositionType {
2366
2436
  left: number;
2367
2437
  }
2368
2438
  interface VariableDropdownProps {
2439
+ /**
2440
+ * Position whether absoloute or relative
2441
+ */
2442
+ position: 'absolute' | 'relative';
2443
+ /**
2444
+ * Dropdown width
2445
+ */
2446
+ width: string;
2369
2447
  /**
2370
2448
  * List of variables
2371
2449
  */
2372
- optionsList: {}[];
2450
+ optionsList: DyanamicObj[];
2373
2451
  /**
2374
2452
  * Function to handle click on variable
2375
2453
  */
@@ -2377,7 +2455,7 @@ interface VariableDropdownProps {
2377
2455
  /**
2378
2456
  * Dropdown postion used for dropdown placement
2379
2457
  */
2380
- dropdownPosition: dropdownPositionType;
2458
+ dropdownPosition?: dropdownPositionType;
2381
2459
  }
2382
2460
 
2383
2461
  declare const VariableDropdown: FC<VariableDropdownProps>;
@@ -2449,6 +2527,133 @@ interface fieldSetProps {
2449
2527
 
2450
2528
  declare const FieldSet: FC<fieldSetProps>;
2451
2529
 
2530
+ type DynamicObj = {
2531
+ [key: string]: any;
2532
+ };
2533
+ interface CreateVariableProps {
2534
+ /**
2535
+ * Open Create variable Slider
2536
+ */
2537
+ isOpen: boolean;
2538
+ /**
2539
+ * Value for the variable name
2540
+ */
2541
+ variableName: string;
2542
+ /**
2543
+ * Value for the variable to be created
2544
+ */
2545
+ value: string;
2546
+ /**
2547
+ * List for the variable types
2548
+ */
2549
+ variableTypesList: DynamicObj[];
2550
+ /**
2551
+ * Selected variable type
2552
+ */
2553
+ selectedVariableType: DynamicObj;
2554
+ /**
2555
+ * Function to handle variable type change
2556
+ * @param option
2557
+ * @returns
2558
+ */
2559
+ onVariableTypeChange: (option: DynamicObj) => void;
2560
+ /**
2561
+ * Function to handle close
2562
+ */
2563
+ onClose?: () => void;
2564
+ /**
2565
+ * onChange of name
2566
+ */
2567
+ onNameChange: (value: string | boolean) => void;
2568
+ /**
2569
+ * onChange of value
2570
+ */
2571
+ onValueChange: (value: string | boolean) => void;
2572
+ /**
2573
+ * Hide value
2574
+ */
2575
+ hideValue: boolean;
2576
+ /**
2577
+ * onChange for hide value
2578
+ */
2579
+ onHideChange: (value: boolean) => void;
2580
+ /**
2581
+ * Function to handle submit
2582
+ */
2583
+ handleSubmit: () => void;
2584
+ }
2585
+
2586
+ declare const CreateVariableSlider: FC<CreateVariableProps>;
2587
+
2588
+ interface ColumnProps {
2589
+ /**
2590
+ * column name
2591
+ */
2592
+ header: string;
2593
+ /**
2594
+ * data key for particular column
2595
+ */
2596
+ accessor: string;
2597
+ /**
2598
+ * className for a column
2599
+ */
2600
+ className?: string;
2601
+ /**
2602
+ * width of a column
2603
+ */
2604
+ width?: number;
2605
+ /**
2606
+ * data for the column
2607
+ */
2608
+ cell?: (e: any) => JSX.Element | string | ReactNode;
2609
+ }
2610
+ interface DataProps {
2611
+ /**
2612
+ * data for each row
2613
+ */
2614
+ [key: string]: any;
2615
+ }
2616
+ interface TableProps {
2617
+ /**
2618
+ * Column details for table
2619
+ */
2620
+ tableMeta: Array<ColumnProps>;
2621
+ /**
2622
+ * Data for table
2623
+ */
2624
+ tableData: Array<DataProps>;
2625
+ /**
2626
+ * Table type
2627
+ */
2628
+ accordionType: 'row' | 'column';
2629
+ /**
2630
+ * Specific sentence to be displayed data not found
2631
+ */
2632
+ noDataContent?: string | ReactNode;
2633
+ /**
2634
+ * withFixedHeader prop to have non-scrollable fixed accordion table header
2635
+ */
2636
+ withFixedHeader?: boolean;
2637
+ /**
2638
+ * Height of the table in string
2639
+ */
2640
+ height?: string;
2641
+ /**
2642
+ * Header type to have different background color
2643
+ */
2644
+ headerType: 'default' | 'primary' | 'secondary';
2645
+ /**
2646
+ * Accordion collapse and expand Icon width
2647
+ */
2648
+ TableAccordionStateIconWidth: number;
2649
+ /**
2650
+ * Accordion collapse and expand Icon height
2651
+ */
2652
+ TableAccordionStateIconHeight: number;
2653
+ }
2654
+
2655
+ declare const TableWithAccordion: ({ tableMeta, tableData, accordionType, noDataContent, height, withFixedHeader, headerType, TableAccordionStateIconWidth, TableAccordionStateIconHeight, }: TableProps) => react_jsx_runtime.JSX.Element;
2656
+
2452
2657
  type valueType$1 = any;
2453
2658
  declare const checkEmpty: (value: valueType$1) => boolean;
2454
2659
 
@@ -2576,6 +2781,33 @@ declare const ConnectingBranch: React__default.FC;
2576
2781
 
2577
2782
  declare const saveFileFromBlob: (blob: Blob, filename: string) => void;
2578
2783
 
2784
+ interface CommentType {
2785
+ id?: string | number;
2786
+ description?: string;
2787
+ createdBy?: string;
2788
+ modifiedBy?: string;
2789
+ createdByUname?: string;
2790
+ modifiedByUname?: string;
2791
+ createdOn?: string;
2792
+ modifiedOn?: string;
2793
+ name?: string;
2794
+ emailId?: string[];
2795
+ commentParentId?: string;
2796
+ comments: CommentType[];
2797
+ }
2798
+ type HandleAddComment = (newComment: CommentType, parentCommentId?: string) => void;
2799
+ type HandleEditComment = (commentId: string, updatedDescription: string) => void;
2800
+ type HandleDeleteComment = (commentId: string) => void;
2801
+ interface CommentsProps {
2802
+ commentsData: any;
2803
+ handleAddComment: HandleAddComment;
2804
+ handleEditComment: HandleEditComment;
2805
+ handleDeleteComment: HandleDeleteComment;
2806
+ onCommentsDataChange: (data: any) => void;
2807
+ }
2808
+
2809
+ declare const Comments: ({ commentsData, onCommentsDataChange, }: CommentsProps) => react_jsx_runtime.JSX.Element;
2810
+
2579
2811
  declare const useFileDropzone: (options: DropzoneOptions) => DropzoneState;
2580
2812
 
2581
2813
  interface PopUpModalProps {
@@ -2591,8 +2823,62 @@ interface PopUpModalProps {
2591
2823
  secondButtonLabel: string;
2592
2824
  buttonVariant: any;
2593
2825
  border: string;
2826
+ colorForTitleMessage?: string;
2594
2827
  }
2595
2828
 
2596
2829
  declare const PopUpModal: FC<PopUpModalProps>;
2597
2830
 
2598
- export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachImage, AttachmentButton, Avatar, BarChart, Button, Checkbox, Chip, Col, ConnectingBranch, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, EditTextField, Editor, ExcelFile as Excel, ExpandableMenu, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, HighlightText, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, LineChart, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, Paper, PieChart, PopUpModal, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, StatusCard, Table, TreeTable as TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, Typography, VariableDropdown, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, getSequentialPayload, saveFileFromBlob, throttle, toast, truncateText, useFileDropzone, useTheme };
2831
+ type dynamicObject = {
2832
+ [key: string]: any;
2833
+ };
2834
+ interface AddVariableProps {
2835
+ /**
2836
+ * Label for the field
2837
+ */
2838
+ label?: string;
2839
+ /**
2840
+ * List of variables
2841
+ */
2842
+ variableList?: dynamicObject[];
2843
+ /**
2844
+ * Place holder for the input field
2845
+ */
2846
+ placeholder?: string;
2847
+ /**
2848
+ * Function to handle input change
2849
+ * @param value
2850
+ * @returns
2851
+ */
2852
+ onChange: (value: string) => void;
2853
+ /**
2854
+ * Function to handle create variable icon click
2855
+ */
2856
+ onCreateVariableClick?: () => void;
2857
+ /**
2858
+ * Value of the input field
2859
+ */
2860
+ value: string;
2861
+ /**
2862
+ * Width of the dropdown
2863
+ */
2864
+ dropdownWidth?: string;
2865
+ }
2866
+
2867
+ declare const AddVariables: React__default.FC<AddVariableProps>;
2868
+
2869
+ declare const hasDuplicateFile: (array: any[], property: string) => boolean;
2870
+
2871
+ interface PhoneInputProps {
2872
+ country: string;
2873
+ value: string;
2874
+ onChange: (phone: string) => void;
2875
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
2876
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
2877
+ width?: string;
2878
+ placeholder?: string;
2879
+ isValid: any;
2880
+ }
2881
+
2882
+ declare const PhoneInputField: React__default.FC<PhoneInputProps>;
2883
+
2884
+ export { Accordion, AddButton as AddResourceButton, AddVariables, AllProjectsDropdown, AppHeader, AttachImage, AttachmentButton, Avatar, BarChart, Button, Checkbox, Chip, Col, Comments, ConnectingBranch, Container, CreateVariableSlider, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, EditTextField, Editor, ExcelFile as Excel, ExpandableMenu, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, HighlightText, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, LineChart, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, Paper, PhoneInputField, PieChart, PopUpModal, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, StatusCard, Table, TreeTable as TableTree, TableWithAccordion, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, Typography, VariableDropdown, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, getSequentialPayload, hasDuplicateFile, saveFileFromBlob, throttle, toast, truncateText, useFileDropzone, useTheme };