react-day-picker 8.0.0-beta.32 → 8.0.0-beta.33
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 +12 -3
- package/build/DayPicker.d.ts +3 -2
- package/build/DayPicker.js +6 -5
- package/build/DayPicker.js.map +1 -1
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/Button/Button.js +1 -1
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Caption/Caption.d.ts +7 -0
- package/build/components/Caption/Caption.js +8 -8
- package/build/components/Caption/Caption.js.map +1 -1
- package/build/components/CaptionLabel/CaptionLabel.js +1 -1
- package/build/components/CaptionLabel/CaptionLabel.js.map +1 -1
- package/build/components/Day/Day.js +1 -1
- package/build/components/Day/Day.js.map +1 -1
- package/build/components/Day/hooks/useDay.d.ts +2 -2
- package/build/components/Day/hooks/useDay.js +5 -5
- package/build/components/Day/hooks/useDay.js.map +1 -1
- package/build/components/Day/hooks/useDayFocus.d.ts +1 -1
- package/build/components/Day/hooks/useDayFocus.js +1 -1
- package/build/components/Day/hooks/useDayFocus.js.map +1 -1
- package/build/components/DayContent/DayContent.js +1 -1
- package/build/components/DayContent/DayContent.js.map +1 -1
- package/build/components/Dropdown/Dropdown.d.ts +1 -1
- package/build/components/Dropdown/Dropdown.js +1 -1
- package/build/components/Dropdown/Dropdown.js.map +1 -1
- package/build/components/Footer/Footer.js +1 -1
- package/build/components/Footer/Footer.js.map +1 -1
- package/build/components/Head/Head.js +1 -1
- package/build/components/Head/Head.js.map +1 -1
- package/build/components/IconDropdown/IconDropdown.d.ts +2 -2
- package/build/components/IconDropdown/IconDropdown.js +1 -1
- package/build/components/IconDropdown/IconDropdown.js.map +1 -1
- package/build/components/IconLeft/IconLeft.d.ts +2 -2
- package/build/components/IconLeft/IconLeft.js +3 -3
- package/build/components/IconLeft/IconLeft.js.map +1 -1
- package/build/components/IconRight/IconRight.d.ts +2 -2
- package/build/components/IconRight/IconRight.js +3 -3
- package/build/components/IconRight/IconRight.js.map +1 -1
- package/build/components/MonthsDropdown/MonthsDropdown.d.ts +1 -1
- package/build/components/MonthsDropdown/MonthsDropdown.js +1 -1
- package/build/components/MonthsDropdown/MonthsDropdown.js.map +1 -1
- package/build/components/Navigation/Navigation.d.ts +1 -1
- package/build/components/Navigation/Navigation.js +1 -1
- package/build/components/Navigation/Navigation.js.map +1 -1
- package/build/components/Root/Root.js +1 -2
- package/build/components/Root/Root.js.map +1 -1
- package/build/components/Row/Row.js +1 -1
- package/build/components/Row/Row.js.map +1 -1
- package/build/components/Table/Table.js +1 -1
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/WeekNumber/WeekNumber.js +1 -1
- package/build/components/WeekNumber/WeekNumber.js.map +1 -1
- package/build/components/YearsDropdown/YearsDropdown.d.ts +1 -1
- package/build/components/YearsDropdown/YearsDropdown.js +1 -1
- package/build/components/YearsDropdown/YearsDropdown.js.map +1 -1
- package/build/contexts/DayPicker/DayPickerContext.d.ts +3 -2
- package/build/contexts/DayPicker/DayPickerContext.js +1 -1
- package/build/contexts/DayPicker/DayPickerContext.js.map +1 -1
- package/build/contexts/DayPicker/DayPickerProvider.d.ts +1 -1
- package/build/contexts/DayPicker/DayPickerProvider.js +1 -1
- package/build/contexts/DayPicker/DayPickerProvider.js.map +1 -1
- package/build/contexts/DayPicker/defaultClassNames.js +1 -3
- package/build/contexts/DayPicker/defaultClassNames.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelDay.d.ts +2 -2
- package/build/contexts/DayPicker/labels/labelDay.js +1 -1
- package/build/contexts/DayPicker/labels/labelDay.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelNext.d.ts +2 -2
- package/build/contexts/DayPicker/labels/labelNext.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelPrevious.d.ts +2 -2
- package/build/contexts/DayPicker/labels/labelPrevious.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelWeekNumber.d.ts +2 -2
- package/build/contexts/DayPicker/labels/labelWeekNumber.js.map +1 -1
- package/build/contexts/DayPicker/labels/labelWeekday.d.ts +2 -2
- package/build/contexts/DayPicker/labels/labelWeekday.js.map +1 -1
- package/build/contexts/DayPicker/useDayPicker.js +1 -1
- package/build/contexts/DayPicker/useDayPicker.js.map +1 -1
- package/build/contexts/DayPicker/utils/parseModifierProps.js +1 -0
- package/build/contexts/DayPicker/utils/parseModifierProps.js.map +1 -1
- package/build/contexts/Focus/FocusContext.d.ts +5 -1
- package/build/contexts/Focus/FocusContext.js +63 -3
- package/build/contexts/Focus/FocusContext.js.map +1 -1
- package/build/contexts/Focus/index.d.ts +0 -1
- package/build/contexts/Focus/useFocus.js +1 -1
- package/build/contexts/Focus/useFocus.js.map +1 -1
- package/build/contexts/Navigation/NavigationContext.d.ts +5 -1
- package/build/contexts/Navigation/NavigationContext.js +23 -3
- package/build/contexts/Navigation/NavigationContext.js.map +1 -1
- package/build/contexts/Navigation/index.d.ts +0 -1
- package/build/contexts/Navigation/useNavigation.js +1 -1
- package/build/contexts/Navigation/useNavigation.js.map +1 -1
- package/build/contexts/RootProvider.d.ts +8 -0
- package/build/contexts/{ContextProvider.js → RootProvider.js} +9 -14
- package/build/contexts/RootProvider.js.map +1 -0
- package/build/contexts/SelectMultiple/SelectMultipleContext.d.ts +14 -2
- package/build/contexts/SelectMultiple/SelectMultipleContext.js +73 -3
- package/build/contexts/SelectMultiple/SelectMultipleContext.js.map +1 -1
- package/build/contexts/SelectMultiple/index.d.ts +0 -1
- package/build/contexts/SelectMultiple/useSelectMultiple.js +1 -1
- package/build/contexts/SelectMultiple/useSelectMultiple.js.map +1 -1
- package/build/contexts/SelectRange/SelectRangeContext.d.ts +14 -3
- package/build/contexts/SelectRange/SelectRangeContext.js +114 -3
- package/build/contexts/SelectRange/SelectRangeContext.js.map +1 -1
- package/build/contexts/SelectRange/index.d.ts +0 -1
- package/build/contexts/SelectRange/useSelectRange.js +1 -1
- package/build/contexts/SelectRange/useSelectRange.js.map +1 -1
- package/build/contexts/SelectSingle/SelectSingleContext.d.ts +17 -3
- package/build/contexts/SelectSingle/SelectSingleContext.js +36 -3
- package/build/contexts/SelectSingle/SelectSingleContext.js.map +1 -1
- package/build/contexts/SelectSingle/index.d.ts +0 -1
- package/build/contexts/SelectSingle/useSelectSingle.js +1 -1
- package/build/contexts/SelectSingle/useSelectSingle.js.map +1 -1
- package/build/contexts/index.d.ts +1 -1
- package/build/hooks/useControlledValue/useControlledValue.js +2 -2
- package/build/hooks/useControlledValue/useControlledValue.js.map +1 -1
- package/build/hooks/useInput/useInput.d.ts +11 -32
- package/build/hooks/useInput/useInput.js +2 -4
- package/build/hooks/useInput/useInput.js.map +1 -1
- package/build/hooks/useModifiers/useModifiers.js +3 -5
- package/build/hooks/useModifiers/useModifiers.js.map +1 -1
- package/build/hooks/useModifiers/utils/isDateInRange.d.ts +1 -1
- package/build/hooks/useModifiers/utils/isDateInRange.js.map +1 -1
- package/build/hooks/useModifiers/utils/isMatch.d.ts +1 -1
- package/build/hooks/useModifiers/utils/isMatch.js +10 -8
- package/build/hooks/useModifiers/utils/isMatch.js.map +1 -1
- package/build/main.js +11 -22
- package/build/main.js.map +1 -1
- package/build/types/{DayPickerProps.d.ts → DayPicker.d.ts} +35 -16
- package/build/types/DayPickerCustom.d.ts +11 -0
- package/build/types/{isDayPickerCustom.js → DayPickerCustom.js} +1 -1
- package/build/types/DayPickerCustom.js.map +1 -0
- package/build/types/{DayPickerMultipleProps.d.ts → DayPickerMultiple.d.ts} +5 -5
- package/build/types/{isDayPickerMultiple.js → DayPickerMultiple.js} +1 -1
- package/build/types/DayPickerMultiple.js.map +1 -0
- package/build/types/{DayPickerRangeProps.d.ts → DayPickerRange.d.ts} +6 -6
- package/build/types/{isDayPickerRange.js → DayPickerRange.js} +1 -1
- package/build/types/DayPickerRange.js.map +1 -0
- package/build/types/DayPickerSingle.d.ts +14 -0
- package/build/types/{isDayPickerSingle.js → DayPickerSingle.js} +1 -1
- package/build/types/DayPickerSingle.js.map +1 -0
- package/build/types/EventHandlers.d.ts +51 -0
- package/build/types/Formatters.d.ts +10 -5
- package/build/types/Labels.d.ts +24 -12
- package/build/types/Matchers.d.ts +34 -0
- package/build/types/Matchers.js +27 -0
- package/build/types/Matchers.js.map +1 -0
- package/build/types/Modifiers.d.ts +15 -4
- package/build/types/Styles.d.ts +83 -2
- package/build/types/index.d.ts +7 -50
- package/dist/main.js +555 -589
- package/dist/main.js.map +1 -1
- package/package.json +3 -2
- package/build/contexts/ContextProvider.d.ts +0 -8
- package/build/contexts/ContextProvider.js.map +0 -1
- package/build/contexts/Focus/FocusProvider.d.ts +0 -5
- package/build/contexts/Focus/FocusProvider.js +0 -66
- package/build/contexts/Focus/FocusProvider.js.map +0 -1
- package/build/contexts/Navigation/NavigationProvider.d.ts +0 -5
- package/build/contexts/Navigation/NavigationProvider.js +0 -26
- package/build/contexts/Navigation/NavigationProvider.js.map +0 -1
- package/build/contexts/SelectMultiple/SelectMultipleProvider.d.ts +0 -9
- package/build/contexts/SelectMultiple/SelectMultipleProvider.js +0 -23
- package/build/contexts/SelectMultiple/SelectMultipleProvider.js.map +0 -1
- package/build/contexts/SelectMultiple/SelectMultipleProviderInternal.d.ts +0 -8
- package/build/contexts/SelectMultiple/SelectMultipleProviderInternal.js +0 -61
- package/build/contexts/SelectMultiple/SelectMultipleProviderInternal.js.map +0 -1
- package/build/contexts/SelectRange/SelectRangeProvider.d.ts +0 -9
- package/build/contexts/SelectRange/SelectRangeProvider.js +0 -26
- package/build/contexts/SelectRange/SelectRangeProvider.js.map +0 -1
- package/build/contexts/SelectRange/SelectRangeProviderInternal.d.ts +0 -8
- package/build/contexts/SelectRange/SelectRangeProviderInternal.js +0 -99
- package/build/contexts/SelectRange/SelectRangeProviderInternal.js.map +0 -1
- package/build/contexts/SelectSingle/SelectSingleProvider.d.ts +0 -9
- package/build/contexts/SelectSingle/SelectSingleProvider.js +0 -20
- package/build/contexts/SelectSingle/SelectSingleProvider.js.map +0 -1
- package/build/contexts/SelectSingle/SelectSingleProviderInternal.d.ts +0 -8
- package/build/contexts/SelectSingle/SelectSingleProviderInternal.js +0 -27
- package/build/contexts/SelectSingle/SelectSingleProviderInternal.js.map +0 -1
- package/build/types/CaptionLayout.d.ts +0 -7
- package/build/types/ClassNames.d.ts +0 -3
- package/build/types/Components.d.ts +0 -39
- package/build/types/CustomModifiers.d.ts +0 -4
- package/build/types/DateAfter.d.ts +0 -7
- package/build/types/DateBefore.d.ts +0 -7
- package/build/types/DateFormatter.d.ts +0 -6
- package/build/types/DateInterval.d.ts +0 -8
- package/build/types/DateRange.d.ts +0 -8
- package/build/types/DayClickEventHandler.d.ts +0 -6
- package/build/types/DayFocusEventHandler.d.ts +0 -6
- package/build/types/DayKeyboardEventHandler.d.ts +0 -6
- package/build/types/DayLabelFormatter.d.ts +0 -7
- package/build/types/DayMouseEventHandler.d.ts +0 -6
- package/build/types/DayOfWeekMatcher.d.ts +0 -7
- package/build/types/DayPickerCustomProps.d.ts +0 -11
- package/build/types/DayPickerSingleProps.d.ts +0 -14
- package/build/types/DayTouchEventHandler.d.ts +0 -6
- package/build/types/InternalModifier.d.ts +0 -2
- package/build/types/Matcher.d.ts +0 -10
- package/build/types/Modifier.d.ts +0 -5
- package/build/types/ModifierClassNames.d.ts +0 -5
- package/build/types/ModifierStatus.d.ts +0 -5
- package/build/types/ModifierStyles.d.ts +0 -4
- package/build/types/MonthChangeEventHandler.d.ts +0 -4
- package/build/types/NavButtonLabelFormatter.d.ts +0 -7
- package/build/types/SelectMultipleEventHandler.d.ts +0 -12
- package/build/types/SelectRangeEventHandler.d.ts +0 -10
- package/build/types/SelectSingleEventHandler.d.ts +0 -12
- package/build/types/StyledComponentProps.d.ts +0 -10
- package/build/types/StyledElement.d.ts +0 -76
- package/build/types/WeekNumberClickEventHandler.d.ts +0 -9
- package/build/types/WeekNumberFormatter.d.ts +0 -6
- package/build/types/WeekNumberLabelFormatter.d.ts +0 -5
- package/build/types/WeekdayLabelFormatter.d.ts +0 -4
- package/build/types/isArrayOfDates.d.ts +0 -2
- package/build/types/isArrayOfDates.js +0 -9
- package/build/types/isArrayOfDates.js.map +0 -1
- package/build/types/isDateAfterType.d.ts +0 -3
- package/build/types/isDateAfterType.js +0 -7
- package/build/types/isDateAfterType.js.map +0 -1
- package/build/types/isDateBeforeType.d.ts +0 -3
- package/build/types/isDateBeforeType.js +0 -7
- package/build/types/isDateBeforeType.js.map +0 -1
- package/build/types/isDateInterval.d.ts +0 -3
- package/build/types/isDateInterval.js +0 -10
- package/build/types/isDateInterval.js.map +0 -1
- package/build/types/isDateRange.d.ts +0 -3
- package/build/types/isDateRange.js +0 -8
- package/build/types/isDateRange.js.map +0 -1
- package/build/types/isDateType.d.ts +0 -2
- package/build/types/isDateType.js +0 -9
- package/build/types/isDateType.js.map +0 -1
- package/build/types/isDayOfWeekType.d.ts +0 -3
- package/build/types/isDayOfWeekType.js +0 -7
- package/build/types/isDayOfWeekType.js.map +0 -1
- package/build/types/isDayPickerCustom.d.ts +0 -4
- package/build/types/isDayPickerCustom.js.map +0 -1
- package/build/types/isDayPickerMultiple.d.ts +0 -4
- package/build/types/isDayPickerMultiple.js.map +0 -1
- package/build/types/isDayPickerRange.d.ts +0 -4
- package/build/types/isDayPickerRange.js.map +0 -1
- package/build/types/isDayPickerSingle.d.ts +0 -4
- package/build/types/isDayPickerSingle.js.map +0 -1
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModifierStatus } from './ModifierStatus';
|
|
3
|
-
/**
|
|
4
|
-
* Represent the event handler when a day is focused.
|
|
5
|
-
*/
|
|
6
|
-
export declare type DayFocusEventHandler = (day: Date, modifiers: ModifierStatus, e: React.FocusEvent | React.KeyboardEvent) => void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModifierStatus } from './ModifierStatus';
|
|
3
|
-
/**
|
|
4
|
-
* Represent the event handler when a day gets a keyboard event.
|
|
5
|
-
*/
|
|
6
|
-
export declare type DayKeyboardEventHandler = (day: Date, modifiers: ModifierStatus, e: React.KeyboardEvent) => void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModifierStatus } from './ModifierStatus';
|
|
3
|
-
/**
|
|
4
|
-
* Represent the event handler when a day gets a mouse event.
|
|
5
|
-
*/
|
|
6
|
-
export declare type DayMouseEventHandler = (day: Date, modifiers: ModifierStatus, e: React.MouseEvent) => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DayPickerProps } from '.';
|
|
2
|
-
/**
|
|
3
|
-
* The props for the [[DayPicker]] component when using `mode="custom"`.
|
|
4
|
-
*/
|
|
5
|
-
export interface DayPickerCustomProps extends DayPickerProps {
|
|
6
|
-
mode: 'custom';
|
|
7
|
-
/** The selected day(s). */
|
|
8
|
-
selected?: unknown;
|
|
9
|
-
/** Use `onDayClick` and related event instead. */
|
|
10
|
-
onSelect: never;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DayPickerProps } from './DayPickerProps';
|
|
2
|
-
import { SelectSingleEventHandler } from './SelectSingleEventHandler';
|
|
3
|
-
/**
|
|
4
|
-
* The props for the [[DayPicker]] component when using `mode="single"`.
|
|
5
|
-
*/
|
|
6
|
-
export interface DayPickerSingleProps extends DayPickerProps {
|
|
7
|
-
mode: 'single';
|
|
8
|
-
/** The selected day. */
|
|
9
|
-
selected?: Date | undefined;
|
|
10
|
-
/** Event fired when a day is selected. */
|
|
11
|
-
onSelect?: SelectSingleEventHandler;
|
|
12
|
-
/** Make the selection required. */
|
|
13
|
-
required?: boolean;
|
|
14
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModifierStatus } from './ModifierStatus';
|
|
3
|
-
/**
|
|
4
|
-
* Represent the event handler when a day gets a touch event.
|
|
5
|
-
*/
|
|
6
|
-
export declare type DayTouchEventHandler = (day: Date, modifiers: ModifierStatus, e: React.TouchEvent) => void;
|
package/build/types/Matcher.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DateAfter } from './DateAfter';
|
|
2
|
-
import { DateBefore } from './DateBefore';
|
|
3
|
-
import { DateInterval } from './DateInterval';
|
|
4
|
-
import { DateRange } from './DateRange';
|
|
5
|
-
import { DayOfWeek } from './DayOfWeekMatcher';
|
|
6
|
-
/**
|
|
7
|
-
* A `Matcher` is a function, a date, an object, or an array of them used to
|
|
8
|
-
* determine if a day matches a modifier.
|
|
9
|
-
*/
|
|
10
|
-
export declare type Matcher = ((date: Date) => boolean) | Date | Date[] | DateRange | DateBefore | DateAfter | DateInterval | DayOfWeek;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModifierStatus } from './ModifierStatus';
|
|
3
|
-
/** Represent the event handler when selecting multiple days. */
|
|
4
|
-
export declare type SelectMultipleEventHandler = (
|
|
5
|
-
/** The selected days */
|
|
6
|
-
days: Date[] | undefined,
|
|
7
|
-
/** The day that was clicked triggering the event. */
|
|
8
|
-
selectedDay: Date,
|
|
9
|
-
/** The day that was clicked */
|
|
10
|
-
modifiers: ModifierStatus,
|
|
11
|
-
/** The mouse event that triggered this event. */
|
|
12
|
-
e: React.MouseEvent) => void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DateRange, ModifierStatus } from '../types';
|
|
3
|
-
/** Represent the event handler when selecting a range of days. */
|
|
4
|
-
export declare type SelectRangeEventHandler = (
|
|
5
|
-
/** The current range of the selected days. */
|
|
6
|
-
range: DateRange | undefined,
|
|
7
|
-
/** The day that was selected (or clicked) triggering the event. */
|
|
8
|
-
selectedDay: Date,
|
|
9
|
-
/** The modifiers of the selected day. */
|
|
10
|
-
modifiers: ModifierStatus, e: React.MouseEvent) => void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModifierStatus } from './ModifierStatus';
|
|
3
|
-
/** Represent the event handler when selecting a single day. */
|
|
4
|
-
export interface SelectSingleEventHandler {
|
|
5
|
-
(
|
|
6
|
-
/** The selected day, `undefined` when `required={false}` (default) and the day is clicked again. */
|
|
7
|
-
day: Date | undefined,
|
|
8
|
-
/** The day that was selected (or clicked) triggering the event. */
|
|
9
|
-
selectedDay: Date,
|
|
10
|
-
/** The modifiers of the selected day. */
|
|
11
|
-
modifiers: ModifierStatus, e: React.MouseEvent): void;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/** Represent component props to style a component inline or via CSS. */
|
|
3
|
-
export declare type StyledComponentProps = {
|
|
4
|
-
/** The class name to apply to the container element. */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** The inline style of the container element. */
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
/** The content of the element. */
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/** Represent the style (either via class names or via in-line styles) of an element. */
|
|
3
|
-
export declare type StyledElement<T = string | React.CSSProperties> = {
|
|
4
|
-
/** The style of the root element. */
|
|
5
|
-
readonly root: T;
|
|
6
|
-
/** The style of the root element when `numberOfMonths > 1`. */
|
|
7
|
-
readonly multiple_month: T;
|
|
8
|
-
/** The style of the root element when `showWeekNumber={true}`. */
|
|
9
|
-
readonly with_weeknumber: T;
|
|
10
|
-
/** The style of an element visually hidden. */
|
|
11
|
-
readonly vhidden: T;
|
|
12
|
-
/** The style for resetting the buttons. */
|
|
13
|
-
readonly button_reset: T;
|
|
14
|
-
/** The style of the buttons. */
|
|
15
|
-
readonly button: T;
|
|
16
|
-
/** The style of the caption (showing the calendar heading and the navigation) */
|
|
17
|
-
readonly caption: T;
|
|
18
|
-
/** The style of the caption when the first of a series of months. */
|
|
19
|
-
readonly caption_first: T;
|
|
20
|
-
/** The style of the caption when the last of a series of months. */
|
|
21
|
-
readonly caption_last: T;
|
|
22
|
-
/** The style of the caption when in the middle of a series of months.. */
|
|
23
|
-
readonly caption_middle: T;
|
|
24
|
-
/** The style of the caption label (e.g. "September 2021"). */
|
|
25
|
-
readonly caption_label: T;
|
|
26
|
-
/** The style of the drop-downs container. */
|
|
27
|
-
readonly caption_dropdowns: T;
|
|
28
|
-
/** The style of the drop-down (select) element. */
|
|
29
|
-
readonly dropdown: T;
|
|
30
|
-
/** The style of the drop-down to change the month. */
|
|
31
|
-
readonly dropdown_month: T;
|
|
32
|
-
/** The style of the drop-down to change the year. */
|
|
33
|
-
readonly dropdown_year: T;
|
|
34
|
-
/** The style of the drop-down icon. */
|
|
35
|
-
readonly dropdown_icon: T;
|
|
36
|
-
/** The style of the months wrapper. */
|
|
37
|
-
readonly months: T;
|
|
38
|
-
/** The style of the table wrapper. */
|
|
39
|
-
readonly month: T;
|
|
40
|
-
/** The style of table containing the monthly calendar. */
|
|
41
|
-
readonly table: T;
|
|
42
|
-
/** The style of the table body. */
|
|
43
|
-
readonly tbody: T;
|
|
44
|
-
/** The style of the table footer. */
|
|
45
|
-
readonly tfoot: T;
|
|
46
|
-
/** The style of the table’s head. */
|
|
47
|
-
readonly head: T;
|
|
48
|
-
/** The style of the row in the head. */
|
|
49
|
-
readonly head_row: T;
|
|
50
|
-
/** The style of the head cell. */
|
|
51
|
-
readonly head_cell: T;
|
|
52
|
-
/** The style of the navigation container. */
|
|
53
|
-
readonly nav: T;
|
|
54
|
-
/** The style of the navigation button. */
|
|
55
|
-
readonly nav_button: T;
|
|
56
|
-
/** The style of the "previous month" navigation button. */
|
|
57
|
-
readonly nav_button_previous: T;
|
|
58
|
-
/** The style of the "next month" navigation button. */
|
|
59
|
-
readonly nav_button_next: T;
|
|
60
|
-
/** The style of the icon for the navigation button. */
|
|
61
|
-
readonly nav_icon: T;
|
|
62
|
-
/** A style of the table’s row. */
|
|
63
|
-
readonly row: T;
|
|
64
|
-
/** The style of the row’s head (displaying the week numbers). */
|
|
65
|
-
readonly row_head: T;
|
|
66
|
-
/** The style of the weeknumber. */
|
|
67
|
-
readonly weeknumber: T;
|
|
68
|
-
/** The style of the table cell containing the day element. */
|
|
69
|
-
readonly cell: T;
|
|
70
|
-
/** The style of the day button (it is a `span` when not interactive). */
|
|
71
|
-
readonly day: T;
|
|
72
|
-
/** The style of a day when outside the month. */
|
|
73
|
-
readonly day_outside: T;
|
|
74
|
-
/** The style of today button. */
|
|
75
|
-
readonly day_today: T;
|
|
76
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**Represent the event handler when the week number is clicked. */
|
|
3
|
-
export declare type WeekNumberClickEventHandler = (
|
|
4
|
-
/** The week number that has been clicked. */
|
|
5
|
-
weekNumber: number,
|
|
6
|
-
/** The dates in the clicked week. */
|
|
7
|
-
dates: Date[],
|
|
8
|
-
/** The mouse event that triggered this event. */
|
|
9
|
-
e: React.MouseEvent) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { isDate } from 'date-fns';
|
|
2
|
-
|
|
3
|
-
/** Returns true if `value` is an array of valid dates. */
|
|
4
|
-
function isArrayOfDates(value) {
|
|
5
|
-
return Array.isArray(value) && value.every(isDate);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export { isArrayOfDates };
|
|
9
|
-
//# sourceMappingURL=isArrayOfDates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isArrayOfDates.js","sources":["../../src/types/isArrayOfDates.ts"],"sourcesContent":["import { isDate } from 'date-fns';\n\n/** Returns true if `value` is an array of valid dates. */\nexport function isArrayOfDates(value: unknown): value is Date[] {\n return Array.isArray(value) && value.every(isDate);\n}\n"],"names":[],"mappings":";;AAEA;SACgB,cAAc,CAAC,KAAc;IAC3C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACrD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDateAfterType.js","sources":["../../src/types/isDateAfterType.ts"],"sourcesContent":["import { DateAfter } from './DateAfter';\n\n/** Returns true if `value` is of type [[DateAfter]]. */\nexport function isDateAfterType(value: unknown): value is DateAfter {\n return Boolean(value && typeof value === 'object' && 'after' in value);\n}\n"],"names":[],"mappings":"AAEA;SACgB,eAAe,CAAC,KAAc;IAC5C,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,CAAC,CAAC;AACzE;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDateBeforeType.js","sources":["../../src/types/isDateBeforeType.ts"],"sourcesContent":["import { DateBefore } from './DateBefore';\n\n/** Returns true if `value` is of type [[DateBefore]]. */\nexport function isDateBeforeType(value: unknown): value is DateBefore {\n return Boolean(value && typeof value === 'object' && 'before' in value);\n}\n"],"names":[],"mappings":"AAEA;SACgB,gBAAgB,CAAC,KAAc;IAC7C,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAI,KAAK,CAAC,CAAC;AAC1E;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** Returns true if `matcher` is of type [[DateInterval]]. */
|
|
2
|
-
function isDateInterval(matcher) {
|
|
3
|
-
return Boolean(matcher &&
|
|
4
|
-
typeof matcher === 'object' &&
|
|
5
|
-
'before' in matcher &&
|
|
6
|
-
'after' in matcher);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { isDateInterval };
|
|
10
|
-
//# sourceMappingURL=isDateInterval.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDateInterval.js","sources":["../../src/types/isDateInterval.ts"],"sourcesContent":["import { DateInterval } from './DateInterval';\n\n/** Returns true if `matcher` is of type [[DateInterval]]. */\nexport function isDateInterval(matcher: unknown): matcher is DateInterval {\n return Boolean(\n matcher &&\n typeof matcher === 'object' &&\n 'before' in matcher &&\n 'after' in matcher\n );\n}\n"],"names":[],"mappings":"AAEA;SACgB,cAAc,CAAC,OAAgB;IAC7C,OAAO,OAAO,CACZ,OAAO;QACL,OAAO,OAAO,KAAK,QAAQ;QAC3B,QAAQ,IAAI,OAAO;QACnB,OAAO,IAAI,OAAO,CACrB,CAAC;AACJ;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDateRange.js","sources":["../../src/types/isDateRange.ts"],"sourcesContent":["import { DateRange } from './DateRange';\n\n/** Returns true if `value` is a [[DateRange]] type. */\nexport function isDateRange(value: unknown): value is DateRange {\n // TODO: Check if dates?!\n return Boolean(value && typeof value === 'object' && 'from' in value);\n}\n"],"names":[],"mappings":"AAEA;SACgB,WAAW,CAAC,KAAc;;IAExC,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,CAAC,CAAC;AACxE;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDateType.js","sources":["../../src/types/isDateType.ts"],"sourcesContent":["import { isDate } from 'date-fns';\n\n/** Returns true if `value` is a Date type. */\nexport function isDateType(value: unknown): value is Date {\n return isDate(value);\n}\n"],"names":[],"mappings":";;AAEA;SACgB,UAAU,CAAC,KAAc;IACvC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDayOfWeekType.js","sources":["../../src/types/isDayOfWeekType.ts"],"sourcesContent":["import { DayOfWeek } from './DayOfWeekMatcher';\n\n/** Returns true if `value` is a [[DayOfWeek]] type. */\nexport function isDayOfWeekType(value: unknown): value is DayOfWeek {\n return Boolean(value && typeof value === 'object' && 'dayOfWeek' in value);\n}\n"],"names":[],"mappings":"AAEA;SACgB,eAAe,CAAC,KAAc;IAC5C,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,WAAW,IAAI,KAAK,CAAC,CAAC;AAC7E;;;;"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DayPickerProps } from './DayPickerProps';
|
|
2
|
-
import { DayPickerCustomProps } from './DayPickerCustomProps';
|
|
3
|
-
/** Returns true when the props are of type [[DayPickerCustom]]. */
|
|
4
|
-
export declare function isDayPickerCustom(props: DayPickerProps): props is DayPickerCustomProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDayPickerCustom.js","sources":["../../src/types/isDayPickerCustom.ts"],"sourcesContent":["import { DayPickerProps } from './DayPickerProps';\nimport { DayPickerCustomProps } from './DayPickerCustomProps';\n\n/** Returns true when the props are of type [[DayPickerCustom]]. */\nexport function isDayPickerCustom(\n props: DayPickerProps\n): props is DayPickerCustomProps {\n return props.mode === 'custom';\n}\n"],"names":[],"mappings":"AAGA;SACgB,iBAAiB,CAC/B,KAAqB;IAErB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;AACjC;;;;"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DayPickerMultipleProps } from './DayPickerMultipleProps';
|
|
2
|
-
import { DayPickerProps } from './DayPickerProps';
|
|
3
|
-
/** Returns true when the props are of type [[DayPickerMultiple]]. */
|
|
4
|
-
export declare function isDayPickerMultiple(props: DayPickerProps): props is DayPickerMultipleProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDayPickerMultiple.js","sources":["../../src/types/isDayPickerMultiple.tsx"],"sourcesContent":["import { DayPickerMultipleProps } from './DayPickerMultipleProps';\nimport { DayPickerProps } from './DayPickerProps';\n\n/** Returns true when the props are of type [[DayPickerMultiple]]. */\nexport function isDayPickerMultiple(\n props: DayPickerProps\n): props is DayPickerMultipleProps {\n return props.mode === 'multiple';\n}\n"],"names":[],"mappings":"AAGA;SACgB,mBAAmB,CACjC,KAAqB;IAErB,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC;AACnC;;;;"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DayPickerProps } from './DayPickerProps';
|
|
2
|
-
import { DayPickerRangeProps } from './DayPickerRangeProps';
|
|
3
|
-
/** Returns true when the props are of type [[DayPickerRange]]. */
|
|
4
|
-
export declare function isDayPickerRange(props: DayPickerProps): props is DayPickerRangeProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDayPickerRange.js","sources":["../../src/types/isDayPickerRange.tsx"],"sourcesContent":["import { DayPickerProps } from './DayPickerProps';\nimport { DayPickerRangeProps } from './DayPickerRangeProps';\n\n/** Returns true when the props are of type [[DayPickerRange]]. */\nexport function isDayPickerRange(\n props: DayPickerProps\n): props is DayPickerRangeProps {\n return props.mode === 'range';\n}\n"],"names":[],"mappings":"AAGA;SACgB,gBAAgB,CAC9B,KAAqB;IAErB,OAAO,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC;AAChC;;;;"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DayPickerProps } from './DayPickerProps';
|
|
2
|
-
import { DayPickerSingleProps } from './DayPickerSingleProps';
|
|
3
|
-
/** Returns true when the props are of type [[DayPickerSingle]]. */
|
|
4
|
-
export declare function isDayPickerSingle(props: DayPickerProps): props is DayPickerSingleProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isDayPickerSingle.js","sources":["../../src/types/isDayPickerSingle.ts"],"sourcesContent":["import { DayPickerProps } from './DayPickerProps';\nimport { DayPickerSingleProps } from './DayPickerSingleProps';\n\n/** Returns true when the props are of type [[DayPickerSingle]]. */\nexport function isDayPickerSingle(\n props: DayPickerProps\n): props is DayPickerSingleProps {\n return props.mode === 'single';\n}\n"],"names":[],"mappings":"AAGA;SACgB,iBAAiB,CAC/B,KAAqB;IAErB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;AACjC;;;;"}
|