UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

20 lines (17 loc) 719 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropertyBaseProps } from './PropertyBase.mjs'; import 'react'; import '../../localization/useTranslation.mjs'; import '../../localization/util.mjs'; import '../../localization/defaults/form.mjs'; type DatePropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue'> & { value?: Date; onChange?: (date: Date) => void; onEditComplete?: (value: Date) => void; type?: 'dateTime' | 'date'; }; /** * An Input for date properties */ declare const DateProperty: ({ value, onChange, onEditComplete, readOnly, type, ...baseProps }: DatePropertyProps) => react_jsx_runtime.JSX.Element; export { DateProperty, type DatePropertyProps };