pixel-react 1.2.7 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. package/lib/components/Drawer/Types.d.ts +23 -12
  2. package/lib/components/Editor/Editor.d.ts +5 -0
  3. package/lib/components/Editor/Editor.stories.d.ts +6 -0
  4. package/lib/components/Editor/VariableDropdown.d.ts +5 -0
  5. package/lib/components/Editor/constants.d.ts +3 -0
  6. package/lib/components/Editor/index.d.ts +1 -0
  7. package/lib/components/Editor/types.d.ts +71 -0
  8. package/lib/components/Excel/ContextMenu/ContextMenu.d.ts +4 -0
  9. package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +20 -0
  10. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.d.ts +7 -0
  11. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.d.ts +4 -0
  12. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.d.ts +5 -0
  13. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.d.ts +3 -0
  14. package/lib/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.d.ts +5 -0
  15. package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.d.ts +5 -0
  16. package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataViewer.d.ts +8 -0
  17. package/lib/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.d.ts +10 -0
  18. package/lib/components/Excel/ExcelFile/ExcelFileComponents/HeaderRow.d.ts +3 -0
  19. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Row.d.ts +3 -0
  20. package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.d.ts +5 -0
  21. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.d.ts +3 -0
  22. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +80 -0
  23. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Table.d.ts +3 -0
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +203 -0
  25. package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.d.ts +1 -0
  26. package/lib/components/Excel/ExcelFile/ExcelFileComponents/context.d.ts +8 -0
  27. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.d.ts +22 -0
  28. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.d.ts +17 -0
  29. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/index.d.ts +2 -0
  30. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.d.ts +21 -0
  31. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-hash.d.ts +3 -0
  32. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-set.d.ts +24 -0
  33. package/lib/components/Excel/ExcelFile/ExcelFileComponents/index.d.ts +13 -0
  34. package/lib/components/Excel/ExcelFile/ExcelFileComponents/matrix.d.ts +67 -0
  35. package/lib/components/Excel/ExcelFile/ExcelFileComponents/point-range.d.ts +22 -0
  36. package/lib/components/Excel/ExcelFile/ExcelFileComponents/point.d.ts +11 -0
  37. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.d.ts +4 -0
  38. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.d.ts +40 -0
  39. package/lib/components/Excel/ExcelFile/ExcelFileComponents/selection.d.ts +95 -0
  40. package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +178 -0
  41. package/lib/components/Excel/ExcelFile/ExcelFileComponents/use-dispatch.d.ts +3 -0
  42. package/lib/components/Excel/ExcelFile/ExcelFileComponents/use-selector.d.ts +3 -0
  43. package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.d.ts +44 -0
  44. package/lib/components/Excel/ExcelFile.stories.d.ts +6 -0
  45. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.d.ts +19 -0
  46. package/lib/components/Excel/Types.d.ts +129 -0
  47. package/lib/components/Excel/index.d.ts +1 -0
  48. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
  49. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +2 -2
  50. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +2 -2
  51. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +1 -1
  52. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +2 -2
  53. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +2 -2
  54. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +2 -2
  55. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +2 -2
  56. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +1 -1
  57. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +1 -1
  58. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +2 -2
  59. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +1 -1
  60. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +7 -6
  61. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +1 -1
  62. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +5 -49
  63. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +3 -3
  64. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +5 -5
  65. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +6 -6
  66. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -2
  67. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +2 -2
  68. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +1 -1
  69. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +1 -1
  70. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +11 -11
  71. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +1 -1
  72. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +1 -1
  73. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +5 -5
  74. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +3 -3
  75. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +48 -11
  76. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +1 -1
  77. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +1 -1
  78. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +12 -11
  79. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +0 -16
  80. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +3 -0
  81. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +0 -12
  82. package/lib/components/ExcelFile/Types.d.ts +49 -2
  83. package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
  84. package/lib/components/InputWithDropdown/types.d.ts +3 -1
  85. package/lib/components/MenuOption/MenuOption.d.ts +1 -1
  86. package/lib/components/MenuOption/types.d.ts +4 -0
  87. package/lib/components/Select/Select.d.ts +3 -2
  88. package/lib/components/Select/Select.stories.d.ts +1 -0
  89. package/lib/components/Select/components/Dropdown.d.ts +5 -0
  90. package/lib/components/Select/components/types.d.ts +18 -0
  91. package/lib/components/Select/types.d.ts +2 -42
  92. package/lib/components/Toastify/Toastify.d.ts +5 -4
  93. package/lib/components/Toastify/types.d.ts +1 -0
  94. package/lib/index.d.ts +75 -30
  95. package/lib/index.esm.js +1734 -1441
  96. package/lib/index.esm.js.map +1 -1
  97. package/lib/index.js +1734 -1440
  98. package/lib/index.js.map +1 -1
  99. package/lib/tsconfig.tsbuildinfo +1 -1
  100. package/lib/utils/getSequentialPayload/getSequentialPayload.d.ts +2 -0
  101. package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +10 -0
  102. package/lib/utils/getSequentialPayload/types.d.ts +30 -0
  103. package/package.json +1 -1
  104. package/src/assets/Themes/BaseTheme.scss +5 -0
  105. package/src/assets/Themes/DarkTheme.scss +2 -0
  106. package/src/assets/icons/maximize_icon.svg +5 -0
  107. package/src/assets/styles/_fonts.scss +1 -1
  108. package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +15 -6
  109. package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +0 -5
  110. package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +20 -10
  111. package/src/components/Drawer/Drawer.scss +1 -0
  112. package/src/components/Drawer/Types.ts +24 -13
  113. package/src/components/Excel/ExcelFile/ExcelFile.scss +62 -0
  114. package/src/components/Excel/ExcelFile/ExcelFile.tsx +312 -0
  115. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/ActiveCell.tsx +2 -2
  116. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Cell.tsx +3 -3
  117. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/ColumnIndicator.tsx +4 -4
  118. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/CornerIndicator.tsx +2 -2
  119. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/DataEditor.tsx +1 -1
  120. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/DataViewer.tsx +3 -3
  121. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/FloatingRect.tsx +4 -4
  122. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/RowIndicator.tsx +4 -4
  123. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Spreadsheet.scss +26 -24
  124. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Spreadsheet.tsx +13 -45
  125. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Table.tsx +1 -1
  126. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/actions.ts +88 -20
  127. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +495 -0
  128. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +758 -0
  129. package/src/components/{ExcelFile → Excel}/ExcelFile.stories.tsx +45 -0
  130. package/src/components/Excel/ExcelToolBar/ExcelToolBar.scss +36 -0
  131. package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +346 -0
  132. package/src/components/Form/Form.scss +54 -35
  133. package/src/components/Form/Form.stories.tsx +264 -225
  134. package/src/components/Icon/Icons.scss +4 -0
  135. package/src/components/Icon/iconList.ts +2 -1
  136. package/src/components/Input/Input.tsx +0 -1
  137. package/src/components/InputWithDropdown/InputWithDropdown.scss +30 -1
  138. package/src/components/InputWithDropdown/InputWithDropdown.tsx +45 -16
  139. package/src/components/InputWithDropdown/types.ts +5 -1
  140. package/src/components/MenuOption/MenuOption.scss +0 -1
  141. package/src/components/MenuOption/MenuOption.stories.tsx +3 -0
  142. package/src/components/MenuOption/MenuOption.tsx +5 -4
  143. package/src/components/MenuOption/types.ts +4 -0
  144. package/src/components/MultiSelect/MultiSelect.scss +5 -1
  145. package/src/components/MultiSelect/MultiSelect.stories.tsx +17 -13
  146. package/src/components/MultiSelect/MultiSelect.tsx +27 -14
  147. package/src/components/Select/Select.scss +121 -188
  148. package/src/components/Select/Select.stories.tsx +164 -18
  149. package/src/components/Select/Select.tsx +142 -290
  150. package/src/components/Select/components/Dropdown.scss +50 -0
  151. package/src/components/Select/components/Dropdown.tsx +94 -0
  152. package/src/components/Select/components/types.ts +20 -0
  153. package/src/components/Select/types.ts +15 -39
  154. package/src/components/Table/Table.scss +6 -5
  155. package/src/components/Table/Table.stories.tsx +0 -9
  156. package/src/components/Table/Table.tsx +2 -2
  157. package/src/components/TableTree/TableTree.scss +1 -1
  158. package/src/components/TableTree/TableTree.tsx +3 -1
  159. package/src/components/Toastify/Toastify.stories.tsx +29 -10
  160. package/src/components/Toastify/Toastify.tsx +42 -16
  161. package/src/components/Toastify/types.ts +2 -0
  162. package/src/index.ts +4 -2
  163. package/src/utils/getSelectOptionValue/getSelectOptionValue.ts +1 -1
  164. package/src/utils/getSequentialPayload/getSequentialPayload.stories.tsx +75 -0
  165. package/src/utils/getSequentialPayload/getSequentialPayload.ts +29 -0
  166. package/src/utils/getSequentialPayload/types.ts +35 -0
  167. package/src/components/ExcelFile/ExcelFile/Excel/reducer.ts +0 -952
  168. package/src/components/ExcelFile/ExcelFile/ExcelFile.scss +0 -24
  169. package/src/components/ExcelFile/ExcelFile/ExcelFile.tsx +0 -162
  170. package/src/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.scss +0 -16
  171. package/src/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.tsx +0 -68
  172. package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.scss +0 -19
  173. package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.tsx +0 -291
  174. package/src/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
  175. package/src/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  176. package/src/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
  177. package/src/fonts/Poppins/Poppins-Black.ttf +0 -0
  178. package/src/fonts/Poppins/Poppins-BlackItalic.ttf +0 -0
  179. package/src/fonts/Poppins/Poppins-BoldItalic.ttf +0 -0
  180. package/src/fonts/Poppins/Poppins-ExtraBold.ttf +0 -0
  181. package/src/fonts/Poppins/Poppins-ExtraBoldItalic.ttf +0 -0
  182. package/src/fonts/Poppins/Poppins-ExtraLight.ttf +0 -0
  183. package/src/fonts/Poppins/Poppins-ExtraLightItalic.ttf +0 -0
  184. package/src/fonts/Poppins/Poppins-Italic.ttf +0 -0
  185. package/src/fonts/Poppins/Poppins-Light.ttf +0 -0
  186. package/src/fonts/Poppins/Poppins-LightItalic.ttf +0 -0
  187. package/src/fonts/Poppins/Poppins-MediumItalic.ttf +0 -0
  188. package/src/fonts/Poppins/Poppins-SemiBoldItalic.ttf +0 -0
  189. package/src/fonts/Poppins/Poppins-Thin.ttf +0 -0
  190. package/src/fonts/Poppins/Poppins-ThinItalic.ttf +0 -0
  191. /package/lib/components/{ExcelFile → Excel}/ColorBarSelector/ColorBarSelector.d.ts +0 -0
  192. /package/src/components/{ExcelFile/ColorBarselector → Excel/ColorBarSelector}/ColorBarSelector.scss +0 -0
  193. /package/src/components/{ExcelFile/ColorBarselector → Excel/ColorBarSelector}/ColorBarSelector.tsx +0 -0
  194. /package/src/components/{ExcelFile → Excel}/ContextMenu/ContextMenu.scss +0 -0
  195. /package/src/components/{ExcelFile → Excel}/ContextMenu/ContextMenu.tsx +0 -0
  196. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Copied.tsx +0 -0
  197. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/HeaderRow.tsx +0 -0
  198. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Row.tsx +0 -0
  199. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Selected.tsx +0 -0
  200. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/areModelsEqual.ts +0 -0
  201. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/context.ts +0 -0
  202. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/engine.ts +0 -0
  203. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/formula.ts +0 -0
  204. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/index.ts +0 -0
  205. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/point-graph.ts +0 -0
  206. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/point-hash.ts +0 -0
  207. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/point-set.ts +0 -0
  208. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/index.ts +0 -0
  209. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/matrix.ts +0 -0
  210. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/point-range.ts +0 -0
  211. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/point.ts +0 -0
  212. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/selection.ts +0 -0
  213. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/types.ts +0 -0
  214. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/typings/fast-formula-parser.d.ts +0 -0
  215. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/use-dispatch.ts +0 -0
  216. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/use-selector.ts +0 -0
  217. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/util.ts +0 -0
  218. /package/src/components/{ExcelFile → Excel}/Types.ts +0 -0
  219. /package/src/components/{ExcelFile → Excel}/index.ts +0 -0
