@abdellatifui/react 3.0.17 → 3.0.19

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/nextgen.d.ts CHANGED
@@ -15,6 +15,7 @@ import { ForwardRefExoticComponent } from 'react';
15
15
  import { HeadersDefaults } from 'axios';
16
16
  import { InternalAxiosRequestConfig } from 'axios';
17
17
  import { JSX as JSX_2 } from 'react/jsx-runtime';
18
+ import { MapProps } from 'react-map-gl/maplibre';
18
19
  import { MUIStyledCommonProps } from '@mui/system';
19
20
  import { MutableRefObject } from 'react';
20
21
  import * as React_2 from 'react';
@@ -84,6 +85,31 @@ export declare function convertTimestampToDate(timestamp: any): string;
84
85
 
85
86
  export declare const CopyButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
86
87
 
88
+ export declare const createDefaultConnTemplate: (name: any, id: any, srcLng: any, srcLat: any, destLng: any, destLat: any, details: any) => {
89
+ name: any;
90
+ id: any;
91
+ details: any;
92
+ source: {
93
+ lng: any;
94
+ lat: any;
95
+ };
96
+ destination: {
97
+ lng: any;
98
+ lat: any;
99
+ };
100
+ };
101
+
102
+ export declare const createDefaultNodeTempate: (name: any, id: any, color: any, lng: any, lat: any, details: any) => {
103
+ name: any;
104
+ color: any;
105
+ id: any;
106
+ details: any;
107
+ location: {
108
+ lng: any;
109
+ lat: any;
110
+ };
111
+ };
112
+
87
113
  export { cva }
88
114
 
89
115
  export declare const DataTable: default_2.ForwardRefExoticComponent<TableProps & default_2.RefAttributes<HTMLDivElement>>;
@@ -115,6 +141,8 @@ export declare function Headline(props: any): JSX_2.Element;
115
141
 
116
142
  export declare const HelpPopover: (props: any) => JSX_2.Element;
117
143
 
144
+ export declare const hex2rgb: (hex: any) => any[];
145
+
118
146
  export declare const HorizontalDiv: (props: any) => JSX_2.Element;
119
147
 
120
148
  export declare const IconButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
@@ -164,6 +192,40 @@ declare interface ModelProps {
164
192
 
165
193
  export declare const MuiTable: (props: any) => JSX_2.Element;
166
194
 
195
+ export declare const NetworkMap: default_2.ForwardRefExoticComponent<NetworkMapProps & default_2.RefAttributes<unknown>>;
196
+
197
+ declare type NetworkMapProps = {
198
+ nodes: object[];
199
+ connections: object[];
200
+ linkHighlightedColorHex: string;
201
+ defaultLinkColorHex: string;
202
+ hideLinksOnDrag: boolean;
203
+ defaultAnimationLinkColor: string;
204
+ linkAnimation: boolean;
205
+ onConnClick: (conn: object) => void;
206
+ onNodeClick: (node: object) => void;
207
+ onNodeMouseOver: (node: object) => void;
208
+ onLinkContextMenu: (info: {
209
+ data: object;
210
+ event: default_2.MouseEvent;
211
+ mapApi: MapProps;
212
+ type: string;
213
+ }) => void;
214
+ enableNativeContextMenu: boolean;
215
+ enableLngLatBox: boolean;
216
+ mapProps: MapProps;
217
+ menuItems: {
218
+ label: string;
219
+ action?: (args: {
220
+ data: object;
221
+ event: default_2.MouseEvent;
222
+ mapApi: MapProps;
223
+ type: string;
224
+ }) => void;
225
+ }[];
226
+ nodeIconMapper?: (object: any) => default_2.ReactNode | null;
227
+ };
228
+
167
229
  export declare const NgFailedLegend: (props: any) => JSX_2.Element;
168
230
 
169
231
  export declare const NgSuccessLegend: (props: any) => JSX_2.Element;