cortex-react-ui 0.2.26 → 0.2.28

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.
Files changed (190) hide show
  1. package/lib/cjs/BarLoader/BarLoader.d.ts +9 -9
  2. package/lib/cjs/BarLoader/index.d.ts +1 -1
  3. package/lib/cjs/Button/Button.d.ts +11 -11
  4. package/lib/cjs/Button/index.d.ts +1 -1
  5. package/lib/cjs/Camera/Camera.d.ts +21 -21
  6. package/lib/cjs/Camera/FileStorageDb.d.ts +9 -9
  7. package/lib/cjs/Camera/index.d.ts +1 -1
  8. package/lib/cjs/Camera/useTimer.d.ts +6 -6
  9. package/lib/cjs/DatePicker/DatePicker.d.ts +7 -7
  10. package/lib/cjs/DatePicker/index.d.ts +1 -1
  11. package/lib/cjs/Dialog/ConfirmDialog.d.ts +11 -11
  12. package/lib/cjs/Dialog/Dialog.d.ts +12 -12
  13. package/lib/cjs/Dialog/DialogActions.d.ts +7 -7
  14. package/lib/cjs/Dialog/DialogContent.d.ts +7 -7
  15. package/lib/cjs/Dialog/DialogFooter.d.ts +7 -7
  16. package/lib/cjs/Dialog/DialogHeader.d.ts +7 -7
  17. package/lib/cjs/Dialog/DialogTitle.d.ts +9 -9
  18. package/lib/cjs/Dialog/ErrorDialog.d.ts +10 -10
  19. package/lib/cjs/Dialog/WarningDialog.d.ts +10 -10
  20. package/lib/cjs/Dialog/index.d.ts +9 -9
  21. package/lib/cjs/DomContainer/DomContainer.d.ts +7 -7
  22. package/lib/cjs/DomContainer/index.d.ts +1 -1
  23. package/lib/cjs/Icons/ChevronDownIcon.d.ts +6 -6
  24. package/lib/cjs/Icons/ChevronLeftIcon.d.ts +6 -6
  25. package/lib/cjs/Icons/ChevronRightIcon.d.ts +6 -6
  26. package/lib/cjs/Icons/CrossIcon.d.ts +6 -6
  27. package/lib/cjs/Icons/index.d.ts +4 -4
  28. package/lib/cjs/Input/Input.d.ts +7 -7
  29. package/lib/cjs/Input/index.d.ts +1 -1
  30. package/lib/cjs/Map/Map.d.ts +16 -16
  31. package/lib/cjs/Map/components/CenterActiveAreaControl.d.ts +5 -5
  32. package/lib/cjs/Map/components/DrawTools.d.ts +18 -19
  33. package/lib/cjs/Map/components/LocationContext.d.ts +7 -6
  34. package/lib/cjs/Map/components/MapFullscreenControl.d.ts +22 -23
  35. package/lib/cjs/Map/components/Maps.d.ts +22 -23
  36. package/lib/cjs/Map/config/appConfig.d.ts +4 -4
  37. package/lib/cjs/Map/config/config.d.ts +6 -6
  38. package/lib/cjs/Map/hooks/getGeoJSONTest.d.ts +16 -16
  39. package/lib/cjs/Map/hooks/useLocationContext.d.ts +1 -1
  40. package/lib/cjs/Map/index.d.ts +1 -1
  41. package/lib/cjs/Map/models/index.d.ts +2 -2
  42. package/lib/cjs/Map/models/location.d.ts +6 -6
  43. package/lib/cjs/Map/models/locationSearch.d.ts +4 -4
  44. package/lib/cjs/Map/models/point.d.ts +6 -6
  45. package/lib/cjs/Map/utils/logger.d.ts +17 -17
  46. package/lib/cjs/Map/utils/toolkit.d.ts +129 -129
  47. package/lib/cjs/Menu/AuthDownloadLink.d.ts +14 -14
  48. package/lib/cjs/Menu/ContextMenu.d.ts +13 -13
  49. package/lib/cjs/Menu/Divider.d.ts +6 -6
  50. package/lib/cjs/Menu/Menu.d.ts +10 -10
  51. package/lib/cjs/Menu/MenuGroup.d.ts +8 -8
  52. package/lib/cjs/Menu/MenuItem.d.ts +14 -14
  53. package/lib/cjs/Menu/PopupMenu.d.ts +16 -16
  54. package/lib/cjs/Menu/index.d.ts +7 -7
  55. package/lib/cjs/Popper/Popper.d.ts +38 -38
  56. package/lib/cjs/Popper/index.d.ts +1 -1
  57. package/lib/cjs/Scanner/Dialog.d.ts +8 -9
  58. package/lib/cjs/Scanner/DialogBody.d.ts +3 -3
  59. package/lib/cjs/Scanner/DialogMask.d.ts +3 -3
  60. package/lib/cjs/Scanner/ScanConfirmationDialog.d.ts +19 -19
  61. package/lib/cjs/Scanner/Scanner.d.ts +12 -12
  62. package/lib/cjs/Scanner/index.d.ts +1 -1
  63. package/lib/cjs/Select/Select.d.ts +6 -6
  64. package/lib/cjs/Select/index.d.ts +1 -1
  65. package/lib/cjs/Selected/Selected.d.ts +8 -8
  66. package/lib/cjs/Selected/index.d.ts +1 -1
  67. package/lib/cjs/Spinner/Spinner.d.ts +7 -7
  68. package/lib/cjs/Spinner/index.d.ts +1 -1
  69. package/lib/cjs/TagInput/TagInput.d.ts +12 -12
  70. package/lib/cjs/TagInput/TagItem.d.ts +9 -9
  71. package/lib/cjs/TagInput/TagSearchInput.d.ts +9 -9
  72. package/lib/cjs/TagInput/TagSuggestion.d.ts +13 -13
  73. package/lib/cjs/TagInput/TagSuggestionGroup.d.ts +8 -8
  74. package/lib/cjs/TagInput/TagSuggestionItem.d.ts +8 -8
  75. package/lib/cjs/TagInput/index.d.ts +1 -1
  76. package/lib/cjs/TagInput/types.d.ts +14 -14
  77. package/lib/cjs/TextField/TextField.d.ts +6 -6
  78. package/lib/cjs/TextField/TextFieldInput.d.ts +10 -10
  79. package/lib/cjs/TextField/index.d.ts +1 -1
  80. package/lib/cjs/ToggleButton/ToggleButton.d.ts +11 -11
  81. package/lib/cjs/ToggleButton/index.d.ts +1 -1
  82. package/lib/cjs/Tooltip/Tooltip.d.ts +12 -12
  83. package/lib/cjs/Tooltip/index.d.ts +1 -1
  84. package/lib/cjs/Transition/CSSTransition.d.ts +17 -17
  85. package/lib/cjs/Transition/Fade.d.ts +13 -13
  86. package/lib/cjs/index.d.ts +23 -23
  87. package/lib/cjs/index.js +30 -1
  88. package/lib/cjs/index.js.map +1 -1
  89. package/lib/cjs/utils/classNames.d.ts +1 -1
  90. package/lib/cjs/utils/forwardRef.d.ts +7 -35
  91. package/lib/cjs/utils/setRef.d.ts +2 -9
  92. package/lib/cjs/utils/useClickOutside.d.ts +2 -2
  93. package/lib/cjs/utils/useElement.d.ts +2 -2
  94. package/lib/cjs/utils/useForkRef.d.ts +10 -10
  95. package/lib/esm/BarLoader/BarLoader.d.ts +9 -9
  96. package/lib/esm/BarLoader/index.d.ts +1 -1
  97. package/lib/esm/Button/Button.d.ts +11 -11
  98. package/lib/esm/Button/index.d.ts +1 -1
  99. package/lib/esm/Camera/Camera.d.ts +21 -21
  100. package/lib/esm/Camera/FileStorageDb.d.ts +9 -9
  101. package/lib/esm/Camera/index.d.ts +1 -1
  102. package/lib/esm/Camera/useTimer.d.ts +6 -6
  103. package/lib/esm/DatePicker/DatePicker.d.ts +7 -7
  104. package/lib/esm/DatePicker/index.d.ts +1 -1
  105. package/lib/esm/Dialog/ConfirmDialog.d.ts +11 -11
  106. package/lib/esm/Dialog/Dialog.d.ts +12 -12
  107. package/lib/esm/Dialog/DialogActions.d.ts +7 -7
  108. package/lib/esm/Dialog/DialogContent.d.ts +7 -7
  109. package/lib/esm/Dialog/DialogFooter.d.ts +7 -7
  110. package/lib/esm/Dialog/DialogHeader.d.ts +7 -7
  111. package/lib/esm/Dialog/DialogTitle.d.ts +9 -9
  112. package/lib/esm/Dialog/ErrorDialog.d.ts +10 -10
  113. package/lib/esm/Dialog/WarningDialog.d.ts +10 -10
  114. package/lib/esm/Dialog/index.d.ts +9 -9
  115. package/lib/esm/DomContainer/DomContainer.d.ts +7 -7
  116. package/lib/esm/DomContainer/index.d.ts +1 -1
  117. package/lib/esm/Icons/ChevronDownIcon.d.ts +6 -6
  118. package/lib/esm/Icons/ChevronLeftIcon.d.ts +6 -6
  119. package/lib/esm/Icons/ChevronRightIcon.d.ts +6 -6
  120. package/lib/esm/Icons/CrossIcon.d.ts +6 -6
  121. package/lib/esm/Icons/index.d.ts +4 -4
  122. package/lib/esm/Input/Input.d.ts +7 -7
  123. package/lib/esm/Input/index.d.ts +1 -1
  124. package/lib/esm/Map/Map.d.ts +16 -16
  125. package/lib/esm/Map/components/CenterActiveAreaControl.d.ts +5 -5
  126. package/lib/esm/Map/components/DrawTools.d.ts +18 -19
  127. package/lib/esm/Map/components/LocationContext.d.ts +7 -6
  128. package/lib/esm/Map/components/MapFullscreenControl.d.ts +22 -23
  129. package/lib/esm/Map/components/Maps.d.ts +22 -23
  130. package/lib/esm/Map/config/appConfig.d.ts +4 -4
  131. package/lib/esm/Map/config/config.d.ts +6 -6
  132. package/lib/esm/Map/hooks/getGeoJSONTest.d.ts +16 -16
  133. package/lib/esm/Map/hooks/useLocationContext.d.ts +1 -1
  134. package/lib/esm/Map/index.d.ts +1 -1
  135. package/lib/esm/Map/models/index.d.ts +2 -2
  136. package/lib/esm/Map/models/location.d.ts +6 -6
  137. package/lib/esm/Map/models/locationSearch.d.ts +4 -4
  138. package/lib/esm/Map/models/point.d.ts +6 -6
  139. package/lib/esm/Map/utils/logger.d.ts +17 -17
  140. package/lib/esm/Map/utils/toolkit.d.ts +129 -129
  141. package/lib/esm/Menu/AuthDownloadLink.d.ts +14 -14
  142. package/lib/esm/Menu/ContextMenu.d.ts +13 -13
  143. package/lib/esm/Menu/Divider.d.ts +6 -6
  144. package/lib/esm/Menu/Menu.d.ts +10 -10
  145. package/lib/esm/Menu/MenuGroup.d.ts +8 -8
  146. package/lib/esm/Menu/MenuItem.d.ts +14 -14
  147. package/lib/esm/Menu/PopupMenu.d.ts +16 -16
  148. package/lib/esm/Menu/index.d.ts +7 -7
  149. package/lib/esm/Popper/Popper.d.ts +38 -38
  150. package/lib/esm/Popper/index.d.ts +1 -1
  151. package/lib/esm/Scanner/Dialog.d.ts +8 -9
  152. package/lib/esm/Scanner/DialogBody.d.ts +3 -3
  153. package/lib/esm/Scanner/DialogMask.d.ts +3 -3
  154. package/lib/esm/Scanner/ScanConfirmationDialog.d.ts +19 -19
  155. package/lib/esm/Scanner/Scanner.d.ts +12 -12
  156. package/lib/esm/Scanner/index.d.ts +1 -1
  157. package/lib/esm/Select/Select.d.ts +6 -6
  158. package/lib/esm/Select/index.d.ts +1 -1
  159. package/lib/esm/Selected/Selected.d.ts +8 -8
  160. package/lib/esm/Selected/index.d.ts +1 -1
  161. package/lib/esm/Spinner/Spinner.d.ts +7 -7
  162. package/lib/esm/Spinner/index.d.ts +1 -1
  163. package/lib/esm/TagInput/TagInput.d.ts +12 -12
  164. package/lib/esm/TagInput/TagItem.d.ts +9 -9
  165. package/lib/esm/TagInput/TagSearchInput.d.ts +9 -9
  166. package/lib/esm/TagInput/TagSuggestion.d.ts +13 -13
  167. package/lib/esm/TagInput/TagSuggestionGroup.d.ts +8 -8
  168. package/lib/esm/TagInput/TagSuggestionItem.d.ts +8 -8
  169. package/lib/esm/TagInput/index.d.ts +1 -1
  170. package/lib/esm/TagInput/types.d.ts +14 -14
  171. package/lib/esm/TextField/TextField.d.ts +6 -6
  172. package/lib/esm/TextField/TextFieldInput.d.ts +10 -10
  173. package/lib/esm/TextField/index.d.ts +1 -1
  174. package/lib/esm/ToggleButton/ToggleButton.d.ts +11 -11
  175. package/lib/esm/ToggleButton/index.d.ts +1 -1
  176. package/lib/esm/Tooltip/Tooltip.d.ts +12 -12
  177. package/lib/esm/Tooltip/index.d.ts +1 -1
  178. package/lib/esm/Transition/CSSTransition.d.ts +17 -17
  179. package/lib/esm/Transition/Fade.d.ts +13 -13
  180. package/lib/esm/index.d.ts +23 -23
  181. package/lib/esm/index.js +30 -1
  182. package/lib/esm/index.js.map +1 -1
  183. package/lib/esm/utils/classNames.d.ts +1 -1
  184. package/lib/esm/utils/forwardRef.d.ts +7 -35
  185. package/lib/esm/utils/setRef.d.ts +2 -9
  186. package/lib/esm/utils/useClickOutside.d.ts +2 -2
  187. package/lib/esm/utils/useElement.d.ts +2 -2
  188. package/lib/esm/utils/useForkRef.d.ts +10 -10
  189. package/lib/index.d.ts +333 -361
  190. package/package.json +60 -61