@@ -1,19 +1,3 @@
1
1
  import React from 'react';
2
- interface ExcelFileProps {
3
- /** The Excel data containing sheets and their content */
4
- excelData: {
5
- sheets: WorkSheet[];
6
- };
7
- /** Optional: Provide context menu options for actions like right-click */
8
- contextOption?: {
9
- name: string;
10
- title: React.ReactNode;
11
- action: () => void;
12
- }[];
13
- /** Controls whether the toolbar is shown, disabled, or hidden */
14
- toolbar?: 'show' | 'disable' | 'hide';
15
- /** Callback function to save the Excel data */
16
- onSave?: (excelData?: any) => void;
17
- }
18
2
  declare const ExcelFile: React.FC<ExcelFileProps>;
19
3
  export default ExcelFile;
@@ -4,9 +4,12 @@ interface ExcelSheetBarProps {
4
4
  sheetNames: string[];
5
5
  };
6
6
  handleSheetChange: (name: string, index: number) => void;
7
+ contextMenu: (e: React.MouseEvent, name: string, index: number) => void;
8
+ addSheet: () => void;
7
9
  selectedSheet: {
8
10
  name: string;
9
11
  };
12
+ contextSelect: (e: React.MouseEvent) => void;
10
13
  }
11
14
  declare const ExcelSheetBar: React.FC<ExcelSheetBarProps>;
