rc-picker
Advanced tools
Comparing version 4.0.0-alpha.4 to 4.0.0-alpha.5
@@ -29,8 +29,8 @@ /** | ||
*/ | ||
import type { PickerRef } from './interface'; | ||
import type { PickerRef, SharedTimeProps } from './interface'; | ||
import RangePicker, { type RangePickerProps } from './PickerInput/RangePicker'; | ||
import Picker, { type PickerProps } from './PickerInput/SinglePicker'; | ||
import PickerPanel, { type PickerPanelProps } from './PickerPanel'; | ||
import Picker, { type BasePickerProps, type PickerProps } from './PickerInput/SinglePicker'; | ||
import PickerPanel, { type BasePickerPanelProps, type PickerPanelProps } from './PickerPanel'; | ||
export { Picker, RangePicker, PickerPanel }; | ||
export type { RangePickerProps, PickerProps, PickerPanelProps, PickerRef }; | ||
export type { RangePickerProps, PickerProps, PickerPanelProps, PickerRef, BasePickerProps, BasePickerPanelProps, SharedTimeProps, }; | ||
export default Picker; |
@@ -5,3 +5,3 @@ import * as React from 'react'; | ||
export type RangeValueType<DateType> = [start?: DateType, end?: DateType]; | ||
export interface RangePickerProps<DateType extends object> extends Omit<SharedPickerProps<DateType>, 'showTime' | 'id'>, Omit<RangeTimeProps<DateType>, 'format' | 'defaultValue'> { | ||
export interface BaseRangePickerProps<DateType extends object> extends Omit<SharedPickerProps<DateType>, 'showTime' | 'id'> { | ||
id?: SelectorIdType; | ||
@@ -46,3 +46,5 @@ value?: RangeValueType<DateType>; | ||
} | ||
export interface RangePickerProps<DateType extends object> extends BaseRangePickerProps<DateType>, Omit<RangeTimeProps<DateType>, 'format' | 'defaultValue'> { | ||
} | ||
declare const RefRangePicker: <DateType extends object = any>(props: RangePickerProps<DateType> & React.RefAttributes<PickerRef>) => React.ReactElement; | ||
export default RefRangePicker; |
import * as React from 'react'; | ||
import type { BaseInfo, PanelMode, PickerRef, SharedPickerProps, SharedTimeProps, ValueDate } from '../interface'; | ||
export interface PickerProps<DateType extends object = any> extends SharedPickerProps<DateType>, Omit<SharedTimeProps<DateType>, 'format' | 'defaultValue'> { | ||
export interface BasePickerProps<DateType extends object = any> extends SharedPickerProps<DateType> { | ||
id?: string; | ||
@@ -42,2 +42,4 @@ /** Not support `time` or `datetime` picker */ | ||
} | ||
export interface PickerProps<DateType extends object = any> extends BasePickerProps<DateType>, Omit<SharedTimeProps<DateType>, 'format' | 'defaultValue'> { | ||
} | ||
/** Internal usage. For cross function get same aligned props */ | ||
@@ -44,0 +46,0 @@ export type ReplacedPickerProps<DateType extends object = any> = { |
@@ -29,8 +29,8 @@ /** | ||
*/ | ||
import type { PickerRef } from './interface'; | ||
import type { PickerRef, SharedTimeProps } from './interface'; | ||
import RangePicker, { type RangePickerProps } from './PickerInput/RangePicker'; | ||
import Picker, { type PickerProps } from './PickerInput/SinglePicker'; | ||
import PickerPanel, { type PickerPanelProps } from './PickerPanel'; | ||
import Picker, { type BasePickerProps, type PickerProps } from './PickerInput/SinglePicker'; | ||
import PickerPanel, { type BasePickerPanelProps, type PickerPanelProps } from './PickerPanel'; | ||
export { Picker, RangePicker, PickerPanel }; | ||
export type { RangePickerProps, PickerProps, PickerPanelProps, PickerRef }; | ||
export type { RangePickerProps, PickerProps, PickerPanelProps, PickerRef, BasePickerProps, BasePickerPanelProps, SharedTimeProps, }; | ||
export default Picker; |
@@ -5,3 +5,3 @@ import * as React from 'react'; | ||
export type RangeValueType<DateType> = [start?: DateType, end?: DateType]; | ||
export interface RangePickerProps<DateType extends object> extends Omit<SharedPickerProps<DateType>, 'showTime' | 'id'>, Omit<RangeTimeProps<DateType>, 'format' | 'defaultValue'> { | ||
export interface BaseRangePickerProps<DateType extends object> extends Omit<SharedPickerProps<DateType>, 'showTime' | 'id'> { | ||
id?: SelectorIdType; | ||
@@ -46,3 +46,5 @@ value?: RangeValueType<DateType>; | ||
} | ||
export interface RangePickerProps<DateType extends object> extends BaseRangePickerProps<DateType>, Omit<RangeTimeProps<DateType>, 'format' | 'defaultValue'> { | ||
} | ||
declare const RefRangePicker: <DateType extends object = any>(props: RangePickerProps<DateType> & React.RefAttributes<PickerRef>) => React.ReactElement; | ||
export default RefRangePicker; |
import * as React from 'react'; | ||
import type { BaseInfo, PanelMode, PickerRef, SharedPickerProps, SharedTimeProps, ValueDate } from '../interface'; | ||
export interface PickerProps<DateType extends object = any> extends SharedPickerProps<DateType>, Omit<SharedTimeProps<DateType>, 'format' | 'defaultValue'> { | ||
export interface BasePickerProps<DateType extends object = any> extends SharedPickerProps<DateType> { | ||
id?: string; | ||
@@ -42,2 +42,4 @@ /** Not support `time` or `datetime` picker */ | ||
} | ||
export interface PickerProps<DateType extends object = any> extends BasePickerProps<DateType>, Omit<SharedTimeProps<DateType>, 'format' | 'defaultValue'> { | ||
} | ||
/** Internal usage. For cross function get same aligned props */ | ||
@@ -44,0 +46,0 @@ export type ReplacedPickerProps<DateType extends object = any> = { |
{ | ||
"name": "rc-picker", | ||
"version": "4.0.0-alpha.4", | ||
"version": "4.0.0-alpha.5", | ||
"description": "React date & time picker", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
862187
20938