@ambuj.bhaskar/react-component-library 0.8.0 → 0.8.1

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/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { default as default_2 } from 'react';
3
3
  import { JSX as JSX_2 } from 'react/jsx-runtime';
4
4
  import * as React_2 from 'react';
5
5
  import { ReactNode } from 'react';
6
+ import { TimeRangePickerProps } from 'antd';
6
7
 
7
8
  /**
8
9
  * The Button component.
@@ -97,6 +98,26 @@ declare type CustomOption = {
97
98
  value: any;
98
99
  };
99
100
 
101
+ export declare const DateRangePicker: default_2.FC<DateRangePickerProps>;
102
+
103
+ declare type DateRangePickerProps = {
104
+ value?: Date[];
105
+ onChange?: (value: Date[]) => void;
106
+ className?: string;
107
+ showTime?: boolean;
108
+ format?: DateTimeFormat;
109
+ presetRanges?: TimeRangePickerProps["presets"];
110
+ width?: CSSstring;
111
+ triggerBorderColor?: Color;
112
+ triggerBackgroundColor?: Color;
113
+ pickerHighlightColor?: Color;
114
+ pickerRangeColor?: Color;
115
+ pickerBackgroundColor?: Color;
116
+ pickerBorderColor?: Color;
117
+ };
118
+
119
+ declare type DateTimeFormat = string;
120
+
100
121
  declare type HTMLButtonProps = ComponentProps<"button">;
101
122
 
102
123
  declare type HTMLInputProps = ComponentProps<"input">;
@@ -161,6 +182,15 @@ declare type InputProps = HTMLInputProps & {
161
182
 
162
183
  declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-end" | "left" | "right" | "baseline" | "first baseline" | "last baseline" | "space-between" | "space-around" | "space-evenly" | "stretch";
163
184
 
185
+ export declare const Modal: default_2.FC<ModalProps>;
186
+
187
+ declare type ModalProps = {
188
+ visible: boolean;
189
+ onClose: () => void;
190
+ showCloseButton?: boolean;
191
+ children: React.ReactNode;
192
+ };
193
+
164
194
  /**
165
195
  * A multiselect component.
166
196
  *