12
15
  export default ExcelSheetBar;
@@ -1,15 +1,3 @@
1
1
  import './ExcelToolBar.scss';
2
- import { CellBase } from '../ExcelFile/Excel';
3
- import * as Matrix from '../ExcelFile/Excel/matrix';
4
- interface ExcelToolBarProps {
5
- toolbar?: 'show' | 'disable' | 'hide';
6
- data: Matrix.Matrix<CellBase>;
7
- onBold: (data: Matrix.Matrix<CellBase>) => void;
8
- onItalic: (data: Matrix.Matrix<CellBase>) => void;
9
- onUnderline: (data: Matrix.Matrix<CellBase>) => void;
10
- setColor: (data: Matrix.Matrix<CellBase>, value: string) => void;
11
- setBackgroundColor: (data: Matrix.Matrix<CellBase>, value: string) => void;
12
- setFormatePainter: (data: Matrix.Matrix<CellBase>) => void;
13
- }
14
2
  declare const ExcelToolBar: React.FC<ExcelToolBarProps>;
15
3
  export default ExcelToolBar;
@@ -24,9 +24,48 @@ interface WorkData {
24
24
  /** Value of the cell */
25
25
  value: string;
26
26
  /** Styling options for the cell */
27
- style: React.CSSProperties;
27
+ style: CellStyle;
28
28
  type?: boolean;
29
29
  }
