Socket
Socket
Sign inDemoInstall

react-day-picker

Package Overview
Dependencies
6
Maintainers
1
Versions
227
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.7 to 8.1.0

dist/hooks/useId/index.d.ts

4

dist/components/Button/Button.d.ts
import React from 'react';
/** The props for the [[Button]] component. */
/** The props for the {@link Button} component. */
export declare type ButtonProps = React.HTMLProps<HTMLButtonElement>;

@@ -7,2 +7,2 @@ /**

*/
export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "multiple" | "default" | "className" | "style" | "disabled" | "hidden" | "selected" | "dir" | "onSelect" | "required" | "min" | "max" | "cite" | "data" | "form" | "label" | "slot" | "span" | "summary" | "title" | "pattern" | "children" | "value" | "id" | "aria-label" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "media" | "mediaGroup" | "method" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLButtonElement>>;
export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "multiple" | "default" | "className" | "style" | "disabled" | "hidden" | "selected" | "dir" | "onSelect" | "required" | "min" | "max" | "start" | "color" | "content" | "size" | "wrap" | "open" | "cite" | "data" | "form" | "label" | "slot" | "span" | "summary" | "title" | "pattern" | "children" | "value" | "id" | "aria-label" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "media" | "mediaGroup" | "method" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "type" | "useMap" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLButtonElement>>;

@@ -1,2 +0,2 @@

