UNPKG

ds-smart-ui

Version:

Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.

37 lines (36 loc) 1.32 kB
import { InputHTMLAttributes, ReactNode } from 'react'; import { FormColorTypes, FormRoundedTypes, FormSizeTypes } from '../../../types/form-types'; declare const SUPPORTED_LOCALES: readonly ["id", "en"]; type PickerLocale = (typeof SUPPORTED_LOCALES)[number]; interface PresetRange { label: string; start: Date; end: Date; } export interface DateRangePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> { startDate: Date | null; endDate: Date | null; onChange: (startDate: Date | null, endDate: Date | null) => void; label?: string; placeholder?: string; size?: FormSizeTypes | undefined; rounded?: FormRoundedTypes | undefined; color?: FormColorTypes | undefined; iconStart?: ReactNode; iconEnd?: ReactNode; required?: boolean; showRequired?: boolean; disabled?: boolean; helperText?: string; error?: boolean; minDate?: Date | null; maxDate?: Date | null; showDoubleCalendar?: boolean; showPresets?: boolean; customPresets?: PresetRange[] | null; id?: string; className?: string; locale?: PickerLocale; } declare const DateRangePicker: import('react').ForwardRefExoticComponent<DateRangePickerProps & import('react').RefAttributes<HTMLInputElement>>; export default DateRangePicker;