@ambuj.bhaskar/react-component-library 0.18.28-alpha → 0.18.30-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 +185 -182
- package/dist/index.d.ts +42 -1
- package/dist/index.js +37375 -30302
- package/dist/index.umd.js +186 -183
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -323,6 +323,7 @@ export declare type AwiEmptyStateProps = {
|
|
|
323
323
|
textClass?: string;
|
|
324
324
|
noPadding?: boolean;
|
|
325
325
|
title?: string;
|
|
326
|
+
stateTitle?: string;
|
|
326
327
|
};
|
|
327
328
|
|
|
328
329
|
export declare const AwiGenerateHeader: default_2.FC<AwiGenerateHeaderProps>;
|
|
@@ -410,6 +411,7 @@ export declare interface AwiMessageProps {
|
|
|
410
411
|
isLoading?: boolean;
|
|
411
412
|
textClass?: string;
|
|
412
413
|
noPadding?: boolean;
|
|
414
|
+
iconName?: string;
|
|
413
415
|
}
|
|
414
416
|
|
|
415
417
|
export declare const AwiMessageScreen: React.FC<AwiMessageProps>;
|
|
@@ -896,7 +898,7 @@ declare type IconPositionType = "before" | "after";
|
|
|
896
898
|
|
|
897
899
|
export declare type IconProps = SVGprops & {
|
|
898
900
|
name: IconName;
|
|
899
|
-
size?: "xs" | "s" | "m" | "l" | "xl" | "auto";
|
|
901
|
+
size?: "xs" | "s" | "m" | "l" | "xl" | "auto" | "full";
|
|
900
902
|
className?: string;
|
|
901
903
|
color?: Color;
|
|
902
904
|
background?: Color | "none";
|
|
@@ -946,6 +948,38 @@ export declare interface LoggedUser {
|
|
|
946
948
|
userObj: LoggedInUser;
|
|
947
949
|
}
|
|
948
950
|
|
|
951
|
+
declare type MapItem = {
|
|
952
|
+
position: TPositionType;
|
|
953
|
+
element: React.ReactNode;
|
|
954
|
+
icon?: string;
|
|
955
|
+
count?: number;
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
export declare const MapView: React.FC<MapViewProps>;
|
|
959
|
+
|
|
960
|
+
export declare type MapViewProps = {
|
|
961
|
+
mapConfig: {
|
|
962
|
+
defaultZoom: number;
|
|
963
|
+
defaultCenter?: TPositionType;
|
|
964
|
+
defaultMapProvider: {
|
|
965
|
+
url: string;
|
|
966
|
+
attribution: string;
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
items: MapItem[];
|
|
970
|
+
width: string;
|
|
971
|
+
height: string;
|
|
972
|
+
showCardPopup?: boolean;
|
|
973
|
+
showCountPopup?: boolean;
|
|
974
|
+
showNavigation?: boolean;
|
|
975
|
+
onCountPopupClick?: () => void;
|
|
976
|
+
navClassName?: string;
|
|
977
|
+
navButtonColor?: Color;
|
|
978
|
+
className?: string;
|
|
979
|
+
focusedIndex?: number;
|
|
980
|
+
onFocusedIndexChange?: (index: number) => void;
|
|
981
|
+
};
|
|
982
|
+
|
|
949
983
|
export declare const MathAnnotationHelper: {
|
|
950
984
|
gcd: any;
|
|
951
985
|
getDistance: (x1: number, y1: number, x2: number, y2: number) => number;
|
|
@@ -1164,6 +1198,7 @@ export declare type SidebarConfig = {
|
|
|
1164
1198
|
notification?: {
|
|
1165
1199
|
value: number;
|
|
1166
1200
|
};
|
|
1201
|
+
hoverTitle?: string;
|
|
1167
1202
|
}[];
|
|
1168
1203
|
dynamic: {
|
|
1169
1204
|
[section: string]: {
|
|
@@ -1171,6 +1206,7 @@ export declare type SidebarConfig = {
|
|
|
1171
1206
|
icon: string;
|
|
1172
1207
|
key: string;
|
|
1173
1208
|
action: () => void;
|
|
1209
|
+
hoverTitle?: string;
|
|
1174
1210
|
}[];
|
|
1175
1211
|
};
|
|
1176
1212
|
};
|
|
@@ -1288,6 +1324,11 @@ export declare const ToastProvider: () => JSX_2.Element;
|
|
|
1288
1324
|
|
|
1289
1325
|
declare type ToastType = "success" | "error" | "info" | "warning";
|
|
1290
1326
|
|
|
1327
|
+
declare type TPositionType = {
|
|
1328
|
+
lat: number;
|
|
1329
|
+
lng: number;
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1291
1332
|
declare function translateCoordinatesWithFixedWidth(coordinates: any, shiftAmount?: number, targetCoordinate?: any): any;
|
|
1292
1333
|
|
|
1293
1334
|
export declare function usePagination(initialPage?: number, initialTotalPages?: number): {
|