/** Represent the props of the [[Caption]] component. */
/** Represent the props of the {@link Caption} component. */
export interface CaptionProps {

@@ -17,4 +17,4 @@ /** The ID for the heading element. Must be the same as the labelled-by in Table. */

* Render the caption of a month. The caption has a different layout when
* setting the [[DayPickerProps.captionLayout]] prop.
* setting the {@link DayPickerBase.captionLayout} prop.
*/
export declare function Caption(props: CaptionProps): JSX.Element;

@@ -1,2 +0,2 @@

/** The props for the [[CaptionLabel]] component. */
/** The props for the {@link CaptionLabel} component. */
export interface CaptionLabelProps {

@@ -3,0 +3,0 @@ /** The ID for the heading element. Must be the same as the labelled-by in Table. */

@@ -1,2 +0,2 @@

/** Represent the props used by the [[Day]] component. */
/** Represent the props used by the {@link Day} component. */
export interface DayProps {

@@ -3,0 +3,0 @@ /** The month where the date is displayed. */

import { ActiveModifiers } from '../../types/Modifiers';
/** Represent the props for the [[DayContent]] component. */
/** Represent the props for the {@link DayContent} component. */
export interface DayContentProps {

@@ -4,0 +4,0 @@ /** The date representing the day. */

import React from 'react';
/** The props for the [[Dropdown]] component. */
/** The props for the {@link Dropdown} component. */
export interface DropdownProps {

@@ -4,0 +4,0 @@ caption?: React.ReactNode;

@@ -1,2 +0,2 @@

/** The props for the [[Month]] component. */
/** The props for the {@link Month} component. */
export interface MonthProps {

@@ -3,0 +3,0 @@ displayIndex: number;

import { MonthChangeEventHandler } from '../../types/EventHandlers';
/** The props for the [[MonthsDropdown]] component. */
/** The props for the {@link MonthsDropdown} component. */
export interface MonthsDropdownProps {

@@ -4,0 +4,0 @@ /** The month where the dropdown is displayed. */

import React from 'react';
/** The props for the [[Navigation]] component. */
/** The props for the {@link Navigation} component. */
export interface NavigationProps {

@@ -4,0 +4,0 @@ /** The month where the caption is displayed. */

/**
* The props for the [[Row]] component.
* The props for the {@link Row} component.
*/

@@ -4,0 +4,0 @@ export interface RowProps {

@@ -1,2 +0,2 @@

/** The props for the [[Table]] component. */
/** The props for the {@link Table} component. */
export interface TableProps {

@@ -3,0 +3,0 @@ /** The ID of the label of the table (the same given to the Caption). */

/**
* The props for the [[WeekNumber]] component.
* The props for the {@link WeekNumber} component.
*/

@@ -4,0 +4,0 @@ export interface WeekNumberProps {

import { MonthChangeEventHandler } from '../../types/EventHandlers';
/**
* The props for the [[YearsDropdown]] component.
* The props for the {@link YearsDropdown} component.
*/

@@ -5,0 +5,0 @@ export interface YearsDropdownProps {

@@ -13,3 +13,3 @@ import React, { ReactNode } from 'react';

import { ClassNames, Styles } from '../../types/Styles';
/** The value of the [[DayPickerContext]]. */
/** The value of the {@link DayPickerContext}. */
export interface DayPickerContextValue extends DayPickerBase {

@@ -34,11 +34,10 @@ mode: DaySelectionMode;

/**
* The DayPicker Context shares the props passed to DayPicker within internal
* The DayPicker context shares the props passed to DayPicker within internal
* and custom components. It is used to set the default values and perform
* one-time calculations required to render the days.
*
* Developers may access this context from the [[useDayPicker]] hook when
* using custom components.
* Access to this context from the {@link useDayPicker} hook.
*/
export declare const DayPickerContext: React.Context<DayPickerContextValue | undefined>;
/** The props for the [[DayPickerProvider]]. */
/** The props for the {@link DayPickerProvider}. */
export interface DayPickerProviderProps {

@@ -50,5 +49,5 @@ /** The initial props from the DayPicker component. */

/**
* The provider for the [[DayPickerContext]], assigning the defaults from the
* The provider for the {@link DayPickerContext}, assigning the defaults from the
* initial DayPicker props.
*/
export declare function DayPickerProvider(props: DayPickerProviderProps): JSX.Element;
import { DayPickerContextValue } from './DayPickerContext';
/**
* Hook to access the [[DayPickerContext]].
* Hook to access the {@link DayPickerContextValue}.
*
* To use this hook make sure to wrap the components with a one
* [[DayPickerProvider]].
* Use the DayPicker context to access to the props passed to DayPicker inside
* internal or custom components.
*/
export declare function useDayPicker(): DayPickerContextValue;
import React, { ReactNode } from 'react';
/** Represents the value of the [[NavigationContext]]. */
/** Represents the value of the {@link FocusContext}. */
export declare type FocusContextValue = {

@@ -30,8 +30,8 @@ /** The day currently focused. */

*
* Access this context from the [[useFocus]] hook.
* Access this context from the {@link useFocusContext} hook.
*/
export declare const FocusContext: React.Context<FocusContextValue | undefined>;
/** The provider for the [[FocusContext]]. */
/** The provider for the {@link FocusContext}. */
export declare function FocusProvider(props: {
children: ReactNode;
}): JSX.Element;
import { FocusContextValue } from './FocusContext';
/** Hook to access the [[FocusContext]]. */
/**
* Hook to access the {@link FocusContextValue}. Use this hook to handle the
* focus state of the elements.
*
* This hook is meant to be used inside internal or custom components.
*/
export declare function useFocusContext(): FocusContextValue;
import React, { ReactNode } from 'react';
import { Modifiers } from '../../types/Modifiers';
/** The Modifiers context store the modifiers used in DayPicker. To access the value of this context, use [[useModifiers]]. */
/** The Modifiers context store the modifiers used in DayPicker. To access the value of this context, use {@link useModifiers}. */
export declare const ModifiersContext: React.Context<Modifiers | undefined>;

@@ -8,3 +8,3 @@ export declare type ModifiersProviderProps = {

};
/** Provide the value for the [[ModifiersContext]]. */
/** Provide the value for the {@link ModifiersContext}. */
export declare function ModifiersProvider(props: ModifiersProviderProps): JSX.Element;

@@ -5,3 +5,6 @@ import { Modifiers } from '../../types/Modifiers';

*
* Requires to be wrapped into [[ModifiersProvider]]. */
* This hook is meant to be used inside internal or custom components.
* Requires to be wrapped into {@link ModifiersProvider}.
*
*/
export declare function useModifiers(): Modifiers;

@@ -5,3 +5,3 @@ import { DayPickerContextValue } from '../../../contexts/DayPicker';

import { InternalModifiers } from '../../../types/Modifiers';
/** Return the [[InternalModifiers]] from the DayPicker and select contexts. */
/** Return the {@link InternalModifiers} from the DayPicker and select contexts. */
export declare function getInternalModifiers(dayPicker: DayPickerContextValue, selectMultiple: SelectMultipleContextValue, selectRange: SelectRangeContextValue): InternalModifiers;
import React, { ReactNode } from 'react';
/** Represents the value of the [[NavigationContext]]. */
/** Represents the value of the {@link NavigationContext}. */
export interface NavigationContextValue {
/** The month to display in the calendar. Note that when `numberOfMonths > 1` represent the first month in the displayed months. */
/** The month to display in the calendar. When `numberOfMonths` is greater than one, is the first of the displayed months. */
currentMonth: Date;
/** The months rendered by DayPicker. DayPicker can render one than one month via `numberOfMonths`. */
/** The months rendered by DayPicker. DayPicker can render multiple months via `numberOfMonths`. */
displayMonths: Date[];

@@ -12,18 +12,17 @@ /** Navigate to the specified month. */

goToDate: (date: Date, refDate?: Date) => void;
/** The next month to display. `undefined` if no months left */
/** The next month to display. */
nextMonth?: Date;
/** The previous month to display. `undefined` if no months left */
/** The previous month to display. */
previousMonth?: Date;
/** Return true if the day is currently included in the months displayed in the calendar. */
/** Whether the given day is included in the displayed months. */
isDateDisplayed: (day: Date) => boolean;
}
/**
* The Navigation context shares details about the months being navigated in DayPicker.
*
* Access this context from the [[useNavigation]] hook.
* The Navigation context shares details and methods to navigate the months in DayPicker.
* Access this context from the {@link useNavigation} hook.
*/
export declare const NavigationContext: React.Context<NavigationContextValue | undefined>;
/** Provides the values for the [[NavigationContext]]. */
/** Provides the values for the {@link NavigationContext}. */
export declare function NavigationProvider(props: {
children?: ReactNode;
}): JSX.Element;
import { NavigationContextValue } from './NavigationContext';
/** Hook to access the [[NavigationContext]]. */
/**
* Hook to access the {@link NavigationContextValue}. Use this hook to navigate
* between months or years in DayPicker.
*
* This hook is meant to be used inside internal or custom components.
*/
export declare function useNavigation(): NavigationContextValue;
import React from 'react';
import { DayPickerBase } from '../types/DayPickerBase';
/** The props of [[RootProvider]]. */
/** The props of {@link RootProvider}. */
export declare type RootContext = DayPickerBase & {

@@ -5,0 +5,0 @@ children: React.ReactNode;

@@ -8,3 +8,3 @@ import React, { ReactNode } from 'react';

export declare type SelectMultipleModifiers = Pick<Modifiers, InternalModifier.Disabled>;
/** Represents the value of a [[SelectMultipleContext]]. */
/** Represents the value of a {@link SelectMultipleContext}. */
export interface SelectMultipleContextValue {

@@ -22,3 +22,3 @@ /** The days that have been selected. */

*
* Access this context from the [[useSelectMultiple]] hook.
* Access this context from the {@link useSelectMultiple} hook.
*/

@@ -30,3 +30,3 @@ export declare const SelectMultipleContext: React.Context<SelectMultipleContextValue | undefined>;

};
/** Provides the values for the [[SelectMultipleContext]]. */
/** Provides the values for the {@link SelectMultipleContext}. */
export declare function SelectMultipleProvider(props: SelectMultipleProviderProps): JSX.Element;

@@ -33,0 +33,0 @@ declare type SelectMultipleProviderInternalProps = {

import { SelectMultipleContextValue } from './SelectMultipleContext';
/** Hook to access the [[SelectMultipleContext]]. */
/**
* Hook to access the {@link SelectMultipleContextValue}.
*
* This hook is meant to be used inside internal or custom components.
*/
export declare function useSelectMultiple(): SelectMultipleContextValue;

@@ -9,3 +9,3 @@ import React, { ReactNode } from 'react';

export declare type SelectRangeModifiers = Pick<Modifiers, InternalModifier.Disabled | InternalModifier.RangeEnd | InternalModifier.RangeMiddle | InternalModifier.RangeStart>;
/** Represents the value of a [[SelectRangeContext]]. */
/** Represents the value of a {@link SelectRangeContext}. */
export interface SelectRangeContextValue {

@@ -23,3 +23,3 @@ /** The range of days that has been selected. */

*
* Access this context from the [[useSelectRange]] hook.
* Access this context from the {@link useSelectRange} hook.
*/

@@ -31,3 +31,3 @@ export declare const SelectRangeContext: React.Context<SelectRangeContextValue | undefined>;

};
/** Provides the values for the [[SelectRangeProvider]]. */
/** Provides the values for the {@link SelectRangeProvider}. */
export declare function SelectRangeProvider(props: SelectRangeProviderProps): JSX.Element;

@@ -34,0 +34,0 @@ declare type SelectRangeProviderInternalProps = {

import { SelectRangeContextValue } from './SelectRangeContext';
/** Hook to access the [[SelectRangeContext]]. */
/**
* Hook to access the {@link SelectRangeContextValue}.
*
* This hook is meant to be used inside internal or custom components.
*/
export declare function useSelectRange(): SelectRangeContextValue;

@@ -5,3 +5,3 @@ import React from 'react';

import { DayClickEventHandler } from '../../types/EventHandlers';
/** Represents the value of a [[SelectSingleContext]]. */
/** Represents the value of a {@link SelectSingleContext}. */
export interface SelectSingleContextValue {

@@ -17,3 +17,3 @@ /** The day that has been selected. */

*
* Access this context from the [[useSelectSingle]] hook.
* Access this context from the {@link useSelectSingle} hook.
*/

@@ -25,3 +25,3 @@ export declare const SelectSingleContext: React.Context<SelectSingleContextValue | undefined>;

};
/** Provides the values for the [[SelectSingleProvider]]. */
/** Provides the values for the {@link SelectSingleProvider}. */
export declare function SelectSingleProvider(props: SelectSingleProviderProps): JSX.Element;

@@ -28,0 +28,0 @@ declare type SelectSingleProviderInternal = {

import { SelectSingleContextValue } from './SelectSingleContext';
/** Hook to access the [[SelectSingleContext]]. */
/**
* Hook to access the {@link SelectSingleContextValue}.
*
* This hook is meant to be used inside internal or custom components.
*/
export declare function useSelectSingle(): SelectSingleContextValue;

@@ -1,2 +0,1 @@

import { DaySelectionMode } from './types/DayPickerBase';
import { DayPickerDefaultProps } from './types/DayPickerDefault';

@@ -6,2 +5,3 @@ import { DayPickerMultipleProps } from './types/DayPickerMultiple';

import { DayPickerSingleProps } from './types/DayPickerSingle';
export declare type DayPickerProps = DayPickerDefaultProps | DayPickerSingleProps | DayPickerMultipleProps | DayPickerRangeProps;
/**

@@ -94,5 +94,2 @@ * DayPicker render a date picker component to let users pick dates from a

*/
export declare type DayPickerProps = {
mode?: DaySelectionMode;
} & (DayPickerDefaultProps | DayPickerSingleProps | DayPickerMultipleProps | DayPickerRangeProps);
export declare function DayPicker(props: DayPickerProps): JSX.Element;
export declare function DayPicker(props: DayPickerDefaultProps | DayPickerSingleProps | DayPickerMultipleProps | DayPickerRangeProps): JSX.Element;

@@ -5,6 +5,12 @@ import { ActiveModifiers } from '../../types/Modifiers';

*
* This hook is meant to be used inside internal or custom components.
*
* @param day
* @param displayMonth The month where the date is displayed. If not the same as
* `date`, the day is an "outside day".
* @param displayMonth
*/
export declare function useActiveModifiers(day: Date, displayMonth?: Date): ActiveModifiers;
export declare function useActiveModifiers(day: Date,
/**
* The month where the date is displayed. If not the same as `date`, the day
* is an "outside day".
*/
displayMonth?: Date): ActiveModifiers;

@@ -21,7 +21,7 @@ import { HTMLProps } from 'react';

*
* Use this hook to customize the behavior of the [[Day]] component. Create a
* Use this hook to customize the behavior of the {@link Day} component. Create a
* new `Day` component using this hook and pass it to the `components` prop.
* The source of [[Day]] can be a good starting point.
* The source of {@link Day} can be a good starting point.
*
*/
export declare function useDayEventHandlers(date: Date, activeModifiers: ActiveModifiers): DayEventHandlers;

@@ -15,3 +15,3 @@ import React from 'react';

/** The props to apply to the button element (when `isButton` is true). */
buttonProps: StyledComponent & Pick<ButtonProps, 'aria-disabled' | 'aria-pressed' | 'tabIndex'> & DayEventHandlers;
buttonProps: StyledComponent & Pick<ButtonProps, 'disabled' | 'aria-pressed' | 'tabIndex'> & DayEventHandlers;
/** The props to apply to the div element (when `isButton` is false). */

@@ -22,20 +22,13 @@ divProps: StyledComponent;

/**
* Return props and data used to render the [[Day]] component.
* Return props and data used to render the {@link Day} component.
*
* Use this hook when creating a component to replace the built-in `Day`
* component.
*
* Each Day in DayPicker should render one of the following, according to the return
* value:
*
* - an empty `React.Fragment`, to render if `isHidden` is true
* - a `button` element, when the day is interactive, e.g. is selectable
* - a `div` element, whe the day is not interactive
*
* @param day The date to render
* @param displayMonth The month where the date is displayed (if not the same as
* `date`, it means it is an "outside" day)
* @param buttonRef A ref to the button element that will be target of focus
* when rendered (if required).
*/
export declare function useDayRender(day: Date, displayMonth: Date, buttonRef: React.RefObject<HTMLButtonElement>): DayRender;
export declare function useDayRender(
/** The date to render. */
day: Date,
/** The month where the date is displayed (if not the same as `date`, it means it is an "outside" day). */
displayMonth: Date,
/** A ref to the button element that will be target of focus when rendered (if required). */
buttonRef: React.RefObject<HTMLButtonElement>): DayRender;
import React from 'react';
import { DayPickerBase } from '../../types/DayPickerBase';
import { DayPickerSingleProps } from '../../types/DayPickerSingle';
/** The props to attach to the input field when using [[useInput]]. */
/** The props to attach to the input field when using {@link useInput}. */
export declare type InputHTMLAttributes = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'onBlur' | 'onChange' | 'onFocus' | 'value' | 'placeholder'>;
/** The props to attach to the DayPicker component when using [[useInput]]. */
/** The props to attach to the DayPicker component when using {@link useInput}. */
export declare type InputDayPickerProps = Pick<DayPickerSingleProps, 'fromDate' | 'toDate' | 'locale' | 'month' | 'onDayClick' | 'onMonthChange' | 'selected' | 'today'>;

@@ -16,4 +16,4 @@ export interface UseInputOptions extends Pick<DayPickerBase, 'locale' | 'fromDate' | 'toDate' | 'fromMonth' | 'toMonth' | 'fromYear' | 'toYear' | 'today'> {

}
/** Represent the value returned by [[useInput]]. */
export interface UseInput {
/** Represent the value returned by {@link useInput}. */
export interface UseInputValue {
/** The props to pass to a DayPicker component. */

@@ -29,2 +29,2 @@ dayPickerProps: InputDayPickerProps;

/** Return props and setters for binding an input field to DayPicker. */
export declare function useInput(options?: UseInputOptions): UseInput;
export declare function useInput(options?: UseInputOptions): UseInputValue;
import { DateRange } from '../../types/Matchers';
export declare type SelectedDays = Date | Date[] | DateRange | undefined;
/**
* Return the current selected days when DayPicker is in selection mode.
* Return the current selected days when DayPicker is in selection mode. Days
* selected by the custom selection mode are not returned.
*
* Days selected by the custom selection mode are not returned.
* This hook is meant to be used inside internal or custom components.
*
*/
export declare function useSelectedDays(): SelectedDays;

@@ -39,1 +39,2 @@ export * from './DayPicker';

export * from './contexts/Modifiers/utils/isMatch';
export * from './contexts/SelectRange/utils/addToRange';

@@ -1,1 +0,1 @@

!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("date-fns/locale/en-US"),a=require("date-fns/format"),n=require("date-fns/endOfMonth"),o=require("date-fns/startOfDay"),r=require("date-fns/startOfMonth"),l=require("date-fns/isSameYear"),i=require("date-fns/setMonth"),u=require("date-fns/setYear"),d=require("date-fns/startOfYear"),s=require("date-fns/addMonths"),c=require("date-fns/isBefore"),f=require("date-fns/isSameMonth"),p=require("date-fns/differenceInCalendarMonths"),v=require("date-fns/addDays"),m=require("date-fns/startOfWeek"),y=require("date-fns/getUnixTime"),h=require("date-fns/isSameDay"),b=require("date-fns/addWeeks"),D=require("date-fns/addYears"),g=require("date-fns/endOfWeek"),M=require("date-fns/differenceInCalendarDays"),w=require("date-fns/isAfter"),E=require("date-fns/isDate"),x=require("date-fns/getWeeksInMonth"),_=require("date-fns/getWeek"),N=require("date-fns/parse");function k(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var C=k(e),P=k(t),S=k(a),O=k(n),L=k(o),T=k(r),W=k(l),I=k(i),B=k(u),F=k(d),q=k(s),j=k(c),R=k(f),A=k(p),Y=k(v),K=k(m),H=k(y),U=k(h),z=k(b),Z=k(D),G=k(g),J=k(M),Q=k(w),V=k(E),X=k(x),$=k(_),ee=k(N),te=function(){return te=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},te.apply(this,arguments)};function ae(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var ne=ae()?e.useLayoutEffect:e.useEffect,oe=!1,re=0,le=function(){return++re};var ie={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var ue=Object.freeze({__proto__:null,formatCaption:function(e,t){return S.default(e,"LLLL y",t)},formatDay:function(e,t){return S.default(e,"d",t)},formatMonthCaption:function(e,t){return S.default(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return S.default(e,"cccccc",t)},formatYearCaption:function(e,t){return S.default(e,"yyyy",t)}}),de=Object.freeze({__proto__:null,labelDay:function(e,t,a){return S.default(e,"do MMMM (EEEE)",a)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekday:function(e,t){return S.default(e,"cccc",t)},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelYearDropdown:function(){return"Year: "}});function se(e){var t=e.fromYear,a=e.toYear,n=e.fromMonth,o=e.toMonth,r=e.fromDate,l=e.toDate;return n?r=T.default(n):t&&(r=new Date(t,0,1)),o?l=O.default(o):a&&(l=new Date(a,11,31)),{fromDate:r?L.default(r):void 0,toDate:l?L.default(l):void 0}}var ce=e.createContext(void 0);function fe(e){var t,a,n,o,r,l,i,u=e.initialProps,d=(r=ie,l=P.default,i=new Date,{captionLayout:"buttons",classNames:r,formatters:ue,labels:de,locale:l,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:i,mode:"default"}),s=se(u),c=s.fromDate,f=s.toDate,p=null!==(t=u.captionLayout)&&void 0!==t?t:d.captionLayout;"buttons"===p||c&&f||(p="buttons");var v={captionLayout:p,className:u.className,classNames:te(te({},d.classNames),u.classNames),components:te(te({},d.components),u.components),defaultMonth:u.defaultMonth,dir:u.dir,disabled:u.disabled,disableNavigation:u.disableNavigation,fixedWeeks:u.fixedWeeks,footer:u.footer,formatters:te(te({},d.formatters),u.formatters),fromDate:c,hidden:u.hidden,hideHead:u.hideHead,initialFocus:u.initialFocus,labels:te(te({},d.labels),u.labels),locale:null!==(a=u.locale)&&void 0!==a?a:d.locale,mode:u.mode||"default",modifiers:te(te({},d.modifiers),u.modifiers),modifiersClassNames:te(te({},d.modifiersClassNames),u.modifiersClassNames),modifiersStyles:u.modifiersStyles,month:u.month,numberOfMonths:null!==(n=u.numberOfMonths)&&void 0!==n?n:d.numberOfMonths,onDayBlur:u.onDayBlur,onDayClick:u.onDayClick,onDayFocus:u.onDayFocus,onDayKeyDown:u.onDayKeyDown,onDayKeyPress:u.onDayKeyPress,onDayKeyUp:u.onDayKeyUp,onDayMouseEnter:u.onDayMouseEnter,onDayMouseLeave:u.onDayMouseLeave,onDayTouchCancel:u.onDayTouchCancel,onDayTouchEnd:u.onDayTouchEnd,onDayTouchMove:u.onDayTouchMove,onDayTouchStart:u.onDayTouchStart,onMonthChange:u.onMonthChange,onNextClick:u.onNextClick,onPrevClick:u.onPrevClick,onWeekNumberClick:u.onWeekNumberClick,pagedNavigation:u.pagedNavigation,reverseMonths:u.reverseMonths,selected:u.selected,showOutsideDays:u.showOutsideDays,showWeekNumber:u.showWeekNumber,style:u.style,styles:te(te({},d.styles),u.styles),toDate:f,today:null!==(o=u.today)&&void 0!==o?o:d.today,weekStartsOn:u.weekStartsOn};return C.default.createElement(ce.Provider,{value:v},e.children)}function pe(){var t=e.useContext(ce);if(!t)throw new Error("useDayPicker must be used within a DayPickerProvider.");return t}function ve(e){var t=pe(),a=t.locale,n=t.classNames,o=t.styles,r=t.formatters.formatCaption;return C.default.createElement("h2",{className:n.caption_label,style:o.caption_label,"aria-live":"polite","aria-atomic":"true",id:e.id},r(e.displayMonth,{locale:a}))}function me(e){return C.default.createElement("svg",te({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),C.default.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function ye(e){var t,a,n=e.onChange,o=e.value,r=e.children,l=e.caption,i=e.className,u=e.style,d=pe(),s=null!==(a=null===(t=d.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==a?a:me;return C.default.createElement("div",{className:i,style:u},C.default.createElement("span",{className:d.classNames.vhidden},e["aria-label"]),C.default.createElement("select",{"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:n},r),C.default.createElement("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true"},l,C.default.createElement(s,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})))}function he(e){var t,a=pe(),n=a.fromDate,o=a.toDate,r=a.styles,l=a.locale,i=a.formatters.formatMonthCaption,u=a.classNames,d=a.components,s=a.labels.labelMonthDropdown;if(!n)return C.default.createElement(C.default.Fragment,null);if(!o)return C.default.createElement(C.default.Fragment,null);var c=[];if(W.default(n,o))for(var f=T.default(n),p=n.getMonth();p<=o.getMonth();p++)c.push(I.default(f,p));else for(f=T.default(new Date),p=0;p<=11;p++)c.push(I.default(f,p));var v=null!==(t=null==d?void 0:d.Dropdown)&&void 0!==t?t:ye;return C.default.createElement(v,{"aria-label":s(),className:u.dropdown_month,style:r.dropdown_month,onChange:function(t){var a=Number(t.target.value),n=I.default(T.default(e.displayMonth),a);e.onChange(n)},value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:l})},c.map((function(e){return C.default.createElement("option",{key:e.getMonth(),value:e.getMonth()},i(e,{locale:l}))})))}function be(e){var t,a=e.displayMonth,n=pe(),o=n.fromDate,r=n.toDate,l=n.locale,i=n.styles,u=n.classNames,d=n.components,s=n.formatters.formatYearCaption,c=n.labels.labelYearDropdown,f=[];if(!o)return C.default.createElement(C.default.Fragment,null);if(!r)return C.default.createElement(C.default.Fragment,null);for(var p=o.getFullYear(),v=r.getFullYear(),m=p;m<=v;m++)f.push(B.default(F.default(new Date),m));var y=null!==(t=null==d?void 0:d.Dropdown)&&void 0!==t?t:ye;return C.default.createElement(y,{"aria-label":c(),className:u.dropdown_year,style:i.dropdown_year,onChange:function(t){var n=B.default(T.default(a),Number(t.target.value));e.onChange(n)},value:a.getFullYear(),caption:s(a,{locale:l})},f.map((function(e){return C.default.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},s(e,{locale:l}))})))}function De(){var t=pe(),a=function(e){var t=e.month,a=e.defaultMonth,n=e.today,o=t||a||n||new Date,r=e.toDate,l=e.fromDate,i=e.numberOfMonths,u=void 0===i?1:i;if(r&&A.default(r,o)<0){var d=-1*(u-1);o=q.default(r,d)}return l&&A.default(o,l)<0&&(o=l),T.default(o)}(t),n=function(t,a){var n=e.useState(t),o=n[0];return[void 0===a?o:a,n[1]]}(a,t.month),o=n[0],r=n[1];return[o,function(e){t.disableNavigation||r(T.default(e))}]}var ge=e.createContext(void 0);function Me(e){var t=pe(),a=De(),n=a[0],o=a[1],r=function(e,t){for(var a=t.reverseMonths,n=t.numberOfMonths,o=T.default(e),r=T.default(q.default(o,n)),l=A.default(r,o),i=[],u=0;u<l;u++){var d=q.default(o,u);i.push(d)}return a&&(i=i.reverse()),i}(n,t),l=function(e,t){if(!t.disableNavigation){var a=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,r=void 0===o?1:o,l=n?r:1,i=T.default(e);if(!a)return q.default(i,l);if(!(A.default(a,e)<r))return q.default(i,l)}}(n,t),i=function(e,t){if(!t.disableNavigation){var a=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,r=n?void 0===o?1:o:1,l=T.default(e);if(!a)return q.default(l,-r);if(!(A.default(l,a)<=0))return q.default(l,-r)}}(n,t),u=function(e){return r.some((function(t){return R.default(e,t)}))},d={currentMonth:n,displayMonths:r,goToMonth:o,goToDate:function(e,a){u(e)||(a&&j.default(e,a)?o(q.default(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:i,nextMonth:l,isDateDisplayed:u};return C.default.createElement(ge.Provider,{value:d},e.children)}function we(){var t=e.useContext(ge);if(!t)throw new Error("useNavigation must be used within a NavigationProvider");return t}function Ee(e){var t,a=pe(),n=a.classNames,o=a.styles,r=a.onMonthChange,l=a.components,i=we().goToMonth,u=function(e){i(e),null==r||r(e)},d=null!==(t=null==l?void 0:l.CaptionLabel)&&void 0!==t?t:ve,s=C.default.createElement(d,{id:e.id,displayMonth:e.displayMonth});return C.default.createElement("div",{className:n.caption_dropdowns,style:o.caption_dropdowns},C.default.createElement("div",{className:n.vhidden},s),C.default.createElement(he,{onChange:u,displayMonth:e.displayMonth}),C.default.createElement(be,{onChange:u,displayMonth:e.displayMonth}))}function xe(e){return C.default.createElement("svg",te({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),C.default.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function _e(e){return C.default.createElement("svg",te({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),C.default.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var Ne=e.forwardRef((function(e,t){var a=pe(),n=a.classNames,o=a.styles,r=[n.button_reset,n.button];e.className&&r.push(e.className);var l=r.join(" "),i=te(te({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),C.default.createElement("button",te({},e,{ref:t,type:"button",className:l,style:i}))}));function ke(e){var t,a,n=pe(),o=n.dir,r=n.locale,l=n.classNames,i=n.styles,u=n.labels,d=u.labelPrevious,s=u.labelNext,c=n.components;if(!e.nextMonth&&!e.previousMonth)return C.default.createElement(C.default.Fragment,null);var f=d(e.previousMonth,{locale:r}),p=[l.nav_button,l.nav_button_previous].join(" "),v=s(e.nextMonth,{locale:r}),m=[l.nav_button,l.nav_button_next].join(" "),y=null!==(t=null==c?void 0:c.IconRight)&&void 0!==t?t:_e,h=null!==(a=null==c?void 0:c.IconLeft)&&void 0!==a?a:xe;return C.default.createElement("div",{className:l.nav,style:i.nav},!e.hidePrevious&&C.default.createElement(Ne,{"aria-label":f,className:p,style:i.nav_button_previous,"aria-disabled":!e.previousMonth,onClick:e.onPreviousClick},"rtl"===o?C.default.createElement(y,{className:l.nav_icon,style:i.nav_icon}):C.default.createElement(h,{className:l.nav_icon,style:i.nav_icon})),!e.hideNext&&C.default.createElement(Ne,{"aria-label":v,className:m,style:i.nav_button_next,"aria-disabled":!e.nextMonth,onClick:e.onNextClick},"rtl"===o?C.default.createElement(h,{className:l.nav_icon,style:i.nav_icon}):C.default.createElement(y,{className:l.nav_icon,style:i.nav_icon})))}function Ce(e){var t,a,n=pe(),o=n.numberOfMonths,r=n.onMonthChange,l=n.dir,i=n.components,u=we(),d=u.previousMonth,s=u.nextMonth,c=u.goToMonth,f=u.displayMonths,p=f.findIndex((function(t){return R.default(e.displayMonth,t)})),v=0===p,m=p===f.length-1;"rtl"===l&&(m=(t=[v,m])[0],v=t[1]);var y=o>1&&(v||!m),h=o>1&&(m||!v),b=null!==(a=null==i?void 0:i.CaptionLabel)&&void 0!==a?a:ve,D=C.default.createElement(b,{id:e.id,displayMonth:e.displayMonth});return C.default.createElement(C.default.Fragment,null,D,C.default.createElement(ke,{displayMonth:e.displayMonth,hideNext:y,hidePrevious:h,nextMonth:s,previousMonth:d,onPreviousClick:function(){d&&(c(d),null==r||r(d))},onNextClick:function(){s&&(c(s),null==r||r(s))}}))}function Pe(e){var t,a,n=pe(),o=n.classNames,r=n.disableNavigation,l=n.styles,i=n.captionLayout,u=n.components,d=null!==(t=null==u?void 0:u.CaptionLabel)&&void 0!==t?t:ve;return a=r?C.default.createElement(d,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===i?C.default.createElement(Ee,{displayMonth:e.displayMonth,id:e.id}):C.default.createElement(Ce,{displayMonth:e.displayMonth,id:e.id}),C.default.createElement("div",{className:o.caption,style:l.caption},a)}function Se(){var e=pe(),t=e.footer,a=e.styles,n=e.classNames.tfoot;return t?C.default.createElement("tfoot",{className:n,style:a.tfoot},C.default.createElement("tr",null,C.default.createElement("td",{colSpan:8},t))):C.default.createElement(C.default.Fragment,null)}function Oe(){var e=pe(),t=e.classNames,a=e.styles,n=e.showWeekNumber,o=e.locale,r=e.weekStartsOn,l=e.formatters.formatWeekdayName,i=e.labels.labelWeekday,u=function(e,t){for(var a=K.default(new Date,{locale:e,weekStartsOn:t}),n=[],o=0;o<7;o++){var r=Y.default(a,o);n.push(r)}return n}(o,r);return C.default.createElement("thead",{style:a.head,className:t.head},C.default.createElement("tr",{style:a.head_row,className:t.head_row},n&&C.default.createElement("th",{scope:"col",style:a.head_cell,className:t.head_cell}),u.map((function(e,n){return C.default.createElement("th",{key:n,scope:"col",className:t.head_cell,style:a.head_cell},C.default.createElement("span",{"aria-hidden":!0},l(e,{locale:o})),C.default.createElement("span",{className:t.vhidden},i(e,{locale:o})))}))))}function Le(e){var t=pe(),a=t.locale,n=t.classNames,o=t.styles,r=t.labels.labelDay,l=t.formatters.formatDay;return C.default.createElement(C.default.Fragment,null,C.default.createElement("span",{"aria-hidden":"true"},l(e.date,{locale:a})),C.default.createElement("span",{className:n.vhidden,style:o.vhidden},r(e.date,e.activeModifiers,{locale:a})))}function Te(e){return"multiple"===e.mode}var We=e.createContext(void 0);function Ie(e){if(!Te(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return C.default.createElement(We.Provider,{value:t},e.children)}return C.default.createElement(Be,{initialProps:e.initialProps,children:e.children})}function Be(e){var t=e.initialProps,a=e.children,n=t.selected,o=t.min,r=t.max,l={disabled:[]};n&&l.disabled.push((function(e){var t=r&&n.length>r-1,a=n.some((function(t){return U.default(t,e)}));return Boolean(t&&!a)}));var i={selected:n,onDayClick:function(e,a,l){var i,u;if((null===(i=t.onDayClick)||void 0===i||i.call(t,e,a,l),!Boolean(a.selected&&o&&(null==n?void 0:n.length)===o))&&!Boolean(!a.selected&&r&&(null==n?void 0:n.length)===r)){var d=n?function(e,t,a){if(a||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],n,!0):[];if(a.selected){var s=d.findIndex((function(t){return U.default(e,t)}));d.splice(s,1)}else d.push(e);null===(u=t.onSelect)||void 0===u||u.call(t,d,e,a,l)}},modifiers:l};return C.default.createElement(We.Provider,{value:i},a)}function Fe(){var t=e.useContext(We);if(!t)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return t}function qe(e){return"range"===e.mode}var je,Re=e.createContext(void 0);function Ae(e){if(!qe(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return C.default.createElement(Re.Provider,{value:t},e.children)}return C.default.createElement(Ye,{initialProps:e.initialProps,children:e.children})}function Ye(e){var t=e.initialProps,a=e.children,n=t.selected,o=n||{},r=o.from,l=o.to,i=t.min,u=t.max,d={range_start:[],range_end:[],range_middle:[],disabled:[]};return r&&(d.range_start=[r],l?(d.range_end=[l],d.range_middle=[{after:r,before:l}]):d.range_end=[r]),i&&r&&l&&d.disabled.push((function(e){return j.default(e,r)&&J.default(r,e)<i||Q.default(e,l)&&J.default(e,r)<i})),u&&r&&l&&d.disabled.push((function(e){return j.default(e,r)&&J.default(l,e)>=u||Q.default(e,l)&&J.default(e,r)>=u})),C.default.createElement(Re.Provider,{value:{selected:n,onDayClick:function(e,a,o){var r,l;null===(r=t.onDayClick)||void 0===r||r.call(t,e,a,o);var d=function(e,t){var a=t||{},n=a.from,o=a.to;if(!n)return{from:e,to:void 0};if(!o&&U.default(n,e))return{from:n,to:e};if(!o&&j.default(e,n))return{from:e,to:n};if(!o)return{from:n,to:e};if(!U.default(o,e)||!U.default(n,e)){if(U.default(o,e))return{from:o,to:void 0};if(!U.default(n,e))return Q.default(n,e)?{from:e,to:o}:{from:n,to:e}}}(e,n);if((i||u)&&n&&(null==d?void 0:d.to)&&d.from&&d.from!==d.to){var s=Math.abs(J.default(null==d?void 0:d.to,null==d?void 0:d.from));if(i&&s<i||u&&s>=u)return}null===(l=t.onSelect)||void 0===l||l.call(t,d,e,a,o)},modifiers:d}},a)}function Ke(){var t=e.useContext(Re);if(!t)throw new Error("useSelectRange must be used within a SelectRangeProvider");return t}function He(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}exports.InternalModifier=void 0,(je=exports.InternalModifier||(exports.InternalModifier={})).Outside="outside",je.Disabled="disabled",je.Selected="selected",je.Hidden="hidden",je.Today="today",je.RangeStart="range_start",je.RangeEnd="range_end",je.RangeMiddle="range_middle";var Ue=exports.InternalModifier.Selected,ze=exports.InternalModifier.Disabled,Ze=exports.InternalModifier.Hidden,Ge=exports.InternalModifier.Today,Je=exports.InternalModifier.RangeEnd,Qe=exports.InternalModifier.RangeMiddle,Ve=exports.InternalModifier.RangeStart,Xe=exports.InternalModifier.Outside;var $e=e.createContext(void 0);function et(e){var t=pe(),a=function(e,t,a){var n,o=((n={})[Ue]=He(e.selected),n[ze]=He(e.disabled),n[Ze]=He(e.hidden),n[Ge]=[e.today],n[Je]=[],n[Qe]=[],n[Ve]=[],n[Xe]=[],n);return e.fromDate&&o[ze].push({before:e.fromDate}),e.toDate&&o[ze].push({after:e.toDate}),Te(e)?o[ze]=o[ze].concat(t.modifiers[ze]):qe(e)&&(o[ze]=o[ze].concat(a.modifiers[ze]),o[Ve]=a.modifiers[Ve],o[Qe]=a.modifiers[Qe],o[Je]=a.modifiers[Je]),o}(t,Fe(),Ke()),n=function(e){var t={};return Object.entries(e).forEach((function(e){var a=e[0],n=e[1];t[a]=He(n)})),t}(t.modifiers),o=te(te({},a),n);return C.default.createElement($e.Provider,{value:o},e.children)}function tt(){var t=e.useContext($e);if(!t)throw new Error("useModifiers must be used within a ModifiersProvider");return t}function at(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function nt(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function ot(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function rt(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function lt(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function it(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(a=t,V.default(a))return U.default(e,t);var a;if(function(e){return Array.isArray(e)&&e.every(V.default)}(t))return t.includes(e);if(nt(t))return function(e,t){var a,n=t.from,o=t.to;if(!n)return!1;if(!o&&U.default(n,e))return!0;if(!o)return!1;var r=J.default(o,n)<0;return o&&r&&(n=(a=[o,n])[0],o=a[1]),J.default(e,n)>=0&&J.default(o,e)>=0}(e,t);if(lt(t))return t.dayOfWeek.includes(e.getDay());if(at(t)){var n=J.default(t.before,e)>0,o=J.default(e,t.after)>0;return n&&o}return ot(t)?J.default(e,t.after)>0:rt(t)?J.default(t.before,e)>0:"function"==typeof t&&t(e)}))}function ut(e,t,a){var n=Object.keys(t).reduce((function(a,n){var o=t[n];return it(e,o)&&a.push(n),a}),[]),o={};return n.forEach((function(e){return o[e]=!0})),a&&!R.default(e,a)&&(o.outside=!0),o}var dt=e.createContext(void 0);function st(t){var a=we(),n=tt(),o=e.useState(),r=o[0],l=o[1],i=e.useState(),u=i[0],d=i[1],s=function(e,t){for(var a,n,o=T.default(e[0]),r=O.default(e[e.length-1]),l=o;l<=r;){var i=ut(l,t);if(i.disabled||i.hidden)l=Y.default(l,1);else{if(i.selected)return l;i.today&&!n&&(n=l),a||(a=l),l=Y.default(l,1)}}return n||a}(a.displayMonths,n),c=(null!=r?r:u&&a.isDateDisplayed(u))?u:s,f=function(e){l(e)},p={focusedDay:r,focusTarget:c,blur:function(){d(r),l(void 0)},focus:f,focusDayAfter:function(){if(r){var e=Y.default(r,1);f(e),a.goToDate(e,r)}},focusDayBefore:function(){if(r){var e=Y.default(r,-1);f(e),a.goToDate(e,r)}},focusWeekAfter:function(){if(r){var e=z.default(r,1);f(e),a.goToDate(e,r)}},focusWeekBefore:function(){if(r){var e=z.default(r,-1);f(e),a.goToDate(e,r)}},focusMonthBefore:function(){if(r){var e=q.default(r,-1);a.goToDate(e,r),f(e)}},focusMonthAfter:function(){if(r){var e=q.default(r,1);a.goToDate(e,r),f(e)}},focusYearBefore:function(){if(r){var e=Z.default(r,-1);a.goToDate(e,r),f(e)}},focusYearAfter:function(){if(r){var e=Z.default(r,1);a.goToDate(e,r),f(e)}},focusStartOfWeek:function(){if(r){var e=K.default(r);a.goToDate(e,r),f(e)}},focusEndOfWeek:function(){if(r){var e=G.default(r);a.goToDate(e,r),f(e)}}};return C.default.createElement(dt.Provider,{value:p},t.children)}function ct(){var t=e.useContext(dt);if(!t)throw new Error("useFocusContext must be used within a FocusProvider");return t}function ft(e,t){return ut(e,tt(),t)}function pt(e){return"single"===e.mode}var vt=e.createContext(void 0);function mt(e){if(!pt(e.initialProps)){var t={selected:void 0};return C.default.createElement(vt.Provider,{value:t},e.children)}return C.default.createElement(yt,{initialProps:e.initialProps,children:e.children})}function yt(e){var t=e.initialProps,a=e.children,n={selected:t.selected,onDayClick:function(e,a,n){var o,r,l;null===(o=t.onDayClick)||void 0===o||o.call(t,e,a,n),!a.selected||t.required?null===(l=t.onSelect)||void 0===l||l.call(t,e,e,a,n):null===(r=t.onSelect)||void 0===r||r.call(t,void 0,e,a,n)}};return C.default.createElement(vt.Provider,{value:n},a)}function ht(){var t=e.useContext(vt);if(!t)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return t}function bt(e,t){var a=[e.classNames.day];return Object.keys(t).forEach((function(t){var n=e.modifiersClassNames[t];if(n)a.push(n);else if(function(e){return Object.values(exports.InternalModifier).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&a.push(o)}})),a}function Dt(t,a,n){var o,r,l,i=pe(),u=ct(),d=ft(t,a),s=function(e,t){var a=pe(),n=ht(),o=Fe(),r=Ke(),l=ct(),i=l.focusDayAfter,u=l.focusDayBefore,d=l.focusWeekAfter,s=l.focusWeekBefore,c=l.blur,f=l.focus,p=l.focusMonthBefore,v=l.focusMonthAfter,m=l.focusYearBefore,y=l.focusYearAfter,h=l.focusStartOfWeek,b=l.focusEndOfWeek,D={onClick:function(l){var i,u,d,s;pt(a)?null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,l):Te(a)?null===(u=o.onDayClick)||void 0===u||u.call(o,e,t,l):qe(a)&&(null===(d=r.onDayClick)||void 0===d||d.call(r,e,t,l)),null===(s=a.onDayClick)||void 0===s||s.call(a,e,t,l)},onFocus:function(n){var o;f(e),null===(o=a.onDayFocus)||void 0===o||o.call(a,e,t,n)},onBlur:function(n){var o;c(),null===(o=a.onDayBlur)||void 0===o||o.call(a,e,t,n)},onKeyDown:function(n){var o;switch(n.key){case"ArrowLeft":n.preventDefault(),n.stopPropagation(),"rtl"===a.dir?i():u();break;case"ArrowRight":n.preventDefault(),n.stopPropagation(),"rtl"===a.dir?u():i();break;case"ArrowDown":n.preventDefault(),n.stopPropagation(),d();break;case"ArrowUp":n.preventDefault(),n.stopPropagation(),s();break;case"PageUp":n.preventDefault(),n.stopPropagation(),n.shiftKey?m():p();break;case"PageDown":n.preventDefault(),n.stopPropagation(),n.shiftKey?y():v();break;case"Home":n.preventDefault(),n.stopPropagation(),h();break;case"End":n.preventDefault(),n.stopPropagation(),b()}null===(o=a.onDayKeyDown)||void 0===o||o.call(a,e,t,n)},onKeyUp:function(n){var o;null===(o=a.onDayKeyUp)||void 0===o||o.call(a,e,t,n)},onMouseEnter:function(n){var o;null===(o=a.onDayMouseEnter)||void 0===o||o.call(a,e,t,n)},onMouseLeave:function(n){var o;null===(o=a.onDayMouseLeave)||void 0===o||o.call(a,e,t,n)},onTouchCancel:function(n){var o;null===(o=a.onDayTouchCancel)||void 0===o||o.call(a,e,t,n)},onTouchEnd:function(n){var o;null===(o=a.onDayTouchEnd)||void 0===o||o.call(a,e,t,n)},onTouchMove:function(n){var o;null===(o=a.onDayTouchMove)||void 0===o||o.call(a,e,t,n)},onTouchStart:function(n){var o;null===(o=a.onDayTouchStart)||void 0===o||o.call(a,e,t,n)}};return D}(t,d),c=function(){var e=pe(),t=ht(),a=Fe(),n=Ke();return pt(e)?t.selected:Te(e)?a.selected:qe(e)?n.selected:void 0}(),f=Boolean(i.onDayClick||"default"!==i.mode);e.useEffect((function(){var e;d.outside||u.focusedDay&&f&&U.default(u.focusedDay,t)&&(null===(e=n.current)||void 0===e||e.focus())}),[u.focusedDay,t,n,f,d.outside]);var p=bt(i,d).join(" "),v=function(e,t){var a=te({},e.styles.day);return Object.keys(t).forEach((function(t){var n;a=te(te({},a),null===(n=e.modifiersStyles)||void 0===n?void 0:n[t])})),a}(i,d),m=Boolean(d.outside&&!i.showOutsideDays||d.hidden),y=null!==(l=null===(r=i.components)||void 0===r?void 0:r.DayContent)&&void 0!==l?l:Le,h={style:v,className:p,children:C.default.createElement(y,{date:t,displayMonth:a,activeModifiers:d})},b=Boolean(u.focusTarget&&U.default(u.focusTarget,t)),D=te(te(te({},h),((o={})["aria-disabled"]=d.disabled,o["aria-pressed"]=d.selected,o.tabIndex=b?0:-1,o)),s);return{isButton:f,isHidden:m,activeModifiers:d,selectedDays:c,buttonProps:D,divProps:h}}function gt(t){var a=e.useRef(null),n=Dt(t.date,t.displayMonth,a);return n.isHidden?C.default.createElement(C.default.Fragment,null):n.isButton?C.default.createElement(Ne,te({ref:a},n.buttonProps)):C.default.createElement("div",te({},n.divProps))}function Mt(e){var t=e.number,a=e.dates,n=pe(),o=n.onWeekNumberClick,r=n.styles,l=n.classNames,i=n.locale,u=n.labels.labelWeekNumber,d=(0,n.formatters.formatWeekNumber)(Number(t),{locale:i});if(!o)return C.default.createElement("span",{className:l.weeknumber,style:r.weeknumber},d);var s=u(Number(t),{locale:i});return C.default.createElement(Ne,{"aria-label":s,className:l.weeknumber,style:r.weeknumber,onClick:function(e){o(t,a,e)}},d)}function wt(e){var t,a,n,o=pe(),r=o.styles,l=o.classNames,i=o.showWeekNumber,u=o.components,d=null!==(t=null==u?void 0:u.Day)&&void 0!==t?t:gt,s=null!==(a=null==u?void 0:u.WeekNumber)&&void 0!==a?a:Mt;return i&&(n=C.default.createElement("td",{className:l.cell,style:r.cell},C.default.createElement(s,{number:e.weekNumber,dates:e.dates}))),C.default.createElement("tr",{className:l.row,style:r.row},n,e.dates.map((function(t){return C.default.createElement("td",{className:l.cell,style:r.cell,key:H.default(t)},C.default.createElement(d,{displayMonth:e.displayMonth,date:t}))})))}function Et(e,t,a){for(var n=G.default(t,a),o=K.default(e,a),r=J.default(n,o),l=[],i=0;i<=r;i++)l.push(Y.default(o,i));return l.reduce((function(e,t){var n=$.default(t,a),o=e.find((function(e){return e.weekNumber===n}));return o?(o.dates.push(t),e):(e.push({weekNumber:n,dates:[t]}),e)}),[])}function xt(e){var t,a,n,o=pe(),r=o.locale,l=o.classNames,i=o.styles,u=o.hideHead,d=o.fixedWeeks,s=o.components,c=o.weekStartsOn,f=function(e,t){var a=Et(T.default(e),O.default(e),t);if(null==t?void 0:t.useFixedWeeks){var n=X.default(e,t);if(n<6){var o=a[a.length-1],r=o.dates[o.dates.length-1],l=z.default(r,6-n),i=Et(z.default(r,1),l,t);a.push.apply(a,i)}}return a}(e.displayMonth,{useFixedWeeks:Boolean(d),locale:r,weekStartsOn:c}),p=null!==(t=null==s?void 0:s.Head)&&void 0!==t?t:Oe,v=null!==(a=null==s?void 0:s.Row)&&void 0!==a?a:wt,m=null!==(n=null==s?void 0:s.Footer)&&void 0!==n?n:Se;return C.default.createElement("table",{className:l.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&C.default.createElement(p,null),C.default.createElement("tbody",{className:l.tbody,style:i.tbody},f.map((function(t){return C.default.createElement(v,{displayMonth:e.displayMonth,key:t.weekNumber,dates:t.dates,weekNumber:t.weekNumber})}))),C.default.createElement(m,null))}function _t(t){var a,n,o=pe(),r=o.dir,l=o.classNames,i=o.styles,u=o.components,d=we().displayMonths,s=function(t){var a=t||(oe?le():null),n=e.useState(a),o=n[0],r=n[1];return ne((function(){null===o&&r(le())}),[]),e.useEffect((function(){!1===oe&&(oe=!0)}),[]),null!=o?String(o):void 0}(),c=[l.month],f=i.month,p=0===t.displayIndex,v=t.displayIndex===d.length-1,m=!p&&!v;"rtl"===r&&(v=(a=[p,v])[0],p=a[1]),p&&(c.push(l.caption_start),f=te(te({},f),i.caption_start)),v&&(c.push(l.caption_end),f=te(te({},f),i.caption_end)),m&&(c.push(l.caption_between),f=te(te({},f),i.caption_between));var y=null!==(n=null==u?void 0:u.Caption)&&void 0!==n?n:Pe;return C.default.createElement("div",{key:t.displayIndex,className:c.join(" "),style:f},C.default.createElement(y,{id:s,displayMonth:t.displayMonth}),C.default.createElement(xt,{"aria-labelledby":s,displayMonth:t.displayMonth}))}function Nt(){var t,a=pe(),n=ct(),o=we(),r=e.useState(!1),l=r[0],i=r[1];e.useEffect((function(){a.initialFocus&&n.focusTarget&&(l||(n.focus(n.focusTarget),i(!0)))}),[a.initialFocus,l,n.focus,n.focusTarget,n]);var u=[null!==(t=a.className)&&void 0!==t?t:a.classNames.root];a.numberOfMonths>1&&u.push(a.classNames.multiple_months),a.showWeekNumber&&u.push(a.classNames.with_weeknumber);var d=te(te({},a.styles.root),a.style);return C.default.createElement("div",{className:u.join(" "),style:d,dir:a.dir},C.default.createElement("div",{className:a.classNames.months,style:a.styles.months},o.displayMonths.map((function(e,t){return C.default.createElement(_t,{key:t,displayIndex:t,displayMonth:e})}))))}function kt(e){var t=e.children,a=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]])}return a}(e,["children"]);return C.default.createElement(fe,{initialProps:a},C.default.createElement(Me,null,C.default.createElement(mt,{initialProps:a},C.default.createElement(Ie,{initialProps:a},C.default.createElement(Ae,{initialProps:a},C.default.createElement(et,null,C.default.createElement(st,null,t)))))))}function Ct(e){return!isNaN(e.getTime())}exports.Button=Ne,exports.Caption=Pe,exports.CaptionDropdowns=Ee,exports.CaptionLabel=ve,exports.CaptionNavigation=Ce,exports.Day=gt,exports.DayContent=Le,exports.DayPicker=function(e){return C.default.createElement(kt,te({},e),C.default.createElement(Nt,null))},exports.DayPickerContext=ce,exports.DayPickerProvider=fe,exports.Dropdown=ye,exports.FocusContext=dt,exports.FocusProvider=st,exports.Footer=Se,exports.Head=Oe,exports.IconDropdown=me,exports.IconLeft=xe,exports.IconRight=_e,exports.NavigationContext=ge,exports.NavigationProvider=Me,exports.RootProvider=kt,exports.Row=wt,exports.SelectMultipleContext=We,exports.SelectMultipleProvider=Ie,exports.SelectMultipleProviderInternal=Be,exports.SelectRangeContext=Re,exports.SelectRangeProvider=Ae,exports.SelectRangeProviderInternal=Ye,exports.SelectSingleContext=vt,exports.SelectSingleProvider=mt,exports.SelectSingleProviderInternal=yt,exports.WeekNumber=Mt,exports.isDateAfterType=ot,exports.isDateBeforeType=rt,exports.isDateInterval=at,exports.isDateRange=nt,exports.isDayOfWeekType=lt,exports.isDayPickerDefault=function(e){return void 0===e.mode||"default"===e.mode},exports.isDayPickerMultiple=Te,exports.isDayPickerRange=qe,exports.isDayPickerSingle=pt,exports.isMatch=it,exports.useActiveModifiers=ft,exports.useDayPicker=pe,exports.useDayRender=Dt,exports.useFocusContext=ct,exports.useInput=function(t){void 0===t&&(t={});var a=t.locale,n=void 0===a?P.default:a,o=t.required,r=t.format,l=void 0===r?"PP":r,i=t.defaultSelected,u=t.today,d=void 0===u?new Date:u,s=se(t),c=s.fromDate,f=s.toDate,p=function(e){return ee.default(e,l,d,{locale:n})},v=e.useState(null!=i?i:d),m=v[0],y=v[1],h=e.useState(i),b=h[0],D=h[1],g=i?S.default(i,l,{locale:n}):"",M=e.useState(g),w=M[0],E=M[1],x=function(){D(i),y(null!=i?i:d),E(null!=g?g:"")},_={month:m,onDayClick:function(e,t){var a=t.selected;if(!o&&a)return D(void 0),void E("");D(e),E(e?S.default(e,l,{locale:n}):"")},onMonthChange:function(e){y(e)},selected:b,locale:n,fromDate:null==t?void 0:t.fromDate,toDate:null==t?void 0:t.toDate,today:d},N={onBlur:function(e){Ct(p(e.target.value))||x()},onChange:function(e){E(e.target.value);var t=p(e.target.value),a=c&&J.default(c,t)>0,n=f&&J.default(t,f)>0;!Ct(t)||a||n?D(void 0):(D(t),y(t))},onFocus:function(e){if(e.target.value){var t=p(e.target.value);Ct(t)&&y(t)}else x()},value:w,placeholder:S.default(new Date,l,{locale:n})};return{dayPickerProps:_,inputProps:N,reset:x,setSelected:function(e){D(e),y(null!=e?e:d),E(e?S.default(e,l,{locale:n}):"")}}},exports.useNavigation=we,exports.useSelectMultiple=Fe,exports.useSelectRange=Ke,exports.useSelectSingle=ht}));
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("date-fns/locale/en-US"),a=require("date-fns/format"),n=require("date-fns/endOfMonth"),o=require("date-fns/startOfDay"),r=require("date-fns/startOfMonth"),l=require("date-fns/isSameYear"),i=require("date-fns/setMonth"),u=require("date-fns/setYear"),d=require("date-fns/startOfYear"),s=require("date-fns/addMonths"),c=require("date-fns/isBefore"),f=require("date-fns/isSameMonth"),p=require("date-fns/differenceInCalendarMonths"),v=require("date-fns/addDays"),m=require("date-fns/startOfWeek"),y=require("date-fns/getUnixTime"),h=require("date-fns/isSameDay"),b=require("date-fns/addWeeks"),g=require("date-fns/addYears"),D=require("date-fns/endOfWeek"),M=require("date-fns/differenceInCalendarDays"),w=require("date-fns/isAfter"),E=require("date-fns/isDate"),x=require("date-fns/getWeeksInMonth"),_=require("date-fns/getWeek"),N=require("date-fns/parse");function k(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function C(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var P=k(e),S=C(e),O=k(t),L=k(a),T=k(n),W=k(o),I=k(r),B=k(l),j=k(i),F=k(u),q=k(d),R=k(s),A=k(c),Y=k(f),K=k(p),H=k(v),U=k(m),z=k(y),Z=k(h),G=k(b),J=k(g),Q=k(D),V=k(M),X=k(w),$=k(E),ee=k(x),te=k(_),ae=k(N),ne=function(){return ne=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ne.apply(this,arguments)};var oe={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var re=Object.freeze({__proto__:null,formatCaption:function(e,t){return L.default(e,"LLLL y",t)},formatDay:function(e,t){return L.default(e,"d",t)},formatMonthCaption:function(e,t){return L.default(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return L.default(e,"cccccc",t)},formatYearCaption:function(e,t){return L.default(e,"yyyy",t)}}),le=Object.freeze({__proto__:null,labelDay:function(e,t,a){return L.default(e,"do MMMM (EEEE)",a)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekday:function(e,t){return L.default(e,"cccc",t)},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelYearDropdown:function(){return"Year: "}});function ie(e){var t=e.fromYear,a=e.toYear,n=e.fromMonth,o=e.toMonth,r=e.fromDate,l=e.toDate;return n?r=I.default(n):t&&(r=new Date(t,0,1)),o?l=T.default(o):a&&(l=new Date(a,11,31)),{fromDate:r?W.default(r):void 0,toDate:l?W.default(l):void 0}}var ue=e.createContext(void 0);function de(e){var t,a,n,o,r,l,i,u=e.initialProps,d=(r=oe,l=O.default,i=new Date,{captionLayout:"buttons",classNames:r,formatters:re,labels:le,locale:l,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:i,mode:"default"}),s=ie(u),c=s.fromDate,f=s.toDate,p=null!==(t=u.captionLayout)&&void 0!==t?t:d.captionLayout;"buttons"===p||c&&f||(p="buttons");var v={captionLayout:p,className:u.className,classNames:ne(ne({},d.classNames),u.classNames),components:ne(ne({},d.components),u.components),defaultMonth:u.defaultMonth,dir:u.dir,disabled:u.disabled,disableNavigation:u.disableNavigation,fixedWeeks:u.fixedWeeks,footer:u.footer,formatters:ne(ne({},d.formatters),u.formatters),fromDate:c,hidden:u.hidden,hideHead:u.hideHead,initialFocus:u.initialFocus,labels:ne(ne({},d.labels),u.labels),locale:null!==(a=u.locale)&&void 0!==a?a:d.locale,mode:u.mode||"default",modifiers:ne(ne({},d.modifiers),u.modifiers),modifiersClassNames:ne(ne({},d.modifiersClassNames),u.modifiersClassNames),modifiersStyles:u.modifiersStyles,month:u.month,numberOfMonths:null!==(n=u.numberOfMonths)&&void 0!==n?n:d.numberOfMonths,onDayBlur:u.onDayBlur,onDayClick:u.onDayClick,onDayFocus:u.onDayFocus,onDayKeyDown:u.onDayKeyDown,onDayKeyPress:u.onDayKeyPress,onDayKeyUp:u.onDayKeyUp,onDayMouseEnter:u.onDayMouseEnter,onDayMouseLeave:u.onDayMouseLeave,onDayTouchCancel:u.onDayTouchCancel,onDayTouchEnd:u.onDayTouchEnd,onDayTouchMove:u.onDayTouchMove,onDayTouchStart:u.onDayTouchStart,onMonthChange:u.onMonthChange,onNextClick:u.onNextClick,onPrevClick:u.onPrevClick,onWeekNumberClick:u.onWeekNumberClick,pagedNavigation:u.pagedNavigation,reverseMonths:u.reverseMonths,selected:u.selected,showOutsideDays:u.showOutsideDays,showWeekNumber:u.showWeekNumber,style:u.style,styles:ne(ne({},d.styles),u.styles),toDate:f,today:null!==(o=u.today)&&void 0!==o?o:d.today,weekStartsOn:u.weekStartsOn};return P.default.createElement(ue.Provider,{value:v},e.children)}function se(){var t=e.useContext(ue);if(!t)throw new Error("useDayPicker must be used within a DayPickerProvider.");return t}function ce(e){var t=se(),a=t.locale,n=t.classNames,o=t.styles,r=t.formatters.formatCaption;return P.default.createElement("h2",{className:n.caption_label,style:o.caption_label,"aria-live":"polite","aria-atomic":"true",id:e.id},r(e.displayMonth,{locale:a}))}function fe(e){return P.default.createElement("svg",ne({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),P.default.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function pe(e){var t,a,n=e.onChange,o=e.value,r=e.children,l=e.caption,i=e.className,u=e.style,d=se(),s=null!==(a=null===(t=d.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==a?a:fe;return P.default.createElement("div",{className:i,style:u},P.default.createElement("span",{className:d.classNames.vhidden},e["aria-label"]),P.default.createElement("select",{"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:n},r),P.default.createElement("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true"},l,P.default.createElement(s,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})))}function ve(e){var t,a=se(),n=a.fromDate,o=a.toDate,r=a.styles,l=a.locale,i=a.formatters.formatMonthCaption,u=a.classNames,d=a.components,s=a.labels.labelMonthDropdown;if(!n)return P.default.createElement(P.default.Fragment,null);if(!o)return P.default.createElement(P.default.Fragment,null);var c=[];if(B.default(n,o))for(var f=I.default(n),p=n.getMonth();p<=o.getMonth();p++)c.push(j.default(f,p));else for(f=I.default(new Date),p=0;p<=11;p++)c.push(j.default(f,p));var v=null!==(t=null==d?void 0:d.Dropdown)&&void 0!==t?t:pe;return P.default.createElement(v,{"aria-label":s(),className:u.dropdown_month,style:r.dropdown_month,onChange:function(t){var a=Number(t.target.value),n=j.default(I.default(e.displayMonth),a);e.onChange(n)},value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:l})},c.map((function(e){return P.default.createElement("option",{key:e.getMonth(),value:e.getMonth()},i(e,{locale:l}))})))}function me(e){var t,a=e.displayMonth,n=se(),o=n.fromDate,r=n.toDate,l=n.locale,i=n.styles,u=n.classNames,d=n.components,s=n.formatters.formatYearCaption,c=n.labels.labelYearDropdown,f=[];if(!o)return P.default.createElement(P.default.Fragment,null);if(!r)return P.default.createElement(P.default.Fragment,null);for(var p=o.getFullYear(),v=r.getFullYear(),m=p;m<=v;m++)f.push(F.default(q.default(new Date),m));var y=null!==(t=null==d?void 0:d.Dropdown)&&void 0!==t?t:pe;return P.default.createElement(y,{"aria-label":c(),className:u.dropdown_year,style:i.dropdown_year,onChange:function(t){var n=F.default(I.default(a),Number(t.target.value));e.onChange(n)},value:a.getFullYear(),caption:s(a,{locale:l})},f.map((function(e){return P.default.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},s(e,{locale:l}))})))}function ye(){var t=se(),a=function(e){var t=e.month,a=e.defaultMonth,n=e.today,o=t||a||n||new Date,r=e.toDate,l=e.fromDate,i=e.numberOfMonths,u=void 0===i?1:i;if(r&&K.default(r,o)<0){var d=-1*(u-1);o=R.default(r,d)}return l&&K.default(o,l)<0&&(o=l),I.default(o)}(t),n=function(t,a){var n=e.useState(t),o=n[0];return[void 0===a?o:a,n[1]]}(a,t.month),o=n[0],r=n[1];return[o,function(e){t.disableNavigation||r(I.default(e))}]}var he=e.createContext(void 0);function be(e){var t=se(),a=ye(),n=a[0],o=a[1],r=function(e,t){for(var a=t.reverseMonths,n=t.numberOfMonths,o=I.default(e),r=I.default(R.default(o,n)),l=K.default(r,o),i=[],u=0;u<l;u++){var d=R.default(o,u);i.push(d)}return a&&(i=i.reverse()),i}(n,t),l=function(e,t){if(!t.disableNavigation){var a=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,r=void 0===o?1:o,l=n?r:1,i=I.default(e);if(!a)return R.default(i,l);if(!(K.default(a,e)<r))return R.default(i,l)}}(n,t),i=function(e,t){if(!t.disableNavigation){var a=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,r=n?void 0===o?1:o:1,l=I.default(e);if(!a)return R.default(l,-r);if(!(K.default(l,a)<=0))return R.default(l,-r)}}(n,t),u=function(e){return r.some((function(t){return Y.default(e,t)}))},d={currentMonth:n,displayMonths:r,goToMonth:o,goToDate:function(e,a){u(e)||(a&&A.default(e,a)?o(R.default(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:i,nextMonth:l,isDateDisplayed:u};return P.default.createElement(he.Provider,{value:d},e.children)}function ge(){var t=e.useContext(he);if(!t)throw new Error("useNavigation must be used within a NavigationProvider");return t}function De(e){var t,a=se(),n=a.classNames,o=a.styles,r=a.onMonthChange,l=a.components,i=ge().goToMonth,u=function(e){i(e),null==r||r(e)},d=null!==(t=null==l?void 0:l.CaptionLabel)&&void 0!==t?t:ce,s=P.default.createElement(d,{id:e.id,displayMonth:e.displayMonth});return P.default.createElement("div",{className:n.caption_dropdowns,style:o.caption_dropdowns},P.default.createElement("div",{className:n.vhidden},s),P.default.createElement(ve,{onChange:u,displayMonth:e.displayMonth}),P.default.createElement(me,{onChange:u,displayMonth:e.displayMonth}))}function Me(e){return P.default.createElement("svg",ne({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),P.default.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function we(e){return P.default.createElement("svg",ne({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),P.default.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var Ee=e.forwardRef((function(e,t){var a=se(),n=a.classNames,o=a.styles,r=[n.button_reset,n.button];e.className&&r.push(e.className);var l=r.join(" "),i=ne(ne({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),P.default.createElement("button",ne({},e,{ref:t,type:"button",className:l,style:i}))}));function xe(e){var t,a,n=se(),o=n.dir,r=n.locale,l=n.classNames,i=n.styles,u=n.labels,d=u.labelPrevious,s=u.labelNext,c=n.components;if(!e.nextMonth&&!e.previousMonth)return P.default.createElement(P.default.Fragment,null);var f=d(e.previousMonth,{locale:r}),p=[l.nav_button,l.nav_button_previous].join(" "),v=s(e.nextMonth,{locale:r}),m=[l.nav_button,l.nav_button_next].join(" "),y=null!==(t=null==c?void 0:c.IconRight)&&void 0!==t?t:we,h=null!==(a=null==c?void 0:c.IconLeft)&&void 0!==a?a:Me;return P.default.createElement("div",{className:l.nav,style:i.nav},!e.hidePrevious&&P.default.createElement(Ee,{"aria-label":f,className:p,style:i.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===o?P.default.createElement(y,{className:l.nav_icon,style:i.nav_icon}):P.default.createElement(h,{className:l.nav_icon,style:i.nav_icon})),!e.hideNext&&P.default.createElement(Ee,{"aria-label":v,className:m,style:i.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===o?P.default.createElement(h,{className:l.nav_icon,style:i.nav_icon}):P.default.createElement(y,{className:l.nav_icon,style:i.nav_icon})))}function _e(e){var t,a,n=se(),o=n.numberOfMonths,r=n.onMonthChange,l=n.dir,i=n.components,u=ge(),d=u.previousMonth,s=u.nextMonth,c=u.goToMonth,f=u.displayMonths,p=f.findIndex((function(t){return Y.default(e.displayMonth,t)})),v=0===p,m=p===f.length-1;"rtl"===l&&(m=(t=[v,m])[0],v=t[1]);var y=o>1&&(v||!m),h=o>1&&(m||!v),b=null!==(a=null==i?void 0:i.CaptionLabel)&&void 0!==a?a:ce,g=P.default.createElement(b,{id:e.id,displayMonth:e.displayMonth});return P.default.createElement(P.default.Fragment,null,g,P.default.createElement(xe,{displayMonth:e.displayMonth,hideNext:y,hidePrevious:h,nextMonth:s,previousMonth:d,onPreviousClick:function(){d&&(c(d),null==r||r(d))},onNextClick:function(){s&&(c(s),null==r||r(s))}}))}function Ne(e){var t,a,n=se(),o=n.classNames,r=n.disableNavigation,l=n.styles,i=n.captionLayout,u=n.components,d=null!==(t=null==u?void 0:u.CaptionLabel)&&void 0!==t?t:ce;return a=r?P.default.createElement(d,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===i?P.default.createElement(De,{displayMonth:e.displayMonth,id:e.id}):P.default.createElement(_e,{displayMonth:e.displayMonth,id:e.id}),P.default.createElement("div",{className:o.caption,style:l.caption},a)}function ke(){var e=se(),t=e.footer,a=e.styles,n=e.classNames.tfoot;return t?P.default.createElement("tfoot",{className:n,style:a.tfoot},P.default.createElement("tr",null,P.default.createElement("td",{colSpan:8},t))):P.default.createElement(P.default.Fragment,null)}function Ce(){var e=se(),t=e.classNames,a=e.styles,n=e.showWeekNumber,o=e.locale,r=e.weekStartsOn,l=e.formatters.formatWeekdayName,i=e.labels.labelWeekday,u=function(e,t){for(var a=U.default(new Date,{locale:e,weekStartsOn:t}),n=[],o=0;o<7;o++){var r=H.default(a,o);n.push(r)}return n}(o,r);return P.default.createElement("thead",{style:a.head,className:t.head},P.default.createElement("tr",{style:a.head_row,className:t.head_row},n&&P.default.createElement("th",{scope:"col",style:a.head_cell,className:t.head_cell}),u.map((function(e,n){return P.default.createElement("th",{key:n,scope:"col",className:t.head_cell,style:a.head_cell},P.default.createElement("span",{"aria-hidden":!0},l(e,{locale:o})),P.default.createElement("span",{className:t.vhidden},i(e,{locale:o})))}))))}function Pe(e){var t=se(),a=t.locale,n=t.classNames,o=t.styles,r=t.labels.labelDay,l=t.formatters.formatDay;return P.default.createElement(P.default.Fragment,null,P.default.createElement("span",{"aria-hidden":"true"},l(e.date,{locale:a})),P.default.createElement("span",{className:n.vhidden,style:o.vhidden},r(e.date,e.activeModifiers,{locale:a})))}function Se(e){return"multiple"===e.mode}var Oe=e.createContext(void 0);function Le(e){if(!Se(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return P.default.createElement(Oe.Provider,{value:t},e.children)}return P.default.createElement(Te,{initialProps:e.initialProps,children:e.children})}function Te(e){var t=e.initialProps,a=e.children,n=t.selected,o=t.min,r=t.max,l={disabled:[]};n&&l.disabled.push((function(e){var t=r&&n.length>r-1,a=n.some((function(t){return Z.default(t,e)}));return Boolean(t&&!a)}));var i={selected:n,onDayClick:function(e,a,l){var i,u;if((null===(i=t.onDayClick)||void 0===i||i.call(t,e,a,l),!Boolean(a.selected&&o&&(null==n?void 0:n.length)===o))&&!Boolean(!a.selected&&r&&(null==n?void 0:n.length)===r)){var d=n?function(e,t,a){if(a||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([],n,!0):[];if(a.selected){var s=d.findIndex((function(t){return Z.default(e,t)}));d.splice(s,1)}else d.push(e);null===(u=t.onSelect)||void 0===u||u.call(t,d,e,a,l)}},modifiers:l};return P.default.createElement(Oe.Provider,{value:i},a)}function We(){var t=e.useContext(Oe);if(!t)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return t}function Ie(e){return"range"===e.mode}function Be(e,t){var a=t||{},n=a.from,o=a.to;if(!n)return{from:e,to:void 0};if(!o&&Z.default(n,e))return{from:n,to:e};if(!o&&A.default(e,n))return{from:e,to:n};if(!o)return{from:n,to:e};if(!Z.default(o,e)||!Z.default(n,e)){if(Z.default(o,e))return{from:o,to:void 0};if(!Z.default(n,e))return X.default(n,e)?{from:e,to:o}:{from:n,to:e}}}var je,Fe=e.createContext(void 0);function qe(e){if(!Ie(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return P.default.createElement(Fe.Provider,{value:t},e.children)}return P.default.createElement(Re,{initialProps:e.initialProps,children:e.children})}function Re(e){var t=e.initialProps,a=e.children,n=t.selected,o=n||{},r=o.from,l=o.to,i=t.min,u=t.max,d={range_start:[],range_end:[],range_middle:[],disabled:[]};return r&&(d.range_start=[r],l?(d.range_end=[l],d.range_middle=[{after:r,before:l}]):d.range_end=[r]),i&&r&&l&&d.disabled.push((function(e){return A.default(e,r)&&V.default(r,e)<i||X.default(e,l)&&V.default(e,r)<i})),u&&r&&l&&d.disabled.push((function(e){return A.default(e,r)&&V.default(l,e)>=u||X.default(e,l)&&V.default(e,r)>=u})),P.default.createElement(Fe.Provider,{value:{selected:n,onDayClick:function(e,a,o){var r,l;null===(r=t.onDayClick)||void 0===r||r.call(t,e,a,o);var d=Be(e,n);if((i||u)&&n&&(null==d?void 0:d.to)&&d.from&&d.from!==d.to){var s=Math.abs(V.default(null==d?void 0:d.to,null==d?void 0:d.from));if(i&&s<i||u&&s>=u)return}null===(l=t.onSelect)||void 0===l||l.call(t,d,e,a,o)},modifiers:d}},a)}function Ae(){var t=e.useContext(Fe);if(!t)throw new Error("useSelectRange must be used within a SelectRangeProvider");return t}function Ye(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}exports.InternalModifier=void 0,(je=exports.InternalModifier||(exports.InternalModifier={})).Outside="outside",je.Disabled="disabled",je.Selected="selected",je.Hidden="hidden",je.Today="today",je.RangeStart="range_start",je.RangeEnd="range_end",je.RangeMiddle="range_middle";var Ke=exports.InternalModifier.Selected,He=exports.InternalModifier.Disabled,Ue=exports.InternalModifier.Hidden,ze=exports.InternalModifier.Today,Ze=exports.InternalModifier.RangeEnd,Ge=exports.InternalModifier.RangeMiddle,Je=exports.InternalModifier.RangeStart,Qe=exports.InternalModifier.Outside;var Ve=e.createContext(void 0);function Xe(e){var t=se(),a=function(e,t,a){var n,o=((n={})[Ke]=Ye(e.selected),n[He]=Ye(e.disabled),n[Ue]=Ye(e.hidden),n[ze]=[e.today],n[Ze]=[],n[Ge]=[],n[Je]=[],n[Qe]=[],n);return e.fromDate&&o[He].push({before:e.fromDate}),e.toDate&&o[He].push({after:e.toDate}),Se(e)?o[He]=o[He].concat(t.modifiers[He]):Ie(e)&&(o[He]=o[He].concat(a.modifiers[He]),o[Je]=a.modifiers[Je],o[Ge]=a.modifiers[Ge],o[Ze]=a.modifiers[Ze]),o}(t,We(),Ae()),n=function(e){var t={};return Object.entries(e).forEach((function(e){var a=e[0],n=e[1];t[a]=Ye(n)})),t}(t.modifiers),o=ne(ne({},a),n);return P.default.createElement(Ve.Provider,{value:o},e.children)}function $e(){var t=e.useContext(Ve);if(!t)throw new Error("useModifiers must be used within a ModifiersProvider");return t}function et(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function tt(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function at(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function nt(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function ot(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function rt(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(a=t,$.default(a))return Z.default(e,t);var a;if(function(e){return Array.isArray(e)&&e.every($.default)}(t))return t.includes(e);if(tt(t))return function(e,t){var a,n=t.from,o=t.to;if(!n)return!1;if(!o&&Z.default(n,e))return!0;if(!o)return!1;var r=V.default(o,n)<0;return o&&r&&(n=(a=[o,n])[0],o=a[1]),V.default(e,n)>=0&&V.default(o,e)>=0}(e,t);if(ot(t))return t.dayOfWeek.includes(e.getDay());if(et(t)){var n=V.default(t.before,e)>0,o=V.default(e,t.after)>0;return n&&o}return at(t)?V.default(e,t.after)>0:nt(t)?V.default(t.before,e)>0:"function"==typeof t&&t(e)}))}function lt(e,t,a){var n=Object.keys(t).reduce((function(a,n){var o=t[n];return rt(e,o)&&a.push(n),a}),[]),o={};return n.forEach((function(e){return o[e]=!0})),a&&!Y.default(e,a)&&(o.outside=!0),o}var it=e.createContext(void 0);function ut(t){var a=ge(),n=$e(),o=e.useState(),r=o[0],l=o[1],i=e.useState(),u=i[0],d=i[1],s=function(e,t){for(var a,n,o=I.default(e[0]),r=T.default(e[e.length-1]),l=o;l<=r;){var i=lt(l,t);if(i.disabled||i.hidden)l=H.default(l,1);else{if(i.selected)return l;i.today&&!n&&(n=l),a||(a=l),l=H.default(l,1)}}return n||a}(a.displayMonths,n),c=se().weekStartsOn,f=(null!=r?r:u&&a.isDateDisplayed(u))?u:s,p=function(e){l(e)},v={focusedDay:r,focusTarget:f,blur:function(){d(r),l(void 0)},focus:p,focusDayAfter:function(){if(r){var e=H.default(r,1);p(e),a.goToDate(e,r)}},focusDayBefore:function(){if(r){var e=H.default(r,-1);p(e),a.goToDate(e,r)}},focusWeekAfter:function(){if(r){var e=G.default(r,1);p(e),a.goToDate(e,r)}},focusWeekBefore:function(){if(r){var e=G.default(r,-1);p(e),a.goToDate(e,r)}},focusMonthBefore:function(){if(r){var e=R.default(r,-1);a.goToDate(e,r),p(e)}},focusMonthAfter:function(){if(r){var e=R.default(r,1);a.goToDate(e,r),p(e)}},focusYearBefore:function(){if(r){var e=J.default(r,-1);a.goToDate(e,r),p(e)}},focusYearAfter:function(){if(r){var e=J.default(r,1);a.goToDate(e,r),p(e)}},focusStartOfWeek:function(){if(r){var e=U.default(r,{weekStartsOn:c});a.goToDate(e,r),p(e)}},focusEndOfWeek:function(){if(r){var e=Q.default(r,{weekStartsOn:c});a.goToDate(e,r),p(e)}}};return P.default.createElement(it.Provider,{value:v},t.children)}function dt(){var t=e.useContext(it);if(!t)throw new Error("useFocusContext must be used within a FocusProvider");return t}function st(e,t){return lt(e,$e(),t)}function ct(e){return"single"===e.mode}var ft=e.createContext(void 0);function pt(e){if(!ct(e.initialProps)){var t={selected:void 0};return P.default.createElement(ft.Provider,{value:t},e.children)}return P.default.createElement(vt,{initialProps:e.initialProps,children:e.children})}function vt(e){var t=e.initialProps,a=e.children,n={selected:t.selected,onDayClick:function(e,a,n){var o,r,l;null===(o=t.onDayClick)||void 0===o||o.call(t,e,a,n),!a.selected||t.required?null===(l=t.onSelect)||void 0===l||l.call(t,e,e,a,n):null===(r=t.onSelect)||void 0===r||r.call(t,void 0,e,a,n)}};return P.default.createElement(ft.Provider,{value:n},a)}function mt(){var t=e.useContext(ft);if(!t)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return t}function yt(e,t){var a=[e.classNames.day];return Object.keys(t).forEach((function(t){var n=e.modifiersClassNames[t];if(n)a.push(n);else if(function(e){return Object.values(exports.InternalModifier).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&a.push(o)}})),a}function ht(t,a,n){var o,r,l,i=se(),u=dt(),d=st(t,a),s=function(e,t){var a=se(),n=mt(),o=We(),r=Ae(),l=dt(),i=l.focusDayAfter,u=l.focusDayBefore,d=l.focusWeekAfter,s=l.focusWeekBefore,c=l.blur,f=l.focus,p=l.focusMonthBefore,v=l.focusMonthAfter,m=l.focusYearBefore,y=l.focusYearAfter,h=l.focusStartOfWeek,b=l.focusEndOfWeek,g={onClick:function(l){var i,u,d,s;ct(a)?null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,l):Se(a)?null===(u=o.onDayClick)||void 0===u||u.call(o,e,t,l):Ie(a)&&(null===(d=r.onDayClick)||void 0===d||d.call(r,e,t,l)),null===(s=a.onDayClick)||void 0===s||s.call(a,e,t,l)},onFocus:function(n){var o;f(e),null===(o=a.onDayFocus)||void 0===o||o.call(a,e,t,n)},onBlur:function(n){var o;c(),null===(o=a.onDayBlur)||void 0===o||o.call(a,e,t,n)},onKeyDown:function(n){var o;switch(n.key){case"ArrowLeft":n.preventDefault(),n.stopPropagation(),"rtl"===a.dir?i():u();break;case"ArrowRight":n.preventDefault(),n.stopPropagation(),"rtl"===a.dir?u():i();break;case"ArrowDown":n.preventDefault(),n.stopPropagation(),d();break;case"ArrowUp":n.preventDefault(),n.stopPropagation(),s();break;case"PageUp":n.preventDefault(),n.stopPropagation(),n.shiftKey?m():p();break;case"PageDown":n.preventDefault(),n.stopPropagation(),n.shiftKey?y():v();break;case"Home":n.preventDefault(),n.stopPropagation(),h();break;case"End":n.preventDefault(),n.stopPropagation(),b()}null===(o=a.onDayKeyDown)||void 0===o||o.call(a,e,t,n)},onKeyUp:function(n){var o;null===(o=a.onDayKeyUp)||void 0===o||o.call(a,e,t,n)},onMouseEnter:function(n){var o;null===(o=a.onDayMouseEnter)||void 0===o||o.call(a,e,t,n)},onMouseLeave:function(n){var o;null===(o=a.onDayMouseLeave)||void 0===o||o.call(a,e,t,n)},onTouchCancel:function(n){var o;null===(o=a.onDayTouchCancel)||void 0===o||o.call(a,e,t,n)},onTouchEnd:function(n){var o;null===(o=a.onDayTouchEnd)||void 0===o||o.call(a,e,t,n)},onTouchMove:function(n){var o;null===(o=a.onDayTouchMove)||void 0===o||o.call(a,e,t,n)},onTouchStart:function(n){var o;null===(o=a.onDayTouchStart)||void 0===o||o.call(a,e,t,n)}};return g}(t,d),c=function(){var e=se(),t=mt(),a=We(),n=Ae();return ct(e)?t.selected:Se(e)?a.selected:Ie(e)?n.selected:void 0}(),f=Boolean(i.onDayClick||"default"!==i.mode);e.useEffect((function(){var e;d.outside||u.focusedDay&&f&&Z.default(u.focusedDay,t)&&(null===(e=n.current)||void 0===e||e.focus())}),[u.focusedDay,t,n,f,d.outside]);var p=yt(i,d).join(" "),v=function(e,t){var a=ne({},e.styles.day);return Object.keys(t).forEach((function(t){var n;a=ne(ne({},a),null===(n=e.modifiersStyles)||void 0===n?void 0:n[t])})),a}(i,d),m=Boolean(d.outside&&!i.showOutsideDays||d.hidden),y=null!==(l=null===(r=i.components)||void 0===r?void 0:r.DayContent)&&void 0!==l?l:Pe,h={style:v,className:p,children:P.default.createElement(y,{date:t,displayMonth:a,activeModifiers:d})},b=Boolean(u.focusTarget&&Z.default(u.focusTarget,t)),g=ne(ne(ne({},h),((o={disabled:d.disabled})["aria-pressed"]=d.selected,o.tabIndex=b?0:-1,o)),s);return{isButton:f,isHidden:m,activeModifiers:d,selectedDays:c,buttonProps:g,divProps:h}}function bt(t){var a=e.useRef(null),n=ht(t.date,t.displayMonth,a);return n.isHidden?P.default.createElement(P.default.Fragment,null):n.isButton?P.default.createElement(Ee,ne({ref:a},n.buttonProps)):P.default.createElement("div",ne({},n.divProps))}function gt(e){var t=e.number,a=e.dates,n=se(),o=n.onWeekNumberClick,r=n.styles,l=n.classNames,i=n.locale,u=n.labels.labelWeekNumber,d=(0,n.formatters.formatWeekNumber)(Number(t),{locale:i});if(!o)return P.default.createElement("span",{className:l.weeknumber,style:r.weeknumber},d);var s=u(Number(t),{locale:i});return P.default.createElement(Ee,{"aria-label":s,className:l.weeknumber,style:r.weeknumber,onClick:function(e){o(t,a,e)}},d)}function Dt(e){var t,a,n,o=se(),r=o.styles,l=o.classNames,i=o.showWeekNumber,u=o.components,d=null!==(t=null==u?void 0:u.Day)&&void 0!==t?t:bt,s=null!==(a=null==u?void 0:u.WeekNumber)&&void 0!==a?a:gt;return i&&(n=P.default.createElement("td",{className:l.cell,style:r.cell},P.default.createElement(s,{number:e.weekNumber,dates:e.dates}))),P.default.createElement("tr",{className:l.row,style:r.row},n,e.dates.map((function(t){return P.default.createElement("td",{className:l.cell,style:r.cell,key:z.default(t)},P.default.createElement(d,{displayMonth:e.displayMonth,date:t}))})))}function Mt(e,t,a){for(var n=Q.default(t,a),o=U.default(e,a),r=V.default(n,o),l=[],i=0;i<=r;i++)l.push(H.default(o,i));return l.reduce((function(e,t){var n=te.default(t,a),o=e.find((function(e){return e.weekNumber===n}));return o?(o.dates.push(t),e):(e.push({weekNumber:n,dates:[t]}),e)}),[])}function wt(e){var t,a,n,o=se(),r=o.locale,l=o.classNames,i=o.styles,u=o.hideHead,d=o.fixedWeeks,s=o.components,c=o.weekStartsOn,f=function(e,t){var a=Mt(I.default(e),T.default(e),t);if(null==t?void 0:t.useFixedWeeks){var n=ee.default(e,t);if(n<6){var o=a[a.length-1],r=o.dates[o.dates.length-1],l=G.default(r,6-n),i=Mt(G.default(r,1),l,t);a.push.apply(a,i)}}return a}(e.displayMonth,{useFixedWeeks:Boolean(d),locale:r,weekStartsOn:c}),p=null!==(t=null==s?void 0:s.Head)&&void 0!==t?t:Ce,v=null!==(a=null==s?void 0:s.Row)&&void 0!==a?a:Dt,m=null!==(n=null==s?void 0:s.Footer)&&void 0!==n?n:ke;return P.default.createElement("table",{className:l.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&P.default.createElement(p,null),P.default.createElement("tbody",{className:l.tbody,style:i.tbody},f.map((function(t){return P.default.createElement(v,{displayMonth:e.displayMonth,key:t.weekNumber,dates:t.dates,weekNumber:t.weekNumber})}))),P.default.createElement(m,null))}var Et="undefined"!=typeof window&&window.document&&window.document.createElement?S.useLayoutEffect:S.useEffect,xt=!1,_t=0;function Nt(){return"react-day-picker-".concat(++_t)}function kt(e){var t,a,n=se(),o=n.dir,r=n.classNames,l=n.styles,i=n.components,u=ge().displayMonths,d=function(e){var t,a=null!=e?e:xt?Nt():null,n=S.useState(a),o=n[0],r=n[1];return Et((function(){null===o&&r(Nt())}),[]),S.useEffect((function(){!1===xt&&(xt=!0)}),[]),null!==(t=null!=e?e:o)&&void 0!==t?t:void 0}(),s=[r.month],c=l.month,f=0===e.displayIndex,p=e.displayIndex===u.length-1,v=!f&&!p;"rtl"===o&&(p=(t=[f,p])[0],f=t[1]),f&&(s.push(r.caption_start),c=ne(ne({},c),l.caption_start)),p&&(s.push(r.caption_end),c=ne(ne({},c),l.caption_end)),v&&(s.push(r.caption_between),c=ne(ne({},c),l.caption_between));var m=null!==(a=null==i?void 0:i.Caption)&&void 0!==a?a:Ne;return P.default.createElement("div",{key:e.displayIndex,className:s.join(" "),style:c},P.default.createElement(m,{id:d,displayMonth:e.displayMonth}),P.default.createElement(wt,{"aria-labelledby":d,displayMonth:e.displayMonth}))}function Ct(){var t,a=se(),n=dt(),o=ge(),r=e.useState(!1),l=r[0],i=r[1];e.useEffect((function(){a.initialFocus&&n.focusTarget&&(l||(n.focus(n.focusTarget),i(!0)))}),[a.initialFocus,l,n.focus,n.focusTarget,n]);var u=[null!==(t=a.className)&&void 0!==t?t:a.classNames.root];a.numberOfMonths>1&&u.push(a.classNames.multiple_months),a.showWeekNumber&&u.push(a.classNames.with_weeknumber);var d=ne(ne({},a.styles.root),a.style);return P.default.createElement("div",{className:u.join(" "),style:d,dir:a.dir},P.default.createElement("div",{className:a.classNames.months,style:a.styles.months},o.displayMonths.map((function(e,t){return P.default.createElement(kt,{key:t,displayIndex:t,displayMonth:e})}))))}function Pt(e){var t=e.children,a=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]])}return a}(e,["children"]);return P.default.createElement(de,{initialProps:a},P.default.createElement(be,null,P.default.createElement(pt,{initialProps:a},P.default.createElement(Le,{initialProps:a},P.default.createElement(qe,{initialProps:a},P.default.createElement(Xe,null,P.default.createElement(ut,null,t)))))))}function St(e){return!isNaN(e.getTime())}exports.Button=Ee,exports.Caption=Ne,exports.CaptionDropdowns=De,exports.CaptionLabel=ce,exports.CaptionNavigation=_e,exports.Day=bt,exports.DayContent=Pe,exports.DayPicker=function(e){return P.default.createElement(Pt,ne({},e),P.default.createElement(Ct,null))},exports.DayPickerContext=ue,exports.DayPickerProvider=de,exports.Dropdown=pe,exports.FocusContext=it,exports.FocusProvider=ut,exports.Footer=ke,exports.Head=Ce,exports.IconDropdown=fe,exports.IconLeft=Me,exports.IconRight=we,exports.NavigationContext=he,exports.NavigationProvider=be,exports.RootProvider=Pt,exports.Row=Dt,exports.SelectMultipleContext=Oe,exports.SelectMultipleProvider=Le,exports.SelectMultipleProviderInternal=Te,exports.SelectRangeContext=Fe,exports.SelectRangeProvider=qe,exports.SelectRangeProviderInternal=Re,exports.SelectSingleContext=ft,exports.SelectSingleProvider=pt,exports.SelectSingleProviderInternal=vt,exports.WeekNumber=gt,exports.addToRange=Be,exports.isDateAfterType=at,exports.isDateBeforeType=nt,exports.isDateInterval=et,exports.isDateRange=tt,exports.isDayOfWeekType=ot,exports.isDayPickerDefault=function(e){return void 0===e.mode||"default"===e.mode},exports.isDayPickerMultiple=Se,exports.isDayPickerRange=Ie,exports.isDayPickerSingle=ct,exports.isMatch=rt,exports.useActiveModifiers=st,exports.useDayPicker=se,exports.useDayRender=ht,exports.useFocusContext=dt,exports.useInput=function(t){void 0===t&&(t={});var a=t.locale,n=void 0===a?O.default:a,o=t.required,r=t.format,l=void 0===r?"PP":r,i=t.defaultSelected,u=t.today,d=void 0===u?new Date:u,s=ie(t),c=s.fromDate,f=s.toDate,p=function(e){return ae.default(e,l,d,{locale:n})},v=e.useState(null!=i?i:d),m=v[0],y=v[1],h=e.useState(i),b=h[0],g=h[1],D=i?L.default(i,l,{locale:n}):"",M=e.useState(D),w=M[0],E=M[1],x=function(){g(i),y(null!=i?i:d),E(null!=D?D:"")},_={month:m,onDayClick:function(e,t){var a=t.selected;if(!o&&a)return g(void 0),void E("");g(e),E(e?L.default(e,l,{locale:n}):"")},onMonthChange:function(e){y(e)},selected:b,locale:n,fromDate:null==t?void 0:t.fromDate,toDate:null==t?void 0:t.toDate,today:d},N={onBlur:function(e){St(p(e.target.value))||x()},onChange:function(e){E(e.target.value);var t=p(e.target.value),a=c&&V.default(c,t)>0,n=f&&V.default(t,f)>0;!St(t)||a||n?g(void 0):(g(t),y(t))},onFocus:function(e){if(e.target.value){var t=p(e.target.value);St(t)&&y(t)}else x()},value:w,placeholder:L.default(new Date,l,{locale:n})};return{dayPickerProps:_,inputProps:N,reset:x,setSelected:function(e){g(e),y(null!=e?e:d),E(e?L.default(e,l,{locale:n}):"")}}},exports.useNavigation=ge,exports.useSelectMultiple=We,exports.useSelectRange=Ae,exports.useSelectSingle=mt}));

@@ -22,7 +22,7 @@ /// <reference types="react" />

* - `range`: use DayPicker to select a range of days
* - `default`: disable the built-in selection behavior. Customize what is selected by using [[onDayClick]].
* - `default`: disable the built-in selection behavior. Customize what is selected by using {@link DayPickerBase.onDayClick}.
*/
export declare type DaySelectionMode = 'single' | 'multiple' | 'range' | 'default';
/**
* The base props for the [[DayPicker]] component.
* The base props for the {@link DayPicker} component and the {@link DayPickerContext}.
*/

@@ -40,3 +40,3 @@ export interface DayPickerBase {

/**
* Change the class name for the day matching the [[modifiers]].
* Change the class name for the day matching the {@link modifiers}.
*/

@@ -53,3 +53,3 @@ modifiersClassNames?: ModifiersClassNames;

/**
* Change the inline style for the day matching the [[modifiers]].
* Change the inline style for the day matching the {@link modifiers}.
*/

@@ -60,9 +60,9 @@ modifiersStyles?: ModifiersStyles;

*
* Use this prop to let DayPicker control the current month. If you need to set the month programmatically, use [[month]] and [[onMonthChange]].
* Use this prop to let DayPicker control the current month. If you need to set the month programmatically, use {@link month]] and [[onMonthChange}.
*/
defaultMonth?: Date;
/**
* The month to display in the calendar.
* The month displayed in the calendar.
*
* As opposed to [[defaultMonth]], use this prop with [[onMonthChange]] to
* As opposed to {@link DayPickerBase.defaultMonth}, use this prop with {@link DayPickerBase.onMonthChange} to
* change the month programmatically.

@@ -108,7 +108,7 @@ */

/**
* Paginate the month navigation displaying the [[numberOfMonths]] at time.
* Paginate the month navigation displaying the {@link numberOfMonths} at time.
*/
pagedNavigation?: boolean;
/**
* Render the months in reversed order (when [[numberOfMonths]] is greater
* Render the months in reversed order (when {@link numberOfMonths} is greater
* than `1`) to display the most recent month first.

@@ -129,3 +129,3 @@ */

* Display six weeks per months, regardless the month’s number of weeks.
* To use this prop, [[showOutsideDays]] must be set. Default to `false`.
* To use this prop, {@link showOutsideDays} must be set. Default to `false`.
*/

@@ -147,3 +147,3 @@ fixedWeeks?: boolean;

/**
* A map of components used to create the layout.
* Map of components used to create the layout. Look at the [components source](https://github.com/gpbl/react-day-picker/tree/master/packages/react-day-picker/src/components) to understand how internal components are built.
*/

@@ -218,3 +218,9 @@ components?: CustomComponents;

}
/** A map of the component that can be changed via the `components` prop. */
/**
* Map of the components that can be changed using the `components` prop.
*
* Look at the [components
* source](https://github.com/gpbl/react-day-picker/tree/master/packages/react-day-picker/src/components)
* to understand how internal components are built.
*/
export interface CustomComponents {

@@ -225,3 +231,13 @@ /** The component for the caption element. */

CaptionLabel?: (props: CaptionLabelProps) => JSX.Element | null;
/** The component for the day element. This is a button or a span. */
/**
* The component for the day element.
*
* Each `Day` in DayPicker should render one of the following, according to
* the return value of {@link useDayRender}.
*
* - an empty `React.Fragment`, to render if `isHidden` is true
* - a `button` element, when the day is interactive, e.g. is selectable
* - a `div` or a `span` element, when the day is not interactive
*
*/
Day?: (props: DayProps) => JSX.Element | null;

@@ -228,0 +244,0 @@ /** The component for the content of the day element. */

import { DayPickerProps } from '../DayPicker';
import { DayPickerBase } from './DayPickerBase';
/** The props for the [[DayPicker]] component when using `mode="default"` or `undefined`. */
import { DayPickerBase, DaySelectionMode } from './DayPickerBase';
/** The props for the {@link DayPicker} component when using `mode="default"` or `undefined`. */
export interface DayPickerDefaultProps extends DayPickerBase {
mode?: 'default';
mode?: DaySelectionMode;
}
/** Returns true when the props are of type [[DayPickerDefault]]. */
/** Returns true when the props are of type {@link DayPickerDefaultProps}. */
export declare function isDayPickerDefault(props: DayPickerProps): props is DayPickerDefaultProps;

@@ -5,3 +5,3 @@ import { DayPickerProps } from '../DayPicker';

import { SelectMultipleEventHandler } from './EventHandlers';
/** The props for the [[DayPicker]] component when using `mode="multiple"`. */
/** The props for the {@link DayPicker} component when using `mode="multiple"`. */
export interface DayPickerMultipleProps extends DayPickerBase {

@@ -18,3 +18,3 @@ mode: 'multiple';

}
/** Returns true when the props are of type [[DayPickerMultiple]]. */
/** Returns true when the props are of type {@link DayPickerMultipleProps}. */
export declare function isDayPickerMultiple(props: DayPickerProps | DayPickerContextValue): props is DayPickerMultipleProps;

@@ -6,3 +6,3 @@ import { DayPickerProps } from '../DayPicker';

import { DateRange } from './Matchers';
/** The props for the [[DayPicker]] component when using `mode="range"`. */
/** The props for the {@link DayPicker} component when using `mode="range"`. */
export interface DayPickerRangeProps extends DayPickerBase {

@@ -19,3 +19,3 @@ mode: 'range';

}
/** Returns true when the props are of type [[DayPickerRange]]. */
/** Returns true when the props are of type {@link DayPickerRangeProps}. */
export declare function isDayPickerRange(props: DayPickerProps | DayPickerContextValue): props is DayPickerRangeProps;

@@ -5,3 +5,3 @@ import { DayPickerProps } from '../DayPicker';

import { SelectSingleEventHandler } from './EventHandlers';
/** The props for the [[DayPicker]] component when using `mode="single"`. */
/** The props for the {@link DayPicker} component when using `mode="single"`. */
export interface DayPickerSingleProps extends DayPickerBase {

@@ -16,3 +16,3 @@ mode: 'single';

}
/** Returns true when the props are of type [[DayPickerSingle]]. */
/** Returns true when the props are of type {@link DayPickerSingleProps}. */
export declare function isDayPickerSingle(props: DayPickerProps | DayPickerContextValue): props is DayPickerSingleProps;

@@ -13,3 +13,3 @@ import type { Locale } from 'date-fns';

};
/** Return the ARIA label for the [[Day]] component. */
/** Return the ARIA label for the {@link Day} component. */
export declare type DayLabel = (day: Date, activeModifiers: ActiveModifiers, options?: {

@@ -16,0 +16,0 @@ locale?: Locale;

@@ -5,5 +5,5 @@ /**

*
* Matchers are passed to DayPicker via [[DayPickerProps.disabled]],
* [[DayPickerProps.hidden]] or [[DayPickerProps.selected]] and are used to
* determine if a day should get a [[Modifier]].
* Matchers are passed to DayPicker via {@link DayPickerBase.disabled},
* {@link DayPickerBase.hidden]] or [[DayPickerProps.selected} and are used to
* determine if a day should get a {@link Modifier}.
*

@@ -50,3 +50,3 @@ * Matchers can be of different types:

*
* @see [[isMatch]]
* @see {@link isMatch}
*

@@ -68,3 +68,3 @@ * */

};
/** A matcher to match a range of dates. The range can be open. Differently from [[DateInterval]], the dates here are included. */
/** A matcher to match a range of dates. The range can be open. Differently from {@link DateInterval}, the dates here are included. */
export declare type DateRange = {

@@ -78,11 +78,11 @@ from: Date | undefined;

};
/** Returns true if `matcher` is of type [[DateInterval]]. */
/** Returns true if `matcher` is of type {@link DateInterval}. */
export declare function isDateInterval(matcher: unknown): matcher is DateInterval;
/** Returns true if `value` is a [[DateRange]] type. */
/** Returns true if `value` is a {@link DateRange} type. */
export declare function isDateRange(value: unknown): value is DateRange;
/** Returns true if `value` is of type [[DateAfter]]. */
/** Returns true if `value` is of type {@link DateAfter}. */
export declare function isDateAfterType(value: unknown): value is DateAfter;
/** Returns true if `value` is of type [[DateBefore]]. */
/** Returns true if `value` is of type {@link DateBefore}. */
export declare function isDateBeforeType(value: unknown): value is DateBefore;
/** Returns true if `value` is a [[DayOfWeek]] type. */
/** Returns true if `value` is a {@link DayOfWeek} type. */
export declare function isDayOfWeekType(value: unknown): value is DayOfWeek;

@@ -28,6 +28,4 @@ /// <reference types="react" />

/**
* Active modifiers are those Modifiers matching a specific day.
* The modifiers that are matching a day in the calendar. Use the {@link useActiveModifiers} hook to get the modifiers for a day.
*
* @example
*
* ```

@@ -46,8 +44,8 @@ * const activeModifiers: ActiveModifiers = {

export declare type ModifiersClassNames = Record<Modifier, string> & Partial<Record<InternalModifier, string>>;
/** The custom modifiers passed to the [[DayPickerProps.modifiers]]. */
/** The custom modifiers passed to the {@link DayPickerBase.modifiers}. */
export declare type DayModifiers = Record<Modifier, Matcher | Matcher[]>;
/**
* A map of matchers used as custom modifiers by DayPicker component. This is
* the same as [[DayModifiers]], but it accepts only array of [[Matcher]]s.
* the same as {@link DayModifiers]], but it accepts only array of [[Matcher}s.
*/
export declare type CustomModifiers = Record<Modifier, Matcher[]>;
{
"name": "react-day-picker",
"version": "8.0.7",
"version": "8.1.0",
"description": "Customizable Date Picker for React",

@@ -35,9 +35,7 @@ "author": "Giampaolo Bellavite <io@gpbl.dev>",

],
"dependencies": {
"@reach/auto-id": "0.16.0"
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-typescript": "^8.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.4",
"@testing-library/jest-dom": "^5.16.4",

@@ -48,24 +46,22 @@ "@testing-library/react": "^12.1.4",

"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"@types/react": "^17.0.44",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"@types/node": "^17.0.45",
"@types/react": "^17.0.48",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"date-fns": "^2.28.0",
"eslint": "^8.13.0",
"eslint": "^8.21.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-rdp": "workspace:^",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-import-resolver-typescript": "^3.4.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.1.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react-hooks": "^4.4.0",
"eslint-plugin-jest": "^26.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^27.5.1",
"prettier": "^2.6.2",
"prettier": "^2.7.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"rollup": "^2.77.2",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-local-resolve": "^1.0.7",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-peer-deps-external": "^2.2.4",

@@ -75,7 +71,7 @@ "rollup-plugin-terser": "^7.0.2",

"ts-jest": "^27.1.4",
"ts-node": "^10.7.0",
"tsc-alias": "^1.6.6",
"tslib": "^2.3.1",
"typed-css-modules": "^0.7.0",
"typescript": "~4.5.5"
"ts-node": "^10.9.1",
"tsc-alias": "^1.7.0",
"tslib": "^2.4.0",
"typed-css-modules": "^0.7.2",
"typescript": "~4.7.4"
},

@@ -82,0 +78,0 @@ "peerDependencies": {

@@ -6,6 +6,6 @@ import { useContext } from 'react';

/**
* Hook to access the [[DayPickerContext]].
* Hook to access the {@link DayPickerContextValue}.
*
* To use this hook make sure to wrap the components with a one
* [[DayPickerProvider]].
* Use the DayPicker context to access to the props passed to DayPicker inside
* internal or custom components.
*/

@@ -12,0 +12,0 @@ export function useDayPicker(): DayPickerContextValue {

@@ -5,3 +5,8 @@ import { useContext } from 'react';

/** Hook to access the [[FocusContext]]. */
/**
* Hook to access the {@link FocusContextValue}. Use this hook to handle the
* focus state of the elements.
*
* This hook is meant to be used inside internal or custom components.
*/
export function useFocusContext(): FocusContextValue {

@@ -8,0 +13,0 @@ const context = useContext(FocusContext);

@@ -10,3 +10,6 @@ import { useContext } from 'react';

*
* Requires to be wrapped into [[ModifiersProvider]]. */
* This hook is meant to be used inside internal or custom components.
* Requires to be wrapped into {@link ModifiersProvider}.
*
*/
export function useModifiers(): Modifiers {

@@ -13,0 +16,0 @@ const context = useContext(ModifiersContext);

@@ -21,3 +21,3 @@ import { DayPickerContextValue } from 'contexts/DayPicker';

/** Return the [[InternalModifiers]] from the DayPicker and select contexts. */
/** Return the {@link InternalModifiers} from the DayPicker and select contexts. */
export function getInternalModifiers(

@@ -24,0 +24,0 @@ dayPicker: DayPickerContextValue,

@@ -5,3 +5,8 @@ import { useContext } from 'react';

/** Hook to access the [[NavigationContext]]. */
/**
* Hook to access the {@link NavigationContextValue}. Use this hook to navigate
* between months or years in DayPicker.
*
* This hook is meant to be used inside internal or custom components.
*/
export function useNavigation(): NavigationContextValue {

@@ -8,0 +13,0 @@ const context = useContext(NavigationContext);

@@ -8,3 +8,7 @@ import { useContext } from 'react';

/** Hook to access the [[SelectMultipleContext]]. */
/**
* Hook to access the {@link SelectMultipleContextValue}.
*
* This hook is meant to be used inside internal or custom components.
*/
export function useSelectMultiple(): SelectMultipleContextValue {

@@ -11,0 +15,0 @@ const context = useContext(SelectMultipleContext);

@@ -8,3 +8,7 @@ import { useContext } from 'react';

/** Hook to access the [[SelectRangeContext]]. */
/**
* Hook to access the {@link SelectRangeContextValue}.
*
* This hook is meant to be used inside internal or custom components.
*/
export function useSelectRange(): SelectRangeContextValue {

@@ -11,0 +15,0 @@ const context = useContext(SelectRangeContext);

@@ -8,3 +8,7 @@ import { useContext } from 'react';

/** Hook to access the [[SelectSingleContext]]. */
/**
* Hook to access the {@link SelectSingleContextValue}.
*
* This hook is meant to be used inside internal or custom components.
*/
export function useSelectSingle(): SelectSingleContextValue {

@@ -11,0 +15,0 @@ const context = useContext(SelectSingleContext);

@@ -18,3 +18,3 @@ import React, { useState } from 'react';

/** The props to attach to the input field when using [[useInput]]. */
/** The props to attach to the input field when using {@link useInput}. */
export type InputHTMLAttributes = Pick<

@@ -25,3 +25,3 @@ React.InputHTMLAttributes<HTMLInputElement>,

/** The props to attach to the DayPicker component when using [[useInput]]. */
/** The props to attach to the DayPicker component when using {@link useInput}. */
export type InputDayPickerProps = Pick<

@@ -59,4 +59,4 @@ DayPickerSingleProps,

/** Represent the value returned by [[useInput]]. */
export interface UseInput {
/** Represent the value returned by {@link useInput}. */
export interface UseInputValue {
/** The props to pass to a DayPicker component. */

@@ -73,3 +73,3 @@ dayPickerProps: InputDayPickerProps;

/** Return props and setters for binding an input field to DayPicker. */
export function useInput(options: UseInputOptions = {}): UseInput {
export function useInput(options: UseInputOptions = {}): UseInputValue {
const {

@@ -76,0 +76,0 @@ locale = enUS,

@@ -13,5 +13,7 @@ import { useDayPicker } from 'contexts/DayPicker';

/**
* Return the current selected days when DayPicker is in selection mode.
* Return the current selected days when DayPicker is in selection mode. Days
* selected by the custom selection mode are not returned.
*
* Days selected by the custom selection mode are not returned.
* This hook is meant to be used inside internal or custom components.
*
*/

@@ -18,0 +20,0 @@ export function useSelectedDays(): SelectedDays {

@@ -44,1 +44,2 @@ export * from './DayPicker';

export * from 'contexts/Modifiers/utils/isMatch';
export * from 'contexts/SelectRange/utils/addToRange';

@@ -36,3 +36,3 @@ import type { Locale } from 'date-fns';

* - `range`: use DayPicker to select a range of days
* - `default`: disable the built-in selection behavior. Customize what is selected by using [[onDayClick]].
* - `default`: disable the built-in selection behavior. Customize what is selected by using {@link DayPickerBase.onDayClick}.
*/

@@ -42,3 +42,3 @@ export type DaySelectionMode = 'single' | 'multiple' | 'range' | 'default';

/**
* The base props for the [[DayPicker]] component.
* The base props for the {@link DayPicker} component and the {@link DayPickerContext}.
*/

@@ -56,3 +56,3 @@ export interface DayPickerBase {

/**
* Change the class name for the day matching the [[modifiers]].
* Change the class name for the day matching the {@link modifiers}.
*/

@@ -70,3 +70,3 @@ modifiersClassNames?: ModifiersClassNames;

/**
* Change the inline style for the day matching the [[modifiers]].
* Change the inline style for the day matching the {@link modifiers}.
*/

@@ -78,9 +78,9 @@ modifiersStyles?: ModifiersStyles;

*
* Use this prop to let DayPicker control the current month. If you need to set the month programmatically, use [[month]] and [[onMonthChange]].
* Use this prop to let DayPicker control the current month. If you need to set the month programmatically, use {@link month]] and [[onMonthChange}.
*/
defaultMonth?: Date;
/**
* The month to display in the calendar.
* The month displayed in the calendar.
*
* As opposed to [[defaultMonth]], use this prop with [[onMonthChange]] to
* As opposed to {@link DayPickerBase.defaultMonth}, use this prop with {@link DayPickerBase.onMonthChange} to
* change the month programmatically.

@@ -126,7 +126,7 @@ */

/**
* Paginate the month navigation displaying the [[numberOfMonths]] at time.
* Paginate the month navigation displaying the {@link numberOfMonths} at time.
*/
pagedNavigation?: boolean;
/**
* Render the months in reversed order (when [[numberOfMonths]] is greater
* Render the months in reversed order (when {@link numberOfMonths} is greater
* than `1`) to display the most recent month first.

@@ -148,3 +148,3 @@ */

* Display six weeks per months, regardless the month’s number of weeks.
* To use this prop, [[showOutsideDays]] must be set. Default to `false`.
* To use this prop, {@link showOutsideDays} must be set. Default to `false`.
*/

@@ -166,3 +166,3 @@ fixedWeeks?: boolean;

/**
* A map of components used to create the layout.
* Map of components used to create the layout. Look at the [components source](https://github.com/gpbl/react-day-picker/tree/master/packages/react-day-picker/src/components) to understand how internal components are built.
*/

@@ -249,3 +249,9 @@ components?: CustomComponents;

/** A map of the component that can be changed via the `components` prop. */
/**
* Map of the components that can be changed using the `components` prop.
*
* Look at the [components
* source](https://github.com/gpbl/react-day-picker/tree/master/packages/react-day-picker/src/components)
* to understand how internal components are built.
*/
export interface CustomComponents {

@@ -256,3 +262,13 @@ /** The component for the caption element. */

CaptionLabel?: (props: CaptionLabelProps) => JSX.Element | null;
/** The component for the day element. This is a button or a span. */
/**
* The component for the day element.
*
* Each `Day` in DayPicker should render one of the following, according to
* the return value of {@link useDayRender}.
*
* - an empty `React.Fragment`, to render if `isHidden` is true
* - a `button` element, when the day is interactive, e.g. is selectable
* - a `div` or a `span` element, when the day is not interactive
*
*/
Day?: (props: DayProps) => JSX.Element | null;

@@ -259,0 +275,0 @@ /** The component for the content of the day element. */

import { DayPickerProps } from 'DayPicker';
import { DayPickerBase } from './DayPickerBase';
import { DayPickerBase, DaySelectionMode } from './DayPickerBase';
/** The props for the [[DayPicker]] component when using `mode="default"` or `undefined`. */
/** The props for the {@link DayPicker} component when using `mode="default"` or `undefined`. */
export interface DayPickerDefaultProps extends DayPickerBase {
mode?: 'default';
mode?: DaySelectionMode;
}
/** Returns true when the props are of type [[DayPickerDefault]]. */
/** Returns true when the props are of type {@link DayPickerDefaultProps}. */
export function isDayPickerDefault(

@@ -12,0 +12,0 @@ props: DayPickerProps

@@ -8,3 +8,3 @@ import { DayPickerProps } from 'DayPicker';

/** The props for the [[DayPicker]] component when using `mode="multiple"`. */
/** The props for the {@link DayPicker} component when using `mode="multiple"`. */
export interface DayPickerMultipleProps extends DayPickerBase {

@@ -22,3 +22,3 @@ mode: 'multiple';

/** Returns true when the props are of type [[DayPickerMultiple]]. */
/** Returns true when the props are of type {@link DayPickerMultipleProps}. */
export function isDayPickerMultiple(

@@ -25,0 +25,0 @@ props: DayPickerProps | DayPickerContextValue

@@ -9,3 +9,3 @@ import { DayPickerProps } from 'DayPicker';

/** The props for the [[DayPicker]] component when using `mode="range"`. */
/** The props for the {@link DayPicker} component when using `mode="range"`. */
export interface DayPickerRangeProps extends DayPickerBase {

@@ -23,3 +23,3 @@ mode: 'range';

/** Returns true when the props are of type [[DayPickerRange]]. */
/** Returns true when the props are of type {@link DayPickerRangeProps}. */
export function isDayPickerRange(

@@ -26,0 +26,0 @@ props: DayPickerProps | DayPickerContextValue

@@ -8,3 +8,3 @@ import { DayPickerProps } from 'DayPicker';

/** The props for the [[DayPicker]] component when using `mode="single"`. */
/** The props for the {@link DayPicker} component when using `mode="single"`. */
export interface DayPickerSingleProps extends DayPickerBase {

@@ -20,3 +20,3 @@ mode: 'single';

/** Returns true when the props are of type [[DayPickerSingle]]. */
/** Returns true when the props are of type {@link DayPickerSingleProps}. */
export function isDayPickerSingle(

@@ -23,0 +23,0 @@ props: DayPickerProps | DayPickerContextValue

@@ -16,3 +16,3 @@ import type { Locale } from 'date-fns';

/** Return the ARIA label for the [[Day]] component. */
/** Return the ARIA label for the {@link Day} component. */
export type DayLabel = (

@@ -19,0 +19,0 @@ day: Date,

@@ -5,5 +5,5 @@ /**

*
* Matchers are passed to DayPicker via [[DayPickerProps.disabled]],
* [[DayPickerProps.hidden]] or [[DayPickerProps.selected]] and are used to
* determine if a day should get a [[Modifier]].
* Matchers are passed to DayPicker via {@link DayPickerBase.disabled},
* {@link DayPickerBase.hidden]] or [[DayPickerProps.selected} and are used to
* determine if a day should get a {@link Modifier}.
*

@@ -50,3 +50,3 @@ * Matchers can be of different types:

*
* @see [[isMatch]]
* @see {@link isMatch}
*

@@ -74,3 +74,3 @@ * */

/** A matcher to match a range of dates. The range can be open. Differently from [[DateInterval]], the dates here are included. */
/** A matcher to match a range of dates. The range can be open. Differently from {@link DateInterval}, the dates here are included. */
export type DateRange = { from: Date | undefined; to?: Date | undefined };

@@ -81,3 +81,3 @@

/** Returns true if `matcher` is of type [[DateInterval]]. */
/** Returns true if `matcher` is of type {@link DateInterval}. */
export function isDateInterval(matcher: unknown): matcher is DateInterval {

@@ -92,3 +92,3 @@ return Boolean(

/** Returns true if `value` is a [[DateRange]] type. */
/** Returns true if `value` is a {@link DateRange} type. */
export function isDateRange(value: unknown): value is DateRange {

@@ -98,3 +98,3 @@ return Boolean(value && typeof value === 'object' && 'from' in value);

/** Returns true if `value` is of type [[DateAfter]]. */
/** Returns true if `value` is of type {@link DateAfter}. */
export function isDateAfterType(value: unknown): value is DateAfter {

@@ -104,3 +104,3 @@ return Boolean(value && typeof value === 'object' && 'after' in value);

/** Returns true if `value` is of type [[DateBefore]]. */
/** Returns true if `value` is of type {@link DateBefore}. */
export function isDateBeforeType(value: unknown): value is DateBefore {

@@ -110,5 +110,5 @@ return Boolean(value && typeof value === 'object' && 'before' in value);

/** Returns true if `value` is a [[DayOfWeek]] type. */
/** Returns true if `value` is a {@link DayOfWeek} type. */
export function isDayOfWeekType(value: unknown): value is DayOfWeek {
return Boolean(value && typeof value === 'object' && 'dayOfWeek' in value);
}

@@ -32,6 +32,4 @@ import { Matcher } from './Matchers';

/**
* Active modifiers are those Modifiers matching a specific day.
* The modifiers that are matching a day in the calendar. Use the {@link useActiveModifiers} hook to get the modifiers for a day.
*
* @example
*
* ```

@@ -56,3 +54,3 @@ * const activeModifiers: ActiveModifiers = {

/** The custom modifiers passed to the [[DayPickerProps.modifiers]]. */
/** The custom modifiers passed to the {@link DayPickerBase.modifiers}. */
export type DayModifiers = Record<Modifier, Matcher | Matcher[]>;

@@ -62,4 +60,4 @@

* A map of matchers used as custom modifiers by DayPicker component. This is
* the same as [[DayModifiers]], but it accepts only array of [[Matcher]]s.
* the same as {@link DayModifiers]], but it accepts only array of [[Matcher}s.
*/
export type CustomModifiers = Record<Modifier, Matcher[]>;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc