@ambuj.bhaskar/react-component-library 0.21.3-alpha → 0.22.0-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 +131 -131
- package/dist/index.d.ts +42 -2
- package/dist/index.js +18834 -17918
- package/dist/index.umd.js +133 -133
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
5
5
|
import { PopoverProps as PopoverProps_2 } from 'antd';
|
|
6
6
|
import * as React_2 from 'react';
|
|
7
7
|
import { ReactNode } from 'react';
|
|
8
|
+
import { RefObject } from 'react';
|
|
8
9
|
import { SetStateAction } from 'react';
|
|
9
10
|
import { TableProps as TableProps_2 } from 'antd';
|
|
10
11
|
import { TimeRangePickerProps } from 'antd';
|
|
@@ -1132,11 +1133,13 @@ export declare type MultiselectProps = {
|
|
|
1132
1133
|
placeholder?: string;
|
|
1133
1134
|
searchable?: boolean;
|
|
1134
1135
|
maxTagCount?: "responsive" | number;
|
|
1136
|
+
maxCount?: number;
|
|
1135
1137
|
value?: Option_2["value"][];
|
|
1136
1138
|
width?: CSSstring;
|
|
1137
1139
|
height?: string;
|
|
1138
1140
|
className?: string;
|
|
1139
1141
|
allowClear?: boolean;
|
|
1142
|
+
title?: string;
|
|
1140
1143
|
triggerBackgroundColor?: Color;
|
|
1141
1144
|
triggerHighlightColor?: Color;
|
|
1142
1145
|
menuBackgroundColor?: Color;
|
|
@@ -1153,6 +1156,8 @@ declare type Option_2 = {
|
|
|
1153
1156
|
value: string | number;
|
|
1154
1157
|
};
|
|
1155
1158
|
|
|
1159
|
+
declare type OverridableAntdProps = Omit<TableProps_2<any>, "size" | "title" | "footer">;
|
|
1160
|
+
|
|
1156
1161
|
export declare const Pagination: ({ totalPages, currentPage, onPageChange, onNext, onPrev, color, size, width, showPages, showArrows, className, }: PaginationProps) => JSX_2.Element;
|
|
1157
1162
|
|
|
1158
1163
|
export declare type PaginationProps = {
|
|
@@ -1201,6 +1206,25 @@ export declare type PostRequestPromptBody = {
|
|
|
1201
1206
|
modelMaxResults: number;
|
|
1202
1207
|
};
|
|
1203
1208
|
|
|
1209
|
+
export declare const Refresh: default_2.FC<RefreshProps>;
|
|
1210
|
+
|
|
1211
|
+
export declare type RefreshIntervalOption = {
|
|
1212
|
+
label: string;
|
|
1213
|
+
value: number;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
export declare type RefreshProps = {
|
|
1217
|
+
intervals?: RefreshIntervalOption[];
|
|
1218
|
+
onRefresh: () => void;
|
|
1219
|
+
backgroundColor?: Color;
|
|
1220
|
+
borderColor?: Color;
|
|
1221
|
+
size?: "s" | "m" | "l";
|
|
1222
|
+
selectWidth?: CSSstring;
|
|
1223
|
+
buttonWidth?: CSSstring;
|
|
1224
|
+
loading?: boolean;
|
|
1225
|
+
disabled?: boolean;
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1204
1228
|
export declare const Select: React.FC<SelectProps>;
|
|
1205
1229
|
|
|
1206
1230
|
export declare type SelectProps = {
|
|
@@ -1222,6 +1246,7 @@ export declare type SelectProps = {
|
|
|
1222
1246
|
height?: string;
|
|
1223
1247
|
id?: string;
|
|
1224
1248
|
suffixIcon?: ReactNode | boolean;
|
|
1249
|
+
title?: string;
|
|
1225
1250
|
};
|
|
1226
1251
|
|
|
1227
1252
|
declare function shiftPolygon(polygon: any): any;
|
|
@@ -1331,12 +1356,21 @@ export declare type SwitchProps = {
|
|
|
1331
1356
|
|
|
1332
1357
|
export declare const Table: default_2.FC<TableProps>;
|
|
1333
1358
|
|
|
1334
|
-
export declare type TableProps =
|
|
1359
|
+
export declare type TableProps = {
|
|
1335
1360
|
headerBackgroundColor?: Color;
|
|
1336
1361
|
bodyBackgroundColor?: Color;
|
|
1337
1362
|
titleBackgroundColor?: Color;
|
|
1338
1363
|
footerBackgroundColor?: Color;
|
|
1339
|
-
|
|
1364
|
+
title?: React.ReactNode;
|
|
1365
|
+
footer?: React.ReactNode;
|
|
1366
|
+
containerClassName?: string;
|
|
1367
|
+
className?: string;
|
|
1368
|
+
width?: CSSstring;
|
|
1369
|
+
height?: CSSstring;
|
|
1370
|
+
size?: TableSize;
|
|
1371
|
+
} & OverridableAntdProps;
|
|
1372
|
+
|
|
1373
|
+
declare type TableSize = "xs" | "s" | "m" | "l" | "xl";
|
|
1340
1374
|
|
|
1341
1375
|
export declare type TCoordinateType = {
|
|
1342
1376
|
x: number;
|
|
@@ -1400,6 +1434,12 @@ export declare function usePagination(initialPage?: number, initialTotalPages?:
|
|
|
1400
1434
|
setTotalPages: Dispatch<SetStateAction<number>>;
|
|
1401
1435
|
};
|
|
1402
1436
|
|
|
1437
|
+
export declare const useResize: () => {
|
|
1438
|
+
width: number;
|
|
1439
|
+
height: number;
|
|
1440
|
+
containerRef: RefObject<HTMLDivElement>;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1403
1443
|
export declare type userLevel = "awi_root" | "awi_admin" | "awi_manager" | "awi_developer" | "awi_supervisor" | "awi_verifier" | "awi_annotator";
|
|
1404
1444
|
|
|
1405
1445
|
export declare const useTheme: () => Record<string, string>;
|