@ambuj.bhaskar/react-component-library 0.21.2-alpha → 0.21.4-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 +118 -118
- package/dist/index.d.ts +20 -2
- package/dist/index.js +7689 -7657
- package/dist/index.umd.js +111 -111
- 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';
|
|
@@ -1153,6 +1154,8 @@ declare type Option_2 = {
|
|
|
1153
1154
|
value: string | number;
|
|
1154
1155
|
};
|
|
1155
1156
|
|
|
1157
|
+
declare type OverridableAntdProps = Omit<TableProps_2<any>, "size" | "title" | "footer">;
|
|
1158
|
+
|
|
1156
1159
|
export declare const Pagination: ({ totalPages, currentPage, onPageChange, onNext, onPrev, color, size, width, showPages, showArrows, className, }: PaginationProps) => JSX_2.Element;
|
|
1157
1160
|
|
|
1158
1161
|
export declare type PaginationProps = {
|
|
@@ -1331,12 +1334,21 @@ export declare type SwitchProps = {
|
|
|
1331
1334
|
|
|
1332
1335
|
export declare const Table: default_2.FC<TableProps>;
|
|
1333
1336
|
|
|
1334
|
-
export declare type TableProps =
|
|
1337
|
+
export declare type TableProps = {
|
|
1335
1338
|
headerBackgroundColor?: Color;
|
|
1336
1339
|
bodyBackgroundColor?: Color;
|
|
1337
1340
|
titleBackgroundColor?: Color;
|
|
1338
1341
|
footerBackgroundColor?: Color;
|
|
1339
|
-
|
|
1342
|
+
title?: React.ReactNode;
|
|
1343
|
+
footer?: React.ReactNode;
|
|
1344
|
+
containerClassName?: string;
|
|
1345
|
+
className?: string;
|
|
1346
|
+
width?: CSSstring;
|
|
1347
|
+
height?: CSSstring;
|
|
1348
|
+
size?: TableSize;
|
|
1349
|
+
} & OverridableAntdProps;
|
|
1350
|
+
|
|
1351
|
+
declare type TableSize = "xs" | "s" | "m" | "l" | "xl";
|
|
1340
1352
|
|
|
1341
1353
|
export declare type TCoordinateType = {
|
|
1342
1354
|
x: number;
|
|
@@ -1400,6 +1412,12 @@ export declare function usePagination(initialPage?: number, initialTotalPages?:
|
|
|
1400
1412
|
setTotalPages: Dispatch<SetStateAction<number>>;
|
|
1401
1413
|
};
|
|
1402
1414
|
|
|
1415
|
+
export declare const useResize: () => {
|
|
1416
|
+
width: number;
|
|
1417
|
+
height: number;
|
|
1418
|
+
containerRef: RefObject<HTMLDivElement>;
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1403
1421
|
export declare type userLevel = "awi_root" | "awi_admin" | "awi_manager" | "awi_developer" | "awi_supervisor" | "awi_verifier" | "awi_annotator";
|
|
1404
1422
|
|
|
1405
1423
|
export declare const useTheme: () => Record<string, string>;
|