From 6bfc5ba9e60f71640aaf8aeed587abf32d499b8b Mon Sep 17 00:00:00 2001 From: Hendrik de Graaf Date: Wed, 20 May 2026 12:03:26 +0200 Subject: [PATCH] fix: add missing fields to CalendarInputProps type --- components/calendar/types/index.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/components/calendar/types/index.d.ts b/components/calendar/types/index.d.ts index 1ba2bc42e..9fc7c65d7 100644 --- a/components/calendar/types/index.d.ts +++ b/components/calendar/types/index.d.ts @@ -41,6 +41,10 @@ export interface CalendarProps { * numbering system to use - full list here https://github.com/dhis2/multi-calendar-dates/blob/main/src/constants/numberingSystems.ts */ numberingSystem?: CalendarPickerOptions['numberingSystem'] + /** + * When true, only shows years in the past (current year and earlier) + */ + pastOnly?: boolean /** * the timeZone to use */ @@ -64,6 +68,18 @@ export type CalendarInputProps = Omit & * or processed. If not provided it supports both formats */ format?: 'YYYY-MM-DD' | 'DD-MM-YYYY' + /** + * The maximum selectable date + */ + maxDate?: string + /** + * The minimum selectable date + */ + minDate?: string + /** + * Whether to use strict validation by showing errors for out-of-range dates when enabled (default), and warnings when disabled + */ + strictValidation?: boolean } export const CalendarInput: React.FC