@stenajs-webui/calendar 21.16.5 → 21.16.7
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/input-types/date-range-dual-text-input/DateRangeDualTextInput.d.ts +2 -1
- package/dist/components/input-types/date-range-dual-text-input/hooks/UseDateRangeHandlers.d.ts +1 -1
- package/dist/components/input-types/date-range-dual-text-input/hooks/UseUserInputHandlers.d.ts +1 -1
- package/dist/features/calendar-with-month-year-pickers/CalendarWithMonthYearPickers.d.ts +2 -1
- package/dist/features/month-switcher/CalendarWithMonthSwitcher.d.ts +2 -1
- package/dist/index.es.js +1035 -1028
- 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
- package/dist/features/travel-calendar/util/UseToday.d.ts +0 -1
|
@@ -12,5 +12,6 @@ export interface DateRangeDualTextInputProps<TData = unknown> extends ValueAndOn
|
|
|
12
12
|
autoFocus?: boolean;
|
|
13
13
|
calendarProps?: DateRangeInputCalendarProps<TData>;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
firstMonthInMonthPicker?: Date;
|
|
15
16
|
}
|
|
16
|
-
export declare function DateRangeDualTextInput<TData>({ value, onValueChange, autoFocus, onBlur, onEnter, onEsc, minDate, maxDate, calendarProps, widthLeft, widthRight, variant, disabled, zIndex, appendTo, }: DateRangeDualTextInputProps<TData>): React.JSX.Element;
|
|
17
|
+
export declare function DateRangeDualTextInput<TData>({ value, onValueChange, autoFocus, onBlur, onEnter, onEsc, minDate, maxDate, calendarProps, widthLeft, widthRight, firstMonthInMonthPicker, variant, disabled, zIndex, appendTo, }: DateRangeDualTextInputProps<TData>): React.JSX.Element;
|
package/dist/components/input-types/date-range-dual-text-input/hooks/UseDateRangeHandlers.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export declare const useDateRangeHandlers: (startDate: Date | undefined, endDate
|
|
|
7
7
|
hideCalendar: () => void;
|
|
8
8
|
setDateInFocus: import("react").Dispatch<import("react").SetStateAction<Date>>;
|
|
9
9
|
setCurrentPanel: import("react").Dispatch<import("react").SetStateAction<import("../../../../features/calendar-with-month-year-pickers/CalendarPanelType").CalendarPanelType>>;
|
|
10
|
-
showCalendar: () => void;
|
|
10
|
+
showCalendar: (dateInFocus?: Date) => void;
|
|
11
11
|
};
|
package/dist/components/input-types/date-range-dual-text-input/hooks/UseUserInputHandlers.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { RefObject } from "react";
|
|
|
3
3
|
import { DayData } from "../../../../util/calendar/CalendarDataFactory";
|
|
4
4
|
import { DateRangeDualTextInputProps } from "../DateRangeDualTextInput";
|
|
5
5
|
import { UseInputStatesResult } from "./UseInputStates";
|
|
6
|
-
export declare const useUserInputHandlers: (startDate: Date | undefined, endDate: Date | undefined, onValueChange: DateRangeDualTextInputProps["onValueChange"], startDateInputRef: RefObject<HTMLInputElement>, endDateInputRef: RefObject<HTMLInputElement>, showCalendar: () => void, hideCalendar: () => void, { firstFocusedInput, setFirstFocusedInput, isCalendarVisible, setFocusedInput, focusedInput, setCurrentPanel, }: UseInputStatesResult) => {
|
|
6
|
+
export declare const useUserInputHandlers: (startDate: Date | undefined, endDate: Date | undefined, onValueChange: DateRangeDualTextInputProps["onValueChange"], startDateInputRef: RefObject<HTMLInputElement>, endDateInputRef: RefObject<HTMLInputElement>, showCalendar: (dateInFocus?: Date) => void, hideCalendar: () => void, { firstFocusedInput, setFirstFocusedInput, isCalendarVisible, setFocusedInput, focusedInput, setCurrentPanel, setDateInFocus, }: UseInputStatesResult) => {
|
|
7
7
|
onFocusLeft: () => void;
|
|
8
8
|
onFocusRight: () => void;
|
|
9
9
|
onClickDay: (day: DayData) => void;
|
|
@@ -5,11 +5,12 @@ import { CalendarPreset } from "../preset-picker/CalendarPreset";
|
|
|
5
5
|
import { CalendarPanelType } from "./CalendarPanelType";
|
|
6
6
|
interface CalendarWithMonthYearPickersProps<T> extends Omit<CalendarProps<T>, "date" | "year" | "month"> {
|
|
7
7
|
dateInFocus: Date;
|
|
8
|
+
firstMonthInMonthPicker?: Date;
|
|
8
9
|
setDateInFocus: (dateInFocus: Date) => void;
|
|
9
10
|
currentPanel: CalendarPanelType;
|
|
10
11
|
setCurrentPanel: (currentPanel: CalendarPanelType) => void;
|
|
11
12
|
onSelectPreset: (preset: CalendarPreset) => void;
|
|
12
13
|
renderMonthPicker?: (args: RenderMonthPickerArgs) => ReactNode;
|
|
13
14
|
}
|
|
14
|
-
export declare const CalendarWithMonthYearPickers: <T>({ locale, dateInFocus, setDateInFocus, currentPanel, setCurrentPanel, renderMonthPicker, ...props }: CalendarWithMonthYearPickersProps<T>) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
15
|
+
export declare const CalendarWithMonthYearPickers: <T>({ locale, dateInFocus, firstMonthInMonthPicker, setDateInFocus, currentPanel, setCurrentPanel, renderMonthPicker, ...props }: CalendarWithMonthYearPickersProps<T>) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
15
16
|
export {};
|
|
@@ -8,9 +8,10 @@ export interface CalendarWithMonthSwitcherProps<T> extends CalendarProps<T> {
|
|
|
8
8
|
monthSwitcherPlacement?: MonthSwitcherPlacement;
|
|
9
9
|
dateInFocus: Date;
|
|
10
10
|
setDateInFocus: (dateInFocus: Date) => void;
|
|
11
|
+
firstMonthInMonthPicker?: Date;
|
|
11
12
|
currentPanel: CalendarPanelType;
|
|
12
13
|
setCurrentPanel: (currentPanel: CalendarPanelType) => void;
|
|
13
14
|
onSelectPreset?: (preset: CalendarPreset) => void;
|
|
14
15
|
renderMonthPicker?: (args: RenderMonthPickerArgs) => ReactNode;
|
|
15
16
|
}
|
|
16
|
-
export declare function CalendarWithMonthSwitcher<T>({ monthSwitcherPlacement, theme, dateInFocus, setDateInFocus, currentPanel, setCurrentPanel, onSelectPreset, renderMonthPicker, ...calendarProps }: CalendarWithMonthSwitcherProps<T>): React.JSX.Element;
|
|
17
|
+
export declare function CalendarWithMonthSwitcher<T>({ monthSwitcherPlacement, theme, dateInFocus, setDateInFocus, currentPanel, firstMonthInMonthPicker, setCurrentPanel, onSelectPreset, renderMonthPicker, ...calendarProps }: CalendarWithMonthSwitcherProps<T>): React.JSX.Element;
|