pixel-react 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. package/lib/components/AppHeader/types.d.ts +11 -2
  2. package/lib/components/Avatar/Avatar.d.ts +5 -0
  3. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  4. package/lib/components/Avatar/index.d.ts +1 -0
  5. package/lib/components/Avatar/types.d.ts +26 -0
  6. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +2 -2
  7. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +2 -2
  8. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +1 -1
  9. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +2 -2
  10. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +2 -2
  11. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +2 -2
  12. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +2 -2
  13. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +1 -1
  14. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +1 -1
  15. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +2 -2
  16. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +1 -1
  17. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +6 -7
  18. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +1 -1
  19. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +49 -5
  20. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +3 -3
  21. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +5 -5
  22. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +6 -6
  23. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -2
  24. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +2 -2
  25. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +1 -1
  26. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +1 -1
  27. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +11 -11
  28. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +1 -1
  29. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +1 -1
  30. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +5 -5
  31. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +3 -3
  32. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +11 -48
  33. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +1 -1
  34. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +1 -1
  35. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +11 -12
  36. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +16 -0
  37. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +0 -3
  38. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +12 -0
  39. package/lib/components/ExcelFile/Types.d.ts +2 -49
  40. package/lib/components/Form/Form.d.ts +1 -15
  41. package/lib/components/Form/Form.stories.d.ts +6 -5
  42. package/lib/components/Form/Forms.d.ts +8 -0
  43. package/lib/components/Form/index.d.ts +1 -1
  44. package/lib/components/MenuOption/types.d.ts +7 -7
  45. package/lib/components/ModulesChip/ModuleChip.d.ts +4 -0
  46. package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
  47. package/lib/components/ModulesChip/index.d.ts +1 -0
  48. package/lib/components/ModulesChip/types.d.ts +14 -0
  49. package/lib/components/MultiSelect/MultiSelectTypes.d.ts +1 -0
  50. package/lib/components/Toastify/Toastify.d.ts +8 -0
  51. package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
  52. package/lib/components/Toastify/index.d.ts +1 -0
  53. package/lib/components/Toastify/types.d.ts +7 -0
  54. package/lib/components/Tooltip/types.d.ts +6 -0
  55. package/lib/components/Typography/types.d.ts +1 -0
  56. package/lib/index.d.ts +75 -22
  57. package/lib/index.esm.js +26686 -870
  58. package/lib/index.esm.js.map +1 -1
  59. package/lib/index.js +26684 -864
  60. package/lib/index.js.map +1 -1
  61. package/lib/tsconfig.tsbuildinfo +1 -1
  62. package/package.json +1 -1
  63. package/src/StyleGuide/ColorPalette/colorPaletteList.ts +10 -0
  64. package/src/assets/Themes/BaseTheme.scss +2 -0
  65. package/src/assets/Themes/DarkTheme.scss +2 -0
  66. package/src/assets/icons/client_profile.svg +4 -0
  67. package/src/assets/icons/fireflink_finder_logo.svg +7 -0
  68. package/src/assets/icons/fireflink_platform.svg +4 -0
  69. package/src/assets/icons/license_expired.svg +20 -0
  70. package/src/components/AppHeader/AppHeader.stories.tsx +24 -3
  71. package/src/components/AppHeader/AppHeader.tsx +29 -11
  72. package/src/components/AppHeader/types.ts +11 -3
  73. package/src/components/Avatar/Avatar.scss +24 -0
  74. package/src/components/Avatar/Avatar.stories.tsx +56 -0
  75. package/src/components/Avatar/Avatar.tsx +25 -0
  76. package/src/components/Avatar/index.ts +1 -0
  77. package/src/components/Avatar/types.ts +27 -0
  78. package/src/components/ExcelFile/ColorBarselector/ColorBarSelector.scss +0 -2
  79. package/src/components/ExcelFile/ContextMenu/ContextMenu.scss +1 -4
  80. package/src/components/ExcelFile/ContextMenu/ContextMenu.tsx +0 -1
  81. package/src/components/ExcelFile/ExcelFile/Excel/ActiveCell.tsx +13 -13
  82. package/src/components/ExcelFile/ExcelFile/Excel/Cell.tsx +13 -12
  83. package/src/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.tsx +40 -32
  84. package/src/components/ExcelFile/ExcelFile/Excel/Copied.tsx +4 -4
  85. package/src/components/ExcelFile/ExcelFile/Excel/CornerIndicator.tsx +10 -10
  86. package/src/components/ExcelFile/ExcelFile/Excel/DataEditor.tsx +5 -5
  87. package/src/components/ExcelFile/ExcelFile/Excel/DataViewer.tsx +10 -10
  88. package/src/components/ExcelFile/ExcelFile/Excel/FloatingRect.tsx +6 -6
  89. package/src/components/ExcelFile/ExcelFile/Excel/HeaderRow.tsx +1 -1
  90. package/src/components/ExcelFile/ExcelFile/Excel/Row.tsx +1 -1
  91. package/src/components/ExcelFile/ExcelFile/Excel/RowIndicator.tsx +34 -27
  92. package/src/components/ExcelFile/ExcelFile/Excel/Selected.tsx +5 -5
  93. package/src/components/ExcelFile/ExcelFile/Excel/{Spreadsheet.css → Spreadsheet.scss} +21 -37
  94. package/src/components/ExcelFile/ExcelFile/Excel/Spreadsheet.tsx +87 -78
  95. package/src/components/ExcelFile/ExcelFile/Excel/Table.tsx +2 -2
  96. package/src/components/ExcelFile/ExcelFile/Excel/actions.ts +121 -31
  97. package/src/components/ExcelFile/ExcelFile/Excel/areModelsEqual.ts +1 -1
  98. package/src/components/ExcelFile/ExcelFile/Excel/context.ts +4 -4
  99. package/src/components/ExcelFile/ExcelFile/Excel/engine/engine.ts +7 -7
  100. package/src/components/ExcelFile/ExcelFile/Excel/engine/formula.ts +11 -11
  101. package/src/components/ExcelFile/ExcelFile/Excel/engine/index.ts +2 -2
  102. package/src/components/ExcelFile/ExcelFile/Excel/engine/point-graph.ts +3 -3
  103. package/src/components/ExcelFile/ExcelFile/Excel/engine/point-hash.ts +2 -2
  104. package/src/components/ExcelFile/ExcelFile/Excel/engine/point-set.ts +2 -2
  105. package/src/components/ExcelFile/ExcelFile/Excel/index.ts +12 -11
  106. package/src/components/ExcelFile/ExcelFile/Excel/matrix.ts +18 -24
  107. package/src/components/ExcelFile/ExcelFile/Excel/point-range.ts +1 -1
  108. package/src/components/ExcelFile/ExcelFile/Excel/reducer.ts +311 -41
  109. package/src/components/ExcelFile/ExcelFile/Excel/selection.ts +5 -5
  110. package/src/components/ExcelFile/ExcelFile/Excel/types.ts +14 -66
  111. package/src/components/ExcelFile/ExcelFile/Excel/typings/fast-formula-parser.d.ts +8 -8
  112. package/src/components/ExcelFile/ExcelFile/Excel/use-dispatch.ts +2 -2
  113. package/src/components/ExcelFile/ExcelFile/Excel/use-selector.ts +3 -3
  114. package/src/components/ExcelFile/ExcelFile/Excel/util.ts +21 -22
  115. package/src/components/ExcelFile/ExcelFile/ExcelFile.scss +0 -3
  116. package/src/components/ExcelFile/ExcelFile/ExcelFile.tsx +45 -403
  117. package/src/components/ExcelFile/ExcelFile.stories.tsx +10 -29
  118. package/src/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.tsx +1 -12
  119. package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.scss +0 -3
  120. package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.tsx +147 -127
  121. package/src/components/ExcelFile/Types.ts +3 -70
  122. package/src/components/ExcelFile/index.ts +1 -1
  123. package/src/components/Form/Form.d.ts +3 -0
  124. package/src/components/Form/Form.scss +31 -4
  125. package/src/components/Form/Form.stories.tsx +172 -138
  126. package/src/components/Form/Form.ts +2 -0
  127. package/src/components/Form/Forms.tsx +25 -0
  128. package/src/components/Form/index.ts +1 -1
  129. package/src/components/Icon/iconList.ts +8 -0
  130. package/src/components/IconButton/IconButton.scss +1 -1
  131. package/src/components/MenuOption/types.ts +7 -6
  132. package/src/components/ModulesChip/ModuleChip.scss +20 -0
  133. package/src/components/ModulesChip/ModuleChip.stories.tsx +41 -0
  134. package/src/components/ModulesChip/ModuleChip.tsx +31 -0
  135. package/src/components/ModulesChip/index.ts +1 -0
  136. package/src/components/ModulesChip/types.ts +14 -0
  137. package/src/components/MultiSelect/Dropdown.tsx +6 -1
  138. package/src/components/MultiSelect/MultiSelect.scss +17 -10
  139. package/src/components/MultiSelect/MultiSelect.stories.tsx +16 -4
  140. package/src/components/MultiSelect/MultiSelect.tsx +11 -4
  141. package/src/components/MultiSelect/MultiSelectTypes.ts +4 -3
  142. package/src/components/Select/Select.scss +4 -0
  143. package/src/components/Select/Select.tsx +2 -2
  144. package/src/components/Toastify/Toastify.stories.tsx +52 -0
  145. package/src/components/Toastify/Toastify.tsx +66 -0
  146. package/src/components/Toastify/index.ts +1 -0
  147. package/src/components/Toastify/types.ts +8 -0
  148. package/src/components/Tooltip/Tooltip.tsx +2 -1
  149. package/src/components/Tooltip/types.ts +6 -0
  150. package/src/components/Typography/Typography.scss +12 -4
  151. package/src/components/Typography/Typography.stories.tsx +2 -0
  152. package/src/components/Typography/Typography.tsx +2 -0
  153. package/src/components/Typography/types.ts +1 -0
  154. package/src/index.ts +10 -2
  155. package/src/components/ExcelFile/ChangeExcelStyles.tsx +0 -78
  156. package/src/components/ExcelFile/ImportExcelStyles.tsx +0 -86
  157. package/src/components/Form/Form.tsx +0 -57