package/lib/index.d.ts CHANGED
@@ -1,447 +1,419 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
+ import * as React$1 from 'react';
2
3
  import React__default, { CSSProperties } from 'react';
3
4
  import { IDetectedBarcode, IScannerProps } from '@yudiel/react-qr-scanner';
4
5
  import { WebcamProps } from 'react-webcam';
5
6
  import { MapContainerProps } from 'react-leaflet';
6
7
  import { ControlPosition, DrawEvents, LatLngTuple } from 'leaflet';
7
8
 
8
- declare const PopperPlacement: {
9
- readonly Center: "center";
10
- readonly BottomCenter: "bottom-center";
11
- readonly BottomRight: "bottom-right";
12
- readonly BottomLeft: "bottom-left";
13
- readonly TopCenter: "top-center";
14
- readonly TopRight: "top-right";
15
- readonly TopLeft: "top-left";
16
- readonly LeftTop: "left-top";
17
- readonly LeftBottom: "left-bottom";
18
- readonly LeftCenter: "left-center";
19
- readonly RightTop: "right-top";
20
- readonly RightBottom: "right-bottom";
21
- readonly RightCenter: "right-center";
22
- };
23
- type Props$5 = {
24
- anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
25
- anchorPosition?: {
26
- top: number;
27
- left: number;
28
- };
29
- placement?: ObjectValues<typeof PopperPlacement>;
30
- open?: boolean;
31
- role?: string;
32
- children?: React__default.ReactNode;
33
- className?: string;
34
- overflow?: boolean;
35
- onMouseEnter?: React__default.MouseEventHandler<HTMLDivElement>;
36
- onMouseLeave?: React__default.MouseEventHandler<HTMLDivElement>;
37
- onMouseMove?: React__default.MouseEventHandler<HTMLDivElement>;
38
- onMouseOut?: React__default.MouseEventHandler<HTMLDivElement>;
39
- onMouseOver?: React__default.MouseEventHandler<HTMLDivElement>;
40
- onTouchStart?: React__default.TouchEventHandler<HTMLDivElement>;
41
- onTouchEnd?: React__default.TouchEventHandler<HTMLDivElement>;
42
- };
9
+ declare const PopperPlacement: {
10
+ readonly Center: "center";
11
+ readonly BottomCenter: "bottom-center";
12
+ readonly BottomRight: "bottom-right";
13
+ readonly BottomLeft: "bottom-left";
14
+ readonly TopCenter: "top-center";
15
+ readonly TopRight: "top-right";
16
+ readonly TopLeft: "top-left";
17
+ readonly LeftTop: "left-top";
18
+ readonly LeftBottom: "left-bottom";
19
+ readonly LeftCenter: "left-center";
20
+ readonly RightTop: "right-top";
21
+ readonly RightBottom: "right-bottom";
22
+ readonly RightCenter: "right-center";
23
+ };
24
+ type Props$5 = {
25
+ anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
26
+ anchorPosition?: {
27
+ top: number;
28
+ left: number;
29
+ };
30
+ placement?: ObjectValues<typeof PopperPlacement>;
31
+ open?: boolean;
32
+ role?: string;
33
+ children?: React__default.ReactNode;
34
+ className?: string;
35
+ overflow?: boolean;
36
+ onMouseEnter?: React__default.MouseEventHandler<HTMLDivElement>;
37
+ onMouseLeave?: React__default.MouseEventHandler<HTMLDivElement>;
38
+ onMouseMove?: React__default.MouseEventHandler<HTMLDivElement>;
39
+ onMouseOut?: React__default.MouseEventHandler<HTMLDivElement>;
40
+ onMouseOver?: React__default.MouseEventHandler<HTMLDivElement>;
41
+ onTouchStart?: React__default.TouchEventHandler<HTMLDivElement>;
42
+ onTouchEnd?: React__default.TouchEventHandler<HTMLDivElement>;
43
+ };
43
44
  declare const Popper: React__default.ForwardRefExoticComponent<Props$5 & React__default.RefAttributes<HTMLElement>>;