30
+ interface CellStyle {
31
+ /** Font name for the cell text */
32
+ name?: string;
33
+ /** Font size of the cell text */
34
+ size?: number;
35
+ position?: string;
36
+ /** Whether the text is bold */
37
+ bold?: boolean;
38
+ fontSize?: string;
39
+ fontFamily?: string;
40
+ /** Whether the text is italicized */
41
+ italic?: boolean;
42
+ /** Text color in the cell (hex code) */
43
+ color?: string;
44
+ /** Background color of the cell (hex code) */
45
+ backgroundColor?: string;
46
+ /** Border color of the cell (hex code) */
47
+ borderColor?: string;
48
+ /** Border styles for each side of the cell */
49
+ border?: {
50
+ /** Border style for the top side of the cell */
51
+ top: string;
52
+ /** Border style for the bottom side of the cell */
53
+ bottom: string;
54
+ /** Border style for the left side of the cell */
55
+ left: string;
56
+ /** Border style for the right side of the cell */
57
+ right: string;
58
+ };
59
+ /** Text alignment and wrapping properties */
60
+ alignment?: {
61
+ /** Horizontal text alignment ('left', 'center', or 'right') */
62
+ horizontal: string;
63
+ /** Vertical text alignment ('top', 'middle', or 'bottom') */
64
+ vertical: string;
65
+ /** Whether the text is wrapped within the cell */
66
+ wrapText: boolean;
67
+ };
68
+ }
30
69
  /** A generic type to represent a 2D matrix of any type (or undefined values) */
