pixel-react 1.6.2 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
- package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
- package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
- package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/lib/components/AttachImage/AttachImage.d.ts +1 -6
- package/lib/components/AttachImage/types.d.ts +8 -0
- package/lib/components/Avatar/types.d.ts +9 -1
- package/lib/components/CreateVariable/CreateVariableSlider.d.ts +5 -0
- package/lib/components/CreateVariable/index.d.ts +1 -0
- package/lib/components/CreateVariable/types.d.ts +56 -0
- package/lib/components/Drawer/Types.d.ts +13 -0
- package/lib/components/IconButton/types.d.ts +1 -0
- package/lib/components/MiniModal/types.d.ts +7 -0
- package/lib/components/Select/components/types.d.ts +1 -0
- package/lib/components/Select/types.d.ts +2 -0
- package/lib/components/TableTree/Components/TableBody.d.ts +4 -0
- package/lib/components/TableTree/Components/TableCell.d.ts +4 -0
- package/lib/components/TableTree/Components/TableHead.d.ts +4 -0
- package/lib/components/TableTree/Components/TableRow.d.ts +4 -0
- package/lib/components/TableTree/TableTree copy.d.ts +25 -0
- package/lib/components/TableTree/Utils/getAllChildIds.d.ts +1 -0
- package/lib/components/TableTree/types.d.ts +38 -5
- package/lib/index.d.ts +117 -7
- package/lib/index.esm.js +594 -324
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +594 -323
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/assets/icons/authorization_icon.svg +1 -0
- package/src/assets/icons/backward.svg +10 -0
- package/src/assets/icons/capture_icon.svg +6 -0
- package/src/assets/icons/download_file_icon.svg +2 -9
- package/src/assets/icons/forward.svg +3 -0
- package/src/assets/icons/project_status_icon.svg +10 -0
- package/src/assets/icons/refresh_icon.svg +4 -0
- package/src/assets/icons/rotate_icon.svg +10 -0
- package/src/assets/icons/swipe_icon.svg +9 -0
- package/src/assets/icons/tap_icon.svg +4 -0
- package/src/components/AttachImage/AttachImage.stories.tsx +2 -0
- package/src/components/AttachImage/AttachImage.tsx +5 -9
- package/src/components/AttachImage/types.ts +25 -18
- package/src/components/Avatar/Avatar.scss +4 -0
- package/src/components/Avatar/Avatar.stories.tsx +38 -18
- package/src/components/Avatar/Avatar.tsx +19 -3
- package/src/components/Avatar/types.ts +9 -1
- package/src/components/Charts/DonutChart/DonutChart.tsx +8 -3
- package/src/components/Charts/RadialChart/RadialChart.scss +4 -0
- package/src/components/Charts/RadialChart/RadialChart.tsx +51 -45
- package/src/components/CreateVariable/CreateVariableSlider.scss +18 -0
- package/src/components/CreateVariable/CreateVariableSlider.stories.tsx +66 -0
- package/src/components/CreateVariable/CreateVariableSlider.tsx +95 -0
- package/src/components/CreateVariable/index.ts +1 -0
- package/src/components/CreateVariable/types.ts +58 -0
- package/src/components/Drawer/Drawer.scss +1 -1
- package/src/components/Drawer/Drawer.stories.tsx +0 -1
- package/src/components/Drawer/Drawer.tsx +4 -1
- package/src/components/Drawer/Types.ts +13 -0
- package/src/components/FileDropzone/FileDropzone.scss +0 -1
- package/src/components/Icon/iconList.ts +16 -0
- package/src/components/IconButton/IconButton.scss +11 -11
- package/src/components/IconButton/IconButton.tsx +2 -1
- package/src/components/IconButton/types.ts +1 -0
- package/src/components/MiniModal/MiniModal.scss +0 -4
- package/src/components/MiniModal/MiniModal.stories.tsx +3 -2
- package/src/components/MiniModal/MiniModal.tsx +28 -10
- package/src/components/MiniModal/types.ts +7 -0
- package/src/components/Select/Select.scss +20 -0
- package/src/components/Select/Select.stories.tsx +50 -1
- package/src/components/Select/Select.tsx +34 -7
- package/src/components/Select/components/Dropdown.scss +9 -0
- package/src/components/Select/components/Dropdown.tsx +20 -6
- package/src/components/Select/components/types.ts +1 -0
- package/src/components/Select/types.ts +12 -2
- package/src/components/TableTree/Components/TableBody.tsx +35 -0
- package/src/components/TableTree/Components/TableCell.tsx +59 -0
- package/src/components/TableTree/Components/TableHead.tsx +39 -0
- package/src/components/TableTree/Components/TableRow.tsx +37 -0
- package/src/components/TableTree/TableTree.scss +8 -5
- package/src/components/TableTree/TableTree.tsx +16 -46
- package/src/components/TableTree/Utils/getAllChildIds.ts +12 -0
- package/src/components/TableTree/Utils/renderSpaces.ts +0 -0
- package/src/components/TableTree/types.ts +43 -5
- package/src/index.ts +2 -0
- package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +0 -6
- package/lib/StyleGuide/Typography/Typography.stories.d.ts +0 -6
- package/lib/components/Accordion/Accordion.stories.d.ts +0 -6
- package/lib/components/AddResourceButton/AddButton.stories.d.ts +0 -8
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +0 -7
- package/lib/components/AppHeader/AppHeader.stories.d.ts +0 -7
- package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +0 -9
- package/lib/components/Avatar/Avatar.stories.d.ts +0 -10
- package/lib/components/Button/Button.stories.d.ts +0 -13
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +0 -7
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +0 -6
- package/lib/components/Charts/PieChart/PieChart.stories.d.ts +0 -7
- package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +0 -6
- package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -8
- package/lib/components/Chip/Chip.stories.d.ts +0 -14
- package/lib/components/DatePicker/DatePicker.stories.d.ts +0 -9
- package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +0 -6
- package/lib/components/Drawer/Drawer.stories.d.ts +0 -12
- package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +0 -8
- package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +0 -7
- package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +0 -4
- package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +0 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +0 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +0 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +0 -8
- package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +0 -10
- package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +0 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +0 -80
- package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +0 -174
- package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +0 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +0 -8
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +0 -22
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +0 -17
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +0 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +0 -21
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +0 -24
- package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +0 -13
- package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +0 -67
- package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +0 -22
- package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +0 -11
- package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +0 -27
- package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +0 -95
- package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +0 -178
- package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +0 -44
- package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +0 -19
- package/lib/components/ExcelFile/ExcelFile.stories.d.ts +0 -6
- package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +0 -12
- package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +0 -15
- package/lib/components/ExcelFile/Types.d.ts +0 -129
- package/lib/components/ExcelFile/index.d.ts +0 -1
- package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +0 -7
- package/lib/components/FF_Captcha/captcha.stories.d.ts +0 -8
- package/lib/components/FileDropzone/FileDropzone.stories.d.ts +0 -8
- package/lib/components/Form/Form.stories.d.ts +0 -7
- package/lib/components/GridLayout/GridLayout.stories.d.ts +0 -8
- package/lib/components/HighlightText/HighlightText.stories.d.ts +0 -6
- package/lib/components/Icon/Icon.stories.d.ts +0 -8
- package/lib/components/IconButton/IconButton.stories.d.ts +0 -7
- package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +0 -7
- package/lib/components/Input/Input.stories.d.ts +0 -9
- package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +0 -9
- package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +0 -11
- package/lib/components/LazyLoad/LazyLoad.stories.d.ts +0 -6
- package/lib/components/MachineInputField/MachineInputField.stories.d.ts +0 -6
- package/lib/components/MenuOption/MenuOption.stories.d.ts +0 -16
- package/lib/components/MiniModal/MiniModal.stories.d.ts +0 -10
- package/lib/components/Modal/Modal.stories.d.ts +0 -7
- package/lib/components/ModulesChip/ModuleChip.stories.d.ts +0 -6
- package/lib/components/MultiSelect/MultiSelect.stories.d.ts +0 -10
- package/lib/components/NLPInput/NlpInput.stories.d.ts +0 -7
- package/lib/components/Paper/Paper.stories.d.ts +0 -11
- package/lib/components/RadioButton/RadioButton.stories.d.ts +0 -10
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +0 -9
- package/lib/components/Search/Search.stories.d.ts +0 -6
- package/lib/components/Select/Select.stories.d.ts +0 -13
- package/lib/components/Select/components/Dropdown/Dropdown.d.ts +0 -4
- package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +0 -17
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +0 -6
- package/lib/components/StateDropdown/StateDropdown.stories.d.ts +0 -10
- package/lib/components/StatusButton/StatusButton.stories.d.ts +0 -14
- package/lib/components/Table/Table.stories.d.ts +0 -13
- package/lib/components/TableTree/TableTree.stories.d.ts +0 -7
- package/lib/components/Tabs/Tabs.stories.d.ts +0 -9
- package/lib/components/TextArea/Textarea.stories.d.ts +0 -9
- package/lib/components/Toast/Toast.stories.d.ts +0 -6
- package/lib/components/Toastify/Toastify.stories.d.ts +0 -6
- package/lib/components/Toggle/Toggle.stories.d.ts +0 -12
- package/lib/components/Tooltip/Tooltip.stories.d.ts +0 -15
- package/lib/components/Typography/Typography.stories.d.ts +0 -10
- package/lib/components/VariableInput/VariableInput.stories.d.ts +0 -6
- package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +0 -6
- package/lib/utils/compareArrays/compareArrays.stories.d.ts +0 -6
- package/lib/utils/compareObjects/compareObjects.stories.d.ts +0 -6
- package/lib/utils/debounce/debounce.stories.d.ts +0 -6
- package/lib/utils/ffID/ffID.stories.d.ts +0 -6
- package/lib/utils/find/findAndInsert.d.ts +0 -7
- package/lib/utils/find/findAndInsert.stories.d.ts +0 -7
- package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +0 -7
- package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +0 -6
- package/lib/utils/getExtension/getExtension.stories.d.ts +0 -6
- package/lib/utils/throttle/throttle.stories.d.ts +0 -6
- package/lib/utils/truncateText/truncateText.stories.d.ts +0 -6
- /package/lib/components/{ExcelFile → Excel}/ContextMenu/ContextMenu.d.ts +0 -0
package/.yarn/install-state.gz
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,10 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import './AttachImage.scss';
|
3
|
-
|
4
|
-
imageSrc: string;
|
5
|
-
onExpandClick: () => void;
|
6
|
-
onDeleteClick: () => void;
|
7
|
-
onDownloadClick: () => void;
|
8
|
-
}
|
3
|
+
import { AttachImageProps } from './types';
|
9
4
|
declare const AttachImage: React.FC<AttachImageProps>;
|
10
5
|
export default AttachImage;
|
@@ -15,4 +15,12 @@ export interface AttachImageProps {
|
|
15
15
|
* Function triggered when the download icon is clicked.
|
16
16
|
*/
|
17
17
|
onDownloadClick: () => void;
|
18
|
+
/**
|
19
|
+
* Custom height for the component.
|
20
|
+
*/
|
21
|
+
height?: string;
|
22
|
+
/**
|
23
|
+
* Custom width for the component.
|
24
|
+
*/
|
25
|
+
width?: string;
|
18
26
|
}
|
@@ -10,7 +10,7 @@ export interface AvatarProps {
|
|
10
10
|
/**
|
11
11
|
* This property specifies the name of the icon to be displayed within the avatar.
|
12
12
|
*/
|
13
|
-
iconName
|
13
|
+
iconName?: string;
|
14
14
|
/**
|
15
15
|
* This property allows you to customize the color of the icon within the avatar.
|
16
16
|
*/
|
@@ -23,4 +23,12 @@ export interface AvatarProps {
|
|
23
23
|
* This property allows you to set a custom size for the icon within the avatar.
|
24
24
|
*/
|
25
25
|
customIconSize?: number;
|
26
|
+
/**
|
27
|
+
* This property specifies the label to display inside the avatar, used as an alternative to the icon.
|
28
|
+
*/
|
29
|
+
label?: string;
|
30
|
+
/**
|
31
|
+
* This property allows you to customize the font size of the label inside the avatar.
|
32
|
+
*/
|
33
|
+
labelFontSize?: string;
|
26
34
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './CreateVariableSlider';
|
@@ -0,0 +1,56 @@
|
|
1
|
+
export type variableType = 'LOCAL' | 'GLOBAL' | 'GROUP' | 'PROJECT_ENVIRONMENT';
|
2
|
+
export type DynamicObj = {
|
3
|
+
[key: string]: any;
|
4
|
+
};
|
5
|
+
export interface CreateVariableProps {
|
6
|
+
/**
|
7
|
+
* Open Create variable Slider
|
8
|
+
*/
|
9
|
+
isOpen: boolean;
|
10
|
+
/**
|
11
|
+
* Value for the variable name
|
12
|
+
*/
|
13
|
+
variableName: string;
|
14
|
+
/**
|
15
|
+
* Value for the variable to be created
|
16
|
+
*/
|
17
|
+
value: string;
|
18
|
+
/**
|
19
|
+
* List for the variable types
|
20
|
+
*/
|
21
|
+
variableTypesList: DynamicObj[];
|
22
|
+
/**
|
23
|
+
* Selected variable type
|
24
|
+
*/
|
25
|
+
selectedVariableType: DynamicObj;
|
26
|
+
/**
|
27
|
+
* Function to handle variable type change
|
28
|
+
* @param option
|
29
|
+
* @returns
|
30
|
+
*/
|
31
|
+
onVariableTypeChange: (option: DynamicObj) => void;
|
32
|
+
/**
|
33
|
+
* Function to handle close
|
34
|
+
*/
|
35
|
+
onClose?: () => void;
|
36
|
+
/**
|
37
|
+
* onChange of name
|
38
|
+
*/
|
39
|
+
onNameChange: (value: string | boolean) => void;
|
40
|
+
/**
|
41
|
+
* onChange of value
|
42
|
+
*/
|
43
|
+
onValueChange: (value: string | boolean) => void;
|
44
|
+
/**
|
45
|
+
* Hide value
|
46
|
+
*/
|
47
|
+
hideValue: boolean;
|
48
|
+
/**
|
49
|
+
* onChange for hide value
|
50
|
+
*/
|
51
|
+
onHideChange: (value: boolean) => void;
|
52
|
+
/**
|
53
|
+
* Function to handle submit
|
54
|
+
*/
|
55
|
+
handleSubmit: () => void;
|
56
|
+
}
|
@@ -137,4 +137,17 @@ export interface DrawerProps {
|
|
137
137
|
* Custom top for the drawer
|
138
138
|
*/
|
139
139
|
top?: string;
|
140
|
+
/**
|
141
|
+
* Height of the drawer
|
142
|
+
*/
|
143
|
+
height?: string;
|
144
|
+
/**
|
145
|
+
*
|
146
|
+
* width of the drawer
|
147
|
+
*/
|
148
|
+
width?: string;
|
149
|
+
/**
|
150
|
+
* Position from right
|
151
|
+
*/
|
152
|
+
right?: string | number;
|
140
153
|
}
|
@@ -5,6 +5,8 @@ interface ModalDimensions {
|
|
5
5
|
borderRadius?: number;
|
6
6
|
zIndex?: number;
|
7
7
|
boxShadow?: string;
|
8
|
+
left?: number;
|
9
|
+
top?: number;
|
8
10
|
}
|
9
11
|
export interface MiniEditModalProps {
|
10
12
|
/**
|
@@ -94,6 +96,11 @@ export interface MiniEditModalProps {
|
|
94
96
|
boxShadow?: string;
|
95
97
|
};
|
96
98
|
arrowZIndex?: number;
|
99
|
+
arrowProperties?: {
|
100
|
+
left?: number;
|
101
|
+
top?: number;
|
102
|
+
size?: number;
|
103
|
+
};
|
97
104
|
overlay?: {
|
98
105
|
isOverlay?: boolean;
|
99
106
|
zIndexOverlay?: number;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TableBodyProps } from '../types';
|
3
|
+
declare const TableBody: React.MemoExoticComponent<({ flattenedTreeData, columnsData, selected, select, onRowClick, onToggleExpand, onCheckBoxChange, }: TableBodyProps) => import("react/jsx-runtime").JSX.Element>;
|
4
|
+
export default TableBody;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { TableCellProps } from '../types';
|
2
|
+
import React from 'react';
|
3
|
+
declare const TableCell: React.MemoExoticComponent<({ col, node, level, selected, select, onCheckBoxChange, onToggleExpand, }: TableCellProps) => import("react/jsx-runtime").JSX.Element>;
|
4
|
+
export default TableCell;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TableRowProps } from '../types';
|
3
|
+
declare const TableRow: React.MemoExoticComponent<({ node, level, columnsData, selected, select, onRowClick, onToggleExpand, onCheckBoxChange, }: TableRowProps) => import("react/jsx-runtime").JSX.Element>;
|
4
|
+
export default TableRow;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import React, { ReactNode } from 'react';
|
2
|
+
import './TableTree.scss';
|
3
|
+
interface ColumnDataProps {
|
4
|
+
name: string;
|
5
|
+
accessor: string;
|
6
|
+
width: string;
|
7
|
+
isClickable?: boolean;
|
8
|
+
minWidth?: string;
|
9
|
+
cell?: (e: any) => JSX.Element | string | ReactNode;
|
10
|
+
actions?: (e: any) => JSX.Element | string | ReactNode;
|
11
|
+
}
|
12
|
+
interface ObjectProps {
|
13
|
+
[key: string]: any;
|
14
|
+
}
|
15
|
+
interface TableTreeProps {
|
16
|
+
select: 'checkbox' | 'radio' | 'none';
|
17
|
+
columnsData: Array<ColumnDataProps>;
|
18
|
+
treeData: Array<ObjectProps>;
|
19
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, data: any) => void;
|
20
|
+
onChange?: (e: any, node: any) => void;
|
21
|
+
selected: Array<string>;
|
22
|
+
onPagination?: (node: ObjectProps) => void;
|
23
|
+
}
|
24
|
+
declare const TableTree: ({ columnsData, treeData, select, onClick, onChange, selected, onPagination, }: TableTreeProps) => import("react/jsx-runtime").JSX.Element;
|
25
|
+
export default TableTree;
|
@@ -0,0 +1 @@
|
|
1
|
+
declare const getAllChildIds: (nodeId: string, data: any[]) => string[];
|
@@ -1,28 +1,61 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
1
2
|
export interface TreeNode {
|
2
3
|
key: string;
|
3
4
|
[key: string]: any;
|
4
5
|
children?: TreeNode[];
|
5
6
|
expanded?: boolean;
|
6
7
|
}
|
8
|
+
declare type JSX = ReactNode | JSX.Element[] | string | null;
|
9
|
+
export interface TableCellProps {
|
10
|
+
col: any;
|
11
|
+
node: any;
|
12
|
+
level: number;
|
13
|
+
selected: string[];
|
14
|
+
select: string | null;
|
15
|
+
onCheckBoxChange: (type: string, node: any) => void;
|
16
|
+
onToggleExpand: (node: any) => void;
|
17
|
+
}
|
18
|
+
export interface TableHeadProps {
|
19
|
+
columnsData: any[];
|
20
|
+
}
|
21
|
+
export interface TableBodyProps {
|
22
|
+
flattenedTreeData: any[];
|
23
|
+
columnsData: any[];
|
24
|
+
selected: string[];
|
25
|
+
select: string | null;
|
26
|
+
onRowClick: (e: any, node: any) => void;
|
27
|
+
onToggleExpand: (node: any) => void;
|
28
|
+
onCheckBoxChange: (type: string, node: any) => void;
|
29
|
+
}
|
30
|
+
export interface TableRowProps {
|
31
|
+
node: any;
|
32
|
+
level: number;
|
33
|
+
columnsData: any[];
|
34
|
+
selected: string[];
|
35
|
+
select: string | null;
|
36
|
+
onRowClick: (e: any, node: any) => void;
|
37
|
+
onToggleExpand: (node: any) => void;
|
38
|
+
onCheckBoxChange: (type: string, node: any) => void;
|
39
|
+
}
|
7
40
|
export interface Column {
|
8
41
|
name: string;
|
9
42
|
accessor: string;
|
10
43
|
width: string;
|
11
44
|
isClickable?: boolean;
|
12
|
-
cell?: (row: any) => JSX
|
13
|
-
actions?: (row: any) => JSX
|
45
|
+
cell?: (row: any) => JSX;
|
46
|
+
actions?: (row: any) => JSX;
|
14
47
|
isTree?: boolean;
|
15
48
|
defaultValue?: string;
|
16
|
-
defaultActions?: () => JSX
|
49
|
+
defaultActions?: () => JSX;
|
17
50
|
}
|
18
51
|
export interface TreeTableProps {
|
19
52
|
treeData: any;
|
20
53
|
columnsData: Column[];
|
21
54
|
selected?: string[];
|
22
55
|
select?: 'radio' | 'checkbox' | 'none';
|
23
|
-
onChange?: (
|
56
|
+
onChange?: (e: any, node: string[]) => void;
|
24
57
|
onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
|
25
|
-
expandedNodes: string[];
|
26
58
|
onExpand?: (_isExpanded: boolean, node: string) => void;
|
27
59
|
onPagination?: (_direction: string) => void;
|
28
60
|
}
|
61
|
+
export {};
|
package/lib/index.d.ts
CHANGED
@@ -214,6 +214,19 @@ interface DrawerProps {
|
|
214
214
|
* Custom top for the drawer
|
215
215
|
*/
|
216
216
|
top?: string;
|
217
|
+
/**
|
218
|
+
* Height of the drawer
|
219
|
+
*/
|
220
|
+
height?: string;
|
221
|
+
/**
|
222
|
+
*
|
223
|
+
* width of the drawer
|
224
|
+
*/
|
225
|
+
width?: string;
|
226
|
+
/**
|
227
|
+
* Position from right
|
228
|
+
*/
|
229
|
+
right?: string | number;
|
217
230
|
}
|
218
231
|
|
219
232
|
declare const Drawer: FC<DrawerProps>;
|
@@ -674,6 +687,8 @@ interface SelectProps$1 {
|
|
674
687
|
width?: number | string;
|
675
688
|
onBlur?: () => void;
|
676
689
|
disableInput?: boolean;
|
690
|
+
showIcon?: boolean;
|
691
|
+
iconName?: string;
|
677
692
|
}
|
678
693
|
type OptionValue = any;
|
679
694
|
interface Option$2 {
|
@@ -1411,6 +1426,8 @@ interface ModalDimensions {
|
|
1411
1426
|
borderRadius?: number;
|
1412
1427
|
zIndex?: number;
|
1413
1428
|
boxShadow?: string;
|
1429
|
+
left?: number;
|
1430
|
+
top?: number;
|
1414
1431
|
}
|
1415
1432
|
interface MiniEditModalProps {
|
1416
1433
|
/**
|
@@ -1500,6 +1517,11 @@ interface MiniEditModalProps {
|
|
1500
1517
|
boxShadow?: string;
|
1501
1518
|
};
|
1502
1519
|
arrowZIndex?: number;
|
1520
|
+
arrowProperties?: {
|
1521
|
+
left?: number;
|
1522
|
+
top?: number;
|
1523
|
+
size?: number;
|
1524
|
+
};
|
1503
1525
|
overlay?: {
|
1504
1526
|
isOverlay?: boolean;
|
1505
1527
|
zIndexOverlay?: number;
|
@@ -1516,25 +1538,25 @@ interface TreeNode {
|
|
1516
1538
|
children?: TreeNode[];
|
1517
1539
|
expanded?: boolean;
|
1518
1540
|
}
|
1541
|
+
declare type JSX$1 = ReactNode | JSX$1.Element[] | string | null;
|
1519
1542
|
interface Column {
|
1520
1543
|
name: string;
|
1521
1544
|
accessor: string;
|
1522
1545
|
width: string;
|
1523
1546
|
isClickable?: boolean;
|
1524
|
-
cell?: (row: any) => JSX
|
1525
|
-
actions?: (row: any) => JSX
|
1547
|
+
cell?: (row: any) => JSX$1;
|
1548
|
+
actions?: (row: any) => JSX$1;
|
1526
1549
|
isTree?: boolean;
|
1527
1550
|
defaultValue?: string;
|
1528
|
-
defaultActions?: () => JSX
|
1551
|
+
defaultActions?: () => JSX$1;
|
1529
1552
|
}
|
1530
1553
|
interface TreeTableProps {
|
1531
1554
|
treeData: any;
|
1532
1555
|
columnsData: Column[];
|
1533
1556
|
selected?: string[];
|
1534
1557
|
select?: 'radio' | 'checkbox' | 'none';
|
1535
|
-
onChange?: (
|
1558
|
+
onChange?: (e: any, node: string[]) => void;
|
1536
1559
|
onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
|
1537
|
-
expandedNodes: string[];
|
1538
1560
|
onExpand?: (_isExpanded: boolean, node: string) => void;
|
1539
1561
|
onPagination?: (_direction: string) => void;
|
1540
1562
|
}
|
@@ -1708,6 +1730,7 @@ interface IconButtonProps {
|
|
1708
1730
|
label: string;
|
1709
1731
|
iconName: string;
|
1710
1732
|
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
1733
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
1711
1734
|
}
|
1712
1735
|
|
1713
1736
|
declare const IconButton: React__default.FC<IconButtonProps>;
|
@@ -2128,7 +2151,7 @@ interface AvatarProps {
|
|
2128
2151
|
/**
|
2129
2152
|
* This property specifies the name of the icon to be displayed within the avatar.
|
2130
2153
|
*/
|
2131
|
-
iconName
|
2154
|
+
iconName?: string;
|
2132
2155
|
/**
|
2133
2156
|
* This property allows you to customize the color of the icon within the avatar.
|
2134
2157
|
*/
|
@@ -2141,6 +2164,14 @@ interface AvatarProps {
|
|
2141
2164
|
* This property allows you to set a custom size for the icon within the avatar.
|
2142
2165
|
*/
|
2143
2166
|
customIconSize?: number;
|
2167
|
+
/**
|
2168
|
+
* This property specifies the label to display inside the avatar, used as an alternative to the icon.
|
2169
|
+
*/
|
2170
|
+
label?: string;
|
2171
|
+
/**
|
2172
|
+
* This property allows you to customize the font size of the label inside the avatar.
|
2173
|
+
*/
|
2174
|
+
labelFontSize?: string;
|
2144
2175
|
}
|
2145
2176
|
|
2146
2177
|
declare const Avatar: React__default.FC<AvatarProps>;
|
@@ -2298,11 +2329,32 @@ interface IconRadialChartProps {
|
|
2298
2329
|
declare const IconRadialChart: React__default.FC<IconRadialChartProps>;
|
2299
2330
|
|
2300
2331
|
interface AttachImageProps {
|
2332
|
+
/**
|
2333
|
+
* The image source to display.
|
2334
|
+
*/
|
2301
2335
|
imageSrc: string;
|
2336
|
+
/**
|
2337
|
+
* Function triggered when the expand icon is clicked.
|
2338
|
+
*/
|
2302
2339
|
onExpandClick: () => void;
|
2340
|
+
/**
|
2341
|
+
* Function triggered when the delete icon is clicked.
|
2342
|
+
*/
|
2303
2343
|
onDeleteClick: () => void;
|
2344
|
+
/**
|
2345
|
+
* Function triggered when the download icon is clicked.
|
2346
|
+
*/
|
2304
2347
|
onDownloadClick: () => void;
|
2348
|
+
/**
|
2349
|
+
* Custom height for the component.
|
2350
|
+
*/
|
2351
|
+
height?: string;
|
2352
|
+
/**
|
2353
|
+
* Custom width for the component.
|
2354
|
+
*/
|
2355
|
+
width?: string;
|
2305
2356
|
}
|
2357
|
+
|
2306
2358
|
declare const AttachImage: React__default.FC<AttachImageProps>;
|
2307
2359
|
|
2308
2360
|
interface CardProps {
|
@@ -2449,6 +2501,64 @@ interface fieldSetProps {
|
|
2449
2501
|
|
2450
2502
|
declare const FieldSet: FC<fieldSetProps>;
|
2451
2503
|
|
2504
|
+
type DynamicObj = {
|
2505
|
+
[key: string]: any;
|
2506
|
+
};
|
2507
|
+
interface CreateVariableProps {
|
2508
|
+
/**
|
2509
|
+
* Open Create variable Slider
|
2510
|
+
*/
|
2511
|
+
isOpen: boolean;
|
2512
|
+
/**
|
2513
|
+
* Value for the variable name
|
2514
|
+
*/
|
2515
|
+
variableName: string;
|
2516
|
+
/**
|
2517
|
+
* Value for the variable to be created
|
2518
|
+
*/
|
2519
|
+
value: string;
|
2520
|
+
/**
|
2521
|
+
* List for the variable types
|
2522
|
+
*/
|
2523
|
+
variableTypesList: DynamicObj[];
|
2524
|
+
/**
|
2525
|
+
* Selected variable type
|
2526
|
+
*/
|
2527
|
+
selectedVariableType: DynamicObj;
|
2528
|
+
/**
|
2529
|
+
* Function to handle variable type change
|
2530
|
+
* @param option
|
2531
|
+
* @returns
|
2532
|
+
*/
|
2533
|
+
onVariableTypeChange: (option: DynamicObj) => void;
|
2534
|
+
/**
|
2535
|
+
* Function to handle close
|
2536
|
+
*/
|
2537
|
+
onClose?: () => void;
|
2538
|
+
/**
|
2539
|
+
* onChange of name
|
2540
|
+
*/
|
2541
|
+
onNameChange: (value: string | boolean) => void;
|
2542
|
+
/**
|
2543
|
+
* onChange of value
|
2544
|
+
*/
|
2545
|
+
onValueChange: (value: string | boolean) => void;
|
2546
|
+
/**
|
2547
|
+
* Hide value
|
2548
|
+
*/
|
2549
|
+
hideValue: boolean;
|
2550
|
+
/**
|
2551
|
+
* onChange for hide value
|
2552
|
+
*/
|
2553
|
+
onHideChange: (value: boolean) => void;
|
2554
|
+
/**
|
2555
|
+
* Function to handle submit
|
2556
|
+
*/
|
2557
|
+
handleSubmit: () => void;
|
2558
|
+
}
|
2559
|
+
|
2560
|
+
declare const CreateVariableSlider: FC<CreateVariableProps>;
|
2561
|
+
|
2452
2562
|
type valueType$1 = any;
|
2453
2563
|
declare const checkEmpty: (value: valueType$1) => boolean;
|
2454
2564
|
|
@@ -2595,4 +2705,4 @@ interface PopUpModalProps {
|
|
2595
2705
|
|
2596
2706
|
declare const PopUpModal: FC<PopUpModalProps>;
|
2597
2707
|
|
2598
|
-
export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachImage, AttachmentButton, Avatar, BarChart, Button, Checkbox, Chip, Col, ConnectingBranch, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, EditTextField, Editor, ExcelFile as Excel, ExpandableMenu, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, HighlightText, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, LineChart, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, Paper, PieChart, PopUpModal, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, StatusCard, Table, TreeTable as TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, Typography, VariableDropdown, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, getSequentialPayload, saveFileFromBlob, throttle, toast, truncateText, useFileDropzone, useTheme };
|
2708
|
+
export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachImage, AttachmentButton, Avatar, BarChart, Button, Checkbox, Chip, Col, ConnectingBranch, Container, CreateVariableSlider, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, EditTextField, Editor, ExcelFile as Excel, ExpandableMenu, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, HighlightText, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, LineChart, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, Paper, PieChart, PopUpModal, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, StatusCard, Table, TreeTable as TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, Typography, VariableDropdown, VariableInput, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, getSequentialPayload, saveFileFromBlob, throttle, toast, truncateText, useFileDropzone, useTheme };
|