@@ -24,48 +24,9 @@ interface WorkData {
24
24
  /** Value of the cell */
25
25
  value: string;
26
26
  /** Styling options for the cell */
27
- style: CellStyle;
27
+ style: React.CSSProperties;
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
- }
69
30
  /** A generic type to represent a 2D matrix of any type (or undefined values) */
70
31
  type Matrix<T> = (T | undefined)[][];
71
32
  interface ContextAction {
@@ -116,18 +77,10 @@ interface SelectedValue {
116
77
  /** The column represented as an alphabetical string ('A', 'B') */
117
78
  alphaCol: string;
118
79
  /** The style applied to the selected cell */
119
- style: CellStyle;
80
+ style: React.CSSProperties;
120
81
  /** The sheet name where the cell is located */
121
82
  sheet: string;
122
83
  }
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
- }
131
84
  interface ExcelSheetBarProps {
132
85
  /** Object containing details about the file, including sheet names */
133
86
  fileDetails: {
@@ -1,16 +1,2 @@
1
- import React from 'react';
2
- import { UseFormProps, SubmitHandler, FieldValues, FieldPath, FieldErrors } from 'react-hook-form';
3
- import './Form.scss';
4
- interface FormProps<T extends FieldValues> extends UseFormProps<T> {
5
- onSubmit: SubmitHandler<T>;
6
- children: (props: {
7
- register: (name: FieldPath<T>, options?: any) => any;
8
- errors: FieldErrors<T>;
9
- handleBlur: (field: FieldPath<T>) => void;
10
- getValues: () => T;
11
- watch: (field?: FieldPath<T>) => any;
12
- setValue: (field: FieldPath<T>, value: any, options?: object) => void;
13
- }) => React.ReactNode;
14
- }
15
- declare const Form: <T extends FieldValues>({ onSubmit, children, ...rest }: FormProps<T>) => import("react/jsx-runtime").JSX.Element;
1
+ import * as Form from 'react-hook-form';
16
2
  export default Form;
@@ -1,6 +1,7 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import Form from './Form';
3
- declare const meta: Meta<typeof Form>;
4
- type Story = StoryObj<typeof Form>;
5
- export declare const WithControlledState: Story;
1
+ import Forms from './Forms';
2
+ import { Meta, StoryObj } from '@storybook/react/*';
3
+ import './Form.scss';
4
+ declare const meta: Meta<typeof Forms>;
5
+ type Story = StoryObj<typeof Forms>;
6
+ export declare const WithDefaultValues: Story;
6
7
  export default meta;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import Form from './Form';
3
+ interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
4
+ onSubmit: Form.SubmitHandler<T>;
5
+ children: (methods: ReturnType<typeof Form.useForm<T>>) => React.ReactNode;
6
+ }
7
+ declare const Forms: <T extends Form.FieldValues>({ onSubmit, children, ...rest }: FormProps<T>) => import("react/jsx-runtime").JSX.Element;
8
+ export default Forms;
@@ -1 +1 @@
1
- export { default } from './Form';
1
+ export * from './Form';
@@ -85,15 +85,15 @@ interface MenuOptionProps {
85
85
  */
86
86
  dropdownPlacement?: string | 'top' | 'left' | 'right' | 'down';
87
87
  /**
88
- * Callback function triggered when the icon is clicked.
89
- * @type {function}
90
- * @optional
91
- */
88
+ * The variant of the menu option, either 'dark' or 'light'.
89
+ * @type {'dark' | 'light'}
90
+ * @default 'light'
91
+ * @optional
92
+ */
92
93
  variant?: 'dark' | 'light';
93
94
  /**
94
- * The variant of the menu option, either 'dark' or 'light'.
95
- * @type {'dark' | 'light'}
96
- * @default 'light'
95
+ * Callback function triggered when the icon is clicked.
96
+ * @type {function}
97
97
  * @optional
98
98
  */
99
99
  onClick?: () => void;
@@ -0,0 +1,4 @@
1
+ import './ModuleChip.scss';
2
+ import { ModuleChipProps } from './types';
3
+ declare const ModuleChip: React.FC<ModuleChipProps>;
4
+ export default ModuleChip;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ModuleChip from './ModuleChip';
3
+ declare const meta: Meta<typeof ModuleChip>;
4
+ type Story = StoryObj<typeof ModuleChip>;
5
+ export declare const Controlled: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export { default } from './ModuleChip';
@@ -0,0 +1,14 @@
1
+ export interface ModuleChipProps {
2
+ /**
3
+ * mandatory | label for the ModuleChip component
4
+ */
5
+ label: string;
6
+ /**
7
+ * mandatory | isActive for the ModuleChip component
8
+ */
9
+ isActive: boolean;
10
+ /**
11
+ * mandatory | onClick for the ModuleChip component
12
+ */
13
+ onClick: () => void;
14
+ }
@@ -3,6 +3,7 @@ interface Option {
3
3
  value?: string;
4
4
  accessor?: string;
5
5
  isChecked?: boolean;
6
+ isDisabled?: boolean;
6
7
  }
7
8
  interface MultiSelectProps {
8
9
  options: Option[];
@@ -0,0 +1,8 @@
1
+ export declare const Toastify: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Toastify;
3
+ export declare const toast: {
4
+ success: (message: string) => void;
5
+ error: (message: string) => void;
6
+ warning: (message: string) => void;
7
+ info: (message: string) => void;
8
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Toastify } from './Toastify';
3
+ declare const meta: Meta<typeof Toastify>;
4
+ type Story = StoryObj<typeof Toastify>;
5
+ export declare const Controlled: Story;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export { default } from './Toastify';
@@ -0,0 +1,7 @@
1
+ export type Variant = 'success' | 'warning' | 'danger' | 'info' | 'confirm';
2
+ export interface ToastProps {
3
+ isOpen: boolean;
4
+ variant: Variant;
5
+ toastTitle: string;
6
+ toastMessage: string;
7
+ }
@@ -33,5 +33,11 @@ interface TooltipProps {
33
33
  * @default false
34
34
  */
35
35
  disabled?: boolean;
36
+ /**.
37
+ * Z-Index is by default 99
38
+ *
39
+ * @default 99
40
+ */
41
+ zIndex?: number | string;
36
42
  }
37
43
  export { TooltipContainerRef, TitleRef, IsTitleEmpty, Position, TooltipProps, };
@@ -44,4 +44,5 @@ export interface TypographyProps {
44
44
  * To add onClick function
45
45
  */
46
46
  onClick?: () => void;
47
+ required?: boolean;
47
48
  }
package/lib/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as LazyLoad from 'react-window';
2
2
  export { LazyLoad };
3
+ import * as Form from 'react-hook-form';
3
4
  import * as React$1 from 'react';
4
5
  import React__default, { ReactNode, FC, RefObject, ComponentProps } from 'react';
5
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import { FieldValues, UseFormProps, SubmitHandler, FieldPath, FieldErrors } from 'react-hook-form';
7
7
  import * as DNDCore from '@dnd-kit/core';
8
8
  import * as DNDSortable from '@dnd-kit/sortable';
9
9
  import * as DNDUtilities from '@dnd-kit/utilities';
@@ -245,6 +245,7 @@ interface Option$3 {
245
245
  value?: string;
246
246
  accessor?: string;
247
247
  isChecked?: boolean;
248
+ isDisabled?: boolean;
248
249
  }
249
250
  interface MultiSelectProps {
250
251
  options: Option$3[];
@@ -465,6 +466,12 @@ interface TooltipProps {
465
466
  * @default false
466
467
  */
467
468
  disabled?: boolean;
469
+ /**.
470
+ * Z-Index is by default 99
471
+ *
472
+ * @default 99
473
+ */
474
+ zIndex?: number | string;
468
475
  }
469
476
 
470
477
  declare const Tooltip: React__default.FC<TooltipProps>;
@@ -822,15 +829,15 @@ interface MenuOptionProps {
822
829
  */
823
830
  dropdownPlacement?: string | 'top' | 'left' | 'right' | 'down';
824
831
  /**
825
- * Callback function triggered when the icon is clicked.
826
- * @type {function}
827
- * @optional
828
- */
832
+ * The variant of the menu option, either 'dark' or 'light'.
833
+ * @type {'dark' | 'light'}
834
+ * @default 'light'
835
+ * @optional
836
+ */
829
837
  variant?: 'dark' | 'light';
830
838
  /**
831
- * The variant of the menu option, either 'dark' or 'light'.
832
- * @type {'dark' | 'light'}
833
- * @default 'light'
839
+ * Callback function triggered when the icon is clicked.
840
+ * @type {function}
834
841
  * @optional
835
842
  */
836
843
  onClick?: () => void;
@@ -1123,24 +1130,18 @@ interface TypographyProps {
1123
1130
  * To add onClick function
1124
1131
  */
1125
1132
  onClick?: () => void;
1133
+ required?: boolean;
1126
1134
  }
1127
1135
 
1128
1136
  declare const Typography: React__default.FC<TypographyProps>;
1129
1137
 
1130
1138
  declare const useTheme: () => ThemeContextType;
1131
1139
 
1132
- interface FormProps<T extends FieldValues> extends UseFormProps<T> {
1133
- onSubmit: SubmitHandler<T>;
1134
- children: (props: {
1135
- register: (name: FieldPath<T>, options?: any) => any;
1136
- errors: FieldErrors<T>;
1137
- handleBlur: (field: FieldPath<T>) => void;
1138
- getValues: () => T;
1139
- watch: (field?: FieldPath<T>) => any;
1140
- setValue: (field: FieldPath<T>, value: any, options?: object) => void;
1141
- }) => React__default.ReactNode;
1140
+ interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
1141
+ onSubmit: Form.SubmitHandler<T>;
1142
+ children: (methods: ReturnType<typeof Form.useForm<T>>) => React__default.ReactNode;
1142
1143
  }
1143
- declare const Form: <T extends FieldValues>({ onSubmit, children, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
1144
+ declare const Forms: <T extends Form.FieldValues>({ onSubmit, children, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
1144
1145
 
1145
1146
  interface Option$1 {
1146
1147
  label: string | ReactNode;
@@ -1634,15 +1635,23 @@ interface AppHeaderProps {
1634
1635
  logoIconName: string;
1635
1636
  leftContent?: ReactNode;
1636
1637
  rightContent?: ReactNode;
1637
- projectsList?: string[];
1638
+ projectsList?: optionsType[];
1638
1639
  appHeaderMenuItems: appHeaderMenuItemProps[];
1639
- appHeaderHiddenMenuItems?: string[];
1640
+ appHeaderHiddenMenuItems?: {
1641
+ label: string;
1642
+ value: string | string[];
1643
+ icon: string;
1644
+ disable?: boolean;
1645
+ }[];
1640
1646
  selectedMenu: string;
1641
1647
  selectedSubMenu?: string;
1642
1648
  selectedQuickMenu?: string;
1649
+ selectedProject?: optionsType;
1643
1650
  onMenuClick?: (text: any) => void;
1644
1651
  onSubMenuClick?: (text: any) => void;
1645
1652
  onQuickMenuClick?: (text: any) => void;
1653
+ onProjectMenuClick?: (text: any) => void;
1654
+ onMoreMenuOptionClick?: (text: any) => void;
1646
1655
  }
1647
1656
  interface appHeaderMenuItemProps {
1648
1657
  label: string;
@@ -1847,6 +1856,15 @@ interface AttachmentUploaderProps {
1847
1856
 
1848
1857
  declare const AttachmentButton: React__default.FC<AttachmentUploaderProps>;
1849
1858
 
1859
+ declare const Toastify: () => react_jsx_runtime.JSX.Element;
1860
+
1861
+ declare const toast: {
1862
+ success: (message: string) => void;
1863
+ error: (message: string) => void;
1864
+ warning: (message: string) => void;
1865
+ info: (message: string) => void;
1866
+ };
1867
+
1850
1868
  interface IconProps {
1851
1869
  /** Name of the icon to be displayed. */
1852
1870
  name: string;
@@ -1888,6 +1906,41 @@ interface LabelEditTextFieldTypes {
1888
1906
 
1889
1907
  declare const LabelEditTextField: FC<LabelEditTextFieldTypes>;
1890
1908
 
1909
+ interface ExcelFileProps {
1910
+ /** The Excel data containing sheets and their content */
1911
+ excelData: {
1912
+ sheets: WorkSheet[];
1913
+ };
1914
+ /** Optional: Provide context menu options for actions like right-click */
1915
+ contextOption?: {
1916
+ name: string;
1917
+ title: React__default.ReactNode;
1918
+ action: () => void;
1919
+ }[];
1920
+ /** Controls whether the toolbar is shown, disabled, or hidden */
1921
+ toolbar?: 'show' | 'disable' | 'hide';
1922
+ /** Callback function to save the Excel data */
1923
+ onSave?: (excelData?: any) => void;
1924
+ }
1925
+ declare const ExcelFile: React__default.FC<ExcelFileProps>;
1926
+
1927
+ interface ModuleChipProps {
1928
+ /**
1929
+ * mandatory | label for the ModuleChip component
1930
+ */
1931
+ label: string;
1932
+ /**
1933
+ * mandatory | isActive for the ModuleChip component
1934
+ */
1935
+ isActive: boolean;
1936
+ /**
1937
+ * mandatory | onClick for the ModuleChip component
1938
+ */
1939
+ onClick: () => void;
1940
+ }
1941
+
1942
+ declare const ModuleChip: React.FC<ModuleChipProps>;
1943
+
1891
1944
  type valueType$1 = any;
1892
1945
  declare const checkEmpty: (value: valueType$1) => boolean;
1893
1946
 
@@ -1935,4 +1988,4 @@ declare const throttle: (func: Callback, limit: number) => ThrottledFunction;
1935
1988
 
1936
1989
  declare const truncateText: (text: string, maxLength: number) => string;
1937
1990
 
1938
- export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachmentButton, Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExpandableMenu, FileDropzone, Form, HighlightText, Icon, IconButton, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, MachineInputField, MenuOption, MiniModal, Modal, MultiSelect, NlpInput as NLPInput, Paper, PieChart, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toggle, Tooltip, Typography, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, throttle, truncateText, useTheme };
1991
+ export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachmentButton, Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExcelFile, ExpandableMenu, FileDropzone, Forms, 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 };