31
70
  type Matrix<T> = (T | undefined)[][];
32
71
  interface ContextAction {
@@ -77,10 +116,18 @@ interface SelectedValue {
77
116
  /** The column represented as an alphabetical string ('A', 'B') */
78
117
  alphaCol: string;
79
118
  /** The style applied to the selected cell */
80
- style: React.CSSProperties;
119
+ style: CellStyle;
81
120
  /** The sheet name where the cell is located */
82
121
  sheet: string;
83
122
  }
123
+ interface ExcelToolBarProps {
124
+ /** use this to hide/show/disable the toolbar */
125
+ toolbar?: 'show' | 'disable' | 'hide';
126
+ /** function to apply styles */
127
+ applyStyle: (styleType: string, value: any) => void;
128
+ /** function to trigger format painter */
129
+ formatePaint: () => void;
130
+ }
84
131
  interface ExcelSheetBarProps {
85
132
  /** Object containing details about the file, including sheet names */
86
133
  fileDetails: {
@@ -1,4 +1,4 @@
1
1
  import './InputWithDropdown.scss';
2
2
  import { InputWithDropdownProps } from './types';
3
- declare const InputWithDropdown: ({ name, label, value, disabled, required, placeholder, error, helperText, optionsList, selectedOption, onDropdownChangeHandler, onInputChangeHandler, onInputBlurHandler, optionsRequired, }: InputWithDropdownProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const InputWithDropdown: ({ name, label, value, disabled, required, placeholder, error, helperText, optionsList, selectedOption, onDropdownChangeHandler, onInputChangeHandler, onInputBlurHandler, optionsRequired, dropdownPosition, type, }: InputWithDropdownProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default InputWithDropdown;
@@ -15,7 +15,8 @@ export interface InputWithDropdownProps {
15
15
  /**
16
16
  * value | input field value
17
17
  */
18
- value?: number;
18
+ value?: string | number;
19
+ type?: 'text' | 'password' | 'number' | 'email' | 'url' | 'time';
19
20
  /**
20
21
  * variants to set color/style of the input field
21
22
  */
@@ -85,4 +86,5 @@ export interface InputWithDropdownProps {
85
86
  * optionsRequired:false prop removes options from dropdown & shows static label only
86
87
  */
87
88
  optionsRequired?: boolean;
89
+ dropdownPosition?: 'left' | 'right';
88
90
  }
@@ -1,4 +1,4 @@
1
1
  import './MenuOption.scss';
2
2
  import { MenuOptionProps } from './types';
3
- declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, dropdownPlacement, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, }: MenuOptionProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, dropdownPlacement, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, }: MenuOptionProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default MenuOption;
@@ -122,6 +122,10 @@ interface MenuOptionProps {
122
122
  * @default 7
123
123
  */
124
124
  iconButtonBorderRadius?: number;
125
+ /**
126
+ * Providing z-index for the options card.
127
+ */
128
+ zIndex?: number;
125
129
  }
126
130
  interface OptionProps {
127
131
  /**
@@ -1,4 +1,5 @@
1
- import { SelectProps } from './types';
1
+ import { FC } from 'react';
2
2
  import './Select.scss';
3
- declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, optionsRequired, selectedOptionColor, labelAccessor, valueAccessor, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ import { SelectProps } from './types';
4
+ declare const Select: FC<SelectProps>;
4
5
  export default Select;
@@ -10,4 +10,5 @@ export declare const Disable: Story;
10
10
  export declare const WithInitialValue: Story;
11
11
  export declare const OptionSelection: Story;
12
12
  export declare const CustomJSX: Story;
13
+ export declare const updateOptionFromOutside: Story;
13
14
  export default meta;
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { DropdownProps } from './types';
3
+ import './Dropdown.scss';
4
+ declare const Dropdown: FC<DropdownProps>;
5
+ export default Dropdown;
@@ -0,0 +1,18 @@
1
+ import { DrowdownPosition, Option } from '../types';
2
+ export interface DropdownProps {
3
+ options: Option[];
4
+ dropdownPosition: DrowdownPosition;
5
+ optionZIndex: number;
6
+ labelAccessor?: string;
7
+ valueAccessor?: string;
8
+ onSelectBlur: () => void;
9
+ onSelectOptionSelector: (option: Option) => void;
10
+ inputRef?: React.RefObject<HTMLInputElement>;
11
+ selectArrowRef?: React.RefObject<HTMLDivElement>;
12
+ }
13
+ export declare const dropdownDefaultCSSData: {
14
+ margin: number;
15
+ optionHeight: number;
16
+ selectInputHeight: number;
17
+ dropDownWrapperPadding: number;
18
+ };
@@ -15,18 +15,11 @@ export interface SelectProps {
15
15
  * optionsRequired:false prop removes options from dropdown & shows static label only
16
16
  */
17
17
  optionsRequired?: boolean;
18
- /**
19
- * selectedOptionColor prop provides the custom color for the selected option
20
- */
21
18
  selectedOptionColor?: string;
22
- /**
23
- * Label accessor
24
- */
25
19
  labelAccessor?: string;
26
- /**
27
- * Value accessor
28
- */
29
20
  valueAccessor?: string;
21
+ height?: number;
22
+ width?: number;
30
23
  }
31
24
  export interface DrowdownPosition {
32
25
  positionX: number;
@@ -43,39 +36,6 @@ export interface SelectState {
43
36
  option: string;
44
37
  dropdownPosition: DrowdownPosition;
45
38
  }
46
- export type SelectAction = {
47
- type: 'FOCUS_INPUT';
48
- } | {
49
- type: 'BLUR_INPUT';
50
- payload: {
51
- optionsList: Option[];
52
- option: Option['value'];
53
- };
54
- } | {
55
- type: 'MOUSE_ENTER';
56
- } | {
57
- type: 'MOUSE_LEAVE';
58
- } | {
59
- type: 'UPDATE_DROPDOWN_POSITION';
60
- payload: {
61
- positionX: number;
62
- positionY: number;
63
- width: number;
64
- fromBottom: number;
65
- };
66
- } | {
67
- type: 'UPDATE_OPTION';
68
- payload: string;
69
- } | {
70
- type: 'UPDATE_OPTION_LIST';
71
- payload: Option[];
72
- } | {
73
- type: 'SHOW_ERROR';
74
- payload: {
75
- optionsList: Option[];
76
- option: Option['value'];
77
- };
78
- };
79
39
  type OptionValue = any;
80
40
  export interface Option {
81
41
  [key: string]: OptionValue;
@@ -1,8 +1,9 @@
1
+ import { AcceptedType } from './types';
1
2
  export declare const Toastify: () => import("react/jsx-runtime").JSX.Element;
2
3
  export default Toastify;
3
4
  export declare const toast: {
4
- success: (message: string) => void;
5
- error: (message: string) => void;
6
- warning: (message: string) => void;
7
- info: (message: string) => void;
5
+ success: (arg1: AcceptedType, arg2?: AcceptedType) => void;
6
+ error: (arg1: AcceptedType, arg2?: AcceptedType) => void;
7
+ warning: (arg1: AcceptedType, arg2?: AcceptedType) => void;
8
+ info: (arg1: AcceptedType, arg2?: AcceptedType) => void;
8
9
  };
@@ -5,3 +5,4 @@ export interface ToastProps {
5
5
  toastTitle: string;
6
6
  toastMessage: string;
7
7
  }
8
+ export type AcceptedType = string | (() => void) | Record<string, unknown> | unknown[];
package/lib/index.d.ts CHANGED
@@ -85,6 +85,17 @@ interface BtnPropsCommon {
85
85
  * Onclick function for button
86
86
  */
87
87
  onClick?: () => void;
88
+ /**
89
+ * Button type
90
+ * @default 'button'
91
+ * @example 'submit'
92
+ * @example 'button'
93
+ */
94
+ type?: 'button' | 'submit';
95
+ /**
96
+ * form to accept id of form in string format
97
+ */
98
+ form?: string;
88
99
  }
89
100
  interface DrawerProps {
90
101
  /**
@@ -96,12 +107,12 @@ interface DrawerProps {
96
107
  */
97
108
  _isExpanded?: boolean;
98
109
  /**
99
- * To show and hide the back button of the Drawer
100
- */
110
+ * To show and hide the back button of the Drawer
111
+ */
101
112
  isBackButtonVisible?: boolean;
102
113
  /**
103
- * To show and hide the close button of the Drawer
104
- */
114
+ * To show and hide the close button of the Drawer
115
+ */
105
116
  _isCloseModalButtonVisible?: boolean;
106
117
  /**
107
118
  * Function to close the drawer
@@ -140,8 +151,8 @@ interface DrawerProps {
140
151
  */
141
152
  leftSecondaryButtonProps?: BtnPropsCommon;
142
153
  /**
143
- * Left side Tertiary Button | Help button props
144
- */
154
+ * Left side Tertiary Button | Help button props
155
+ */
145
156
  leftTertiaryButtonProps?: BtnPropsCommon;
146
157
  /**
147
158
  * Right side Tertiary Button | More Info button props
@@ -178,14 +189,14 @@ interface DrawerProps {
178
189
  */
179
190
  onCloseIconClick?: () => void;
180
191
  /**
181
- * Custom header for the drawer, replacing the default header.
182
- * If provided, this will render in place of the default header.
183
- */
192
+ * Custom header for the drawer, replacing the default header.
193
+ * If provided, this will render in place of the default header.
194
+ */
184
195
  customHeader?: ReactNode;
185
196
  /**
186
- * Custom footer for the drawer, replacing the default footer.
187
- * If provided, this will render in place of the default footer.
188
- */
197
+ * Custom footer for the drawer, replacing the default footer.
198
+ * If provided, this will render in place of the default footer.
199
+ */
189
200
  customFooter?: ReactNode;
190
201
  /**
191
202
  * Custom z-index for the drawer
@@ -627,25 +638,18 @@ interface SelectProps$1 {
627
638
  * optionsRequired:false prop removes options from dropdown & shows static label only
628
639
  */
629
640
  optionsRequired?: boolean;
630
- /**
631
- * selectedOptionColor prop provides the custom color for the selected option
632
- */
633
641
  selectedOptionColor?: string;
634
- /**
635
- * Label accessor
636
- */
637
642
  labelAccessor?: string;
638
- /**
639
- * Value accessor
640
- */
641
643
  valueAccessor?: string;
644
+ height?: number;
645
+ width?: number;
642
646
  }
643
647
  type OptionValue = any;
644
648
  interface Option$2 {
645
649
  [key: string]: OptionValue;
646
650
  }
647
651
 
648
- declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, optionsRequired, selectedOptionColor, labelAccessor, valueAccessor, }: SelectProps$1) => react_jsx_runtime.JSX.Element;
652
+ declare const Select: FC<SelectProps$1>;
649
653
 
650
654
  interface TextareaProps {
651
655
  /**
@@ -868,9 +872,13 @@ interface MenuOptionProps {
868
872
  * @default 7
869
873
  */
870
874
  iconButtonBorderRadius?: number;
875
+ /**
876
+ * Providing z-index for the options card.
877
+ */
878
+ zIndex?: number;
871
879
  }
872
880
 
873
- declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, dropdownPlacement, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, }: MenuOptionProps) => react_jsx_runtime.JSX.Element;
881
+ declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, dropdownPlacement, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, }: MenuOptionProps) => react_jsx_runtime.JSX.Element;
874
882
 
