diff --git a/src/generate/index.ts b/src/generate/index.ts index 88b6318f1..1f0ba84ba 100644 --- a/src/generate/index.ts +++ b/src/generate/index.ts @@ -44,3 +44,8 @@ export type GenerateConfig = { getShortMonths?: (locale: string) => string[]; }; }; + +export { default as dateFnsGenerateConfig } from './dateFns'; +export { default as dayjsGenerateConfig } from './dayjs'; +export { default as luxonGenerateConfig } from './luxon'; +export { default as momentGenerateConfig } from './moment'; diff --git a/src/index.tsx b/src/index.tsx index 68b81a4a1..5590c293b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -31,15 +31,25 @@ import type { PickerRef, SharedTimeProps } from './interface'; import RangePicker, { type RangePickerProps } from './PickerInput/RangePicker'; import Picker, { type BasePickerProps, type PickerProps } from './PickerInput/SinglePicker'; import PickerPanel, { type BasePickerPanelProps, type PickerPanelProps } from './PickerPanel'; +import { dateFnsGenerateConfig, dayjsGenerateConfig, luxonGenerateConfig, momentGenerateConfig, type GenerateConfig } from './generate'; -export { Picker, RangePicker, PickerPanel }; +export { + dateFnsGenerateConfig, + dayjsGenerateConfig, + luxonGenerateConfig, + momentGenerateConfig, + Picker, + PickerPanel, + RangePicker, +}; export type { - RangePickerProps, - PickerProps, + BasePickerPanelProps, + BasePickerProps, + GenerateConfig, PickerPanelProps, + PickerProps, PickerRef, - BasePickerProps, - BasePickerPanelProps, + RangePickerProps, SharedTimeProps, }; export default Picker;