@scmlatam/web-ui 0.1.3 → 0.1.6
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/dist/fp.esm-Dkdh137l.js +1668 -0
- package/dist/get-context-n706IMdq.js +77 -0
- package/dist/main-BFqtOpW2.js +56284 -0
- package/dist/web-ui.d.ts +50 -0
- package/dist/web-ui.js +8 -19823
- package/dist/web-ui.umd.cjs +346 -86
- package/package.json +62 -57
package/dist/web-ui.d.ts
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { Context } from 'react';
|
|
2
|
+
import { ContextMenu } from '../components/table/types/types';
|
|
2
3
|
import { CoreProps } from './types/types';
|
|
4
|
+
import { Dayjs } from 'dayjs';
|
|
5
|
+
import { Dispatch } from 'react';
|
|
6
|
+
import { GridRowSelectionModel } from '@mui/x-data-grid';
|
|
3
7
|
import { GroupItem } from './core/types/types';
|
|
8
|
+
import { ITableContext } from './table/types/types';
|
|
4
9
|
import { Item } from './core/types/types';
|
|
5
10
|
import { JSX } from 'react/jsx-runtime';
|
|
6
11
|
import { PageProps } from './core/types/types';
|
|
12
|
+
import { PaginationModel } from './table/types/types';
|
|
7
13
|
import { RouteItem } from './core/types/types';
|
|
14
|
+
import { Row } from './table/types/types';
|
|
15
|
+
import { SetStateAction } from 'react';
|
|
16
|
+
import { TableProps } from './table/types/types';
|
|
17
|
+
import { TableProps as TableProps_2 } from './types/types';
|
|
18
|
+
import { TableProviderProps } from './table/types/types';
|
|
19
|
+
import { Theme } from '@mui/material';
|
|
20
|
+
import { ToolbarProps } from './table/types/types';
|
|
8
21
|
|
|
9
22
|
export declare const Core: ({ login, logout, sidebarItems, routes }: CoreProps) => JSX.Element;
|
|
10
23
|
|
|
@@ -16,6 +29,10 @@ declare interface CoreProviderProps {
|
|
|
16
29
|
children: React.ReactNode;
|
|
17
30
|
}
|
|
18
31
|
|
|
32
|
+
export declare const GoodRabbitDarkTheme: Theme;
|
|
33
|
+
|
|
34
|
+
export declare const GoodRabbitLightTheme: Theme;
|
|
35
|
+
|
|
19
36
|
export { GroupItem }
|
|
20
37
|
|
|
21
38
|
declare interface ICoreContext {
|
|
@@ -29,10 +46,43 @@ declare interface ICoreContext {
|
|
|
29
46
|
setLoadingAuth: (value: boolean) => void;
|
|
30
47
|
}
|
|
31
48
|
|
|
49
|
+
export { ITableContext }
|
|
50
|
+
|
|
32
51
|
export { Item }
|
|
33
52
|
|
|
34
53
|
export { PageProps }
|
|
35
54
|
|
|
55
|
+
export { PaginationModel }
|
|
56
|
+
|
|
36
57
|
export { RouteItem }
|
|
37
58
|
|
|
59
|
+
export { Row }
|
|
60
|
+
|
|
61
|
+
export declare const Table: (props: TableProps_2) => JSX.Element;
|
|
62
|
+
|
|
63
|
+
export { TableProps }
|
|
64
|
+
|
|
65
|
+
export { TableProviderProps }
|
|
66
|
+
|
|
67
|
+
export { ToolbarProps }
|
|
68
|
+
|
|
69
|
+
export declare const useTable: () => {
|
|
70
|
+
rows: any[];
|
|
71
|
+
setRows: Dispatch<SetStateAction<any[]>>;
|
|
72
|
+
range: [Dayjs | null, Dayjs | null];
|
|
73
|
+
setRange: Dispatch<SetStateAction<[Dayjs | null, Dayjs | null]>>;
|
|
74
|
+
tags: string;
|
|
75
|
+
setTags: Dispatch<SetStateAction<string>>;
|
|
76
|
+
employees: string;
|
|
77
|
+
setEmployees: Dispatch<SetStateAction<string>>;
|
|
78
|
+
loading: boolean;
|
|
79
|
+
setLoading: Dispatch<SetStateAction<boolean>>;
|
|
80
|
+
paginationModel: PaginationModel;
|
|
81
|
+
setPaginationModel: Dispatch<SetStateAction<PaginationModel>>;
|
|
82
|
+
rowSelectionModel: GridRowSelectionModel;
|
|
83
|
+
setRowSelectionModel: Dispatch<SetStateAction<GridRowSelectionModel>>;
|
|
84
|
+
contextMenu: ContextMenu | null;
|
|
85
|
+
setContextMenu: Dispatch<SetStateAction<ContextMenu | null>>;
|
|
86
|
+
};
|
|
87
|
+
|
|
38
88
|
export { }
|