Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-calendar

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-calendar - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

132

react-calendar/index.d.ts

@@ -21,26 +21,26 @@ // Type definitions for react-calendar 3.4

export interface CalendarProps {
activeStartDate?: Date;
allowPartialRange?: boolean;
calendarType?: CalendarType;
className?: string | string[];
closeCalendar?: boolean;
defaultActiveStartDate?: Date;
defaultValue?: Date | Date[];
defaultView?: Detail;
formatDay?: FormatterCallback;
formatLongDate?: FormatterCallback;
formatMonth?: FormatterCallback;
formatMonthYear?: FormatterCallback;
formatShortWeekday?: FormatterCallback;
formatYear?: FormatterCallback;
inputRef?: (
activeStartDate?: Date | undefined;
allowPartialRange?: boolean | undefined;
calendarType?: CalendarType | undefined;
className?: string | string[] | undefined;
closeCalendar?: boolean | undefined;
defaultActiveStartDate?: Date | undefined;
defaultValue?: Date | Date[] | undefined;
defaultView?: Detail | undefined;
formatDay?: FormatterCallback | undefined;
formatLongDate?: FormatterCallback | undefined;
formatMonth?: FormatterCallback | undefined;
formatMonthYear?: FormatterCallback | undefined;
formatShortWeekday?: FormatterCallback | undefined;
formatYear?: FormatterCallback | undefined;
inputRef?: ((
ref: HTMLInputElement | null,
) => void | RefObject<HTMLInputElement> | MutableRefObject<HTMLInputElement | null>;
locale?: string;
maxDate?: Date;
maxDetail?: Detail;
minDate?: Date;
minDetail?: Detail;
navigationAriaLabel?: string;
navigationLabel?: (props: {
) => void | RefObject<HTMLInputElement> | MutableRefObject<HTMLInputElement | null>) | undefined;
locale?: string | undefined;
maxDate?: Date | undefined;
maxDetail?: Detail | undefined;
minDate?: Date | undefined;
minDetail?: Detail | undefined;
navigationAriaLabel?: string | undefined;
navigationLabel?: ((props: {
date: Date;

@@ -50,33 +50,33 @@ label: string;

view: Detail;
}) => string | JSX.Element | null;
nextAriaLabel?: string;
nextLabel?: string | JSX.Element | null;
next2AriaLabel?: string;
next2Label?: string | JSX.Element | null;
onActiveStartDateChange?: ViewCallback;
onChange?: OnChangeDateCallback;
onViewChange?: ViewCallback;
onClickDay?: DateCallback;
onClickDecade?: DateCallback;
onClickMonth?: DateCallback;
onClickWeekNumber?: ClickWeekNumberCallback;
onClickYear?: DateCallback;
onDrillDown?: DrillCallback;
onDrillUp?: DrillCallback;
prevAriaLabel?: string;
prevLabel?: string | JSX.Element | null;
prev2AriaLabel?: string;
prev2Label?: string | JSX.Element | null;
returnValue?: "start" | "end" | "range";
showDoubleView?: boolean;
showFixedNumberOfWeeks?: boolean;
showNavigation?: boolean;
showNeighboringMonth?: boolean;
selectRange?: boolean;
showWeekNumbers?: boolean;
tileClassName?: string | string[] | ((props: CalendarTileProperties) => string | string[] | null);
tileContent?: string | JSX.Element | ((props: CalendarTileProperties) => JSX.Element | null);
tileDisabled?: (props: CalendarTileProperties) => boolean;
value?: Date | Date[] | null;
view?: Detail;
}) => string | JSX.Element | null) | undefined;
nextAriaLabel?: string | undefined;
nextLabel?: string | JSX.Element | null | undefined;
next2AriaLabel?: string | undefined;
next2Label?: string | JSX.Element | null | undefined;
onActiveStartDateChange?: ViewCallback | undefined;
onChange?: OnChangeDateCallback | undefined;
onViewChange?: ViewCallback | undefined;
onClickDay?: DateCallback | undefined;
onClickDecade?: DateCallback | undefined;
onClickMonth?: DateCallback | undefined;
onClickWeekNumber?: ClickWeekNumberCallback | undefined;
onClickYear?: DateCallback | undefined;
onDrillDown?: DrillCallback | undefined;
onDrillUp?: DrillCallback | undefined;
prevAriaLabel?: string | undefined;
prevLabel?: string | JSX.Element | null | undefined;
prev2AriaLabel?: string | undefined;
prev2Label?: string | JSX.Element | null | undefined;
returnValue?: "start" | "end" | "range" | undefined;
showDoubleView?: boolean | undefined;
showFixedNumberOfWeeks?: boolean | undefined;
showNavigation?: boolean | undefined;
showNeighboringMonth?: boolean | undefined;
selectRange?: boolean | undefined;
showWeekNumbers?: boolean | undefined;
tileClassName?: string | string[] | ((props: CalendarTileProperties) => string | string[] | null) | undefined;
tileContent?: string | JSX.Element | ((props: CalendarTileProperties) => JSX.Element | null) | undefined;
tileDisabled?: ((props: CalendarTileProperties) => boolean) | undefined;
value?: Date | Date[] | null | undefined;
view?: Detail | undefined;
}

@@ -108,14 +108,14 @@

activeStartDate: Date;
calendarType?: CalendarType;
locale?: string;
hover?: Date;
maxDate?: Date;
minDate?: Date;
onClick?: DateCallback;
onMouseOver?: DateCallback;
renderChildren?: (props: CalendarTileProperties) => JSX.Element | null; // For backwards compatibility
tileClassName?: string | string[] | ((props: CalendarTileProperties) => string | string[] | null);
tileContent?: JSX.Element | ((props: CalendarTileProperties) => JSX.Element | null);
tileDisabled?: (props: CalendarTileProperties) => boolean;
value?: Date | Date[];
calendarType?: CalendarType | undefined;
locale?: string | undefined;
hover?: Date | undefined;
maxDate?: Date | undefined;
minDate?: Date | undefined;
onClick?: DateCallback | undefined;
onMouseOver?: DateCallback | undefined;
renderChildren?: ((props: CalendarTileProperties) => JSX.Element | null) | undefined; // For backwards compatibility
tileClassName?: string | string[] | ((props: CalendarTileProperties) => string | string[] | null) | undefined;
tileContent?: JSX.Element | ((props: CalendarTileProperties) => JSX.Element | null) | undefined;
tileDisabled?: ((props: CalendarTileProperties) => boolean) | undefined;
value?: Date | Date[] | undefined;
}
{
"name": "@types/react-calendar",
"version": "3.4.0",
"version": "3.4.1",
"description": "TypeScript definitions for react-calendar",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-calendar",
"license": "MIT",

@@ -34,4 +35,4 @@ "contributors": [

},
"typesPublisherContentHash": "f7a7fd1589e9bd26d5580125d11e2e6c7a2c09454bd959a5fb5dd4a5262deecd",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "8b82085d03c9e443e36eb7658fe8713ae1bea3d661e5a0cbe237cd1535f496e6",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 26 May 2021 07:31:22 GMT
* Last updated: Wed, 07 Jul 2021 17:02:57 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc