@ambuj.bhaskar/react-component-library 0.11.8-alpha → 0.12.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 +81 -81
- package/dist/index.d.ts +23 -2
- package/dist/index.js +13280 -12043
- package/dist/index.umd.js +84 -84
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { Dayjs } from 'dayjs';
|
|
3
2
|
import { default as default_2 } from 'react';
|
|
4
3
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
4
|
import * as React_2 from 'react';
|
|
@@ -105,7 +104,7 @@ declare type CustomOption = {
|
|
|
105
104
|
value: any;
|
|
106
105
|
};
|
|
107
106
|
|
|
108
|
-
declare type DateCompare = (() => boolean) | ((current:
|
|
107
|
+
declare type DateCompare = (() => boolean) | ((current: any) => boolean);
|
|
109
108
|
|
|
110
109
|
export declare const DateRangePicker: default_2.FC<DateRangePickerProps>;
|
|
111
110
|
|
|
@@ -117,6 +116,7 @@ export declare type DateRangePickerProps = {
|
|
|
117
116
|
format?: DateTimeFormat;
|
|
118
117
|
presetRanges?: TimeRangePickerProps["presets"];
|
|
119
118
|
width?: CSSstring;
|
|
119
|
+
height?: "s" | "m" | "l";
|
|
120
120
|
triggerBorderColor?: Color;
|
|
121
121
|
triggerBackgroundColor?: Color;
|
|
122
122
|
pickerHighlightColor?: Color;
|
|
@@ -387,6 +387,27 @@ export declare type ThemeSection = {
|
|
|
387
387
|
[key: string]: string | ThemeSection;
|
|
388
388
|
};
|
|
389
389
|
|
|
390
|
+
export declare const Toast: default_2.FC<ToastProps>;
|
|
391
|
+
|
|
392
|
+
declare type ToastProps = {
|
|
393
|
+
title?: string;
|
|
394
|
+
body?: string;
|
|
395
|
+
type?: ToastType;
|
|
396
|
+
icon?: string;
|
|
397
|
+
className?: string;
|
|
398
|
+
style?: React.CSSProperties;
|
|
399
|
+
onClose?: () => void;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
declare type ToastType = "success" | "error" | "info" | "warning";
|
|
403
|
+
|
|
390
404
|
export declare const useTheme: () => Record<string, string>;
|
|
391
405
|
|
|
406
|
+
export declare const useToast: () => {
|
|
407
|
+
success: (msg: string, body?: string) => void;
|
|
408
|
+
error: (msg: string, body?: string) => void;
|
|
409
|
+
info: (msg: string, body?: string) => void;
|
|
410
|
+
warning: (msg: string, body?: string) => void;
|
|
411
|
+
};
|
|
412
|
+
|
|
392
413
|
export { }
|