UNPKG

rms-react

Version:

Библиотека React компонентов разработанная по дизайн системе РМ Солюшн

15 lines 914 B
import { HTMLAttributes } from 'react'; export type workingHours = '09:00' | '10:00' | '11:00' | '12:00' | '13:00' | '14:00' | '15:00' | '16:00' | '17:00' | '18:00' | '19:00' | '20:00'; export type halfHourPeriods = '09:00-09:30' | '09:30-10:00' | '10:00-10:30' | '10:30-11:00' | '11:00-11:30' | '11:30-12:00' | '12:00-12:30' | '12:30-13:00' | '13:00-13:30' | '13:30-14:00' | '14:00-14:30' | '14:30-15:00' | '15:00-15:30' | '15:30-16:00'; export interface TimeSelectionFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onTimeChange' | 'disabled'> { placeholder: string; title?: string; selectedTime: string; disabled?: boolean; availableHours?: workingHours[]; availablePeriods?: halfHourPeriods[]; timeFormat: 'period' | 'hour'; listAppearance: 'one-column' | 'two-columns'; onTimeChange: (value: string) => void; } //# sourceMappingURL=TimeSelectionField.props.d.ts.map