@abdellatifui/react 3.0.18 → 3.0.22

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
@@ -1,10 +1,6 @@
1
1
  /// <reference types="react" />
2
2
 
3
3
  import { AgGridReactProps } from 'ag-grid-react';
4
- import { AxiosDefaults } from 'axios';
5
- import { AxiosHeaderValue } from 'axios';
6
- import { AxiosInterceptorManager } from 'axios';
7
- import { AxiosResponse } from 'axios';
8
4
  import { ChangeEvent } from 'react';
9
5
  import { ClassValue } from 'clsx';
10
6
  import { Context } from 'react';
@@ -12,23 +8,18 @@ import { cva } from 'class-variance-authority';
12
8
  import { default as default_2 } from 'react';
13
9
  import { Dispatch } from 'react';
14
10
  import { ForwardRefExoticComponent } from 'react';
15
- import { HeadersDefaults } from 'axios';
16
- import { InternalAxiosRequestConfig } from 'axios';
17
- import { JSX as JSX_2 } from 'react/jsx-runtime';
18
- import { MUIStyledCommonProps } from '@mui/system';
19
- import { MutableRefObject } from 'react';
11
+ import { JSX as JSX_2 } from 'react';
12
+ import { MapProps } from 'react-map-gl/maplibre';
20
13
  import * as React_2 from 'react';
21
14
  import { ReactNode } from 'react';
22
15
  import { RefAttributes } from 'react';
23
16
  import { SetStateAction } from 'react';
24
- import { StyledComponent } from '@emotion/styled';
25
- import { Theme } from '@mui/material';
26
17
 
27
- export declare const AccordionGroup: (props: any) => JSX_2.Element;
18
+ export declare const AccordionGroup: (props: any) => JSX.Element;
28
19
 
29
- export declare const AccordionItem: (props: any) => JSX_2.Element;
20
+ export declare const AccordionItem: (props: any) => JSX.Element;
30
21
 
31
- export declare const Alert: default_2.ForwardRefExoticComponent<AlertProps & default_2.RefAttributes<HTMLDivElement>>;
22
+ export declare const Alert: ForwardRefExoticComponent<AlertProps & RefAttributes<HTMLDivElement>>;
32
23
 
