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.
- package/lib/components/AppHeader/types.d.ts +11 -2
- package/lib/components/Avatar/Avatar.d.ts +5 -0
- package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
- package/lib/components/Avatar/index.d.ts +1 -0
- package/lib/components/Avatar/types.d.ts +26 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +6 -7
- package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +49 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +3 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +5 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +6 -6
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +2 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +11 -11
- package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +5 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +3 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +11 -48
- package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +1 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +11 -12
- package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +16 -0
- package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +12 -0
- package/lib/components/ExcelFile/Types.d.ts +2 -49
- package/lib/components/Form/Form.d.ts +1 -15
- package/lib/components/Form/Form.stories.d.ts +6 -5
- package/lib/components/Form/Forms.d.ts +8 -0
- package/lib/components/Form/index.d.ts +1 -1
- package/lib/components/MenuOption/types.d.ts +7 -7
- package/lib/components/ModulesChip/ModuleChip.d.ts +4 -0
- package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
- package/lib/components/ModulesChip/index.d.ts +1 -0
- package/lib/components/ModulesChip/types.d.ts +14 -0
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +1 -0
- package/lib/components/Toastify/Toastify.d.ts +8 -0
- package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
- package/lib/components/Toastify/index.d.ts +1 -0
- package/lib/components/Toastify/types.d.ts +7 -0
- package/lib/components/Tooltip/types.d.ts +6 -0
- package/lib/components/Typography/types.d.ts +1 -0
- package/lib/index.d.ts +75 -22
- package/lib/index.esm.js +26686 -870
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +26684 -864
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +10 -0
- package/src/assets/Themes/BaseTheme.scss +2 -0
- package/src/assets/Themes/DarkTheme.scss +2 -0
- package/src/assets/icons/client_profile.svg +4 -0
- package/src/assets/icons/fireflink_finder_logo.svg +7 -0
- package/src/assets/icons/fireflink_platform.svg +4 -0
- package/src/assets/icons/license_expired.svg +20 -0
- package/src/components/AppHeader/AppHeader.stories.tsx +24 -3
- package/src/components/AppHeader/AppHeader.tsx +29 -11
- package/src/components/AppHeader/types.ts +11 -3
- package/src/components/Avatar/Avatar.scss +24 -0
- package/src/components/Avatar/Avatar.stories.tsx +56 -0
- package/src/components/Avatar/Avatar.tsx +25 -0
- package/src/components/Avatar/index.ts +1 -0
- package/src/components/Avatar/types.ts +27 -0
- package/src/components/ExcelFile/ColorBarselector/ColorBarSelector.scss +0 -2
- package/src/components/ExcelFile/ContextMenu/ContextMenu.scss +1 -4
- package/src/components/ExcelFile/ContextMenu/ContextMenu.tsx +0 -1
- package/src/components/ExcelFile/ExcelFile/Excel/ActiveCell.tsx +13 -13
- package/src/components/ExcelFile/ExcelFile/Excel/Cell.tsx +13 -12
- package/src/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.tsx +40 -32
- package/src/components/ExcelFile/ExcelFile/Excel/Copied.tsx +4 -4
- package/src/components/ExcelFile/ExcelFile/Excel/CornerIndicator.tsx +10 -10
- package/src/components/ExcelFile/ExcelFile/Excel/DataEditor.tsx +5 -5
- package/src/components/ExcelFile/ExcelFile/Excel/DataViewer.tsx +10 -10
- package/src/components/ExcelFile/ExcelFile/Excel/FloatingRect.tsx +6 -6
- package/src/components/ExcelFile/ExcelFile/Excel/HeaderRow.tsx +1 -1
- package/src/components/ExcelFile/ExcelFile/Excel/Row.tsx +1 -1
- package/src/components/ExcelFile/ExcelFile/Excel/RowIndicator.tsx +34 -27
- package/src/components/ExcelFile/ExcelFile/Excel/Selected.tsx +5 -5
- package/src/components/ExcelFile/ExcelFile/Excel/{Spreadsheet.css → Spreadsheet.scss} +21 -37
- package/src/components/ExcelFile/ExcelFile/Excel/Spreadsheet.tsx +87 -78
- package/src/components/ExcelFile/ExcelFile/Excel/Table.tsx +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/actions.ts +121 -31
- package/src/components/ExcelFile/ExcelFile/Excel/areModelsEqual.ts +1 -1
- package/src/components/ExcelFile/ExcelFile/Excel/context.ts +4 -4
- package/src/components/ExcelFile/ExcelFile/Excel/engine/engine.ts +7 -7
- package/src/components/ExcelFile/ExcelFile/Excel/engine/formula.ts +11 -11
- package/src/components/ExcelFile/ExcelFile/Excel/engine/index.ts +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/engine/point-graph.ts +3 -3
- package/src/components/ExcelFile/ExcelFile/Excel/engine/point-hash.ts +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/engine/point-set.ts +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/index.ts +12 -11
- package/src/components/ExcelFile/ExcelFile/Excel/matrix.ts +18 -24
- package/src/components/ExcelFile/ExcelFile/Excel/point-range.ts +1 -1
- package/src/components/ExcelFile/ExcelFile/Excel/reducer.ts +311 -41
- package/src/components/ExcelFile/ExcelFile/Excel/selection.ts +5 -5
- package/src/components/ExcelFile/ExcelFile/Excel/types.ts +14 -66
- package/src/components/ExcelFile/ExcelFile/Excel/typings/fast-formula-parser.d.ts +8 -8
- package/src/components/ExcelFile/ExcelFile/Excel/use-dispatch.ts +2 -2
- package/src/components/ExcelFile/ExcelFile/Excel/use-selector.ts +3 -3
- package/src/components/ExcelFile/ExcelFile/Excel/util.ts +21 -22
- package/src/components/ExcelFile/ExcelFile/ExcelFile.scss +0 -3
- package/src/components/ExcelFile/ExcelFile/ExcelFile.tsx +45 -403
- package/src/components/ExcelFile/ExcelFile.stories.tsx +10 -29
- package/src/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.tsx +1 -12
- package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.scss +0 -3
- package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.tsx +147 -127
- package/src/components/ExcelFile/Types.ts +3 -70
- package/src/components/ExcelFile/index.ts +1 -1
- package/src/components/Form/Form.d.ts +3 -0
- package/src/components/Form/Form.scss +31 -4
- package/src/components/Form/Form.stories.tsx +172 -138
- package/src/components/Form/Form.ts +2 -0
- package/src/components/Form/Forms.tsx +25 -0
- package/src/components/Form/index.ts +1 -1
- package/src/components/Icon/iconList.ts +8 -0
- package/src/components/IconButton/IconButton.scss +1 -1
- package/src/components/MenuOption/types.ts +7 -6
- package/src/components/ModulesChip/ModuleChip.scss +20 -0
- package/src/components/ModulesChip/ModuleChip.stories.tsx +41 -0
- package/src/components/ModulesChip/ModuleChip.tsx +31 -0
- package/src/components/ModulesChip/index.ts +1 -0
- package/src/components/ModulesChip/types.ts +14 -0
- package/src/components/MultiSelect/Dropdown.tsx +6 -1
- package/src/components/MultiSelect/MultiSelect.scss +17 -10
- package/src/components/MultiSelect/MultiSelect.stories.tsx +16 -4
- package/src/components/MultiSelect/MultiSelect.tsx +11 -4
- package/src/components/MultiSelect/MultiSelectTypes.ts +4 -3
- package/src/components/Select/Select.scss +4 -0
- package/src/components/Select/Select.tsx +2 -2
- package/src/components/Toastify/Toastify.stories.tsx +52 -0
- package/src/components/Toastify/Toastify.tsx +66 -0
- package/src/components/Toastify/index.ts +1 -0
- package/src/components/Toastify/types.ts +8 -0
- package/src/components/Tooltip/Tooltip.tsx +2 -1
- package/src/components/Tooltip/types.ts +6 -0
- package/src/components/Typography/Typography.scss +12 -4
- package/src/components/Typography/Typography.stories.tsx +2 -0
- package/src/components/Typography/Typography.tsx +2 -0
- package/src/components/Typography/types.ts +1 -0
- package/src/index.ts +10 -2
- package/src/components/ExcelFile/ChangeExcelStyles.tsx +0 -78
- package/src/components/ExcelFile/ImportExcelStyles.tsx +0 -86
- 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:
|
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:
|
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
|
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
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
1
|
+
export * from './Form';
|
@@ -85,15 +85,15 @@ interface MenuOptionProps {
|
|
85
85
|
*/
|
86
86
|
dropdownPlacement?: string | 'top' | 'left' | 'right' | 'down';
|
87
87
|
/**
|
88
|
-
|
89
|
-
|
90
|
-
|
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
|
-
*
|
95
|
-
* @type {
|
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 @@
|
|
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
|
+
}
|
@@ -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 @@
|
|
1
|
+
export { default } from './Toastify';
|
@@ -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, };
|
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
|
-
|
826
|
-
|
827
|
-
|
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
|
-
*
|
832
|
-
* @type {
|
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: (
|
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
|
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?:
|
1638
|
+
projectsList?: optionsType[];
|
1638
1639
|
appHeaderMenuItems: appHeaderMenuItemProps[];
|
1639
|
-
appHeaderHiddenMenuItems?:
|
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,
|
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 };
|