@stenajs-webui/calendar 21.2.0 → 21.4.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.
@@ -8,5 +8,6 @@ export interface TravelDateSingleTextInputFieldProps {
8
8
  onFocus?: () => void;
9
9
  calendarSize: TravelCalendarSizeVariant;
10
10
  placeholderWhenBlurred: string | undefined;
11
+ valueWhenBlurred: string | undefined;
11
12
  }
12
13
  export declare const TravelDateSingleTextInputField: React.FC<TravelDateSingleTextInputFieldProps>;
@@ -11,5 +11,6 @@ export interface TravelDateTextInputProps extends LabelledTextInputProps {
11
11
  showMask?: boolean;
12
12
  calendarSize: TravelCalendarSizeVariant;
13
13
  placeholderWhenBlurred: string | undefined;
14
+ valueWhenBlurred: string | undefined;
14
15
  }
15
16
  export declare const TravelDateTextInput: React.FC<TravelDateTextInputProps>;
@@ -11,5 +11,7 @@ export interface TravelDateTextInputFieldsProps {
11
11
  calendarSize: TravelCalendarSizeVariant;
12
12
  placeholderWhenBlurredStartDate: string | undefined;
13
13
  placeholderWhenBlurredEndDate: string | undefined;
14
+ valueWhenBlurredStartDate: string | undefined;
15
+ valueWhenBlurredEndDate: string | undefined;
14
16
  }
15
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;