@zimyo/engage 0.3.9-pms → 0.3.10-hrms

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.
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ interface ChartData {
3
+ [key: string]: any;
4
+ }
5
+ interface ZimyoGroupedColumnChartProps {
6
+ chartType?: "bar" | "line" | "column" | string;
7
+ grouped?: boolean;
8
+ data: ChartData[];
9
+ xField: string;
10
+ yField: string;
11
+ seriesField?: string;
12
+ xAxisTitle?: string;
13
+ yAxisTitle?: string;
14
+ }
15
+ declare const ZimyoCharts: React.FC<ZimyoGroupedColumnChartProps>;
16
+ export default ZimyoCharts;
@@ -0,0 +1,14 @@
1
+ import React, { CSSProperties } from "react";
2
+ type ActionButton = {
3
+ label: string;
4
+ variant?: "text" | "outlined" | "contained";
5
+ visible?: boolean;
6
+ [key: string]: any;
7
+ };
8
+ type ActionButtonsProps = {
9
+ className?: string;
10
+ style?: CSSProperties;
11
+ actionButtons?: ActionButton[];
12
+ };
13
+ declare const ActionButtons: React.FC<ActionButtonsProps>;
14
+ export default ActionButtons;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { DropEvent, FileRejection } from "react-dropzone";
3
+ import { TextFieldProps } from "@mui/material";
4
+ interface CustomFileUploadProps extends Omit<TextFieldProps, "onChange"> {
5
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
6
+ onDrop?: <T extends File>(acceptedFiles: T[], fileRejections: FileRejection[], event: DropEvent) => void;
7
+ isDrop?: boolean;
8
+ dragNDrop?: boolean;
9
+ error?: boolean;
10
+ helperText?: React.ReactNode;
11
+ disabled?: boolean;
12
+ label?: string;
13
+ multiple?: boolean;
14
+ accept?: string;
15
+ fileName?: string[];
16
+ style?: React.CSSProperties;
17
+ }
18
+ declare const _default: React.ForwardRefExoticComponent<Omit<CustomFileUploadProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
19
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const Modal: ({ open, handleClose, size, header, actionButtons, children, ...props }: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default Modal;
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ type ColumnType = {
3
+ id: string;
4
+ accessorKey: string;
5
+ header: string;
6
+ cell?: (cellValue: any, rowData: any) => React.ReactNode;
7
+ size?: any;
8
+ };
9
+ type PaginationType = {
10
+ show?: boolean;
11
+ totalDataCount?: number;
12
+ page?: number;
13
+ perPage?: number;
14
+ perPageOptions?: number[];
15
+ handlePageChange?: (page: number) => void;
16
+ handlePerPageChange?: (size: number) => void;
17
+ };
18
+ type SelectionType = {
19
+ enabled: boolean;
20
+ bulkActions?: any[];
21
+ rowIdAccessor?: string;
22
+ onBulkAction?: (selectedRows: any[]) => void;
23
+ };
24
+ type TableProps = {
25
+ data?: any[];
26
+ columns: ColumnType[];
27
+ pagination?: PaginationType;
28
+ loading?: boolean;
29
+ serverMode?: boolean;
30
+ fixedHeader?: boolean;
31
+ styling?: Record<string, any>;
32
+ selection?: SelectionType;
33
+ sorting?: boolean | Record<string, any> | any;
34
+ };
35
+ declare const Table: React.FC<TableProps>;
36
+ export default Table;