44
45
 
45
- type Props$4 = {
46
- children?: React__default.ReactNode;
47
- container?: HTMLElement | (() => HTMLElement);
48
- };
46
+ type Props$4 = {
47
+ children?: React__default.ReactNode;
48
+ container?: HTMLElement | (() => HTMLElement);
49
+ };
49
50
  declare const DomContainer: React__default.ForwardRefExoticComponent<Props$4 & React__default.RefAttributes<HTMLElement>>;
50
51
 
51
- interface SpinnerProps {
52
- className?: string;
53
- variant?: 'indeterminate' | 'determinate';
54
- }
52
+ interface SpinnerProps {
53
+ className?: string;
54
+ variant?: 'indeterminate' | 'determinate';
55
+ }
55
56
  declare const Spinner: React__default.FC<SpinnerProps>;
56
57
 
57
- interface BarLoaderProps {
58
- title?: string;
59
- color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
60
- className?: string;
61
- isComplete: boolean;
62
- }
58
+ interface BarLoaderProps {
59
+ title?: string;
60
+ color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
61
+ className?: string;
62
+ isComplete: boolean;
63
+ }
63
64
  declare const BarLoader: React__default.FC<BarLoaderProps>;
64
65
 
65
- interface SelectedProps {
66
- title?: string;
67
- data: any[];
68
- onClick: (elt: any) => void;
69
- }
66
+ interface SelectedProps {
67
+ title?: string;
68
+ data: any[];
69
+ onClick: (elt: any) => void;
70
+ }
70
71
  declare const Selected: React__default.FC<SelectedProps>;
