@ambuj.bhaskar/react-component-library 0.14.0-alpha → 0.16.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 +222 -99
- package/dist/index.d.ts +33 -0
- package/dist/index.js +33950 -19778
- package/dist/index.umd.js +221 -98
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
|
+
import { Dispatch } from 'react';
|
|
3
4
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
5
|
import * as React_2 from 'react';
|
|
5
6
|
import { ReactNode } from 'react';
|
|
7
|
+
import { SetStateAction } from 'react';
|
|
8
|
+
import { TableProps as TableProps_2 } from 'antd';
|
|
6
9
|
import { TimeRangePickerProps } from 'antd';
|
|
7
10
|
|
|
8
11
|
export declare const Badge: React.FC<BadgeProps>;
|
|
@@ -253,6 +256,18 @@ declare type Option_2 = {
|
|
|
253
256
|
value: string | number;
|
|
254
257
|
};
|
|
255
258
|
|
|
259
|
+
export declare const Pagination: ({ totalPages, currentPage, onPageChange, onNext, onPrev, color, size, }: PaginationProps) => JSX_2.Element;
|
|
260
|
+
|
|
261
|
+
export declare type PaginationProps = {
|
|
262
|
+
totalPages: number;
|
|
263
|
+
currentPage: number;
|
|
264
|
+
onPageChange: (page: number) => void;
|
|
265
|
+
onNext: () => void;
|
|
266
|
+
onPrev: () => void;
|
|
267
|
+
color?: Color;
|
|
268
|
+
size?: "s" | "m" | "l";
|
|
269
|
+
};
|
|
270
|
+
|
|
256
271
|
export declare const Select: React.FC<SelectProps>;
|
|
257
272
|
|
|
258
273
|
export declare type SelectProps = {
|
|
@@ -374,6 +389,15 @@ export declare type SwitchProps = {
|
|
|
374
389
|
disabledBackgroundColor?: Color;
|
|
375
390
|
};
|
|
376
391
|
|
|
392
|
+
export declare const Table: default_2.FC<TableProps>;
|
|
393
|
+
|
|
394
|
+
export declare type TableProps = TableProps_2 & {
|
|
395
|
+
headerBackgroundColor?: Color;
|
|
396
|
+
bodyBackgroundColor?: Color;
|
|
397
|
+
titleBackgroundColor?: Color;
|
|
398
|
+
footerBackgroundColor?: Color;
|
|
399
|
+
};
|
|
400
|
+
|
|
377
401
|
declare type TextSize = "xs" | "s" | "m" | "l" | "xl";
|
|
378
402
|
|
|
379
403
|
export declare type ThemeObject = {
|
|
@@ -413,6 +437,15 @@ declare type ToastProps = {
|
|
|
413
437
|
|
|
414
438
|
declare type ToastType = "success" | "error" | "info" | "warning";
|
|
415
439
|
|
|
440
|
+
export declare function usePagination(initialPage?: number): {
|
|
441
|
+
currentPage: number;
|
|
442
|
+
setPage: (newPage: number) => void;
|
|
443
|
+
nextPage: () => void;
|
|
444
|
+
prevPage: () => void;
|
|
445
|
+
totalPages: number;
|
|
446
|
+
setTotalPages: Dispatch<SetStateAction<number>>;
|
|
447
|
+
};
|
|
448
|
+
|
|
416
449
|
export declare const useTheme: () => Record<string, string>;
|
|
417
450
|
|
|
418
451
|
export declare const useToast: () => {
|