@stenajs-webui/calendar 21.6.0 → 21.7.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.
- package/dist/components/calendar-types/travel-date-calendar/TravelDateCalendar.d.ts +2 -0
- package/dist/components/calendar-types/travel-date-range-calendar/TravelDateRangeCalendar.d.ts +2 -1
- package/dist/components/input-types/travel-date-input/TravelDateInput.d.ts +2 -0
- package/dist/components/input-types/travel-date-range-input/TravelDateRangeInput.d.ts +2 -1
- package/dist/features/travel-calendar/components/{TravelDateTextInputFields.d.ts → TravelDateRangeTextInputFields.d.ts} +4 -3
- package/dist/features/travel-calendar/components/TravelDateTextInput.d.ts +3 -1
- package/dist/features/travel-calendar/components/{TravelDateSingleTextInputField.d.ts → TravelDateTextInputField.d.ts} +4 -2
- package/dist/features/travel-calendar/types.d.ts +1 -0
- package/dist/index.es.js +1236 -1206
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -2,6 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { HeadingVariant } from "@stenajs-webui/core";
|
|
3
3
|
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
4
4
|
import { TravelCalendarSizeVariant } from "../../../features/travel-calendar/components/TravelCalendar";
|
|
5
|
+
import { DateTextInputVariant } from "../../../features/travel-calendar/types";
|
|
5
6
|
export interface TravelDateCalendarProps extends ValueAndOnValueChangeProps<string> {
|
|
6
7
|
localeCode?: string;
|
|
7
8
|
initialMonthInFocus?: Date;
|
|
@@ -17,5 +18,6 @@ export interface TravelDateCalendarProps extends ValueAndOnValueChangeProps<stri
|
|
|
17
18
|
previousMonthButtonTestId?: string;
|
|
18
19
|
nextMonthButtonTestId?: string;
|
|
19
20
|
placeholderWhenBlurred?: string;
|
|
21
|
+
textInputVariant?: DateTextInputVariant;
|
|
20
22
|
}
|
|
21
23
|
export declare const TravelDateCalendar: React.FC<TravelDateCalendarProps>;
|
package/dist/components/calendar-types/travel-date-range-calendar/TravelDateRangeCalendar.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { HeadingVariant } from "@stenajs-webui/core";
|
|
3
3
|
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
4
4
|
import { TravelCalendarSizeVariant } from "../../../features/travel-calendar/components/TravelCalendar";
|
|
5
|
-
import { TravelDateRangeInputValue } from "../../../features/travel-calendar/types";
|
|
5
|
+
import { DateTextInputVariant, TravelDateRangeInputValue } from "../../../features/travel-calendar/types";
|
|
6
6
|
export interface TravelDateRangeCalendarProps extends ValueAndOnValueChangeProps<TravelDateRangeInputValue> {
|
|
7
7
|
localeCode?: string;
|
|
8
8
|
initialMonthInFocus?: Date;
|
|
@@ -20,5 +20,6 @@ export interface TravelDateRangeCalendarProps extends ValueAndOnValueChangeProps
|
|
|
20
20
|
nextMonthButtonTestId?: string;
|
|
21
21
|
placeholderWhenBlurredStartDate?: string;
|
|
22
22
|
placeholderWhenBlurredEndDate?: string;
|
|
23
|
+
textInputVariant?: DateTextInputVariant;
|
|
23
24
|
}
|
|
24
25
|
export declare const TravelDateRangeCalendar: React.FC<TravelDateRangeCalendarProps>;
|
|
@@ -3,6 +3,7 @@ import { ReactNode } from "react";
|
|
|
3
3
|
import { HeadingVariant } from "@stenajs-webui/core";
|
|
4
4
|
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
5
5
|
import { TravelCalendarSizeVariant } from "../../../features/travel-calendar/components/TravelCalendar";
|
|
6
|
+
import { DateTextInputVariant } from "../../../features/travel-calendar/types";
|
|
6
7
|
export interface RenderBelowSingleDateCalendarArgs {
|
|
7
8
|
hideCalendar: () => void;
|
|
8
9
|
}
|
|
@@ -25,5 +26,6 @@ export interface TravelDateInputProps extends ValueAndOnValueChangeProps<string>
|
|
|
25
26
|
previousMonthButtonTestId?: string;
|
|
26
27
|
nextMonthButtonTestId?: string;
|
|
27
28
|
placeholderWhenBlurred?: string;
|
|
29
|
+
textInputVariant?: DateTextInputVariant;
|
|
28
30
|
}
|
|
29
31
|
export declare const TravelDateInput: React.FC<TravelDateInputProps>;
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from "react";
|
|
|
3
3
|
import { HeadingVariant } from "@stenajs-webui/core";
|
|
4
4
|
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
5
5
|
import { TravelCalendarSizeVariant } from "../../../features/travel-calendar/components/TravelCalendar";
|
|
6
|
-
import { TravelDateRangeInputValue } from "../../../features/travel-calendar/types";
|
|
6
|
+
import { DateTextInputVariant, TravelDateRangeInputValue } from "../../../features/travel-calendar/types";
|
|
7
7
|
export interface RenderBelowCalendarArgs {
|
|
8
8
|
hideCalendar: () => void;
|
|
9
9
|
}
|
|
@@ -28,5 +28,6 @@ export interface TravelDateRangeInputProps extends ValueAndOnValueChangeProps<Tr
|
|
|
28
28
|
nextMonthButtonTestId?: string;
|
|
29
29
|
placeholderWhenBlurredStartDate?: string;
|
|
30
30
|
placeholderWhenBlurredEndDate?: string;
|
|
31
|
+
textInputVariant?: DateTextInputVariant;
|
|
31
32
|
}
|
|
32
33
|
export declare const TravelDateRangeInput: React.FC<TravelDateRangeInputProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { TravelDateRangeInputValue } from "../types";
|
|
2
|
+
import { DateTextInputVariant, TravelDateRangeInputValue } from "../types";
|
|
3
3
|
import { TravelCalendarSizeVariant } from "./TravelCalendar";
|
|
4
|
-
export interface
|
|
4
|
+
export interface TravelDateRangeTextInputFieldsProps {
|
|
5
5
|
value: TravelDateRangeInputValue | undefined;
|
|
6
6
|
onValueChange: ((value: Partial<TravelDateRangeInputValue>) => void) | undefined;
|
|
7
7
|
localeCode: string;
|
|
@@ -13,5 +13,6 @@ export interface TravelDateTextInputFieldsProps {
|
|
|
13
13
|
placeholderWhenBlurredEndDate: string | undefined;
|
|
14
14
|
valueWhenBlurredStartDate: string | undefined;
|
|
15
15
|
valueWhenBlurredEndDate: string | undefined;
|
|
16
|
+
variant: DateTextInputVariant;
|
|
16
17
|
}
|
|
17
|
-
export declare const
|
|
18
|
+
export declare const TravelDateRangeTextInputFields: React.FC<TravelDateRangeTextInputFieldsProps>;
|
|
@@ -2,7 +2,8 @@ import * as React from "react";
|
|
|
2
2
|
import { LabelledTextInputProps } from "@stenajs-webui/forms";
|
|
3
3
|
import { InputMask, InputMaskPipe, InputMaskProvider } from "@stenajs-webui/input-mask";
|
|
4
4
|
import { TravelCalendarSizeVariant } from "./TravelCalendar";
|
|
5
|
-
|
|
5
|
+
import { DateTextInputVariant } from "../types";
|
|
6
|
+
export interface TravelDateTextInputProps extends Pick<LabelledTextInputProps, "onChange" | "onValueChange" | "value" | "onFocus" | "onBlur" | "placeholder" | "label" | "borderRadiusVariant"> {
|
|
6
7
|
mask: InputMask | InputMaskProvider;
|
|
7
8
|
pipe?: InputMaskPipe;
|
|
8
9
|
guide?: boolean;
|
|
@@ -12,5 +13,6 @@ export interface TravelDateTextInputProps extends LabelledTextInputProps {
|
|
|
12
13
|
calendarSize: TravelCalendarSizeVariant;
|
|
13
14
|
placeholderWhenBlurred: string | undefined;
|
|
14
15
|
valueWhenBlurred: string | undefined;
|
|
16
|
+
variant: DateTextInputVariant;
|
|
15
17
|
}
|
|
16
18
|
export declare const TravelDateTextInput: React.FC<TravelDateTextInputProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { TravelCalendarSizeVariant } from "./TravelCalendar";
|
|
3
|
-
|
|
3
|
+
import { DateTextInputVariant } from "../types";
|
|
4
|
+
export interface TravelDateTextInputFieldProps {
|
|
4
5
|
value: string | undefined;
|
|
5
6
|
onValueChange: ((value: string) => void) | undefined;
|
|
6
7
|
localeCode: string;
|
|
@@ -9,5 +10,6 @@ export interface TravelDateSingleTextInputFieldProps {
|
|
|
9
10
|
calendarSize: TravelCalendarSizeVariant;
|
|
10
11
|
placeholderWhenBlurred: string | undefined;
|
|
11
12
|
valueWhenBlurred: string | undefined;
|
|
13
|
+
variant: DateTextInputVariant;
|
|
12
14
|
}
|
|
13
|
-
export declare const
|
|
15
|
+
export declare const TravelDateTextInputField: React.FC<TravelDateTextInputFieldProps>;
|