@ambuj.bhaskar/react-component-library 0.20.11-alpha → 0.21.1-alpha
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/assets/index.css +1 -1
- package/dist/index.cjs +59 -59
- package/dist/index.d.ts +25 -5
- package/dist/index.js +3063 -3003
- package/dist/index.umd.js +85 -85
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ComponentProps } from 'react';
|
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
3
|
import { Dispatch } from 'react';
|
|
4
4
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
|
+
import { PopoverProps as PopoverProps_2 } from 'antd';
|
|
5
6
|
import * as React_2 from 'react';
|
|
6
7
|
import { ReactNode } from 'react';
|
|
7
8
|
import { SetStateAction } from 'react';
|
|
@@ -898,10 +899,13 @@ export declare type HeatmapProps = {
|
|
|
898
899
|
data: HeatmapData;
|
|
899
900
|
colorRange: Color[];
|
|
900
901
|
valueRange: [number, number];
|
|
902
|
+
showLegend?: boolean;
|
|
903
|
+
transformCellData?: (d: HeatmapDatapoint) => number | string | React.ReactNode;
|
|
901
904
|
width?: CSSstring;
|
|
902
905
|
height?: CSSstring;
|
|
903
906
|
cellWidth?: CSSstring;
|
|
904
907
|
cellHeight?: CSSstring;
|
|
908
|
+
legendHeight?: CSSstring;
|
|
905
909
|
yLabelWidth?: CSSstring;
|
|
906
910
|
xLabelHeight?: CSSstring;
|
|
907
911
|
cellBorderColor?: Color;
|
|
@@ -1175,6 +1179,14 @@ declare type Point = {
|
|
|
1175
1179
|
|
|
1176
1180
|
declare type Polygon = Point[];
|
|
1177
1181
|
|
|
1182
|
+
export declare const Popover: React.FC<PopoverProps>;
|
|
1183
|
+
|
|
1184
|
+
export declare type PopoverProps = PopoverProps_2 & {
|
|
1185
|
+
children?: React.ReactNode;
|
|
1186
|
+
borderColor?: Color;
|
|
1187
|
+
backgroundColor?: Color;
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1178
1190
|
export declare type PostRequestBody = {
|
|
1179
1191
|
img_url: string;
|
|
1180
1192
|
coords: Coordinate[];
|
|
@@ -1216,6 +1228,14 @@ declare function shiftPolygon(polygon: any): any;
|
|
|
1216
1228
|
|
|
1217
1229
|
export declare type ShowAnnotationStatus = "approved" | "rejected" | "pending" | "corrected" | "all";
|
|
1218
1230
|
|
|
1231
|
+
export declare const showToast: ({ type, title, body, }: ShowToastType) => void;
|
|
1232
|
+
|
|
1233
|
+
declare type ShowToastType = {
|
|
1234
|
+
type: ToastType;
|
|
1235
|
+
title?: string;
|
|
1236
|
+
body?: string;
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1219
1239
|
export declare const Sidebar: React.FC<SidebarProps>;
|
|
1220
1240
|
|
|
1221
1241
|
export declare type SidebarConfig = {
|
|
@@ -1354,7 +1374,7 @@ declare type ToastProps = {
|
|
|
1354
1374
|
title?: string;
|
|
1355
1375
|
body?: string;
|
|
1356
1376
|
type?: ToastType;
|
|
1357
|
-
icon?:
|
|
1377
|
+
icon?: IconName;
|
|
1358
1378
|
className?: string;
|
|
1359
1379
|
style?: React.CSSProperties;
|
|
1360
1380
|
onClose?: () => void;
|
|
@@ -1385,10 +1405,10 @@ export declare type userLevel = "awi_root" | "awi_admin" | "awi_manager" | "awi_
|
|
|
1385
1405
|
export declare const useTheme: () => Record<string, string>;
|
|
1386
1406
|
|
|
1387
1407
|
export declare const useToast: () => {
|
|
1388
|
-
success: (
|
|
1389
|
-
error: (
|
|
1390
|
-
info: (
|
|
1391
|
-
warning: (
|
|
1408
|
+
success: (body: string) => void;
|
|
1409
|
+
error: (body: string) => void;
|
|
1410
|
+
info: (body: string) => void;
|
|
1411
|
+
warning: (body: string) => void;
|
|
1392
1412
|
};
|
|
1393
1413
|
|
|
1394
1414
|
export { }
|