875
883
  interface DataProps {
876
884
  /**
@@ -1162,7 +1170,8 @@ interface InputWithDropdownProps {
1162
1170
  /**
1163
1171
  * value | input field value
1164
1172
  */
1165
- value?: number;
1173
+ value?: string | number;
1174
+ type?: 'text' | 'password' | 'number' | 'email' | 'url' | 'time';
1166
1175
  /**
1167
1176
  * variants to set color/style of the input field
1168
1177
  */
@@ -1232,9 +1241,10 @@ interface InputWithDropdownProps {
1232
1241
  * optionsRequired:false prop removes options from dropdown & shows static label only
1233
1242
  */
1234
1243
  optionsRequired?: boolean;
1244
+ dropdownPosition?: 'left' | 'right';
1235
1245
  }
1236
1246
 
1237
- declare const InputWithDropdown: ({ name, label, value, disabled, required, placeholder, error, helperText, optionsList, selectedOption, onDropdownChangeHandler, onInputChangeHandler, onInputBlurHandler, optionsRequired, }: InputWithDropdownProps) => react_jsx_runtime.JSX.Element;
1247
+ declare const InputWithDropdown: ({ name, label, value, disabled, required, placeholder, error, helperText, optionsList, selectedOption, onDropdownChangeHandler, onInputChangeHandler, onInputBlurHandler, optionsRequired, dropdownPosition, type, }: InputWithDropdownProps) => react_jsx_runtime.JSX.Element;
1238
1248
 
1239
1249
  declare const RadioButton: React__default.FC<RadioButtonProps>;
1240
1250
 
@@ -1859,13 +1869,15 @@ interface AttachmentUploaderProps {
1859
1869
 
1860
1870
  declare const AttachmentButton: React__default.FC<AttachmentUploaderProps>;
1861
1871
 
1872
+ type AcceptedType = string | (() => void) | Record<string, unknown> | unknown[];
1873
+
1862
1874
  declare const Toastify: () => react_jsx_runtime.JSX.Element;
1863
1875
 
1864
1876
  declare const toast: {
1865
- success: (message: string) => void;
1866
- error: (message: string) => void;
1867
- warning: (message: string) => void;
1868
- info: (message: string) => void;
1877
+ success: (arg1: AcceptedType, arg2?: AcceptedType) => void;
1878
+ error: (arg1: AcceptedType, arg2?: AcceptedType) => void;
1879
+ warning: (arg1: AcceptedType, arg2?: AcceptedType) => void;
1880
+ info: (arg1: AcceptedType, arg2?: AcceptedType) => void;
1869
1881
  };
1870
1882
 
1871
1883
  interface IconProps {
@@ -1991,4 +2003,37 @@ declare const throttle: (func: Callback, limit: number) => ThrottledFunction;
1991
2003
 
1992
2004
  declare const truncateText: (text: string, maxLength: number) => string;
1993
2005
 
1994
- export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachmentButton, Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExcelFile, ExpandableMenu, FileDropzone, Forms as Form, HighlightText, Icon, IconButton, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiSelect, NlpInput as NLPInput, Paper, PieChart, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, Tooltip, Typography, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, throttle, toast, truncateText, useTheme };
2006
+ interface OperatingSystemInfo {
2007
+ osName: string;
2008
+ osVersion: string;
2009
+ hostName: string;
2010
+ }
2011
+ interface RunLevelExecutionDataSet {
2012
+ peVariableSetId: string;
2013
+ globalVariableSetId: string;
2014
+ testDataSetId: string;
2015
+ }
2016
+ interface MachineExecutionInstance {
2017
+ id: string;
2018
+ clientId: string;
2019
+ numberOfRuns: string | number;
2020
+ executionEnv: string;
2021
+ browserName: string;
2022
+ browserVersion: string;
2023
+ systemUrl: string;
2024
+ machineInfo: OperatingSystemInfo;
2025
+ deviceInfo: any[];
2026
+ headless: boolean;
2027
+ }
2028
+ interface MachineExecutionInstanceDataSet extends MachineExecutionInstance {
2029
+ runLevelExecutionDataSets: RunLevelExecutionDataSet[];
2030
+ }
2031
+ interface SequentialMachineInstance extends MachineExecutionInstance {
2032
+ peVariableSetId: string;
2033
+ globalVariableSetId: string;
2034
+ testDataSetId: string;
2035
+ }
2036
+
2037
+ declare const getSequentialPayload: (machineInstances?: MachineExecutionInstanceDataSet[]) => SequentialMachineInstance[];
2038
+
2039
+ export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachmentButton, Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExcelFile as Excel, ExpandableMenu, FileDropzone, Forms as Form, HighlightText, Icon, IconButton, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiSelect, NlpInput as NLPInput, Paper, PieChart, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, Tooltip, Typography, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, getSequentialPayload, throttle, toast, truncateText, useTheme };