@stenajs-webui/calendar 21.1.0 → 21.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,5 +16,6 @@ export interface TravelDateCalendarProps extends ValueAndOnValueChangeProps<stri
16
16
  dateTestId?: (date: Date) => string | undefined;
17
17
  previousMonthButtonTestId?: string;
18
18
  nextMonthButtonTestId?: string;
19
+ placeholderWhenBlurred?: string;
19
20
  }
20
21
  export declare const TravelDateCalendar: React.FC<TravelDateCalendarProps>;
@@ -18,5 +18,7 @@ export interface TravelDateRangeCalendarProps extends ValueAndOnValueChangeProps
18
18
  dateTestId?: (date: Date) => string | undefined;
19
19
  previousMonthButtonTestId?: string;
20
20
  nextMonthButtonTestId?: string;
21
+ placeholderWhenBlurredStartDate?: string;
22
+ placeholderWhenBlurredEndDate?: string;
21
23
  }
22
24
  export declare const TravelDateRangeCalendar: React.FC<TravelDateRangeCalendarProps>;
@@ -24,5 +24,6 @@ export interface TravelDateInputProps extends ValueAndOnValueChangeProps<string>
24
24
  dateTestId?: (date: Date) => string | undefined;
25
25
  previousMonthButtonTestId?: string;
26
26
  nextMonthButtonTestId?: string;
27
+ placeholderWhenBlurred?: string;
27
28
  }
28
29
  export declare const TravelDateInput: React.FC<TravelDateInputProps>;
@@ -26,5 +26,7 @@ export interface TravelDateRangeInputProps extends ValueAndOnValueChangeProps<Tr
26
26
  dateTestId?: (date: Date) => string | undefined;
27
27
  previousMonthButtonTestId?: string;
28
28
  nextMonthButtonTestId?: string;
29
+ placeholderWhenBlurredStartDate?: string;
30
+ placeholderWhenBlurredEndDate?: string;
29
31
  }
30
32
  export declare const TravelDateRangeInput: React.FC<TravelDateRangeInputProps>;
@@ -7,5 +7,7 @@ export interface TravelDateSingleTextInputFieldProps {
7
7
  label?: string;
8
8
  onFocus?: () => void;
9
9
  calendarSize: TravelCalendarSizeVariant;
10
+ placeholderWhenBlurred: string | undefined;
11
+ valueWhenBlurred: string | undefined;
10
12
  }
11
13
  export declare const TravelDateSingleTextInputField: React.FC<TravelDateSingleTextInputFieldProps>;
@@ -10,5 +10,7 @@ export interface TravelDateTextInputProps extends LabelledTextInputProps {
10
10
  placeholderChar?: string;
11
11
  showMask?: boolean;
12
12
  calendarSize: TravelCalendarSizeVariant;
13
+ placeholderWhenBlurred: string | undefined;
14
+ valueWhenBlurred: string | undefined;
13
15
  }
14
16
  export declare const TravelDateTextInput: React.FC<TravelDateTextInputProps>;
@@ -9,5 +9,9 @@ export interface TravelDateTextInputFieldsProps {
9
9
  endDateLabel?: string;
10
10
  onFocus?: () => void;
11
11
  calendarSize: TravelCalendarSizeVariant;
12
+ placeholderWhenBlurredStartDate: string | undefined;
13
+ placeholderWhenBlurredEndDate: string | undefined;
14
+ valueWhenBlurredStartDate: string | undefined;
15
+ valueWhenBlurredEndDate: string | undefined;
12
16
  }
13
17
  export declare const TravelDateTextInputFields: React.FC<TravelDateTextInputFieldsProps>;
@@ -18,4 +18,5 @@ export declare const useTravelDateInput: (value: string | undefined, onValueChan
18
18
  selectedDate: Date | undefined;
19
19
  today: Date;
20
20
  visibleMonth: Date;
21
+ valueWhenBlurred: string | undefined;
21
22
  };
@@ -20,4 +20,6 @@ export declare const useTravelDateRangeInput: (value: TravelDateRangeInputValue
20
20
  selectedEndDate: Date | undefined;
21
21
  today: Date;
22
22
  visibleMonth: Date;
23
+ valueWhenBlurredStartDate: string | undefined;
24
+ valueWhenBlurredEndDate: string | undefined;
23
25
  };
@@ -0,0 +1,3 @@
1
+ import { Locale } from "date-fns";
2
+ export declare const formatDateDescription: (date: Date, today: Date, locale: Locale) => string;
3
+ export declare const formatDateDescriptionLong: (date: Date, today: Date, locale: Locale) => string;