pixel-react 1.6.2 → 1.6.5

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 (196) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
  3. package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
  4. package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
  5. package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
  6. package/lib/components/AttachImage/AttachImage.d.ts +1 -6
  7. package/lib/components/AttachImage/types.d.ts +8 -0
  8. package/lib/components/Avatar/types.d.ts +9 -1
  9. package/lib/components/CreateVariable/CreateVariableSlider.d.ts +5 -0
  10. package/lib/components/CreateVariable/index.d.ts +1 -0
  11. package/lib/components/CreateVariable/types.d.ts +56 -0
  12. package/lib/components/Drawer/Types.d.ts +13 -0
  13. package/lib/components/IconButton/types.d.ts +1 -0
  14. package/lib/components/MiniModal/types.d.ts +7 -0
  15. package/lib/components/Select/components/types.d.ts +1 -0
  16. package/lib/components/Select/types.d.ts +2 -0
  17. package/lib/components/TableTree/Components/TableBody.d.ts +4 -0
  18. package/lib/components/TableTree/Components/TableCell.d.ts +4 -0
  19. package/lib/components/TableTree/Components/TableHead.d.ts +4 -0
  20. package/lib/components/TableTree/Components/TableRow.d.ts +4 -0
  21. package/lib/components/TableTree/TableTree copy.d.ts +25 -0
  22. package/lib/components/TableTree/Utils/getAllChildIds.d.ts +1 -0
  23. package/lib/components/TableTree/types.d.ts +38 -5
  24. package/lib/index.d.ts +117 -7
  25. package/lib/index.esm.js +594 -324
  26. package/lib/index.esm.js.map +1 -1
  27. package/lib/index.js +594 -323
  28. package/lib/index.js.map +1 -1
  29. package/lib/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +1 -1
  31. package/src/assets/icons/authorization_icon.svg +1 -0
  32. package/src/assets/icons/backward.svg +10 -0
  33. package/src/assets/icons/capture_icon.svg +6 -0
  34. package/src/assets/icons/download_file_icon.svg +2 -9
  35. package/src/assets/icons/forward.svg +3 -0
  36. package/src/assets/icons/project_status_icon.svg +10 -0
  37. package/src/assets/icons/refresh_icon.svg +4 -0
  38. package/src/assets/icons/rotate_icon.svg +10 -0
  39. package/src/assets/icons/swipe_icon.svg +9 -0
  40. package/src/assets/icons/tap_icon.svg +4 -0
  41. package/src/components/AttachImage/AttachImage.stories.tsx +2 -0
  42. package/src/components/AttachImage/AttachImage.tsx +5 -9
  43. package/src/components/AttachImage/types.ts +25 -18
  44. package/src/components/Avatar/Avatar.scss +4 -0
  45. package/src/components/Avatar/Avatar.stories.tsx +38 -18
  46. package/src/components/Avatar/Avatar.tsx +19 -3
  47. package/src/components/Avatar/types.ts +9 -1
  48. package/src/components/Charts/DonutChart/DonutChart.tsx +8 -3
  49. package/src/components/Charts/RadialChart/RadialChart.scss +4 -0
  50. package/src/components/Charts/RadialChart/RadialChart.tsx +51 -45
  51. package/src/components/CreateVariable/CreateVariableSlider.scss +18 -0
  52. package/src/components/CreateVariable/CreateVariableSlider.stories.tsx +66 -0
  53. package/src/components/CreateVariable/CreateVariableSlider.tsx +95 -0
  54. package/src/components/CreateVariable/index.ts +1 -0
  55. package/src/components/CreateVariable/types.ts +58 -0
  56. package/src/components/Drawer/Drawer.scss +1 -1
  57. package/src/components/Drawer/Drawer.stories.tsx +0 -1
  58. package/src/components/Drawer/Drawer.tsx +4 -1
  59. package/src/components/Drawer/Types.ts +13 -0
  60. package/src/components/FileDropzone/FileDropzone.scss +0 -1
  61. package/src/components/Icon/iconList.ts +16 -0
  62. package/src/components/IconButton/IconButton.scss +11 -11
  63. package/src/components/IconButton/IconButton.tsx +2 -1
  64. package/src/components/IconButton/types.ts +1 -0
  65. package/src/components/MiniModal/MiniModal.scss +0 -4
  66. package/src/components/MiniModal/MiniModal.stories.tsx +3 -2
  67. package/src/components/MiniModal/MiniModal.tsx +28 -10
  68. package/src/components/MiniModal/types.ts +7 -0
  69. package/src/components/Select/Select.scss +20 -0
  70. package/src/components/Select/Select.stories.tsx +50 -1
  71. package/src/components/Select/Select.tsx +34 -7
  72. package/src/components/Select/components/Dropdown.scss +9 -0
  73. package/src/components/Select/components/Dropdown.tsx +20 -6
  74. package/src/components/Select/components/types.ts +1 -0
  75. package/src/components/Select/types.ts +12 -2
  76. package/src/components/TableTree/Components/TableBody.tsx +35 -0
  77. package/src/components/TableTree/Components/TableCell.tsx +59 -0
  78. package/src/components/TableTree/Components/TableHead.tsx +39 -0
  79. package/src/components/TableTree/Components/TableRow.tsx +37 -0
  80. package/src/components/TableTree/TableTree.scss +8 -5
  81. package/src/components/TableTree/TableTree.tsx +16 -46
  82. package/src/components/TableTree/Utils/getAllChildIds.ts +12 -0
  83. package/src/components/TableTree/Utils/renderSpaces.ts +0 -0
  84. package/src/components/TableTree/types.ts +43 -5
  85. package/src/index.ts +2 -0
  86. package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +0 -6
  87. package/lib/StyleGuide/Typography/Typography.stories.d.ts +0 -6
  88. package/lib/components/Accordion/Accordion.stories.d.ts +0 -6
  89. package/lib/components/AddResourceButton/AddButton.stories.d.ts +0 -8
  90. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +0 -7
  91. package/lib/components/AppHeader/AppHeader.stories.d.ts +0 -7
  92. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +0 -9
  93. package/lib/components/Avatar/Avatar.stories.d.ts +0 -10
  94. package/lib/components/Button/Button.stories.d.ts +0 -13
  95. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +0 -7
  96. package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +0 -6
  97. package/lib/components/Charts/PieChart/PieChart.stories.d.ts +0 -7
  98. package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +0 -6
  99. package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -8
  100. package/lib/components/Chip/Chip.stories.d.ts +0 -14
  101. package/lib/components/DatePicker/DatePicker.stories.d.ts +0 -9
  102. package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +0 -6
  103. package/lib/components/Drawer/Drawer.stories.d.ts +0 -12
  104. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +0 -8
  105. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +0 -7
  106. package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +0 -4
  107. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +0 -5
  108. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +0 -3
  109. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +0 -5
  110. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +0 -5
  111. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +0 -8
  112. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +0 -10
  113. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +0 -3
  114. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +0 -3
  115. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +0 -5
  116. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +0 -3
  117. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +0 -80
  118. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +0 -3
  119. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +0 -174
  120. package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +0 -1
  121. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +0 -8
  122. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +0 -22
  123. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +0 -17
  124. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +0 -2
  125. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +0 -21
  126. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +0 -3
  127. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +0 -24
  128. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +0 -13
  129. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +0 -67
  130. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +0 -22
  131. package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +0 -11
  132. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +0 -27
  133. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +0 -95
  134. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +0 -178
  135. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +0 -3
  136. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +0 -3
  137. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +0 -44
  138. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +0 -19
  139. package/lib/components/ExcelFile/ExcelFile.stories.d.ts +0 -6
  140. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +0 -12
  141. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +0 -15
  142. package/lib/components/ExcelFile/Types.d.ts +0 -129
  143. package/lib/components/ExcelFile/index.d.ts +0 -1
  144. package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +0 -7
  145. package/lib/components/FF_Captcha/captcha.stories.d.ts +0 -8
  146. package/lib/components/FileDropzone/FileDropzone.stories.d.ts +0 -8
  147. package/lib/components/Form/Form.stories.d.ts +0 -7
  148. package/lib/components/GridLayout/GridLayout.stories.d.ts +0 -8
  149. package/lib/components/HighlightText/HighlightText.stories.d.ts +0 -6
  150. package/lib/components/Icon/Icon.stories.d.ts +0 -8
  151. package/lib/components/IconButton/IconButton.stories.d.ts +0 -7
  152. package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +0 -7
  153. package/lib/components/Input/Input.stories.d.ts +0 -9
  154. package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +0 -9
  155. package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +0 -11
  156. package/lib/components/LazyLoad/LazyLoad.stories.d.ts +0 -6
  157. package/lib/components/MachineInputField/MachineInputField.stories.d.ts +0 -6
  158. package/lib/components/MenuOption/MenuOption.stories.d.ts +0 -16
  159. package/lib/components/MiniModal/MiniModal.stories.d.ts +0 -10
  160. package/lib/components/Modal/Modal.stories.d.ts +0 -7
  161. package/lib/components/ModulesChip/ModuleChip.stories.d.ts +0 -6
  162. package/lib/components/MultiSelect/MultiSelect.stories.d.ts +0 -10
  163. package/lib/components/NLPInput/NlpInput.stories.d.ts +0 -7
  164. package/lib/components/Paper/Paper.stories.d.ts +0 -11
  165. package/lib/components/RadioButton/RadioButton.stories.d.ts +0 -10
  166. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +0 -9
  167. package/lib/components/Search/Search.stories.d.ts +0 -6
  168. package/lib/components/Select/Select.stories.d.ts +0 -13
  169. package/lib/components/Select/components/Dropdown/Dropdown.d.ts +0 -4
  170. package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +0 -17
  171. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +0 -6
  172. package/lib/components/StateDropdown/StateDropdown.stories.d.ts +0 -10
  173. package/lib/components/StatusButton/StatusButton.stories.d.ts +0 -14
  174. package/lib/components/Table/Table.stories.d.ts +0 -13
  175. package/lib/components/TableTree/TableTree.stories.d.ts +0 -7
  176. package/lib/components/Tabs/Tabs.stories.d.ts +0 -9
  177. package/lib/components/TextArea/Textarea.stories.d.ts +0 -9
  178. package/lib/components/Toast/Toast.stories.d.ts +0 -6
  179. package/lib/components/Toastify/Toastify.stories.d.ts +0 -6
  180. package/lib/components/Toggle/Toggle.stories.d.ts +0 -12
  181. package/lib/components/Tooltip/Tooltip.stories.d.ts +0 -15
  182. package/lib/components/Typography/Typography.stories.d.ts +0 -10
  183. package/lib/components/VariableInput/VariableInput.stories.d.ts +0 -6
  184. package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +0 -6
  185. package/lib/utils/compareArrays/compareArrays.stories.d.ts +0 -6
  186. package/lib/utils/compareObjects/compareObjects.stories.d.ts +0 -6
  187. package/lib/utils/debounce/debounce.stories.d.ts +0 -6
  188. package/lib/utils/ffID/ffID.stories.d.ts +0 -6
  189. package/lib/utils/find/findAndInsert.d.ts +0 -7
  190. package/lib/utils/find/findAndInsert.stories.d.ts +0 -7
  191. package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +0 -7
  192. package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +0 -6
  193. package/lib/utils/getExtension/getExtension.stories.d.ts +0 -6
  194. package/lib/utils/throttle/throttle.stories.d.ts +0 -6
  195. package/lib/utils/truncateText/truncateText.stories.d.ts +0 -6
  196. /package/lib/components/{ExcelFile → Excel}/ContextMenu/ContextMenu.d.ts +0 -0