71
72
 
72
- interface ButtonProps {
73
- variant?: 'text' | 'contained' | 'outlined';
74
- color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
75
- className?: string;
76
- disable?: boolean;
77
- children?: React__default.ReactNode;
78
- onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
79
- }
73
+ interface ButtonProps {
74
+ variant?: 'text' | 'contained' | 'outlined';
75
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
76
+ className?: string;
77
+ disable?: boolean;
78
+ children?: React__default.ReactNode;
79
+ onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
80
+ }
80
81
  declare const Button: React__default.FC<ButtonProps>;
81
82
 
82
- type TScanConfirmDialogLabels = {
83
- title?: string;
84
- message?: string;
85
- btnOk?: {
86
- label: string;
87
- style?: React__default.CSSProperties;
88
- };
89
- btnCancel?: {
90
- label: string;
91
- style?: React__default.CSSProperties;
92
- };
83
+ type TScanConfirmDialogLabels = {
84
+ title?: string;
85
+ message?: string;
86
+ btnOk?: {
87
+ label: string;
88
+ style?: React.CSSProperties;
89
+ };
90
+ btnCancel?: {
91
+ label: string;
92
+ style?: React.CSSProperties;
93
+ };
93
94
  };
94
95
 
95
- declare const Scanner: React__default.FC<ScannerProps>;
96
- type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
97
- type ScannerProps = {
98
- scanConfirmation?: boolean;
99
- scanConfirmDialog?: TScanConfirmDialogLabels;
100
- scanTrackerType?: TScanTrackerType;
101
- onScan?: (detectedCodes: IDetectedBarcode[]) => void;
96
+ declare const Scanner: React.FC<ScannerProps>;
97
+ type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
98
+ type ScannerProps = {
99
+ scanConfirmation?: boolean;
100
+ scanConfirmDialog?: TScanConfirmDialogLabels;
101
+ scanTrackerType?: TScanTrackerType;
102
+ onScan?: (detectedCodes: IDetectedBarcode[]) => void;
102
103
  } & IScannerProps;
103
104
 
104
- declare const Camera: React__default.FC<CameraProps>;
105
- type CameraProps = {
106
- onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
107
- mode?: 'photo' | 'video';
108
- isOffline?: boolean;
109
- isShowOffline?: boolean;
110
- validateText?: string;
111
- resetText?: string;
112
- isShowVideoButton?: boolean;
113
- isShowSwitchButton?: boolean;
114
- } & Partial<WebcamProps>;
115
- type TfileCapturedProps = {
116
- fileStoreName?: string | null;
117
- fileRowId?: number | null;
118
- file?: File | null;
119
- imageSrc?: string | null;
120
- videoSrc?: string | null;
105
+ declare const Camera: React.FC<CameraProps>;
106
+ type CameraProps = {
107
+ onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
108
+ mode?: 'photo' | 'video';
109
+ isOffline?: boolean;
110
+ isShowOffline?: boolean;
111
+ validateText?: string;
112
+ resetText?: string;
113
+ isShowVideoButton?: boolean;
114
+ isShowSwitchButton?: boolean;
115
+ } & Partial<WebcamProps>;
116
+ type TfileCapturedProps = {
117
+ fileStoreName?: string | null;
118
+ fileRowId?: number | null;
119
+ file?: File | null;
120
+ imageSrc?: string | null;
121
+ videoSrc?: string | null;
121
122
  };
122
123
 
123
- interface ToggleButtonProps {
124
- selected?: boolean;
125
- value?: string;
126
- className?: string;
127
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
128
- children?: React__default.ReactNode;
129
- onChange?: (value: string | undefined) => void;
130
- }
124
+ interface ToggleButtonProps {
125
+ selected?: boolean;
126
+ value?: string;
127
+ className?: string;
128
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
129
+ children?: React__default.ReactNode;
130
+ onChange?: (value: string | undefined) => void;
131
+ }
131
132
  declare const ToggleButton: React__default.FC<ToggleButtonProps>;
132
133
 
133
- interface TooltipProps$1 {
134
- children?: React__default.ReactElement;
135
- anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
136
- title: React__default.ReactNode;
137
- enterDelay?: number;
138
- leaveDelay?: number;
139
- className?: string;
140
- disabled?: boolean;
141
- }
134
+ interface TooltipProps$1 {
135
+ children?: React__default.ReactElement;
136
+ anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
137
+ title: React__default.ReactNode;
138
+ enterDelay?: number;
139
+ leaveDelay?: number;
140
+ className?: string;
141
+ disabled?: boolean;
142
+ }
142
143
  declare const Tooltip: React__default.FC<TooltipProps$1>;
143
144
 
144
- declare namespace Cortex {
145
- type Tag = {
146
- id: string;
147
- label: string;
148
- value: any;
149
- };
150
- type TagSuggestion = {
151
- id: string;
152
- label: string;
153
- value?: any;
154
- group?: boolean;
155
- suggestions?: TagSuggestion[];
156
- };
145
+ declare namespace Cortex {
146
+ type Tag = {
147
+ id: string;
148
+ label: string;
149
+ value: any;
150
+ };
151
+ type TagSuggestion = {
152
+ id: string;
153
+ label: string;
154
+ value?: any;
155
+ group?: boolean;
156
+ suggestions?: TagSuggestion[];
157
+ };
157
158
  }
158
159
 
159
- interface TooltipProps {
160
- tags?: Cortex.Tag[];
161
- className?: string;
162
- suggestions?: Cortex.TagSuggestion[];
163
- disableFilter?: boolean;
164
- onTextChange?: (text: string) => void;
165
- onChange?: (tags: Cortex.Tag[]) => void;
166
- }
160
+ interface TooltipProps {
161
+ tags?: Cortex.Tag[];
162
+ className?: string;
163
+ suggestions?: Cortex.TagSuggestion[];
164
+ disableFilter?: boolean;
165
+ onTextChange?: (text: string) => void;
166
+ onChange?: (tags: Cortex.Tag[]) => void;
167
+ }
167
168
  declare const TagInput: React__default.FC<TooltipProps>;
168
169
 
169
- declare class Point {
170
- id: number;
171
- order: number;
172
- latitude: number;
173
- longitude: number;
170
+ declare class Point {
171
+ id: number;
172
+ order: number;
173
+ latitude: number;
174
+ longitude: number;
174
175
  }
175
176
 
176
- declare class Location {
177
- id: number;
178
- objId: string;
179
- points: Point[];
177
+ declare class Location {
178
+ id: number;
179
+ objId: string;
180
+ points: Point[];
180
181
  }
181
182
 
182
- type CenterActiveAreaControlProps = {
183
- autoCenter?: boolean;
183
+ type CenterActiveAreaControlProps = {
184
+ autoCenter?: boolean;
184
185
  };
185
186
 
186
- /** Props interface for MapFullscreenControl component */
187
- type MapFullscreenControlProps = {
188
- /** Change the content of the button, can be HTML, default null */
189
- content?: string | undefined;
190
- /** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
191
- position?: ControlPosition | undefined;
192
- /** Change the title of the button, default Full Screen */
193
- title?: string | undefined;
194
- /** Change the title of the button when fullscreen is on, default Exit Full Screen */
195
- titleCancel?: string | undefined;
196
- /** Force separate button to detach from zoom buttons, default false */
197
- forceSeparateButton?: boolean | undefined;
198
- /** Force use of pseudo full screen even if full screen API is available, default false */
199
- forcePseudoFullscreen?: boolean | undefined;
200
- /** Use pseudo fullscreen */
201
- pseudoFullscreen?: boolean | undefined;
202
- /** Dom element to render in full screen, false by default, fallback to map._container */
203
- fullscreenElement?: false | HTMLElement | undefined;
187
+ /** Props interface for MapFullscreenControl component */
188
+ type MapFullscreenControlProps = {
189
+ /** Change the content of the button, can be HTML, default null */
190
+ content?: string | undefined;
191
+ /** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
192
+ position?: ControlPosition | undefined;
193
+ /** Change the title of the button, default Full Screen */
194
+ title?: string | undefined;
195
+ /** Change the title of the button when fullscreen is on, default Exit Full Screen */
196
+ titleCancel?: string | undefined;
197
+ /** Force separate button to detach from zoom buttons, default false */
198
+ forceSeparateButton?: boolean | undefined;
199
+ /** Force use of pseudo full screen even if full screen API is available, default false */
200
+ forcePseudoFullscreen?: boolean | undefined;
201
+ /** Use pseudo fullscreen */
202
+ pseudoFullscreen?: boolean | undefined;
203
+ /** Dom element to render in full screen, false by default, fallback to map._container */
204
+ fullscreenElement?: false | HTMLElement | undefined;
204
205
  };
205
206
 
206
- type DrawToolsProps = {
207
- position?: ControlPosition | undefined;
208
- handleOnCreated?: (v: DrawEvents.Created) => void;
209
- handleOnDeleted?: (v: DrawEvents.Deleted) => void;
210
- handleOnEdited?: (v: DrawEvents.Edited) => void;
211
- draw?: drawType;
212
- editable?: boolean;
213
- };
214
- type drawType = {
215
- polyline?: boolean;
216
- polygon?: boolean;
217
- rectangle?: boolean;
218
- circle?: boolean;
219
- marker?: boolean;
220
- circlemarker?: boolean;
207
+ type DrawToolsProps = {
208
+ position?: ControlPosition | undefined;
209
+ handleOnCreated?: (v: DrawEvents.Created) => void;
210
+ handleOnDeleted?: (v: DrawEvents.Deleted) => void;
211
+ handleOnEdited?: (v: DrawEvents.Edited) => void;
212
+ draw?: drawType;
213
+ editable?: boolean;
214
+ };
215
+ type drawType = {
216
+ polyline?: boolean;
217
+ polygon?: boolean;
218
+ rectangle?: boolean;
219
+ circle?: boolean;
220
+ marker?: boolean;
221
+ circlemarker?: boolean;
221
222
  };
222
223
 
223
- type MapsProps = {
224
- MapContainerProps?: MapContainerProps;
225
- center?: LatLngTuple;
226
- fullscreen?: MapFullscreenControlProps | boolean;
227
- centerActiveArea?: CenterActiveAreaControlProps | boolean;
228
- drawTools?: DrawToolsProps | boolean;
229
- minZoom?: number;
230
- maxZoom?: number;
231
- zoom?: number;
232
- data?: Location[];
233
- toggleSatelliteView?: boolean;
234
- singlePosition?: boolean;
235
- onChange?: (locations: Location[]) => void;
224
+ type MapsProps = {
225
+ MapContainerProps?: MapContainerProps;
226
+ center?: LatLngTuple;
227
+ fullscreen?: MapFullscreenControlProps | boolean;
228
+ centerActiveArea?: CenterActiveAreaControlProps | boolean;
229
+ drawTools?: DrawToolsProps | boolean;
230
+ minZoom?: number;
231
+ maxZoom?: number;
232
+ zoom?: number;
233
+ data?: Location[];
234
+ toggleSatelliteView?: boolean;
235
+ singlePosition?: boolean;
236
+ onChange?: (locations: Location[]) => void;
236
237
  };
237
238
 
238
- declare const Map: React__default.FC<AppProps>;
239
- type AppProps = MapsProps & {
240
- onClose?: (() => void);
241
- onSave?: ((locations: Location[]) => void);
242
- onChange?: ((locations: Location[]) => void);
243
- customButtons?: {
244
- cancelButton?: HTMLElement;
245
- saveButton?: HTMLElement;
246
- };
239
+ declare const Map: React__default.FC<AppProps>;
240
+ type AppProps = MapsProps & {
241
+ onClose?: (() => void);
242
+ onSave?: ((locations: Location[]) => void);
243
+ onChange?: ((locations: Location[]) => void);
244
+ customButtons?: {
245
+ cancelButton?: HTMLElement;
246
+ saveButton?: HTMLElement;
247
+ };
247
248
  };
248
249
 
249
- interface MenuProps {
250
- containerRef: React__default.RefObject<HTMLElement>;
251
- className?: string;
252
- children?: React__default.ReactNode;
253
- onClose?: () => void;
254
- onClick?: (event: React__default.MouseEvent<HTMLUListElement> | undefined) => void;
255
- }
250
+ interface MenuProps {
251
+ containerRef: React__default.RefObject<HTMLElement>;
252
+ className?: string;
253
+ children?: React__default.ReactNode;
254
+ onClose?: () => void;
255
+ onClick?: (event: React__default.MouseEvent<HTMLUListElement> | undefined) => void;
256
+ }
256
257
  declare const Menu: React__default.FC<MenuProps>;
257
258
 
258
- interface ContextMenuProps {
259
- className?: string;
260
- children?: React__default.ReactNode;
261
- open?: boolean;
262
- placement?: ObjectValues<typeof PopperPlacement>;
263
- container?: string | HTMLElement | React__default.RefObject<HTMLElement>;
264
- onOpen?: () => void;
265
- onClose?: () => void;
266
- }
259
+ interface ContextMenuProps {
260
+ className?: string;
261
+ children?: React__default.ReactNode;
262
+ open?: boolean;
263
+ placement?: ObjectValues<typeof PopperPlacement>;
264
+ container?: string | HTMLElement | React__default.RefObject<HTMLElement>;
265
+ onOpen?: () => void;
266
+ onClose?: () => void;
267
+ }
267
268
  declare const ContextMenu: React__default.FC<ContextMenuProps>;
268
269
 
269
- interface DividerProps {
270
- className?: string;
271
- }
270
+ interface DividerProps {
271
+ className?: string;
272
+ }
272
273
  declare const Divider: React__default.FC<DividerProps>;
273
274
 
274
- interface MenuItemProps {
275
- className?: string;
276
- style?: CSSProperties | undefined;
277
- children?: React__default.ReactNode;
278
- label?: string;
279
- icon?: React__default.ReactNode;
280
- active?: boolean;
281
- disable?: boolean;
282
- itemTemplate?: React__default.ReactNode;
283
- onClick?: (event: React__default.MouseEvent<HTMLButtonElement> | undefined) => void;
284
- }
275
+ interface MenuItemProps {
276
+ className?: string;
277
+ style?: CSSProperties | undefined;
278
+ children?: React__default.ReactNode;
279
+ label?: string;
280
+ icon?: React__default.ReactNode;
281
+ active?: boolean;
282
+ disable?: boolean;
283
+ itemTemplate?: React__default.ReactNode;
284
+ onClick?: (event: React__default.MouseEvent<HTMLButtonElement> | undefined) => void;
285
+ }
285
286
  declare const MenuItem: React__default.FC<MenuItemProps>;
286
287
 
287
- interface PopupMenuProps {
288
- className?: string;
289
- children?: React__default.ReactNode;
290
- open?: boolean;
291
- placement?: ObjectValues<typeof PopperPlacement>;
292
- anchorPosition?: {
293
- top: number;
294
- left: number;
295
- };
296
- anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
297
- onClose?: () => void;
298
- }
288
+ interface PopupMenuProps {
289
+ className?: string;
290
+ children?: React__default.ReactNode;
291
+ open?: boolean;
292
+ placement?: ObjectValues<typeof PopperPlacement>;
293
+ anchorPosition?: {
294
+ top: number;
295
+ left: number;
296
+ };
297
+ anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
298
+ onClose?: () => void;
299
+ }
299
300
  declare const PopupMenu: React__default.FC<PopupMenuProps>;
300
301
 
301
- interface MenuGroupProps {
302
- title?: string;
303
- className?: string;
304
- children?: React__default.ReactNode;
305
- }
302
+ interface MenuGroupProps {
303
+ title?: string;
304
+ className?: string;
305
+ children?: React__default.ReactNode;
306
+ }
306
307
  declare const MenuGroup: React__default.FC<MenuGroupProps>;
307
308
 
308
- interface AuthDownloadLinkProps {
309
- url: string;
310
- queryParams?: {
311
- [key: string]: string | number | boolean;
312
- };
313
- token: string;
314
- label?: string;
315
- onStart?: (event: React__default.MouseEvent<HTMLButtonElement> | undefined) => void;
316
- onCompleted?: () => void;
317
- onError?: (error: Error) => void;
318
- }
309
+ interface AuthDownloadLinkProps {
310
+ url: string;
311
+ queryParams?: {
312
+ [key: string]: string | number | boolean;
313
+ };
314
+ token: string;
315
+ label?: string;
316
+ onStart?: (event: React__default.MouseEvent<HTMLButtonElement> | undefined) => void;
317
+ onCompleted?: () => void;
318
+ onError?: (error: Error) => void;
319
+ }
319
320
  declare const AuthDownloadLink: React__default.FC<AuthDownloadLinkProps>;
320
321
 
321
- interface DialogProps {
322
- open: boolean;
323
- width?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
324
- fullWidth?: boolean;
325
- fullHeight?: boolean;
326
- className?: string;
327
- children?: React__default.ReactNode;
328
- onClose?: (() => void);
329
- }
322
+ interface DialogProps {
323
+ open: boolean;
324
+ width?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
325
+ fullWidth?: boolean;
326
+ fullHeight?: boolean;
327
+ className?: string;
328
+ children?: React__default.ReactNode;
329
+ onClose?: (() => void);
330
+ }
330
331
  declare const Dialog: React__default.FC<DialogProps>;
331
332
 
332
- interface DialogContentProps {
333
- className?: string;
334
- children?: React__default.ReactNode;
335
- }
333
+ interface DialogContentProps {
334
+ className?: string;
335
+ children?: React__default.ReactNode;
336
+ }
336
337
  declare const DialogContent: React__default.FC<DialogContentProps>;
337
338
 
338
- interface DialogFooterProps {
339
- className?: string;
340
- children?: React__default.ReactNode;
341
- }
339
+ interface DialogFooterProps {
340
+ className?: string;
341
+ children?: React__default.ReactNode;
342
+ }
342
343
  declare const DialogFooter: React__default.FC<DialogFooterProps>;
343
344
 
344
- interface DialogHeaderProps {
345
- className?: string;
346
- children?: React__default.ReactNode;
347
- }
345
+ interface DialogHeaderProps {
346
+ className?: string;
347
+ children?: React__default.ReactNode;
348
+ }
348
349
  declare const DialogHeader: React__default.FC<DialogHeaderProps>;
349
350
 
350
- interface DialogTitleProps {
351
- className?: string;
352
- children?: React__default.ReactNode;
353
- closeDisable?: boolean;
354
- onClose?: (() => void);
355
- }
351
+ interface DialogTitleProps {
352
+ className?: string;
353
+ children?: React__default.ReactNode;
354
+ closeDisable?: boolean;
355
+ onClose?: (() => void);
356
+ }
356
357
  declare const DialogTitle: React__default.FC<DialogTitleProps>;
357
358
 
358
- interface DialogActionsProps {
359
- className?: string;
360
- children?: React__default.ReactNode;
361
- }
359
+ interface DialogActionsProps {
360
+ className?: string;
361
+ children?: React__default.ReactNode;
362
+ }
362
363
  declare const DialogActions: React__default.FC<DialogActionsProps>;
363
364
 
364
- interface ConfirmDialogProps {
365
- title: string;
366
- ok?: string;
367
- cancel?: string;
368
- children?: React__default.ReactNode;
369
- className?: string;
370
- onClose?: (isOk: boolean) => void;
371
- }
365
+ interface ConfirmDialogProps {
366
+ title: string;
367
+ ok?: string;
368
+ cancel?: string;
369
+ children?: React__default.ReactNode;
370
+ className?: string;
371
+ onClose?: (isOk: boolean) => void;
372
+ }
372
373
  declare const ConfirmDialog: React__default.FC<ConfirmDialogProps>;
373
374
 
374
- interface ErrorDialogProps {
375
- title: string;
376
- ok?: string;
377
- children?: React__default.ReactNode;
378
- className?: string;
379
- onClose?: (isOk: boolean) => void;
380
- }
375
+ interface ErrorDialogProps {
376
+ title: string;
377
+ ok?: string;
378
+ children?: React__default.ReactNode;
379
+ className?: string;
380
+ onClose?: (isOk: boolean) => void;
381
+ }
381
382
  declare const ErrorDialog: React__default.FC<ErrorDialogProps>;
382
383
 
383
- interface WarningDialogProps {
384
- title: string;
385
- ok?: string;
386
- children?: React__default.ReactNode;
387
- className?: string;
388
- onClose?: (isOk: boolean) => void;
389
- }
384
+ interface WarningDialogProps {
385
+ title: string;
386
+ ok?: string;
387
+ children?: React__default.ReactNode;
388
+ className?: string;
389
+ onClose?: (isOk: boolean) => void;
390
+ }
390
391
  declare const WarningDialog: React__default.FC<WarningDialogProps>;
391
392
 
392
- interface Props$3 {
393
- className?: string;
394
- }
393
+ interface Props$3 {
394
+ className?: string;
395
+ }
395
396
  declare const ChevronDownIcon: React__default.FC<Props$3>;
396
397
 
397
- interface Props$2 {
398
- className?: string;
399
- }
398
+ interface Props$2 {
399
+ className?: string;
400
+ }
400
401
  declare const ChevronRightIcon: React__default.FC<Props$2>;
401
402
 
402
- interface Props$1 {
403
- className?: string;
404
- }
403
+ interface Props$1 {
404
+ className?: string;
405
+ }
405
406
  declare const ChevronLeftIcon: React__default.FC<Props$1>;
406
407
 
407
- interface Props {
408
- className?: string;
409
- }
408
+ interface Props {
409
+ className?: string;
410
+ }
410
411
  declare const CrossIcon: React__default.FC<Props>;
411
412
 
412
- /**
413
- * Utility type pour créer des props avec ref pour la compatibilité React 18/19
414
- * En React 19, ref est passé directement dans les props
415
- * En React 18, ref est passé séparément via forwardRef
416
- */
417
- type ForwardRefProps<T, P = object> = P & {
418
- ref?: React.Ref<T>;
419
- };
420
- /**
421
- * Type pour la fonction de rendu compatible React 18/19
422
- */
423
- type ForwardRefRenderFunction<T, P> = (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null;
424
- /**
425
- * Composant wrapper compatible React 18 et React 19
426
- *
427
- * Utilise la signature standard de React.forwardRef qui est compatible
428
- * avec les deux versions de React.
429
- *
430
- * @example
431
- * ```tsx
432
- * interface MyComponentProps {
433
- * className?: string;
434
- * children?: React.ReactNode;
435
- * }
436
- *
437
- * const MyComponent = forwardRef<HTMLDivElement, MyComponentProps>(
438
- * (props, ref) => (
439
- * <div ref={ref} className={props.className}>{props.children}</div>
440
- * )
441
- * );
442
- * ```
443
- */
444
- declare function forwardRef<T, P>(render: ForwardRefRenderFunction<T, P>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
445
-
446
- export { AuthDownloadLink, BarLoader, Button, Camera, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ConfirmDialog, ContextMenu, CrossIcon, Dialog, DialogActions, DialogContent, DialogFooter, DialogHeader, DialogTitle, Divider, DomContainer, ErrorDialog, Map, Menu, MenuGroup, MenuItem, Popper, PopupMenu, Scanner, Selected, Spinner, TagInput, ToggleButton, Tooltip, WarningDialog, forwardRef };
447
- export type { ForwardRefProps, ForwardRefRenderFunction };
413
+ type ForwardRefProps<T, P = object> = P & {
414
+ ref?: React$1.Ref<T>;
415
+ };
416
+ type ForwardRefRenderFunction<T, P> = (props: P, ref: React$1.ForwardedRef<T>) => React$1.ReactElement | null;
417
+ declare function forwardRef<T, P>(render: ForwardRefRenderFunction<T, P>): React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<P> & React$1.RefAttributes<T>>;
418
+
419
+ export { AuthDownloadLink, BarLoader, Button, Camera, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ConfirmDialog, ContextMenu, CrossIcon, Dialog, DialogActions, DialogContent, DialogFooter, DialogHeader, DialogTitle, Divider, DomContainer, ErrorDialog, ForwardRefProps, ForwardRefRenderFunction, Map, Menu, MenuGroup, MenuItem, Popper, PopupMenu, Scanner, Selected, Spinner, TagInput, ToggleButton, Tooltip, WarningDialog, forwardRef };