From c310fbc6279406df16bd196f28b95922f1d80b7c Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Wed, 28 Aug 2024 16:51:31 +0200 Subject: [PATCH] fix(calendar): fix minor type issues --- components/calendar/types/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/calendar/types/index.d.ts b/components/calendar/types/index.d.ts index bc632cddd..6e0dc3a33 100644 --- a/components/calendar/types/index.d.ts +++ b/components/calendar/types/index.d.ts @@ -20,6 +20,11 @@ export interface CalendarProps { * the size of a single cell in the table forming the calendar */ cellSize?: string + + /** + * Add a "clear" button to delete the selected date + */ + clearable?: boolean /** * the currently selected date using an iso-like format YYYY-MM-DD, in the calendar system provided (not iso8601) */ @@ -53,8 +58,7 @@ export interface CalendarProps { export const Calendar: React.FC export type CalendarInputProps = Omit< - InputFieldProps, - 'label' | 'type' | 'value' + InputFieldProps, 'type' | 'value' > & CalendarProps