33
24
  declare interface AlertProps {
34
25
  dialog: {
@@ -61,28 +52,28 @@ declare interface AutocompeleteProps extends InputProps {
61
52
  type: string;
62
53
  }
63
54
 
64
- export declare const AutoComplete: default_2.ForwardRefExoticComponent<AutocompeleteProps & default_2.RefAttributes<HTMLInputElement>>;
55
+ export declare const AutoComplete: ForwardRefExoticComponent<AutocompeleteProps & RefAttributes<HTMLInputElement>>;
65
56
 
66
- declare const Body_2: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
57
+ declare const Body_2: ForwardRefExoticComponent<RefAttributes<unknown>>;
67
58
  export { Body_2 as Body }
68
59
 
69
- export declare const Button: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
60
+ export declare const Button: ForwardRefExoticComponent<RefAttributes<unknown>>;
70
61
 
71
62
  export declare function capitalizeFirstLetter(string: any): any;
72
63
 
73
- export declare const CloseButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
64
+ export declare const CloseButton: ForwardRefExoticComponent<RefAttributes<unknown>>;
74
65
 
75
- export declare function cn(...inputs: ClassValue[]): string;
66
+ export declare function cn(...inputs: ClassValue[]): any;
76
67
 
77
- export declare const Container: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
68
+ export declare const Container: ForwardRefExoticComponent<RefAttributes<unknown>>;
78
69
 
79
- export declare const ContextMenu: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
70
+ export declare const ContextMenu: ForwardRefExoticComponent<RefAttributes<unknown>>;
80
71
 
81
72
  export declare const convertNumberToArray: (number: any) => unknown[];
82
73
 
83
74
  export declare function convertTimestampToDate(timestamp: any): string;
84
75
 
85
- export declare const CopyButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
76
+ export declare const CopyButton: ForwardRefExoticComponent<RefAttributes<unknown>>;
86
77
 
87
78
  export declare const createDefaultConnTemplate: (name: any, id: any, srcLng: any, srcLat: any, destLng: any, destLat: any, details: any) => {
88
79
  name: any;
@@ -111,9 +102,9 @@ export declare const createDefaultNodeTempate: (name: any, id: any, color: any,
111
102
 
112
103
  export { cva }
113
104
 
114
- export declare const DataTable: default_2.ForwardRefExoticComponent<TableProps & default_2.RefAttributes<HTMLDivElement>>;
105
+ export declare const DataTable: ForwardRefExoticComponent<TableProps & RefAttributes<HTMLDivElement>>;
115
106
 
116
- export declare const DialogPanel: default_2.ForwardRefExoticComponent<Omit<DialogPanelProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
107
+ export declare const DialogPanel: ForwardRefExoticComponent<Omit<DialogPanelProps, "ref"> & RefAttributes<HTMLDivElement>>;
117
108
 
118
109
  declare interface DialogPanelProps {
119
110
  children: any;
@@ -126,31 +117,31 @@ declare interface DialogPanelProps {
126
117
  closeButton: string;
127
118
  }
128
119
 
129
- export declare const ErrorBoundry: (props: any) => JSX_2.Element;
120
+ export declare const ErrorBoundry: (props: any) => JSX.Element;
130
121
 
131
- export declare const Frame: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
122
+ export declare const Frame: ForwardRefExoticComponent<RefAttributes<unknown>>;
132
123
 
133
124
  export declare const Frequency: ForwardRefExoticComponent<RefAttributes<unknown>>;
134
125
 
135
126
  export declare const GetRandomStr: (length?: number, str?: boolean) => string;
136
127
 
137
- export declare const getWholeSpectrum: () => any[];
128
+ export declare const getWholeSpectrum: () => string[];
138
129
 
139
- export declare function Headline(props: any): JSX_2.Element;
130
+ export declare function Headline(props: any): JSX.Element;
140
131
 
141
- export declare const HelpPopover: (props: any) => JSX_2.Element;
132
+ export declare const HelpPopover: (props: any) => JSX.Element;
142
133
 
143
134
  export declare const hex2rgb: (hex: any) => any[];
144
135
 
145
- export declare const HorizontalDiv: (props: any) => JSX_2.Element;
136
+ export declare const HorizontalDiv: (props: any) => JSX.Element;
146
137
 
147
- export declare const IconButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
138
+ export declare const IconButton: ForwardRefExoticComponent<RefAttributes<unknown>>;
148
139
 
149
- export declare function InformationTableMui(props: any): JSX_2.Element;
140
+ export declare function InformationTableMui(props: any): JSX.Element;
150
141
 
151
- export declare const InlineSpinner: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
142
+ export declare const InlineSpinner: ForwardRefExoticComponent<RefAttributes<unknown>>;
152
143
 
153
- export declare const Input: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
144
+ export declare const Input: ForwardRefExoticComponent<RefAttributes<unknown>>;
154
145
 
155
146
  declare interface InputProps extends InputProps_2 {
156
147
  placeholder: string;
@@ -174,9 +165,9 @@ export declare const Label: (props: any) => JSX_2.Element;
174
165
 
175
166
  export declare const MainHeader: (props: any) => JSX_2.Element;
176
167
 
177
- export declare const MenuButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
168
+ export declare const MenuButton: ForwardRefExoticComponent<RefAttributes<unknown>>;
178
169
 
179
- export declare const Model: default_2.ForwardRefExoticComponent<ModelProps & default_2.RefAttributes<HTMLDivElement>>;
170
+ export declare const Model: ForwardRefExoticComponent<ModelProps & RefAttributes<HTMLDivElement>>;
180
171
 
181
172
  export declare const ModelContext: Context< {}>;
182
173
 
@@ -189,13 +180,47 @@ declare interface ModelProps {
189
180
  hideOnContextMenu: boolean;
190
181
  }
191
182
 
192
- export declare const MuiTable: (props: any) => JSX_2.Element;
183
+ export declare const MuiTable: (props: any) => JSX.Element;
184
+
185
+ export declare const NetworkMap: ForwardRefExoticComponent<NetworkMapProps & RefAttributes<unknown>>;
186
+
187
+ declare type NetworkMapProps = {
188
+ nodes: object[];
189
+ connections: object[];
190
+ linkHighlightedColorHex: string;
191
+ defaultLinkColorHex: string;
192
+ hideLinksOnDrag: boolean;
193
+ defaultAnimationLinkColor: string;
194
+ linkAnimation: boolean;
195
+ onConnClick: (conn: object) => void;
196
+ onNodeClick: (node: object) => void;
197
+ onNodeMouseOver: (node: object) => void;
198
+ onLinkContextMenu: (info: {
199
+ data: object;
200
+ event: default_2.MouseEvent;
201
+ mapApi: MapProps;
202
+ type: string;
203
+ }) => void;
204
+ enableNativeContextMenu: boolean;
205
+ enableLngLatBox: boolean;
206
+ mapProps: MapProps;
207
+ menuItems: {
208
+ label: string;
209
+ action?: (args: {
210
+ data: object;
211
+ event: default_2.MouseEvent;
212
+ mapApi: MapProps;
213
+ type: string;
214
+ }) => void;
215
+ }[];
216
+ nodeIconMapper?: (object: any) => default_2.ReactNode | null;
217
+ };
193
218
 
194
- export declare const NgFailedLegend: (props: any) => JSX_2.Element;
219
+ export declare const NgFailedLegend: (props: any) => JSX.Element;
195
220
 
196
- export declare const NgSuccessLegend: (props: any) => JSX_2.Element;
221
+ export declare const NgSuccessLegend: (props: any) => JSX.Element;
197
222
 
198
- export declare const Panel: default_2.ForwardRefExoticComponent<default_2.RefAttributes<PanelProps>>;
223
+ export declare const Panel: ForwardRefExoticComponent<RefAttributes<PanelProps>>;
199
224
 
200
225
  declare interface PanelProps {
201
226
  children: any;
@@ -209,7 +234,7 @@ declare interface PanelProps {
209
234
  defaultClose: string;
210
235
  }
211
236
 
212
- export declare const PropItem: (props: any) => JSX_2.Element;
237
+ export declare const PropItem: (props: any) => JSX.Element;
213
238
 
214
239
  export declare const RadioGroup: ForwardRefExoticComponent<RefAttributes<unknown>>;
215
240
 
@@ -228,21 +253,21 @@ declare interface RadioItemProps {
228
253
 
229
254
  export declare function range(start: any, end: any, step?: number): any[];
230
255
 
231
- export declare const ScrolBarStyle: (props: any) => JSX_2.Element;
256
+ export declare const ScrolBarStyle: (props: any) => JSX.Element;
232
257
 
233
- export declare const ScrollArea: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
258
+ export declare const ScrollArea: ForwardRefExoticComponent<RefAttributes<unknown>>;
234
259
 
235
- export declare const Spinner: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
260
+ export declare const Spinner: ForwardRefExoticComponent<RefAttributes<unknown>>;
236
261
 
237
- export declare const SpinnerDialog: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
262
+ export declare const SpinnerDialog: ForwardRefExoticComponent<RefAttributes<unknown>>;
238
263
 
239
- export declare const SplitButton: (props: any) => JSX_2.Element;
264
+ export declare const SplitButton: (props: any) => JSX.Element;
240
265
 
241
266
  export declare const SubHeader: (props: any) => JSX_2.Element;
242
267
 
243
- export declare const SwapIconButton: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
268
+ export declare const SwapIconButton: ForwardRefExoticComponent<RefAttributes<unknown>>;
244
269
 
245
- export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps2 & default_2.RefAttributes<any>>;
270
+ export declare const Switch: ForwardRefExoticComponent<SwitchProps2 & RefAttributes<default_2.ComponentPropsWithoutRef>>;
246
271
 
247
272
  declare interface SwitchProps2 extends default_2.ComponentPropsWithoutRef {
248
273
  onChange?: void;
@@ -303,30 +328,13 @@ export declare const TinnyHelp: (props: any) => JSX_2.Element;
303
328
 
304
329
  export declare const Toast: ForwardRefExoticComponent<RefAttributes<unknown>>;
305
330
 
306
- export declare const ToggleGroup: (props: any) => JSX_2.Element;
331
+ export declare const ToggleGroup: (props: any) => JSX.Element;
307
332
 
308
- export declare const ToggleItem: (props: any) => JSX_2.Element;
333
+ export declare const ToggleItem: (props: any) => JSX.Element;
309
334
 
310
- export declare const Tooltip: StyledComponent< {
311
- [x: string]: any;
312
- className: any;
313
- } & MUIStyledCommonProps<Theme>, {}, {}>;
335
+ export declare const Tooltip: any;
314
336
 
315
- export declare const useApi: (props: any) => {
316
- ready: any;
317
- socketioConnected: any;
318
- pool: MutableRefObject<any[]>;
319
- props: any;
320
- defaults: Omit<AxiosDefaults<any>, "headers"> & {
321
- headers: HeadersDefaults & {
322
- [key: string]: AxiosHeaderValue;
323
- };
324
- };
325
- interceptors: {
326
- request: AxiosInterceptorManager<InternalAxiosRequestConfig<any>>;
327
- response: AxiosInterceptorManager<AxiosResponse<any, any>>;
328
- };
329
- };
337
+ export declare const useApi: (props: any) => any;
330
338
 
331
339
  export declare function useBoxSize(ref: any): ({
332
340
  y: number;
@@ -344,9 +352,9 @@ export declare const useStore: (props?: {}) => {}[];
344
352
 
345
353
  export declare const useVariable: (props?: {}) => {}[];
346
354
 
347
- export declare const VirtualContainer: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
355
+ export declare const VirtualContainer: ForwardRefExoticComponent<RefAttributes<unknown>>;
348
356
 
349
- export declare const Whatsnew: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
357
+ export declare const Whatsnew: ForwardRefExoticComponent<RefAttributes<unknown>>;
350
358
 
351
359
 
352
360
  export * from "lucide-react";