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.

28 lines (27 loc) 1.05 kB
import { FormColorTypes, FormRoundedTypes, FormSizeTypes } from '../../../types/form-types'; import * as React from "react"; declare const SUPPORTED_LOCALES: readonly ["id", "en"]; type PickerLocale = (typeof SUPPORTED_LOCALES)[number]; export interface DatePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "size"> { value: Date | null; onChange: (date: Date | null) => void; label?: string; placeholder?: string; size?: FormSizeTypes | undefined; rounded?: FormRoundedTypes | undefined; color?: FormColorTypes | undefined; iconStart?: React.ReactNode; iconEnd?: React.ReactNode; required?: boolean; showRequired?: boolean; disabled?: boolean; helperText?: string; error?: boolean; minDate?: Date | null; maxDate?: Date | null; id?: string; className?: string; locale?: PickerLocale; } declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>; export default DatePicker;