Binary file
@@ -1,10 +1,5 @@
1
1
  import React from 'react';
2
2
  import './AttachImage.scss';
3
- export interface AttachImageProps {
4
- imageSrc: string;
5
- onExpandClick: () => void;
6
- onDeleteClick: () => void;
7
- onDownloadClick: () => void;
8
- }
3
+ import { AttachImageProps } from './types';
9
4
  declare const AttachImage: React.FC<AttachImageProps>;
10
5
  export default AttachImage;
@@ -15,4 +15,12 @@ export interface AttachImageProps {
15
15
  * Function triggered when the download icon is clicked.
16
16
  */
17
17
  onDownloadClick: () => void;
18
+ /**
19
+ * Custom height for the component.
20
+ */
21
+ height?: string;
22
+ /**
23
+ * Custom width for the component.
24
+ */
25
+ width?: string;
18
26
  }
@@ -10,7 +10,7 @@ export interface AvatarProps {
10
10
  /**
11
11
  * This property specifies the name of the icon to be displayed within the avatar.
12
12
  */
13
- iconName: string;
13
+ iconName?: string;
14
14
  /**
15
15
  * This property allows you to customize the color of the icon within the avatar.
16
16
  */
@@ -23,4 +23,12 @@ export interface AvatarProps {
23
23
  * This property allows you to set a custom size for the icon within the avatar.
24
24
  */
25
25
  customIconSize?: number;
26
+ /**
27
+ * This property specifies the label to display inside the avatar, used as an alternative to the icon.
28
+ */
29
+ label?: string;
30
+ /**
31
+ * This property allows you to customize the font size of the label inside the avatar.
32
+ */
33
+ labelFontSize?: string;
26
34
  }
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { CreateVariableProps } from './types';
3
+ import './CreateVariableSlider.scss';
4
+ declare const CreateVariableSlider: FC<CreateVariableProps>;
5
+ export default CreateVariableSlider;
@@ -0,0 +1 @@
1
+ export { default } from './CreateVariableSlider';
@@ -0,0 +1,56 @@
1
+ export type variableType = 'LOCAL' | 'GLOBAL' | 'GROUP' | 'PROJECT_ENVIRONMENT';
2
+ export type DynamicObj = {
3
+ [key: string]: any;
4
+ };
5
+ export interface CreateVariableProps {
6
+ /**
7
+ * Open Create variable Slider
8
+ */
9
+ isOpen: boolean;
10
+ /**
11
+ * Value for the variable name
12
+ */
13
+ variableName: string;
14
+ /**
15
+ * Value for the variable to be created
16
+ */
17
+ value: string;
18
+ /**
19
+ * List for the variable types
20
+ */
21
+ variableTypesList: DynamicObj[];
22
+ /**
23
+ * Selected variable type
24
+ */
25
+ selectedVariableType: DynamicObj;
26
+ /**
27
+ * Function to handle variable type change
28
+ * @param option
29
+ * @returns
30
+ */
31
+ onVariableTypeChange: (option: DynamicObj) => void;
32
+ /**
33
+ * Function to handle close
34
+ */
35
+ onClose?: () => void;
36
+ /**
37
+ * onChange of name
38
+ */
39
+ onNameChange: (value: string | boolean) => void;
40
+ /**
41
+ * onChange of value
42
+ */
43
+ onValueChange: (value: string | boolean) => void;
44
+ /**
45
+ * Hide value
46
+ */
47
+ hideValue: boolean;
48
+ /**
49
+ * onChange for hide value
50
+ */
51
+ onHideChange: (value: boolean) => void;
52
+ /**
53
+ * Function to handle submit
54
+ */
55
+ handleSubmit: () => void;
56
+ }
@@ -137,4 +137,17 @@ export interface DrawerProps {
137
137
  * Custom top for the drawer
138
138
  */
139
139
  top?: string;
140
+ /**
141
+ * Height of the drawer
142
+ */
143
+ height?: string;
144
+ /**
145
+ *
146
+ * width of the drawer
147
+ */
148
+ width?: string;
149
+ /**
150
+ * Position from right
151
+ */
152
+ right?: string | number;
140
153
  }
@@ -2,4 +2,5 @@ export interface IconButtonProps {
2
2
  label: string;
3
3
  iconName: string;
4
4
  onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
5
+ ref?: React.RefObject<HTMLButtonElement>;
5
6
  }
@@ -5,6 +5,8 @@ interface ModalDimensions {
5
5
  borderRadius?: number;
6
6
  zIndex?: number;
7
7
  boxShadow?: string;
8
+ left?: number;
9
+ top?: number;
8
10
  }
9
11
  export interface MiniEditModalProps {
10
12
  /**
@@ -94,6 +96,11 @@ export interface MiniEditModalProps {
94
96
  boxShadow?: string;
95
97
  };
96
98
  arrowZIndex?: number;
99
+ arrowProperties?: {
100
+ left?: number;
101
+ top?: number;
102
+ size?: number;
103
+ };
97
104
  overlay?: {
98
105
  isOverlay?: boolean;
99
106
  zIndexOverlay?: number;
@@ -12,6 +12,7 @@ export interface DropdownProps {
12
12
  selectArrowRef?: RefObject<HTMLDivElement>;
13
13
  heightFromTop: number;
14
14
  selectedOption?: Option;
15
+ showIcon?: boolean;
15
16
  }
16
17
  export declare const dropdownDefaultCSSData: {
17
18
  margin: number;
@@ -22,6 +22,8 @@ export interface SelectProps {
22
22
  width?: number | string;
23
23
  onBlur?: () => void;
24
24
  disableInput?: boolean;
25
+ showIcon?: boolean;
26
+ iconName?: string;
25
27
  }
26
28
  export interface DrowdownPosition {
27
29
  positionX: number;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TableBodyProps } from '../types';
3
+ declare const TableBody: React.MemoExoticComponent<({ flattenedTreeData, columnsData, selected, select, onRowClick, onToggleExpand, onCheckBoxChange, }: TableBodyProps) => import("react/jsx-runtime").JSX.Element>;
4
+ export default TableBody;
@@ -0,0 +1,4 @@
1
+ import { TableCellProps } from '../types';
2
+ import React from 'react';
3
+ declare const TableCell: React.MemoExoticComponent<({ col, node, level, selected, select, onCheckBoxChange, onToggleExpand, }: TableCellProps) => import("react/jsx-runtime").JSX.Element>;
4
+ export default TableCell;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TableHeadProps } from '../types';
3
+ declare const TableHead: React.MemoExoticComponent<({ columnsData }: TableHeadProps) => import("react/jsx-runtime").JSX.Element>;
4
+ export default TableHead;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TableRowProps } from '../types';
3
+ declare const TableRow: React.MemoExoticComponent<({ node, level, columnsData, selected, select, onRowClick, onToggleExpand, onCheckBoxChange, }: TableRowProps) => import("react/jsx-runtime").JSX.Element>;
4
+ export default TableRow;
@@ -0,0 +1,25 @@
1
+ import React, { ReactNode } from 'react';
2
+ import './TableTree.scss';
3
+ interface ColumnDataProps {
4
+ name: string;
5
+ accessor: string;
6
+ width: string;
7
+ isClickable?: boolean;
8
+ minWidth?: string;
9
+ cell?: (e: any) => JSX.Element | string | ReactNode;
10
+ actions?: (e: any) => JSX.Element | string | ReactNode;
11
+ }
12
+ interface ObjectProps {
13
+ [key: string]: any;
14
+ }
15
+ interface TableTreeProps {
16
+ select: 'checkbox' | 'radio' | 'none';
17
+ columnsData: Array<ColumnDataProps>;
18
+ treeData: Array<ObjectProps>;
19
+ onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, data: any) => void;
20
+ onChange?: (e: any, node: any) => void;
21
+ selected: Array<string>;
22
+ onPagination?: (node: ObjectProps) => void;
23
+ }
24
+ declare const TableTree: ({ columnsData, treeData, select, onClick, onChange, selected, onPagination, }: TableTreeProps) => import("react/jsx-runtime").JSX.Element;
25
+ export default TableTree;
@@ -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 {};
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>;
@@ -674,6 +687,8 @@ interface SelectProps$1 {
674
687
  width?: number | string;
675
688
  onBlur?: () => void;
676
689
  disableInput?: boolean;
690
+ showIcon?: boolean;
691
+ iconName?: string;
677
692
  }
678
693
  type OptionValue = any;
679
694
  interface Option$2 {
@@ -1411,6 +1426,8 @@ interface ModalDimensions {
1411
1426
  borderRadius?: number;
1412
1427
  zIndex?: number;
1413
1428
  boxShadow?: string;
1429
+ left?: number;
1430
+ top?: number;
1414
1431
  }
1415
1432
  interface MiniEditModalProps {
1416
1433
  /**
@@ -1500,6 +1517,11 @@ interface MiniEditModalProps {
1500
1517
  boxShadow?: string;
1501
1518
  };
1502
1519
  arrowZIndex?: number;
1520
+ arrowProperties?: {
1521
+ left?: number;
1522
+ top?: number;
1523
+ size?: number;
1524
+ };
1503
1525
  overlay?: {
1504
1526
  isOverlay?: boolean;
1505
1527
  zIndexOverlay?: number;
@@ -1516,25 +1538,25 @@ interface TreeNode {
1516
1538
  children?: TreeNode[];
1517
1539
  expanded?: boolean;
1518
1540
  }
1541
+ declare type JSX$1 = ReactNode | JSX$1.Element[] | string | null;
1519
1542
  interface Column {
1520
1543
  name: string;
1521
1544
  accessor: string;
1522
1545
  width: string;
1523
1546
  isClickable?: boolean;
1524
- cell?: (row: any) => JSX.Element | string | null;
1525
- actions?: (row: any) => JSX.Element[];
1547
+ cell?: (row: any) => JSX$1;
1548
+ actions?: (row: any) => JSX$1;
1526
1549
  isTree?: boolean;
1527
1550
  defaultValue?: string;
1528
- defaultActions?: () => JSX.Element[];
1551
+ defaultActions?: () => JSX$1;
1529
1552
  }
1530
1553
  interface TreeTableProps {
1531
1554
  treeData: any;
1532
1555
  columnsData: Column[];
1533
1556
  selected?: string[];
1534
1557
  select?: 'radio' | 'checkbox' | 'none';
1535
- onChange?: (nodes: string[]) => void;
1558
+ onChange?: (e: any, node: string[]) => void;
1536
1559
  onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
1537
- expandedNodes: string[];
1538
1560
  onExpand?: (_isExpanded: boolean, node: string) => void;
1539
1561
  onPagination?: (_direction: string) => void;
1540
1562
  }
@@ -1708,6 +1730,7 @@ interface IconButtonProps {
1708
1730
  label: string;
1709
1731
  iconName: string;
1710
1732
  onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
1733
+ ref?: React.RefObject<HTMLButtonElement>;
1711
1734
  }
1712
1735
 
1713
1736
  declare const IconButton: React__default.FC<IconButtonProps>;
@@ -2128,7 +2151,7 @@ interface AvatarProps {
2128
2151
  /**
2129
2152
  * This property specifies the name of the icon to be displayed within the avatar.
2130
2153
  */
2131
- iconName: string;
2154
+ iconName?: string;
2132
2155
  /**
2133
2156
  * This property allows you to customize the color of the icon within the avatar.
2134
2157
  */
@@ -2141,6 +2164,14 @@ interface AvatarProps {
2141
2164
  * This property allows you to set a custom size for the icon within the avatar.
2142
2165
  */
2143
2166
  customIconSize?: number;
2167
+ /**
2168
+ * This property specifies the label to display inside the avatar, used as an alternative to the icon.
2169
+ */
2170
+ label?: string;
2171
+ /**
2172
+ * This property allows you to customize the font size of the label inside the avatar.
2173
+ */
2174
+ labelFontSize?: string;
2144
2175
  }
2145
2176
 
2146
2177
  declare const Avatar: React__default.FC<AvatarProps>;
@@ -2298,11 +2329,32 @@ interface IconRadialChartProps {
2298
2329
  declare const IconRadialChart: React__default.FC<IconRadialChartProps>;
2299
2330
 
2300
2331
  interface AttachImageProps {
2332
+ /**
2333
+ * The image source to display.
2334
+ */
2301
2335
  imageSrc: string;
2336
+ /**
2337
+ * Function triggered when the expand icon is clicked.
2338
+ */
2302
2339
  onExpandClick: () => void;
2340
+ /**
2341
+ * Function triggered when the delete icon is clicked.
2342
+ */
2303
2343
  onDeleteClick: () => void;
2344
+ /**
2345
+ * Function triggered when the download icon is clicked.
2346
+ */
2304
2347
  onDownloadClick: () => void;
2348
+ /**
2349
+ * Custom height for the component.
2350
+ */
2351
+ height?: string;
2352
+ /**
2353
+ * Custom width for the component.
2354
+ */
2355
+ width?: string;
2305
2356
  }
2357
+
2306
2358
  declare const AttachImage: React__default.FC<AttachImageProps>;
2307
2359
 
2308
2360
  interface CardProps {
@@ -2449,6 +2501,64 @@ interface fieldSetProps {
2449
2501
 
2450
2502
  declare const FieldSet: FC<fieldSetProps>;
2451
2503
 
2504
+ type DynamicObj = {
2505
+ [key: string]: any;
2506
+ };
2507
+ interface CreateVariableProps {
2508
+ /**
2509
+ * Open Create variable Slider
2510
+ */
2511
+ isOpen: boolean;
2512
+ /**
2513
+ * Value for the variable name
2514
+ */
2515
+ variableName: string;
2516
+ /**
2517
+ * Value for the variable to be created
2518
+ */
2519
+ value: string;
2520
+ /**
2521
+ * List for the variable types
2522
+ */
2523
+ variableTypesList: DynamicObj[];
2524
+ /**
2525
+ * Selected variable type
2526
+ */
2527
+ selectedVariableType: DynamicObj;
2528
+ /**
2529
+ * Function to handle variable type change
2530
+ * @param option
2531
+ * @returns
2532
+ */
2533
+ onVariableTypeChange: (option: DynamicObj) => void;
2534
+ /**
2535
+ * Function to handle close
2536
+ */
2537
+ onClose?: () => void;
2538
+ /**
2539
+ * onChange of name
2540
+ */
2541
+ onNameChange: (value: string | boolean) => void;
2542
+ /**
2543
+ * onChange of value
2544
+ */
2545
+ onValueChange: (value: string | boolean) => void;
2546
+ /**
2547
+ * Hide value
2548
+ */
2549
+ hideValue: boolean;
2550
+ /**
2551
+ * onChange for hide value
2552
+ */
2553
+ onHideChange: (value: boolean) => void;
2554
+ /**
2555
+ * Function to handle submit
2556
+ */
2557
+ handleSubmit: () => void;
2558
+ }
2559
+
2560
+ declare const CreateVariableSlider: FC<CreateVariableProps>;
2561
+
2452
2562
  type valueType$1 = any;
2453
2563
  declare const checkEmpty: (value: valueType$1) => boolean;
2454
2564
 
@@ -2595,4 +2705,4 @@ interface PopUpModalProps {
2595
2705
 
2596
2706
  declare const PopUpModal: FC<PopUpModalProps>;
2597
2707
 
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 };
2708
+ export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachImage, AttachmentButton, Avatar, BarChart, Button, Checkbox, Chip, Col, 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, 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 };