pixel-react 1.2.0 → 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/InputWithDropdown/types.d.ts +1 -1
- package/lib/components/LabelEditTextField/LabelEditTextField.d.ts +5 -0
- package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +11 -0
- package/lib/components/LabelEditTextField/index.d.ts +1 -0
- package/lib/components/LabelEditTextField/types.d.ts +38 -0
- 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/Select/Select.d.ts +1 -1
- package/lib/components/Select/components/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +2 -0
- package/lib/components/Select/types.d.ts +11 -4
- 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 +130 -29
- package/lib/index.esm.js +26882 -872
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +26881 -866
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/getSelectOptionValue/getSelectOptionValue.d.ts +8 -0
- package/package.json +1 -1
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +10 -0
- package/src/assets/Themes/BaseTheme.scss +10 -1
- package/src/assets/Themes/DarkTheme.scss +19 -8
- 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.scss +5 -2
- 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/Drawer/Drawer.scss +0 -1
- package/src/components/Drawer/Drawer.tsx +1 -1
- 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/Icons.scss +1 -0
- package/src/components/Icon/iconList.ts +8 -0
- package/src/components/IconButton/IconButton.scss +1 -1
- package/src/components/InputWithDropdown/types.ts +1 -1
- package/src/components/LabelEditTextField/LabelEditTextField.scss +85 -0
- package/src/components/LabelEditTextField/LabelEditTextField.stories.tsx +136 -0
- package/src/components/LabelEditTextField/LabelEditTextField.tsx +207 -0
- package/src/components/LabelEditTextField/index.ts +1 -0
- package/src/components/LabelEditTextField/types.ts +38 -0
- 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.stories.tsx +5 -3
- package/src/components/Select/Select.tsx +15 -7
- package/src/components/Select/components/Dropdown/Dropdown.tsx +3 -1
- package/src/components/Select/components/Dropdown/dropdownTypes.ts +3 -0
- package/src/components/Select/types.ts +12 -5
- 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 +12 -2
- package/src/utils/getSelectOptionValue/getSelectOptionValue.ts +31 -0
- 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';
|
@@ -59,7 +59,7 @@ export interface InputWithDropdownProps {
|
|
59
59
|
/**
|
60
60
|
* onChange handler for dropdown changes
|
61
61
|
*/
|
62
|
-
onDropdownChangeHandler?: (option:
|
62
|
+
onDropdownChangeHandler?: (option: any) => void;
|
63
63
|
/**
|
64
64
|
* onInputBlurHandler action for input field
|
65
65
|
*/
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import LabelEditTextField from './LabelEditTextField';
|
3
|
+
import '../../assets/styles/_colors.scss';
|
4
|
+
import './LabelEditTextField.scss';
|
5
|
+
declare const meta: Meta<typeof LabelEditTextField>;
|
6
|
+
type Story = StoryObj<typeof LabelEditTextField>;
|
7
|
+
export declare const textField: Story;
|
8
|
+
export declare const textFieldWithOutLabel: Story;
|
9
|
+
export declare const textFieldWithDropdown: Story;
|
10
|
+
export declare const textFieldWithHighlight: Story;
|
11
|
+
export default meta;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './LabelEditTextField';
|
@@ -0,0 +1,38 @@
|
|
1
|
+
export interface IconProps {
|
2
|
+
/** Name of the icon to be displayed. */
|
3
|
+
name: string;
|
4
|
+
/** Optional click handler function for the icon. */
|
5
|
+
onClick?: () => void;
|
6
|
+
}
|
7
|
+
export interface DropdownOption {
|
8
|
+
/** Unique identifier for the dropdown option. */
|
9
|
+
id: number;
|
10
|
+
/** Value associated with the dropdown option. */
|
11
|
+
value: string;
|
12
|
+
/** Label displayed for the dropdown option. */
|
13
|
+
label: string;
|
14
|
+
}
|
15
|
+
export interface LabelEditTextFieldTypes {
|
16
|
+
/** Label text displayed above the input field. */
|
17
|
+
label?: string;
|
18
|
+
/** Initial text displayed in the input field. */
|
19
|
+
text: string;
|
20
|
+
/** Text to be highlighted within the displayed text, if provided. */
|
21
|
+
highlightText?: string;
|
22
|
+
/** Custom error message to be displayed, if applicable. */
|
23
|
+
customError?: string;
|
24
|
+
/** Confirm icon properties including icon name and click handler. */
|
25
|
+
confirmIcon?: IconProps;
|
26
|
+
/** Cancel icon properties including icon name and click handler. */
|
27
|
+
cancelIcon?: IconProps;
|
28
|
+
/** Type of input field - standard text field or text field with a dropdown. */
|
29
|
+
variant?: 'textFieldWithDropdown' | 'textField';
|
30
|
+
/** Array of dropdown options used if the dropdown variant is selected. */
|
31
|
+
dropdownData?: DropdownOption[];
|
32
|
+
/** Width of the input field component. */
|
33
|
+
width?: string;
|
34
|
+
/** Height of the input field component. */
|
35
|
+
height?: string;
|
36
|
+
/** Function called when confirming input changes, with input and dropdown values as arguments. */
|
37
|
+
confirmAction?: (inputValue: string, dropdownValue: string) => void;
|
38
|
+
}
|
@@ -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
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { SelectProps } from './types';
|
2
2
|
import './Select.scss';
|
3
|
-
declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, optionsRequired, selectedOptionColor, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
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;
|
4
4
|
export default Select;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { DropDownListProps } from './dropdownTypes';
|
2
2
|
import './Dropdown.scss';
|
3
|
-
declare const Dropdown: ({ onSelectBlur, onSelectOptionSelector, dropdownPosition, options, optionZIndex, inputRef, }: DropDownListProps) => import("react/jsx-runtime").JSX.Element;
|
3
|
+
declare const Dropdown: ({ onSelectBlur, onSelectOptionSelector, dropdownPosition, options, optionZIndex, inputRef, labelAccessor, }: DropDownListProps) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default Dropdown;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
2
1
|
export interface SelectProps {
|
3
2
|
label?: string;
|
4
3
|
showLabel?: boolean;
|
@@ -20,6 +19,14 @@ export interface SelectProps {
|
|
20
19
|
* selectedOptionColor prop provides the custom color for the selected option
|
21
20
|
*/
|
22
21
|
selectedOptionColor?: string;
|
22
|
+
/**
|
23
|
+
* Label accessor
|
24
|
+
*/
|
25
|
+
labelAccessor?: string;
|
26
|
+
/**
|
27
|
+
* Value accessor
|
28
|
+
*/
|
29
|
+
valueAccessor?: string;
|
23
30
|
}
|
24
31
|
export interface DrowdownPosition {
|
25
32
|
positionX: number;
|
@@ -69,8 +76,8 @@ export type SelectAction = {
|
|
69
76
|
option: Option['value'];
|
70
77
|
};
|
71
78
|
};
|
79
|
+
type OptionValue = any;
|
72
80
|
export interface Option {
|
73
|
-
|
74
|
-
value: string;
|
75
|
-
disabled?: boolean;
|
81
|
+
[key: string]: OptionValue;
|
76
82
|
}
|
83
|
+
export {};
|
@@ -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';
|
@@ -194,7 +194,7 @@ interface DrawerProps {
|
|
194
194
|
|
195
195
|
declare const Drawer: FC<DrawerProps>;
|
196
196
|
|
197
|
-
interface IconProps {
|
197
|
+
interface IconProps$1 {
|
198
198
|
name: string;
|
199
199
|
className?: string;
|
200
200
|
height?: number;
|
@@ -206,7 +206,7 @@ interface IconProps {
|
|
206
206
|
variant?: "dark" | "light";
|
207
207
|
}
|
208
208
|
|
209
|
-
declare const Icon: React$1.ForwardRefExoticComponent<IconProps & React$1.RefAttributes<HTMLSpanElement>>;
|
209
|
+
declare const Icon: React$1.ForwardRefExoticComponent<IconProps$1 & React$1.RefAttributes<HTMLSpanElement>>;
|
210
210
|
|
211
211
|
interface AccordionProps {
|
212
212
|
/**
|
@@ -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>;
|
@@ -622,14 +629,21 @@ interface SelectProps$1 {
|
|
622
629
|
* selectedOptionColor prop provides the custom color for the selected option
|
623
630
|
*/
|
624
631
|
selectedOptionColor?: string;
|
632
|
+
/**
|
633
|
+
* Label accessor
|
634
|
+
*/
|
635
|
+
labelAccessor?: string;
|
636
|
+
/**
|
637
|
+
* Value accessor
|
638
|
+
*/
|
639
|
+
valueAccessor?: string;
|
625
640
|
}
|
641
|
+
type OptionValue = any;
|
626
642
|
interface Option$2 {
|
627
|
-
|
628
|
-
value: string;
|
629
|
-
disabled?: boolean;
|
643
|
+
[key: string]: OptionValue;
|
630
644
|
}
|
631
645
|
|
632
|
-
declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, optionsRequired, selectedOptionColor, }: SelectProps$1) => react_jsx_runtime.JSX.Element;
|
646
|
+
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;
|
633
647
|
|
634
648
|
interface TextareaProps {
|
635
649
|
/**
|
@@ -815,15 +829,15 @@ interface MenuOptionProps {
|
|
815
829
|
*/
|
816
830
|
dropdownPlacement?: string | 'top' | 'left' | 'right' | 'down';
|
817
831
|
/**
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
832
|
+
* The variant of the menu option, either 'dark' or 'light'.
|
833
|
+
* @type {'dark' | 'light'}
|
834
|
+
* @default 'light'
|
835
|
+
* @optional
|
836
|
+
*/
|
822
837
|
variant?: 'dark' | 'light';
|
823
838
|
/**
|
824
|
-
*
|
825
|
-
* @type {
|
826
|
-
* @default 'light'
|
839
|
+
* Callback function triggered when the icon is clicked.
|
840
|
+
* @type {function}
|
827
841
|
* @optional
|
828
842
|
*/
|
829
843
|
onClick?: () => void;
|
@@ -1116,24 +1130,18 @@ interface TypographyProps {
|
|
1116
1130
|
* To add onClick function
|
1117
1131
|
*/
|
1118
1132
|
onClick?: () => void;
|
1133
|
+
required?: boolean;
|
1119
1134
|
}
|
1120
1135
|
|
1121
1136
|
declare const Typography: React__default.FC<TypographyProps>;
|
1122
1137
|
|
1123
1138
|
declare const useTheme: () => ThemeContextType;
|
1124
1139
|
|
1125
|
-
interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
1126
|
-
onSubmit: SubmitHandler<T>;
|
1127
|
-
children: (
|
1128
|
-
register: (name: FieldPath<T>, options?: any) => any;
|
1129
|
-
errors: FieldErrors<T>;
|
1130
|
-
handleBlur: (field: FieldPath<T>) => void;
|
1131
|
-
getValues: () => T;
|
1132
|
-
watch: (field?: FieldPath<T>) => any;
|
1133
|
-
setValue: (field: FieldPath<T>, value: any, options?: object) => void;
|
1134
|
-
}) => 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;
|
1135
1143
|
}
|
1136
|
-
declare const
|
1144
|
+
declare const Forms: <T extends Form.FieldValues>({ onSubmit, children, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
|
1137
1145
|
|
1138
1146
|
interface Option$1 {
|
1139
1147
|
label: string | ReactNode;
|
@@ -1195,7 +1203,7 @@ interface InputWithDropdownProps {
|
|
1195
1203
|
/**
|
1196
1204
|
* onChange handler for dropdown changes
|
1197
1205
|
*/
|
1198
|
-
onDropdownChangeHandler?: (option:
|
1206
|
+
onDropdownChangeHandler?: (option: any) => void;
|
1199
1207
|
/**
|
1200
1208
|
* onInputBlurHandler action for input field
|
1201
1209
|
*/
|
@@ -1627,15 +1635,23 @@ interface AppHeaderProps {
|
|
1627
1635
|
logoIconName: string;
|
1628
1636
|
leftContent?: ReactNode;
|
1629
1637
|
rightContent?: ReactNode;
|
1630
|
-
projectsList?:
|
1638
|
+
projectsList?: optionsType[];
|
1631
1639
|
appHeaderMenuItems: appHeaderMenuItemProps[];
|
1632
|
-
appHeaderHiddenMenuItems?:
|
1640
|
+
appHeaderHiddenMenuItems?: {
|
1641
|
+
label: string;
|
1642
|
+
value: string | string[];
|
1643
|
+
icon: string;
|
1644
|
+
disable?: boolean;
|
1645
|
+
}[];
|
1633
1646
|
selectedMenu: string;
|
1634
1647
|
selectedSubMenu?: string;
|
1635
1648
|
selectedQuickMenu?: string;
|
1649
|
+
selectedProject?: optionsType;
|
1636
1650
|
onMenuClick?: (text: any) => void;
|
1637
1651
|
onSubMenuClick?: (text: any) => void;
|
1638
1652
|
onQuickMenuClick?: (text: any) => void;
|
1653
|
+
onProjectMenuClick?: (text: any) => void;
|
1654
|
+
onMoreMenuOptionClick?: (text: any) => void;
|
1639
1655
|
}
|
1640
1656
|
interface appHeaderMenuItemProps {
|
1641
1657
|
label: string;
|
@@ -1840,6 +1856,91 @@ interface AttachmentUploaderProps {
|
|
1840
1856
|
|
1841
1857
|
declare const AttachmentButton: React__default.FC<AttachmentUploaderProps>;
|
1842
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
|
+
|
1868
|
+
interface IconProps {
|
1869
|
+
/** Name of the icon to be displayed. */
|
1870
|
+
name: string;
|
1871
|
+
/** Optional click handler function for the icon. */
|
1872
|
+
onClick?: () => void;
|
1873
|
+
}
|
1874
|
+
interface DropdownOption {
|
1875
|
+
/** Unique identifier for the dropdown option. */
|
1876
|
+
id: number;
|
1877
|
+
/** Value associated with the dropdown option. */
|
1878
|
+
value: string;
|
1879
|
+
/** Label displayed for the dropdown option. */
|
1880
|
+
label: string;
|
1881
|
+
}
|
1882
|
+
interface LabelEditTextFieldTypes {
|
1883
|
+
/** Label text displayed above the input field. */
|
1884
|
+
label?: string;
|
1885
|
+
/** Initial text displayed in the input field. */
|
1886
|
+
text: string;
|
1887
|
+
/** Text to be highlighted within the displayed text, if provided. */
|
1888
|
+
highlightText?: string;
|
1889
|
+
/** Custom error message to be displayed, if applicable. */
|
1890
|
+
customError?: string;
|
1891
|
+
/** Confirm icon properties including icon name and click handler. */
|
1892
|
+
confirmIcon?: IconProps;
|
1893
|
+
/** Cancel icon properties including icon name and click handler. */
|
1894
|
+
cancelIcon?: IconProps;
|
1895
|
+
/** Type of input field - standard text field or text field with a dropdown. */
|
1896
|
+
variant?: 'textFieldWithDropdown' | 'textField';
|
1897
|
+
/** Array of dropdown options used if the dropdown variant is selected. */
|
1898
|
+
dropdownData?: DropdownOption[];
|
1899
|
+
/** Width of the input field component. */
|
1900
|
+
width?: string;
|
1901
|
+
/** Height of the input field component. */
|
1902
|
+
height?: string;
|
1903
|
+
/** Function called when confirming input changes, with input and dropdown values as arguments. */
|
1904
|
+
confirmAction?: (inputValue: string, dropdownValue: string) => void;
|
1905
|
+
}
|
1906
|
+
|
1907
|
+
declare const LabelEditTextField: FC<LabelEditTextFieldTypes>;
|
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
|
+
|
1843
1944
|
type valueType$1 = any;
|
1844
1945
|
declare const checkEmpty: (value: valueType$1) => boolean;
|
1845
1946
|
|
@@ -1887,4 +1988,4 @@ declare const throttle: (func: Callback, limit: number) => ThrottledFunction;
|
|
1887
1988
|
|
1888
1989
|
declare const truncateText: (text: string, maxLength: number) => string;
|
1889
1990
|
|
1890
|
-
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 };
|