@stenajs-webui/calendar 17.6.0 → 17.9.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/CHANGELOG.md +24 -0
- package/dist/components/calendar/Calendar.d.ts +3 -3
- package/dist/components/calendar/CalendarMonth.d.ts +16 -16
- package/dist/components/calendar/CalendarMonthWithMonthTextHeader.d.ts +6 -6
- package/dist/components/calendar/CalendarTheme.d.ts +57 -57
- package/dist/components/calendar/CalendarWeek.d.ts +18 -18
- package/dist/components/calendar/DisabledDayWrapper.d.ts +7 -7
- package/dist/components/calendar/renderers/CalendarDay.d.ts +3 -3
- package/dist/components/calendar/renderers/WeekDayCell.d.ts +10 -10
- package/dist/components/calendar/renderers/WeekNumberCell.d.ts +13 -13
- package/dist/components/calendar-types/date-range-calendar/DateRangeCalendar.d.ts +11 -11
- package/dist/components/calendar-types/date-range-calendar/hooks/UseDateRangeCalendarState.d.ts +10 -10
- package/dist/components/calendar-types/date-range-calendar/hooks/UseDateRangeSelection.d.ts +3 -3
- package/dist/components/calendar-types/date-range-exclusion-calendar/DateRangeExclusionCalendar.d.ts +7 -7
- package/dist/components/calendar-types/date-range-exclusion-calendar/UseDateRangeExclusionSelection.d.ts +3 -3
- package/dist/components/calendar-types/multi-date-calendar/MultiDateCalendar.d.ts +8 -8
- package/dist/components/calendar-types/multi-date-calendar/UseMultiDateSelection.d.ts +3 -3
- package/dist/components/calendar-types/single-date-calendar/SingleDateCalendar.d.ts +7 -7
- package/dist/components/calendar-types/single-date-calendar/UseSingleDateSelection.d.ts +3 -3
- package/dist/components/calendar-types/single-week-calendar/SingleWeekCalendar.d.ts +8 -8
- package/dist/components/calendar-types/single-week-calendar/UseSingleWeekSelection.d.ts +3 -3
- package/dist/components/input-types/date-input/DateInput.d.ts +52 -52
- package/dist/components/input-types/date-input/UseDateInput.d.ts +6 -6
- package/dist/components/input-types/date-range-dual-text-input/DateRangeDualTextInput.d.ts +15 -15
- package/dist/components/input-types/date-range-dual-text-input/hooks/UseDateRangeEffects.d.ts +2 -2
- package/dist/components/input-types/date-range-dual-text-input/hooks/UseDateRangeHandlers.d.ts +11 -11
- package/dist/components/input-types/date-range-dual-text-input/hooks/UseInputStates.d.ts +17 -17
- package/dist/components/input-types/date-range-dual-text-input/hooks/UseUserInputHandlers.d.ts +13 -13
- package/dist/components/input-types/date-range-input/DateRangeInput.d.ts +51 -51
- package/dist/components/input-types/date-range-input/hooks/UseDateRangeInput.d.ts +16 -16
- package/dist/components/input-types/date-text-input/DateTextInput.d.ts +28 -28
- package/dist/components/input-types/date-time-input/DateTimeInput.d.ts +12 -12
- package/dist/components/input-types/date-time-input/hooks/UseDateRangeEffects.d.ts +2 -2
- package/dist/components/input-types/date-time-input/hooks/UseDateRangeHandlers.d.ts +11 -11
- package/dist/components/input-types/date-time-input/hooks/UseInputStates.d.ts +22 -22
- package/dist/components/input-types/date-time-input/hooks/UseUserInputHandlers.d.ts +12 -12
- package/dist/components/input-types/time-text-input/TimeTextInput.d.ts +15 -15
- package/dist/config/DefaultMaxDate.d.ts +1 -1
- package/dist/config/DefaultPopoverPlacement.d.ts +2 -2
- package/dist/features/calendar-with-month-year-pickers/CalendarPanelType.d.ts +1 -1
- package/dist/features/calendar-with-month-year-pickers/CalendarWithMonthYearPickers.d.ts +13 -13
- package/dist/features/date-range/hooks/UseDateRangeOnClickDayHandler.d.ts +4 -4
- package/dist/features/dual-text-input/DualTextInput.d.ts +44 -44
- package/dist/features/internal-panel-state/UseCalendarPopoverUpdater.d.ts +4 -4
- package/dist/features/internal-panel-state/UseInternalPanelState.d.ts +9 -9
- package/dist/features/month-picker/MonthPicker.d.ts +6 -6
- package/dist/features/month-picker/MonthPickerCell.d.ts +8 -8
- package/dist/features/month-switcher/CalendarWithMonthSwitcher.d.ts +15 -15
- package/dist/features/month-switcher/MonthSwitcherBelow.d.ts +12 -12
- package/dist/features/month-switcher/hooks/UseSelectedMonthStepperLogic.d.ts +6 -6
- package/dist/features/preset-picker/CalendarPreset.d.ts +14 -14
- package/dist/features/preset-picker/PresetFactory.d.ts +2 -2
- package/dist/features/preset-picker/PresetPicker.d.ts +6 -6
- package/dist/features/time-picker/TimePicker.d.ts +5 -5
- package/dist/features/time-picker/TimePickerCell.d.ts +10 -10
- package/dist/features/time-picker/TimePickerColumn.d.ts +10 -10
- package/dist/features/today-state/UseHighlightToday.d.ts +2 -2
- package/dist/features/year-picker/YearPicker.d.ts +6 -6
- package/dist/features/year-picker/YearPickerCell.d.ts +7 -7
- package/dist/index.d.ts +32 -32
- package/dist/index.es.js +2866 -2058
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -2148
- package/dist/index.js.map +1 -1
- package/dist/types/CalendarTypes.d.ts +133 -133
- package/dist/types/DateRange.d.ts +16 -16
- package/dist/types/InternalPanelAndFocusStateProps.d.ts +3 -3
- package/dist/util/calendar/CalendarDataFactory.d.ts +64 -64
- package/dist/util/calendar/StateHelper.d.ts +3 -3
- package/dist/util/calendar/StateModifier.d.ts +11 -11
- package/dist/util/date/DateFormats.d.ts +11 -11
- package/dist/util/date/DateListTools.d.ts +3 -3
- package/dist/util/date/DateMinMaxValidator.d.ts +1 -1
- package/dist/util/date-range/DateRangeTransformer.d.ts +3 -3
- package/dist/util/date-range/DateRangeValidator.d.ts +4 -4
- package/dist/util/time/OverlappingTimesValidator.d.ts +11 -11
- package/dist/util/time/TimeStringFormatValidator.d.ts +8 -8
- package/dist/util/time/TimeTransformer.d.ts +8 -8
- package/package.json +10 -11
- package/dist/components/calendar-types/date-range-calendar/DateRangeCalendar.stories.d.ts +0 -20
- package/dist/components/calendar-types/date-range-exclusion-calendar/DateRangeExclusionCalendar.stories.d.ts +0 -17
- package/dist/components/calendar-types/multi-date-calendar/MultiDateCalendar.stories.d.ts +0 -15
- package/dist/components/calendar-types/multi-date-calendar/__tests__/UseMultiDateSelection.test.d.ts +0 -1
- package/dist/components/calendar-types/single-date-calendar/SingleDateCalendar.stories.d.ts +0 -17
- package/dist/components/calendar-types/single-week-calendar/SingleWeekCalendar.stories.d.ts +0 -8
- package/dist/components/input-types/date-input/DateInput.stories.d.ts +0 -19
- package/dist/components/input-types/date-range-dual-text-input/DateRangeDualTextInput.stories.d.ts +0 -18
- package/dist/components/input-types/date-range-input/DateRangeInput.stories.d.ts +0 -17
- package/dist/components/input-types/date-text-input/DateTextInput.stories.d.ts +0 -19
- package/dist/components/input-types/date-time-input/DateTimeInput.stories.d.ts +0 -14
- package/dist/components/input-types/time-text-input/TimeTextInput.stories.d.ts +0 -15
- package/dist/features/month-picker/MonthPicker.stories.d.ts +0 -7
- package/dist/features/preset-picker/PresetPicker.stories.d.ts +0 -7
- package/dist/features/time-picker/TimePicker.stories.d.ts +0 -7
- package/dist/features/year-picker/YearPicker.stories.d.ts +0 -12
- package/dist/util/calendar/__tests__/CalendarDataFactory.test.d.ts +0 -1
- package/dist/util/calendar/__tests__/StateHelper.test.d.ts +0 -1
- package/dist/util/calendar/__tests__/StateModifier.test.d.ts +0 -1
- package/dist/util/date/__tests__/DateListTools.test.d.ts +0 -1
- package/dist/util/date/__tests__/DateMinMaxValidator.test.d.ts +0 -1
- package/dist/util/date-range/__tests__/DateRangeValidator.test.d.ts +0 -1
- package/dist/util/time/__tests__/OverlappingTimesValidator.test.d.ts +0 -1
- package/dist/util/time/__tests__/TimeStringFormatValidator.test.d.ts +0 -1
- package/dist/util/time/__tests__/TimeTransformer.test.d.ts +0 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
import { BoxProps, ButtonElementProps } from "@stenajs-webui/core";
|
|
3
|
-
import { TextInputBoxProps, TextInputProps } from "@stenajs-webui/forms";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
export interface DualTextInputProps {
|
|
6
|
-
onEsc?: TextInputProps["onEsc"];
|
|
7
|
-
onEnter?: TextInputProps["onEnter"];
|
|
8
|
-
widthLeft?: BoxProps["width"];
|
|
9
|
-
widthRight?: BoxProps["width"];
|
|
10
|
-
valueLeft?: TextInputProps["value"];
|
|
11
|
-
valueRight?: TextInputProps["value"];
|
|
12
|
-
minLeft?: string;
|
|
13
|
-
maxLeft?: string;
|
|
14
|
-
minRight?: string;
|
|
15
|
-
maxRight?: string;
|
|
16
|
-
typeLeft?: TextInputProps["type"];
|
|
17
|
-
typeRight?: TextInputProps["type"];
|
|
18
|
-
separatorIcon?: IconDefinition;
|
|
19
|
-
placeholderLeft?: TextInputProps["placeholder"];
|
|
20
|
-
placeholderRight?: TextInputProps["placeholder"];
|
|
21
|
-
onValueChangeLeft?: TextInputProps["onValueChange"];
|
|
22
|
-
onValueChangeRight?: TextInputProps["onValueChange"];
|
|
23
|
-
onChangeLeft?: TextInputProps["onChange"];
|
|
24
|
-
onChangeRight?: TextInputProps["onChange"];
|
|
25
|
-
onClickLeft?: TextInputProps["onClick"];
|
|
26
|
-
onClickRight?: TextInputProps["onClick"];
|
|
27
|
-
onClickCalendar?: ButtonElementProps["onClick"];
|
|
28
|
-
onClickArrowDown?: ButtonElementProps["onClick"];
|
|
29
|
-
onFocusLeft?: TextInputProps["onFocus"];
|
|
30
|
-
onFocusRight?: TextInputProps["onFocus"];
|
|
31
|
-
onBlur?: () => void;
|
|
32
|
-
onBlurLeft?: TextInputProps["onBlur"];
|
|
33
|
-
onBlurRight?: TextInputProps["onBlur"];
|
|
34
|
-
inputRefLeft?: TextInputProps["inputRef"];
|
|
35
|
-
inputRefRight?: TextInputProps["inputRef"];
|
|
36
|
-
variantLeft?: TextInputProps["variant"];
|
|
37
|
-
variantRight?: TextInputProps["variant"];
|
|
38
|
-
variant?: TextInputBoxProps["variant"];
|
|
39
|
-
showPresets?: false;
|
|
40
|
-
autoFocusLeft?: boolean;
|
|
41
|
-
autoFocusRight?: boolean;
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
}
|
|
44
|
-
export declare const DualTextInput: React.FC<DualTextInputProps>;
|
|
1
|
+
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
import { BoxProps, ButtonElementProps } from "@stenajs-webui/core";
|
|
3
|
+
import { TextInputBoxProps, TextInputProps } from "@stenajs-webui/forms";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export interface DualTextInputProps {
|
|
6
|
+
onEsc?: TextInputProps["onEsc"];
|
|
7
|
+
onEnter?: TextInputProps["onEnter"];
|
|
8
|
+
widthLeft?: BoxProps["width"];
|
|
9
|
+
widthRight?: BoxProps["width"];
|
|
10
|
+
valueLeft?: TextInputProps["value"];
|
|
11
|
+
valueRight?: TextInputProps["value"];
|
|
12
|
+
minLeft?: string;
|
|
13
|
+
maxLeft?: string;
|
|
14
|
+
minRight?: string;
|
|
15
|
+
maxRight?: string;
|
|
16
|
+
typeLeft?: TextInputProps["type"];
|
|
17
|
+
typeRight?: TextInputProps["type"];
|
|
18
|
+
separatorIcon?: IconDefinition;
|
|
19
|
+
placeholderLeft?: TextInputProps["placeholder"];
|
|
20
|
+
placeholderRight?: TextInputProps["placeholder"];
|
|
21
|
+
onValueChangeLeft?: TextInputProps["onValueChange"];
|
|
22
|
+
onValueChangeRight?: TextInputProps["onValueChange"];
|
|
23
|
+
onChangeLeft?: TextInputProps["onChange"];
|
|
24
|
+
onChangeRight?: TextInputProps["onChange"];
|
|
25
|
+
onClickLeft?: TextInputProps["onClick"];
|
|
26
|
+
onClickRight?: TextInputProps["onClick"];
|
|
27
|
+
onClickCalendar?: ButtonElementProps["onClick"];
|
|
28
|
+
onClickArrowDown?: ButtonElementProps["onClick"];
|
|
29
|
+
onFocusLeft?: TextInputProps["onFocus"];
|
|
30
|
+
onFocusRight?: TextInputProps["onFocus"];
|
|
31
|
+
onBlur?: () => void;
|
|
32
|
+
onBlurLeft?: TextInputProps["onBlur"];
|
|
33
|
+
onBlurRight?: TextInputProps["onBlur"];
|
|
34
|
+
inputRefLeft?: TextInputProps["inputRef"];
|
|
35
|
+
inputRefRight?: TextInputProps["inputRef"];
|
|
36
|
+
variantLeft?: TextInputProps["variant"];
|
|
37
|
+
variantRight?: TextInputProps["variant"];
|
|
38
|
+
variant?: TextInputBoxProps["variant"];
|
|
39
|
+
showPresets?: false;
|
|
40
|
+
autoFocusLeft?: boolean;
|
|
41
|
+
autoFocusRight?: boolean;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare const DualTextInput: React.FC<DualTextInputProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const useCalendarPopoverUpdater: () => {
|
|
2
|
-
onChangePanel: () => void;
|
|
3
|
-
tippyRef: import("@stenajs-webui/tooltip").TippyCallbackRef<HTMLElement>;
|
|
4
|
-
};
|
|
1
|
+
export declare const useCalendarPopoverUpdater: () => {
|
|
2
|
+
onChangePanel: () => void;
|
|
3
|
+
tippyRef: import("@stenajs-webui/tooltip").TippyCallbackRef<HTMLElement>;
|
|
4
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CalendarPanelType } from "../calendar-with-month-year-pickers/CalendarPanelType";
|
|
2
|
-
export declare type OnChangePanel = (panel: CalendarPanelType) => void;
|
|
3
|
-
export interface UseInternalPanelStateProps {
|
|
4
|
-
onChangePanel?: OnChangePanel;
|
|
5
|
-
}
|
|
6
|
-
export declare const useInternalPanelState: (onChangePanel: OnChangePanel | undefined) => {
|
|
7
|
-
currentPanel: CalendarPanelType;
|
|
8
|
-
setCurrentPanel: (currentPanel: CalendarPanelType) => void;
|
|
9
|
-
};
|
|
1
|
+
import { CalendarPanelType } from "../calendar-with-month-year-pickers/CalendarPanelType";
|
|
2
|
+
export declare type OnChangePanel = (panel: CalendarPanelType) => void;
|
|
3
|
+
export interface UseInternalPanelStateProps {
|
|
4
|
+
onChangePanel?: OnChangePanel;
|
|
5
|
+
}
|
|
6
|
+
export declare const useInternalPanelState: (onChangePanel: OnChangePanel | undefined) => {
|
|
7
|
+
currentPanel: CalendarPanelType;
|
|
8
|
+
setCurrentPanel: (currentPanel: CalendarPanelType) => void;
|
|
9
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Month } from "../../util/calendar/CalendarDataFactory";
|
|
3
|
-
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
4
|
-
export interface MonthPickerProps extends ValueAndOnValueChangeProps<Month> {
|
|
5
|
-
}
|
|
6
|
-
export declare const MonthPicker: React.FC<MonthPickerProps>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Month } from "../../util/calendar/CalendarDataFactory";
|
|
3
|
+
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
4
|
+
export interface MonthPickerProps extends ValueAndOnValueChangeProps<Month> {
|
|
5
|
+
}
|
|
6
|
+
export declare const MonthPicker: React.FC<MonthPickerProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
3
|
-
import { Month } from "../../util/calendar/CalendarDataFactory";
|
|
4
|
-
interface Props extends ValueAndOnValueChangeProps<Month> {
|
|
5
|
-
month: Month;
|
|
6
|
-
}
|
|
7
|
-
export declare const MonthPickerCell: React.FC<Props>;
|
|
8
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
3
|
+
import { Month } from "../../util/calendar/CalendarDataFactory";
|
|
4
|
+
interface Props extends ValueAndOnValueChangeProps<Month> {
|
|
5
|
+
month: Month;
|
|
6
|
+
}
|
|
7
|
+
export declare const MonthPickerCell: React.FC<Props>;
|
|
8
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CalendarProps } from "../../types/CalendarTypes";
|
|
3
|
-
import { CalendarPanelType } from "../calendar-with-month-year-pickers/CalendarPanelType";
|
|
4
|
-
import { CalendarPreset } from "../preset-picker/CalendarPreset";
|
|
5
|
-
export declare type MonthSwitcherPlacement = "header" | "below";
|
|
6
|
-
export interface CalendarWithMonthSwitcherProps<T> extends CalendarProps<T> {
|
|
7
|
-
monthSwitcherPlacement?: MonthSwitcherPlacement;
|
|
8
|
-
dateInFocus: Date;
|
|
9
|
-
setDateInFocus: (dateInFocus: Date) => void;
|
|
10
|
-
currentPanel: CalendarPanelType;
|
|
11
|
-
setCurrentPanel: (currentPanel: CalendarPanelType) => void;
|
|
12
|
-
onSelectPreset?: (preset: CalendarPreset) => void;
|
|
13
|
-
hideYearPagination?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function CalendarWithMonthSwitcher<T>({ monthSwitcherPlacement, theme, dateInFocus, setDateInFocus, currentPanel, setCurrentPanel, onSelectPreset, hideYearPagination, ...calendarProps }: CalendarWithMonthSwitcherProps<T>): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CalendarProps } from "../../types/CalendarTypes";
|
|
3
|
+
import { CalendarPanelType } from "../calendar-with-month-year-pickers/CalendarPanelType";
|
|
4
|
+
import { CalendarPreset } from "../preset-picker/CalendarPreset";
|
|
5
|
+
export declare type MonthSwitcherPlacement = "header" | "below";
|
|
6
|
+
export interface CalendarWithMonthSwitcherProps<T> extends CalendarProps<T> {
|
|
7
|
+
monthSwitcherPlacement?: MonthSwitcherPlacement;
|
|
8
|
+
dateInFocus: Date;
|
|
9
|
+
setDateInFocus: (dateInFocus: Date) => void;
|
|
10
|
+
currentPanel: CalendarPanelType;
|
|
11
|
+
setCurrentPanel: (currentPanel: CalendarPanelType) => void;
|
|
12
|
+
onSelectPreset?: (preset: CalendarPreset) => void;
|
|
13
|
+
hideYearPagination?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function CalendarWithMonthSwitcher<T>({ monthSwitcherPlacement, theme, dateInFocus, setDateInFocus, currentPanel, setCurrentPanel, onSelectPreset, hideYearPagination, ...calendarProps }: CalendarWithMonthSwitcherProps<T>): JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { CalendarTheme } from "../../components/calendar/CalendarTheme";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
export interface WithMonthSwitcherBelowProps {
|
|
5
|
-
theme: CalendarTheme;
|
|
6
|
-
nextMonth: () => void;
|
|
7
|
-
prevMonth: () => void;
|
|
8
|
-
nextYear: () => void;
|
|
9
|
-
prevYear: () => void;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const WithMonthSwitcherBelow: React.FC<WithMonthSwitcherBelowProps>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CalendarTheme } from "../../components/calendar/CalendarTheme";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
export interface WithMonthSwitcherBelowProps {
|
|
5
|
+
theme: CalendarTheme;
|
|
6
|
+
nextMonth: () => void;
|
|
7
|
+
prevMonth: () => void;
|
|
8
|
+
nextYear: () => void;
|
|
9
|
+
prevYear: () => void;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const WithMonthSwitcherBelow: React.FC<WithMonthSwitcherBelowProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const useSelectedMonthStepperLogic: (dateInFocus: Date, setDateInFocus?: ((dateInFocus: Date) => void) | undefined, monthsPerRow?: number, numMonths?: number) => {
|
|
2
|
-
nextMonth: () => void;
|
|
3
|
-
prevMonth: () => void;
|
|
4
|
-
nextYear: () => void;
|
|
5
|
-
prevYear: () => void;
|
|
6
|
-
};
|
|
1
|
+
export declare const useSelectedMonthStepperLogic: (dateInFocus: Date, setDateInFocus?: ((dateInFocus: Date) => void) | undefined, monthsPerRow?: number, numMonths?: number) => {
|
|
2
|
+
nextMonth: () => void;
|
|
3
|
+
prevMonth: () => void;
|
|
4
|
+
nextYear: () => void;
|
|
5
|
+
prevYear: () => void;
|
|
6
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare type CalendarPreset = DatePreset | DateRangePreset;
|
|
2
|
-
export interface DatePreset {
|
|
3
|
-
label: string;
|
|
4
|
-
date: Date;
|
|
5
|
-
}
|
|
6
|
-
export interface DateRangePreset {
|
|
7
|
-
label: string;
|
|
8
|
-
startDate: Date;
|
|
9
|
-
endDate: Date;
|
|
10
|
-
}
|
|
11
|
-
export interface PresetPage {
|
|
12
|
-
label: string;
|
|
13
|
-
presets: Array<CalendarPreset>;
|
|
14
|
-
}
|
|
1
|
+
export declare type CalendarPreset = DatePreset | DateRangePreset;
|
|
2
|
+
export interface DatePreset {
|
|
3
|
+
label: string;
|
|
4
|
+
date: Date;
|
|
5
|
+
}
|
|
6
|
+
export interface DateRangePreset {
|
|
7
|
+
label: string;
|
|
8
|
+
startDate: Date;
|
|
9
|
+
endDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export interface PresetPage {
|
|
12
|
+
label: string;
|
|
13
|
+
presets: Array<CalendarPreset>;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PresetPage } from "./CalendarPreset";
|
|
2
|
-
export declare const createStandardDateRangePresets: (now: Date) => Array<PresetPage>;
|
|
1
|
+
import { PresetPage } from "./CalendarPreset";
|
|
2
|
+
export declare const createStandardDateRangePresets: (now: Date) => Array<PresetPage>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { CalendarPreset } from "./CalendarPreset";
|
|
3
|
-
export interface PresetPickerProps {
|
|
4
|
-
onClickPreset: (preset: CalendarPreset) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const PresetPicker: React.FC<PresetPickerProps>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CalendarPreset } from "./CalendarPreset";
|
|
3
|
+
export interface PresetPickerProps {
|
|
4
|
+
onClickPreset: (preset: CalendarPreset) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const PresetPicker: React.FC<PresetPickerProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export interface TimePickerProps extends ValueAndOnValueChangeProps<string> {
|
|
4
|
-
}
|
|
5
|
-
export declare const TimePicker: React.FC<TimePickerProps>;
|
|
1
|
+
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface TimePickerProps extends ValueAndOnValueChangeProps<string> {
|
|
4
|
+
}
|
|
5
|
+
export declare const TimePicker: React.FC<TimePickerProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { MutableRefObject, RefObject } from "react";
|
|
3
|
-
export interface TimePickerCellProps {
|
|
4
|
-
item: number;
|
|
5
|
-
selected?: boolean;
|
|
6
|
-
onClick: (label: number) => void;
|
|
7
|
-
columnRef: RefObject<HTMLDivElement>;
|
|
8
|
-
canScrollRef: MutableRefObject<boolean>;
|
|
9
|
-
}
|
|
10
|
-
export declare const TimePickerCell: React.FC<TimePickerCellProps>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { MutableRefObject, RefObject } from "react";
|
|
3
|
+
export interface TimePickerCellProps {
|
|
4
|
+
item: number;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
onClick: (label: number) => void;
|
|
7
|
+
columnRef: RefObject<HTMLDivElement>;
|
|
8
|
+
canScrollRef: MutableRefObject<boolean>;
|
|
9
|
+
}
|
|
10
|
+
export declare const TimePickerCell: React.FC<TimePickerCellProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { MutableRefObject } from "react";
|
|
3
|
-
interface Props {
|
|
4
|
-
items: Array<number>;
|
|
5
|
-
onClick: (item: number) => void;
|
|
6
|
-
selectedItem: number | undefined;
|
|
7
|
-
canScrollRef: MutableRefObject<boolean>;
|
|
8
|
-
}
|
|
9
|
-
export declare const TimePickerColumn: React.FC<Props>;
|
|
10
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { MutableRefObject } from "react";
|
|
3
|
+
interface Props {
|
|
4
|
+
items: Array<number>;
|
|
5
|
+
onClick: (item: number) => void;
|
|
6
|
+
selectedItem: number | undefined;
|
|
7
|
+
canScrollRef: MutableRefObject<boolean>;
|
|
8
|
+
}
|
|
9
|
+
export declare const TimePickerColumn: React.FC<Props>;
|
|
10
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CalendarState } from "../../types/CalendarTypes";
|
|
2
|
-
export declare const useHighlightToday: (enabled: boolean | undefined, statePerMonth: CalendarState | undefined) => import("../../types/CalendarTypes").CalendarUserData<import("../../types/CalendarTypes").HighlightsState> | undefined;
|
|
1
|
+
import { CalendarState } from "../../types/CalendarTypes";
|
|
2
|
+
export declare const useHighlightToday: (enabled: boolean | undefined, statePerMonth: CalendarState | undefined) => import("../../types/CalendarTypes").CalendarUserData<import("../../types/CalendarTypes").HighlightsState> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
3
|
-
export interface YearPickerProps extends ValueAndOnValueChangeProps<number> {
|
|
4
|
-
initialLastYear?: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const YearPicker: React.FC<YearPickerProps>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
3
|
+
export interface YearPickerProps extends ValueAndOnValueChangeProps<number> {
|
|
4
|
+
initialLastYear?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const YearPicker: React.FC<YearPickerProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
3
|
-
interface Props extends ValueAndOnValueChangeProps<number> {
|
|
4
|
-
year: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const YearPickerCell: React.FC<Props>;
|
|
7
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms";
|
|
3
|
+
interface Props extends ValueAndOnValueChangeProps<number> {
|
|
4
|
+
year: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const YearPickerCell: React.FC<Props>;
|
|
7
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export * from "./components/calendar-types/date-range-calendar/DateRangeCalendar";
|
|
2
|
-
export * from "./components/calendar-types/date-range-calendar/hooks/UseDateRangeSelection";
|
|
3
|
-
export * from "./components/calendar-types/date-range-calendar/hooks/UseDateRangeCalendarState";
|
|
4
|
-
export * from "./components/calendar-types/single-date-calendar/SingleDateCalendar";
|
|
5
|
-
export * from "./components/calendar-types/single-date-calendar/UseSingleDateSelection";
|
|
6
|
-
export * from "./components/calendar-types/multi-date-calendar/MultiDateCalendar";
|
|
7
|
-
export * from "./components/calendar-types/multi-date-calendar/UseMultiDateSelection";
|
|
8
|
-
export * from "./components/calendar-types/single-week-calendar/SingleWeekCalendar";
|
|
9
|
-
export * from "./components/calendar-types/single-week-calendar/UseSingleWeekSelection";
|
|
10
|
-
export * from "./components/calendar-types/date-range-exclusion-calendar/DateRangeExclusionCalendar";
|
|
11
|
-
export * from "./components/calendar-types/date-range-exclusion-calendar/UseDateRangeExclusionSelection";
|
|
12
|
-
export * from "./components/input-types/date-input/DateInput";
|
|
13
|
-
export * from "./components/input-types/date-range-input/DateRangeInput";
|
|
14
|
-
export * from "./components/input-types/date-text-input/DateTextInput";
|
|
15
|
-
export * from "./components/input-types/time-text-input/TimeTextInput";
|
|
16
|
-
export * from "./components/input-types/date-time-input/DateTimeInput";
|
|
17
|
-
export * from "./components/calendar/Calendar";
|
|
18
|
-
export * from "./components/calendar/CalendarTheme";
|
|
19
|
-
export * from "./components/calendar/renderers/CalendarDay";
|
|
20
|
-
export * from "./components/calendar/renderers/WeekDayCell";
|
|
21
|
-
export * from "./components/calendar/renderers/WeekNumberCell";
|
|
22
|
-
export * from "./util/calendar/CalendarDataFactory";
|
|
23
|
-
export * from "./util/calendar/StateHelper";
|
|
24
|
-
export * from "./util/calendar/StateModifier";
|
|
25
|
-
export * from "./util/date-range/DateRangeValidator";
|
|
26
|
-
export * from "./util/date-range/DateRangeTransformer";
|
|
27
|
-
export * from "./types/CalendarTypes";
|
|
28
|
-
export * from "./types/DateRange";
|
|
29
|
-
export * from "./features/month-picker/MonthPicker";
|
|
30
|
-
export * from "./features/year-picker/YearPicker";
|
|
31
|
-
export * from "./features/preset-picker/PresetPicker";
|
|
32
|
-
export * from "./components/input-types/date-range-dual-text-input/DateRangeDualTextInput";
|
|
1
|
+
export * from "./components/calendar-types/date-range-calendar/DateRangeCalendar";
|
|
2
|
+
export * from "./components/calendar-types/date-range-calendar/hooks/UseDateRangeSelection";
|
|
3
|
+
export * from "./components/calendar-types/date-range-calendar/hooks/UseDateRangeCalendarState";
|
|
4
|
+
export * from "./components/calendar-types/single-date-calendar/SingleDateCalendar";
|
|
5
|
+
export * from "./components/calendar-types/single-date-calendar/UseSingleDateSelection";
|
|
6
|
+
export * from "./components/calendar-types/multi-date-calendar/MultiDateCalendar";
|
|
7
|
+
export * from "./components/calendar-types/multi-date-calendar/UseMultiDateSelection";
|
|
8
|
+
export * from "./components/calendar-types/single-week-calendar/SingleWeekCalendar";
|
|
9
|
+
export * from "./components/calendar-types/single-week-calendar/UseSingleWeekSelection";
|
|
10
|
+
export * from "./components/calendar-types/date-range-exclusion-calendar/DateRangeExclusionCalendar";
|
|
11
|
+
export * from "./components/calendar-types/date-range-exclusion-calendar/UseDateRangeExclusionSelection";
|
|
12
|
+
export * from "./components/input-types/date-input/DateInput";
|
|
13
|
+
export * from "./components/input-types/date-range-input/DateRangeInput";
|
|
14
|
+
export * from "./components/input-types/date-text-input/DateTextInput";
|
|
15
|
+
export * from "./components/input-types/time-text-input/TimeTextInput";
|
|
16
|
+
export * from "./components/input-types/date-time-input/DateTimeInput";
|
|
17
|
+
export * from "./components/calendar/Calendar";
|
|
18
|
+
export * from "./components/calendar/CalendarTheme";
|
|
19
|
+
export * from "./components/calendar/renderers/CalendarDay";
|
|
20
|
+
export * from "./components/calendar/renderers/WeekDayCell";
|
|
21
|
+
export * from "./components/calendar/renderers/WeekNumberCell";
|
|
22
|
+
export * from "./util/calendar/CalendarDataFactory";
|
|
23
|
+
export * from "./util/calendar/StateHelper";
|
|
24
|
+
export * from "./util/calendar/StateModifier";
|
|
25
|
+
export * from "./util/date-range/DateRangeValidator";
|
|
26
|
+
export * from "./util/date-range/DateRangeTransformer";
|
|
27
|
+
export * from "./types/CalendarTypes";
|
|
28
|
+
export * from "./types/DateRange";
|
|
29
|
+
export * from "./features/month-picker/MonthPicker";
|
|
30
|
+
export * from "./features/year-picker/YearPicker";
|
|
31
|
+
export * from "./features/preset-picker/PresetPicker";
|
|
32
|
+
export * from "./components/input-types/date-range-dual-text-input/DateRangeDualTextInput";
|