Socket
Socket
Sign inDemoInstall

react-calendar

Package Overview
Dependencies
19
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.6.1 to 4.7.0

301

dist/cjs/Calendar.d.ts

@@ -5,55 +5,356 @@ import React from 'react';

export type CalendarProps = {
/**
* The beginning of a period that shall be displayed. If you wish to use react-calendar in an uncontrolled way, use `defaultActiveStartDate` instead.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate?: Date;
/**
* Whether to call onChange with only partial result given `selectRange` prop.
*
* @default false
* @example true
*/
allowPartialRange?: boolean;
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType?: CalendarType | DeprecatedCalendarType;
/**
* Class name(s) that will be added along with `"react-calendar"` to the main react-calendar `<div>` element.
*
* @example 'class1 class2'
* @example ['class1', 'class2 class3']
*/
className?: ClassName;
/**
* The beginning of a period that shall be displayed by default. If you wish to use react-calendar in a controlled way, use `activeStartDate` instead.
*
* @example new Date(2017, 0, 1)
*/
defaultActiveStartDate?: Date;
/**
* Calendar value that shall be selected initially. Can be either one value or an array of two values. If you wish to use react-calendar in a controlled way, use `value` instead.
*
* @example new Date(2017, 0, 1)
* @example [new Date(2017, 0, 1), new Date(2017, 7, 1)]
*/
defaultValue?: LooseValue;
/**
* Determines which calendar view shall be opened initially. Does not disable navigation. Can be `"month"`, `"year"`, `"decade"` or `"century"`. If you wish to use react-calendar in a controlled way, use `view` instead.
*
* @example 'year'
*/
defaultView?: View;
/**
* Function called to override default formatting of day tile labels. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'd')
*/
formatDay?: typeof defaultFormatDay;
/**
* Function called to override default formatting of day tile `abbr` labels. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd MMM YYYY')
*/
formatLongDate?: typeof defaultFormatLongDate;
/**
* Function called to override default formatting of month names. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMM')
*/
formatMonth?: typeof defaultFormatMonth;
/**
* Function called to override default formatting of months and years. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMMM YYYY')
*/
formatMonthYear?: typeof defaultFormatMonthYear;
/**
* Function called to override default formatting of weekday names (shortened). Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd')
*/
formatShortWeekday?: typeof defaultFormatShortWeekday;
/**
* Function called to override default formatting of weekday names. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd')
*/
formatWeekday?: typeof defaultFormatWeekday;
/**
* Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'YYYY')
*/
formatYear?: typeof defaultFormatYear;
/**
* Whether to go to the beginning of the range when selecting the end of the range.
*
* @default true
* @example false
*/
goToRangeStartOnSelect?: boolean;
/**
* A prop that behaves like [ref](https://reactjs.org/docs/refs-and-the-dom.html), but it's passed to main `<div>` rendered by `<Calendar>` component.
*
* @example (ref) => { this.myCalendar = ref; }
* @example this.ref
* @example ref
*/
inputRef?: React.Ref<HTMLDivElement>;
/**
* Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag).
*
* **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.
*
* @example 'hu-HU'
*/
locale?: string;
/**
* Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.
*
* @example new Date()
*/
maxDate?: Date;
/**
* The most detailed view that the user shall see. View defined here also becomes the one on which clicking an item will select a date and pass it to onChange. Can be `"month"`, `"year"`, `"decade"` or `"century"`.
*
* @default 'month'
* @example 'year'
*/
maxDetail?: Detail;
/**
* Minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although react-calendar will ensure that no earlier date is selected.
*
* @example new Date()
*/
minDate?: Date;
/**
* The least detailed view that the user shall see. Can be `"month"`, `"year"`, `"decade"` or `"century"`.
*
* @default 'century'
* @example 'decade'
*/
minDetail?: Detail;
/**
* `aria-label` attribute of a label rendered on calendar navigation bar.
*
* @example 'Go up'
*/
navigationAriaLabel?: string;
/**
* `aria-live` attribute of a label rendered on calendar navigation bar.
*
* @default undefined
* @example 'polite'
*/
navigationAriaLive?: 'off' | 'polite' | 'assertive';
/**
* Content of a label rendered on calendar navigation bar.
*
* @example ({ date, label, locale, view }) => alert(`Current view: ${view}, date: ${date.toLocaleDateString(locale)}`)
*/
navigationLabel?: NavigationLabelFunc;
/**
* `aria-label` attribute of the "next on higher level" button on the navigation pane.
*
* @example 'Jump forwards'
*/
next2AriaLabel?: string;
/**
* Content of the "next on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '»'
* @example <DoubleNextIcon />
*/
next2Label?: React.ReactNode;
/**
* `aria-label` attribute of the "next" button on the navigation pane.
*
* @example 'Next'
*/
nextAriaLabel?: string;
/**
* Content of the "next" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '›'
* @example <NextIcon />
*/
nextLabel?: React.ReactNode;
/**
* Function called when the user navigates from one view to another using previous/next button. Note that this function will not be called when e.g. drilling up from January 2021 to 2021 or drilling down the other way around.
*
* `action` signifies the reason for active start date change and can be one of the following values: `"prev"`, `"prev2"`, `"next"`, `"next2"`, `"drillUp"`, `"drillDown"`, `"onChange"`.
*
* @example ({ action, activeStartDate, value, view }) => alert('Changed view to: ', activeStartDate, view)
*/
onActiveStartDateChange?: ({ action, activeStartDate, value, view }: OnArgs) => void;
/**
* Function called when the user clicks an item (day on month view, month on year view and so on) on the most detailed view available.
*
* @example (value, event) => alert('New date is: ', value)
*/
onChange?: (value: Value, event: React.MouseEvent<HTMLButtonElement>) => void;
/**
* Function called when the user clicks a day.
*
* @example (value, event) => alert('Clicked day: ', value)
*/
onClickDay?: OnClickFunc;
/**
* Function called when the user clicks a decade.
*
* @example (value, event) => alert('Clicked decade: ', value)
*/
onClickDecade?: OnClickFunc;
/**
* Function called when the user clicks a month.
*
* @example (value, event) => alert('Clicked month: ', value)
*/
onClickMonth?: OnClickFunc;
/**
* Function called when the user clicks a week number.
*
* @example (weekNumber, date, event) => alert('Clicked week: ', weekNumber, 'that starts on: ', date)
*/
onClickWeekNumber?: OnClickWeekNumberFunc;
/**
* Function called when the user clicks a year.
*
* @example (value, event) => alert('Clicked year: ', value)
*/
onClickYear?: OnClickFunc;
/**
* Function called when the user drills down by clicking a tile.
*
* @example ({ activeStartDate, view }) => alert('Drilled down to: ', activeStartDate, view)
*/
onDrillDown?: ({ action, activeStartDate, value, view }: OnArgs) => void;
/**
* Function called when the user drills up by clicking drill up button.
*
* @example ({ activeStartDate, view }) => alert('Drilled up to: ', activeStartDate, view)
*/
onDrillUp?: ({ action, activeStartDate, value, view }: OnArgs) => void;
/**
* Function called when the user navigates from one view to another using drill up button or by clicking a tile.
*
* `action` signifies the reason for view change and can be one of the following values: `"prev"`, `"prev2"`, `"next"`, `"next2"`, `"drillUp"`, `"drillDown"`, `"onChange"`.
*
* @example ({ action, activeStartDate, value, view }) => alert('New view is: ', view)
*/
onViewChange?: ({ action, activeStartDate, value, view }: OnArgs) => void;
/**
* `aria-label` attribute of the "previous on higher level" button on the navigation pane.
*
* @example 'Jump backwards'
*/
prev2AriaLabel?: string;
/**
* Content of the "previous on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '«'
* @example <DoublePreviousIcon />
*/
prev2Label?: React.ReactNode;
/**
* `aria-label` attribute of the "previous" button on the navigation pane.
*
* @example 'Previous'
*/
prevAriaLabel?: string;
/**
* Content of the "previous" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '‹'
* @example <PreviousIcon />
*/
prevLabel?: React.ReactNode;
/**
* Which dates shall be passed by the calendar to the onChange function and onClick{Period} functions. Can be `"start"`, `"end"` or `"range"`. The latter will cause an array with start and end values to be passed.
*
* @default 'start'
* @example 'range'
*/
returnValue?: 'start' | 'end' | 'range';
/**
* Whether the user shall select two dates forming a range instead of just one. **Note**: This feature will make react-calendar return array with two dates regardless of returnValue setting.
*
* @default false
* @example true
*/
selectRange?: boolean;
/**
* Whether to show two months/years/… at a time instead of one. Defaults `showFixedNumberOfWeeks` prop to be `true`.
*
* @default false
* @example true
*/
showDoubleView?: boolean;
/**
* Whether to always show fixed number of weeks (6). Forces `showNeighboringMonth` prop to be `true`.
*
* @default false
* @example true
*/
showFixedNumberOfWeeks?: boolean;
/**
* Whether a navigation bar with arrows and title shall be rendered.
*
* @default true
* @example false
*/
showNavigation?: boolean;
/**
* Whether days from previous or next month shall be rendered if the month doesn't start on the first day of the week or doesn't end on the last day of the week, respectively.
*
* @default true
* @example false
*/
showNeighboringMonth?: boolean;
/**
* Whether week numbers shall be shown at the left of MonthView or not.
*
* @default false
* @example true
*/
showWeekNumbers?: boolean;
/**
* Class name(s) that will be applied to a given calendar item (day on month view, month on year view and so on).
*
* @example 'class1 class2'
* @example ['class1', 'class2 class3']
* @example ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null
*/
tileClassName?: TileClassNameFunc | ClassName;
/**
* Allows to render custom content within a given calendar item (day on month view, month on year view and so on).
*
* @example 'Sample'
* @example ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null
*/
tileContent?: TileContentFunc | React.ReactNode;
/**
* Pass a function to determine if a certain day should be displayed as disabled.
*
* @example ({ activeStartDate, date, view }) => date.getDay() === 0
*/
tileDisabled?: TileDisabledFunc;
/**
* Calendar value. Can be either one value or an array of two values. If you wish to use react-calendar in an uncontrolled way, use `defaultValue` instead.
*
* @example new Date(2017, 0, 1)
* @example [new Date(2017, 0, 1), new Date(2017, 7, 1)]
* @example ['2017-01-01', '2017-08-01']
*/
value?: LooseValue;
/**
* Determines which calendar view shall be opened. Does not disable navigation. Can be `"month"`, `"year"`, `"decade"` or `"century"`. If you wish to use react-calendar in an uncontrolled way, use `defaultView` instead.
*
* @example 'year'
*/
view?: View;

@@ -60,0 +361,0 @@ };

@@ -5,22 +5,125 @@ import React from 'react';

type NavigationProps = {
/**
* The beginning of a period that shall be displayed. If you wish to use react-calendar in an uncontrolled way, use `defaultActiveStartDate` instead.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;
drillUp: () => void;
/**
* Function called to override default formatting of months and years. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMMM YYYY')
*/
formatMonthYear?: typeof defaultFormatMonthYear;
/**
* Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'YYYY')
*/
formatYear?: typeof defaultFormatYear;
/**
* Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag).
*
* **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.
*
* @example 'hu-HU'
*/
locale?: string;
/**
* Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.
*
* @example new Date()
*/
maxDate?: Date;
/**
* Minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although react-calendar will ensure that no earlier date is selected.
*
* @example new Date()
*/
minDate?: Date;
/**
* `aria-label` attribute of a label rendered on calendar navigation bar.
*
* @example 'Go up'
*/
navigationAriaLabel?: string;
/**
* `aria-live` attribute of a label rendered on calendar navigation bar.
*
* @default undefined
* @example 'polite'
*/
navigationAriaLive?: 'off' | 'polite' | 'assertive';
/**
* Content of a label rendered on calendar navigation bar.
*
* @example ({ date, label, locale, view }) => alert(`Current view: ${view}, date: ${date.toLocaleDateString(locale)}`)
*/
navigationLabel?: NavigationLabelFunc;
/**
* `aria-label` attribute of the "next on higher level" button on the navigation pane.
*
* @example 'Jump forwards'
*/
next2AriaLabel?: string;
/**
* Content of the "next on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '»'
* @example <DoubleNextIcon />
*/
next2Label?: React.ReactNode;
/**
* `aria-label` attribute of the "next" button on the navigation pane.
*
* @example 'Next'
*/
nextAriaLabel?: string;
/**
* Content of the "next" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '›'
* @example <NextIcon />
*/
nextLabel?: React.ReactNode;
/**
* `aria-label` attribute of the "previous on higher level" button on the navigation pane.
*
* @example 'Jump backwards'
*/
prev2AriaLabel?: string;
/**
* Content of the "previous on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '«'
* @example <DoublePreviousIcon />
*/
prev2Label?: React.ReactNode;
/**
* `aria-label` attribute of the "previous" button on the navigation pane.
*
* @example 'Previous'
*/
prevAriaLabel?: string;
/**
* Content of the "previous" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '‹'
* @example <PreviousIcon />
*/
prevLabel?: React.ReactNode;
setActiveStartDate: (nextActiveStartDate: Date, action: Action) => void;
/**
* Whether to show two months/years/… at a time instead of one. Defaults `showFixedNumberOfWeeks` prop to be `true`.
*
* @default false
* @example true
*/
showDoubleView?: boolean;
/**
* Determines which calendar view shall be opened. Does not disable navigation. Can be `"day"`, `"month"`, `"year"`, `"decade"` or `"century"`.
*
* @example 'year'
*/
view: RangeType;

@@ -27,0 +130,0 @@ views: string[];

3

dist/cjs/CenturyView.d.ts
import React from 'react';
import Decades from './CenturyView/Decades.js';
type CenturyViewProps = React.ComponentProps<typeof Decades>;
/**
* Displays a given century.
*/
declare const CenturyView: React.FC<CenturyViewProps>;
export default CenturyView;

@@ -20,2 +20,5 @@ "use strict";

var propTypes_js_1 = require("./shared/propTypes.js");
/**
* Displays a given century.
*/
var CenturyView = function CenturyView(props) {

@@ -22,0 +25,0 @@ function renderDecades() {

@@ -6,2 +6,7 @@ import React from 'react';

classes?: string[];
/**
* Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'YYYY')
*/
formatYear?: typeof defaultFormatYear;

@@ -8,0 +13,0 @@ } & Omit<React.ComponentProps<typeof Tile>, 'children' | 'maxDateTransform' | 'minDateTransform' | 'view'>;

@@ -5,2 +5,7 @@ import React from 'react';

type DecadesProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;

@@ -7,0 +12,0 @@ } & Omit<React.ComponentProps<typeof TileGroup>, 'dateTransform' | 'dateType' | 'end' | 'renderTile' | 'start'> & Omit<React.ComponentProps<typeof Decade>, 'classes' | 'date'>;

import React from 'react';
import Years from './DecadeView/Years.js';
type DecadeViewProps = React.ComponentProps<typeof Years>;
/**
* Displays a given decade.
*/
declare const DecadeView: React.FC<DecadeViewProps>;
export default DecadeView;

@@ -20,2 +20,5 @@ "use strict";

var propTypes_js_1 = require("./shared/propTypes.js");
/**
* Displays a given decade.
*/
var DecadeView = function DecadeView(props) {

@@ -22,0 +25,0 @@ function renderYears() {

@@ -6,2 +6,7 @@ import React from 'react';

classes?: string[];
/**
* Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'YYYY')
*/
formatYear?: typeof defaultFormatYear;

@@ -8,0 +13,0 @@ } & Omit<React.ComponentProps<typeof Tile>, 'children' | 'maxDateTransform' | 'minDateTransform' | 'view'>;

@@ -5,2 +5,7 @@ import React from 'react';

type YearsProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;

@@ -7,0 +12,0 @@ } & Omit<React.ComponentProps<typeof TileGroup>, 'dateTransform' | 'dateType' | 'end' | 'renderTile' | 'start'> & Omit<React.ComponentProps<typeof Year>, 'classes' | 'date'>;

@@ -7,6 +7,20 @@ import React from 'react';

type MonthViewProps = {
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType?: CalendarType | DeprecatedCalendarType;
/**
* Whether week numbers shall be shown at the left of MonthView or not.
*
* @default false
* @example true
*/
showWeekNumbers?: boolean;
} & Omit<React.ComponentProps<typeof Weekdays> & React.ComponentProps<typeof WeekNumbers> & React.ComponentProps<typeof Days>, 'calendarType'>;
/**
* Displays a given month.
*/
declare const MonthView: React.FC<MonthViewProps>;
export default MonthView;

@@ -47,2 +47,5 @@ "use strict";

}
/**
* Displays a given month.
*/
var MonthView = function MonthView(props) {

@@ -49,0 +52,0 @@ var activeStartDate = props.activeStartDate, locale = props.locale, onMouseLeave = props.onMouseLeave, showFixedNumberOfWeeks = props.showFixedNumberOfWeeks;

@@ -6,6 +6,21 @@ import React from 'react';

type DayProps = {
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType: CalendarType | DeprecatedCalendarType | undefined;
classes?: string[];
currentMonthIndex: number;
/**
* Function called to override default formatting of day tile labels. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'd')
*/
formatDay?: typeof defaultFormatDay;
/**
* Function called to override default formatting of day tile `abbr` labels. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd MMM YYYY')
*/
formatLongDate?: typeof defaultFormatLongDate;

@@ -12,0 +27,0 @@ } & Omit<React.ComponentProps<typeof Tile>, 'children' | 'formatAbbr' | 'maxDateTransform' | 'minDateTransform' | 'view'>;

@@ -6,5 +6,27 @@ import React from 'react';

type DaysProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType: CalendarType | DeprecatedCalendarType | undefined;
/**
* Whether to always show fixed number of weeks (6). Forces `showNeighboringMonth` prop to be `true`.
*
* @default false
* @example true
*/
showFixedNumberOfWeeks?: boolean;
/**
* Whether days from previous or next month shall be rendered if the month doesn't start on the first day of the week or doesn't end on the last day of the week, respectively.
*
* @default true
* @example false
*/
showNeighboringMonth?: boolean;

@@ -11,0 +33,0 @@ } & Omit<React.ComponentProps<typeof TileGroup>, 'dateTransform' | 'dateType' | 'end' | 'renderTile' | 'start'> & Omit<React.ComponentProps<typeof Day>, 'classes' | 'currentMonthIndex' | 'date' | 'point'>;

@@ -5,5 +5,25 @@ /// <reference types="react" />

type WeekdaysProps = {
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType: CalendarType | DeprecatedCalendarType | undefined;
/**
* Function called to override default formatting of weekday names (shortened). Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd')
*/
formatShortWeekday?: typeof defaultFormatShortWeekday;
/**
* Function called to override default formatting of weekday names. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd')
*/
formatWeekday?: typeof defaultFormatWeekday;
/**
* Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.
*
* @example 'hu-HU'
*/
locale?: string;

@@ -10,0 +30,0 @@ onMouseLeave?: () => void;

/// <reference types="react" />
import type { CalendarType, DeprecatedCalendarType, OnClickWeekNumberFunc } from '../shared/types.js';
type WeekNumbersProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType: CalendarType | DeprecatedCalendarType | undefined;
/**
* Function called when the user clicks a week number.
*
* @example (weekNumber, date, event) => alert('Clicked week: ', weekNumber, 'that starts on: ', date)
*/
onClickWeekNumber?: OnClickWeekNumberFunc;
onMouseLeave?: () => void;
/**
* Whether to always show fixed number of weeks (6). Forces `showNeighboringMonth` prop to be `true`.
*
* @default false
* @example true
*/
showFixedNumberOfWeeks?: boolean;

@@ -9,0 +30,0 @@ };

10

dist/cjs/shared/propTypes.d.ts

@@ -23,6 +23,6 @@ import PropTypes from 'prop-types';

onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
tileClassName: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | NonNullable<string | (string | null | undefined)[] | null | undefined> | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
tileClassName: PropTypes.Requireable<NonNullable<NonNullable<string | (string | null | undefined)[] | null | undefined> | ((...args: any[]) => any) | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
value: PropTypes.Requireable<NonNullable<Date | Range<Date> | null | undefined>>;
valueType: PropTypes.Validator<NonNullable<"day" | "month" | "year" | "century" | "decade">>;
valueType: PropTypes.Validator<NonNullable<"century" | "decade" | "year" | "month" | "day">>;
};

@@ -41,5 +41,5 @@ export declare const tileProps: {

}>;
tileClassName: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | NonNullable<string | (string | null | undefined)[] | null | undefined> | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
tileClassName: PropTypes.Requireable<NonNullable<NonNullable<string | (string | null | undefined)[] | null | undefined> | ((...args: any[]) => any) | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
tileDisabled: PropTypes.Requireable<(...args: any[]) => any>;
};
import React from 'react';
import type { ClassName, TileClassNameFunc, TileContentFunc, TileDisabledFunc, View } from './shared/types.js';
type TileProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;

@@ -9,5 +14,22 @@ children: React.ReactNode;

formatAbbr?: (locale: string | undefined, date: Date) => string;
/**
* Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag).
*
* **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.
*
* @example 'hu-HU'
*/
locale?: string;
/**
* Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.
*
* @example new Date()
*/
maxDate?: Date;
maxDateTransform: (date: Date) => Date;
/**
* Minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although react-calendar will ensure that no earlier date is selected.
*
* @example new Date()
*/
minDate?: Date;

@@ -18,5 +40,28 @@ minDateTransform: (date: Date) => Date;

style?: React.CSSProperties;
/**
* Class name(s) that will be applied to a given calendar item (day on month view, month on year view and so on).
*
* @example 'class1 class2'
* @example ['class1', 'class2 class3']
* @example ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null
*/
tileClassName?: TileClassNameFunc | ClassName;
/**
* Allows to render custom content within a given calendar item (day on month view, month on year view and so on).
*
* @example 'Sample'
* @example ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null
*/
tileContent?: TileContentFunc | React.ReactNode;
/**
* Pass a function to determine if a certain day should be displayed as disabled.
*
* @example ({ activeStartDate, date, view }) => date.getDay() === 0
*/
tileDisabled?: TileDisabledFunc;
/**
* Determines which calendar view shall be opened. Does not disable navigation. Can be `"month"`, `"year"`, `"decade"` or `"century"`.
*
* @example 'year'
*/
view: View;

@@ -23,0 +68,0 @@ };

import React from 'react';
import Months from './YearView/Months.js';
type YearViewProps = React.ComponentProps<typeof Months>;
/**
* Displays a given year.
*/
declare const YearView: React.FC<YearViewProps>;
export default YearView;

@@ -20,2 +20,5 @@ "use strict";

var propTypes_js_1 = require("./shared/propTypes.js");
/**
* Displays a given year.
*/
var YearView = function YearView(props) {

@@ -22,0 +25,0 @@ function renderMonths() {

@@ -6,3 +6,13 @@ import React from 'react';

classes?: string[];
/**
* Function called to override default formatting of month names. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMM')
*/
formatMonth?: typeof defaultFormatMonth;
/**
* Function called to override default formatting of months and years. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMMM YYYY')
*/
formatMonthYear?: typeof defaultFormatMonthYear;

@@ -9,0 +19,0 @@ } & Omit<React.ComponentProps<typeof Tile>, 'children' | 'formatAbbr' | 'maxDateTransform' | 'minDateTransform' | 'view'>;

@@ -5,2 +5,7 @@ import React from 'react';

type MonthsProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;

@@ -7,0 +12,0 @@ } & Omit<React.ComponentProps<typeof TileGroup>, 'dateTransform' | 'dateType' | 'end' | 'renderTile' | 'start'> & Omit<React.ComponentProps<typeof Month>, 'classes' | 'date'>;

@@ -5,55 +5,356 @@ import React from 'react';

export type CalendarProps = {
/**
* The beginning of a period that shall be displayed. If you wish to use react-calendar in an uncontrolled way, use `defaultActiveStartDate` instead.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate?: Date;
/**
* Whether to call onChange with only partial result given `selectRange` prop.
*
* @default false
* @example true
*/
allowPartialRange?: boolean;
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType?: CalendarType | DeprecatedCalendarType;
/**
* Class name(s) that will be added along with `"react-calendar"` to the main react-calendar `<div>` element.
*
* @example 'class1 class2'
* @example ['class1', 'class2 class3']
*/
className?: ClassName;
/**
* The beginning of a period that shall be displayed by default. If you wish to use react-calendar in a controlled way, use `activeStartDate` instead.
*
* @example new Date(2017, 0, 1)
*/
defaultActiveStartDate?: Date;
/**
* Calendar value that shall be selected initially. Can be either one value or an array of two values. If you wish to use react-calendar in a controlled way, use `value` instead.
*
* @example new Date(2017, 0, 1)
* @example [new Date(2017, 0, 1), new Date(2017, 7, 1)]
*/
defaultValue?: LooseValue;
/**
* Determines which calendar view shall be opened initially. Does not disable navigation. Can be `"month"`, `"year"`, `"decade"` or `"century"`. If you wish to use react-calendar in a controlled way, use `view` instead.
*
* @example 'year'
*/
defaultView?: View;
/**
* Function called to override default formatting of day tile labels. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'd')
*/
formatDay?: typeof defaultFormatDay;
/**
* Function called to override default formatting of day tile `abbr` labels. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd MMM YYYY')
*/
formatLongDate?: typeof defaultFormatLongDate;
/**
* Function called to override default formatting of month names. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMM')
*/
formatMonth?: typeof defaultFormatMonth;
/**
* Function called to override default formatting of months and years. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMMM YYYY')
*/
formatMonthYear?: typeof defaultFormatMonthYear;
/**
* Function called to override default formatting of weekday names (shortened). Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd')
*/
formatShortWeekday?: typeof defaultFormatShortWeekday;
/**
* Function called to override default formatting of weekday names. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd')
*/
formatWeekday?: typeof defaultFormatWeekday;
/**
* Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'YYYY')
*/
formatYear?: typeof defaultFormatYear;
/**
* Whether to go to the beginning of the range when selecting the end of the range.
*
* @default true
* @example false
*/
goToRangeStartOnSelect?: boolean;
/**
* A prop that behaves like [ref](https://reactjs.org/docs/refs-and-the-dom.html), but it's passed to main `<div>` rendered by `<Calendar>` component.
*
* @example (ref) => { this.myCalendar = ref; }
* @example this.ref
* @example ref
*/
inputRef?: React.Ref<HTMLDivElement>;
/**
* Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag).
*
* **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.
*
* @example 'hu-HU'
*/
locale?: string;
/**
* Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.
*
* @example new Date()
*/
maxDate?: Date;
/**
* The most detailed view that the user shall see. View defined here also becomes the one on which clicking an item will select a date and pass it to onChange. Can be `"month"`, `"year"`, `"decade"` or `"century"`.
*
* @default 'month'
* @example 'year'
*/
maxDetail?: Detail;
/**
* Minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although react-calendar will ensure that no earlier date is selected.
*
* @example new Date()
*/
minDate?: Date;
/**
* The least detailed view that the user shall see. Can be `"month"`, `"year"`, `"decade"` or `"century"`.
*
* @default 'century'
* @example 'decade'
*/
minDetail?: Detail;
/**
* `aria-label` attribute of a label rendered on calendar navigation bar.
*
* @example 'Go up'
*/
navigationAriaLabel?: string;
/**
* `aria-live` attribute of a label rendered on calendar navigation bar.
*
* @default undefined
* @example 'polite'
*/
navigationAriaLive?: 'off' | 'polite' | 'assertive';
/**
* Content of a label rendered on calendar navigation bar.
*
* @example ({ date, label, locale, view }) => alert(`Current view: ${view}, date: ${date.toLocaleDateString(locale)}`)
*/
navigationLabel?: NavigationLabelFunc;
/**
* `aria-label` attribute of the "next on higher level" button on the navigation pane.
*
* @example 'Jump forwards'
*/
next2AriaLabel?: string;
/**
* Content of the "next on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '»'
* @example <DoubleNextIcon />
*/
next2Label?: React.ReactNode;
/**
* `aria-label` attribute of the "next" button on the navigation pane.
*
* @example 'Next'
*/
nextAriaLabel?: string;
/**
* Content of the "next" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '›'
* @example <NextIcon />
*/
nextLabel?: React.ReactNode;
/**
* Function called when the user navigates from one view to another using previous/next button. Note that this function will not be called when e.g. drilling up from January 2021 to 2021 or drilling down the other way around.
*
* `action` signifies the reason for active start date change and can be one of the following values: `"prev"`, `"prev2"`, `"next"`, `"next2"`, `"drillUp"`, `"drillDown"`, `"onChange"`.
*
* @example ({ action, activeStartDate, value, view }) => alert('Changed view to: ', activeStartDate, view)
*/
onActiveStartDateChange?: ({ action, activeStartDate, value, view }: OnArgs) => void;
/**
* Function called when the user clicks an item (day on month view, month on year view and so on) on the most detailed view available.
*
* @example (value, event) => alert('New date is: ', value)
*/
onChange?: (value: Value, event: React.MouseEvent<HTMLButtonElement>) => void;
/**
* Function called when the user clicks a day.
*
* @example (value, event) => alert('Clicked day: ', value)
*/
onClickDay?: OnClickFunc;
/**
* Function called when the user clicks a decade.
*
* @example (value, event) => alert('Clicked decade: ', value)
*/
onClickDecade?: OnClickFunc;
/**
* Function called when the user clicks a month.
*
* @example (value, event) => alert('Clicked month: ', value)
*/
onClickMonth?: OnClickFunc;
/**
* Function called when the user clicks a week number.
*
* @example (weekNumber, date, event) => alert('Clicked week: ', weekNumber, 'that starts on: ', date)
*/
onClickWeekNumber?: OnClickWeekNumberFunc;
/**
* Function called when the user clicks a year.
*
* @example (value, event) => alert('Clicked year: ', value)
*/
onClickYear?: OnClickFunc;
/**
* Function called when the user drills down by clicking a tile.
*
* @example ({ activeStartDate, view }) => alert('Drilled down to: ', activeStartDate, view)
*/
onDrillDown?: ({ action, activeStartDate, value, view }: OnArgs) => void;
/**
* Function called when the user drills up by clicking drill up button.
*
* @example ({ activeStartDate, view }) => alert('Drilled up to: ', activeStartDate, view)
*/
onDrillUp?: ({ action, activeStartDate, value, view }: OnArgs) => void;
/**
* Function called when the user navigates from one view to another using drill up button or by clicking a tile.
*
* `action` signifies the reason for view change and can be one of the following values: `"prev"`, `"prev2"`, `"next"`, `"next2"`, `"drillUp"`, `"drillDown"`, `"onChange"`.
*
* @example ({ action, activeStartDate, value, view }) => alert('New view is: ', view)
*/
onViewChange?: ({ action, activeStartDate, value, view }: OnArgs) => void;
/**
* `aria-label` attribute of the "previous on higher level" button on the navigation pane.
*
* @example 'Jump backwards'
*/
prev2AriaLabel?: string;
/**
* Content of the "previous on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '«'
* @example <DoublePreviousIcon />
*/
prev2Label?: React.ReactNode;
/**
* `aria-label` attribute of the "previous" button on the navigation pane.
*
* @example 'Previous'
*/
prevAriaLabel?: string;
/**
* Content of the "previous" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '‹'
* @example <PreviousIcon />
*/
prevLabel?: React.ReactNode;
/**
* Which dates shall be passed by the calendar to the onChange function and onClick{Period} functions. Can be `"start"`, `"end"` or `"range"`. The latter will cause an array with start and end values to be passed.
*
* @default 'start'
* @example 'range'
*/
returnValue?: 'start' | 'end' | 'range';
/**
* Whether the user shall select two dates forming a range instead of just one. **Note**: This feature will make react-calendar return array with two dates regardless of returnValue setting.
*
* @default false
* @example true
*/
selectRange?: boolean;
/**
* Whether to show two months/years/… at a time instead of one. Defaults `showFixedNumberOfWeeks` prop to be `true`.
*
* @default false
* @example true
*/
showDoubleView?: boolean;
/**
* Whether to always show fixed number of weeks (6). Forces `showNeighboringMonth` prop to be `true`.
*
* @default false
* @example true
*/
showFixedNumberOfWeeks?: boolean;
/**
* Whether a navigation bar with arrows and title shall be rendered.
*
* @default true
* @example false
*/
showNavigation?: boolean;
/**
* Whether days from previous or next month shall be rendered if the month doesn't start on the first day of the week or doesn't end on the last day of the week, respectively.
*
* @default true
* @example false
*/
showNeighboringMonth?: boolean;
/**
* Whether week numbers shall be shown at the left of MonthView or not.
*
* @default false
* @example true
*/
showWeekNumbers?: boolean;
/**
* Class name(s) that will be applied to a given calendar item (day on month view, month on year view and so on).
*
* @example 'class1 class2'
* @example ['class1', 'class2 class3']
* @example ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null
*/
tileClassName?: TileClassNameFunc | ClassName;
/**
* Allows to render custom content within a given calendar item (day on month view, month on year view and so on).
*
* @example 'Sample'
* @example ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null
*/
tileContent?: TileContentFunc | React.ReactNode;
/**
* Pass a function to determine if a certain day should be displayed as disabled.
*
* @example ({ activeStartDate, date, view }) => date.getDay() === 0
*/
tileDisabled?: TileDisabledFunc;
/**
* Calendar value. Can be either one value or an array of two values. If you wish to use react-calendar in an uncontrolled way, use `defaultValue` instead.
*
* @example new Date(2017, 0, 1)
* @example [new Date(2017, 0, 1), new Date(2017, 7, 1)]
* @example ['2017-01-01', '2017-08-01']
*/
value?: LooseValue;
/**
* Determines which calendar view shall be opened. Does not disable navigation. Can be `"month"`, `"year"`, `"decade"` or `"century"`. If you wish to use react-calendar in an uncontrolled way, use `defaultView` instead.
*
* @example 'year'
*/
view?: View;

@@ -60,0 +361,0 @@ };

@@ -5,22 +5,125 @@ import React from 'react';

type NavigationProps = {
/**
* The beginning of a period that shall be displayed. If you wish to use react-calendar in an uncontrolled way, use `defaultActiveStartDate` instead.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;
drillUp: () => void;
/**
* Function called to override default formatting of months and years. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMMM YYYY')
*/
formatMonthYear?: typeof defaultFormatMonthYear;
/**
* Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'YYYY')
*/
formatYear?: typeof defaultFormatYear;
/**
* Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag).
*
* **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.
*
* @example 'hu-HU'
*/
locale?: string;
/**
* Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.
*
* @example new Date()
*/
maxDate?: Date;
/**
* Minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although react-calendar will ensure that no earlier date is selected.
*
* @example new Date()
*/
minDate?: Date;
/**
* `aria-label` attribute of a label rendered on calendar navigation bar.
*
* @example 'Go up'
*/
navigationAriaLabel?: string;
/**
* `aria-live` attribute of a label rendered on calendar navigation bar.
*
* @default undefined
* @example 'polite'
*/
navigationAriaLive?: 'off' | 'polite' | 'assertive';
/**
* Content of a label rendered on calendar navigation bar.
*
* @example ({ date, label, locale, view }) => alert(`Current view: ${view}, date: ${date.toLocaleDateString(locale)}`)
*/
navigationLabel?: NavigationLabelFunc;
/**
* `aria-label` attribute of the "next on higher level" button on the navigation pane.
*
* @example 'Jump forwards'
*/
next2AriaLabel?: string;
/**
* Content of the "next on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '»'
* @example <DoubleNextIcon />
*/
next2Label?: React.ReactNode;
/**
* `aria-label` attribute of the "next" button on the navigation pane.
*
* @example 'Next'
*/
nextAriaLabel?: string;
/**
* Content of the "next" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '›'
* @example <NextIcon />
*/
nextLabel?: React.ReactNode;
/**
* `aria-label` attribute of the "previous on higher level" button on the navigation pane.
*
* @example 'Jump backwards'
*/
prev2AriaLabel?: string;
/**
* Content of the "previous on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '«'
* @example <DoublePreviousIcon />
*/
prev2Label?: React.ReactNode;
/**
* `aria-label` attribute of the "previous" button on the navigation pane.
*
* @example 'Previous'
*/
prevAriaLabel?: string;
/**
* Content of the "previous" button on the navigation pane. Setting the value explicitly to null will hide the icon.
*
* @example '‹'
* @example <PreviousIcon />
*/
prevLabel?: React.ReactNode;
setActiveStartDate: (nextActiveStartDate: Date, action: Action) => void;
/**
* Whether to show two months/years/… at a time instead of one. Defaults `showFixedNumberOfWeeks` prop to be `true`.
*
* @default false
* @example true
*/
showDoubleView?: boolean;
/**
* Determines which calendar view shall be opened. Does not disable navigation. Can be `"day"`, `"month"`, `"year"`, `"decade"` or `"century"`.
*
* @example 'year'
*/
view: RangeType;

@@ -27,0 +130,0 @@ views: string[];

import React from 'react';
import Decades from './CenturyView/Decades.js';
type CenturyViewProps = React.ComponentProps<typeof Decades>;
/**
* Displays a given century.
*/
declare const CenturyView: React.FC<CenturyViewProps>;
export default CenturyView;

@@ -15,2 +15,5 @@ var __assign = (this && this.__assign) || function () {

import { tileGroupProps } from './shared/propTypes.js';
/**
* Displays a given century.
*/
var CenturyView = function CenturyView(props) {

@@ -17,0 +20,0 @@ function renderDecades() {

@@ -6,2 +6,7 @@ import React from 'react';

classes?: string[];
/**
* Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'YYYY')
*/
formatYear?: typeof defaultFormatYear;

@@ -8,0 +13,0 @@ } & Omit<React.ComponentProps<typeof Tile>, 'children' | 'maxDateTransform' | 'minDateTransform' | 'view'>;

@@ -5,2 +5,7 @@ import React from 'react';

type DecadesProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;

@@ -7,0 +12,0 @@ } & Omit<React.ComponentProps<typeof TileGroup>, 'dateTransform' | 'dateType' | 'end' | 'renderTile' | 'start'> & Omit<React.ComponentProps<typeof Decade>, 'classes' | 'date'>;

import React from 'react';
import Years from './DecadeView/Years.js';
type DecadeViewProps = React.ComponentProps<typeof Years>;
/**
* Displays a given decade.
*/
declare const DecadeView: React.FC<DecadeViewProps>;
export default DecadeView;

@@ -15,2 +15,5 @@ var __assign = (this && this.__assign) || function () {

import { tileGroupProps } from './shared/propTypes.js';
/**
* Displays a given decade.
*/
var DecadeView = function DecadeView(props) {

@@ -17,0 +20,0 @@ function renderYears() {

@@ -6,2 +6,7 @@ import React from 'react';

classes?: string[];
/**
* Function called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'YYYY')
*/
formatYear?: typeof defaultFormatYear;

@@ -8,0 +13,0 @@ } & Omit<React.ComponentProps<typeof Tile>, 'children' | 'maxDateTransform' | 'minDateTransform' | 'view'>;

@@ -5,2 +5,7 @@ import React from 'react';

type YearsProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;

@@ -7,0 +12,0 @@ } & Omit<React.ComponentProps<typeof TileGroup>, 'dateTransform' | 'dateType' | 'end' | 'renderTile' | 'start'> & Omit<React.ComponentProps<typeof Year>, 'classes' | 'date'>;

@@ -7,6 +7,20 @@ import React from 'react';

type MonthViewProps = {
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType?: CalendarType | DeprecatedCalendarType;
/**
* Whether week numbers shall be shown at the left of MonthView or not.
*
* @default false
* @example true
*/
showWeekNumbers?: boolean;
} & Omit<React.ComponentProps<typeof Weekdays> & React.ComponentProps<typeof WeekNumbers> & React.ComponentProps<typeof Days>, 'calendarType'>;
/**
* Displays a given month.
*/
declare const MonthView: React.FC<MonthViewProps>;
export default MonthView;

@@ -42,2 +42,5 @@ var __assign = (this && this.__assign) || function () {

}
/**
* Displays a given month.
*/
var MonthView = function MonthView(props) {

@@ -44,0 +47,0 @@ var activeStartDate = props.activeStartDate, locale = props.locale, onMouseLeave = props.onMouseLeave, showFixedNumberOfWeeks = props.showFixedNumberOfWeeks;

@@ -6,6 +6,21 @@ import React from 'react';

type DayProps = {
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType: CalendarType | DeprecatedCalendarType | undefined;
classes?: string[];
currentMonthIndex: number;
/**
* Function called to override default formatting of day tile labels. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'd')
*/
formatDay?: typeof defaultFormatDay;
/**
* Function called to override default formatting of day tile `abbr` labels. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd MMM YYYY')
*/
formatLongDate?: typeof defaultFormatLongDate;

@@ -12,0 +27,0 @@ } & Omit<React.ComponentProps<typeof Tile>, 'children' | 'formatAbbr' | 'maxDateTransform' | 'minDateTransform' | 'view'>;

@@ -6,5 +6,27 @@ import React from 'react';

type DaysProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType: CalendarType | DeprecatedCalendarType | undefined;
/**
* Whether to always show fixed number of weeks (6). Forces `showNeighboringMonth` prop to be `true`.
*
* @default false
* @example true
*/
showFixedNumberOfWeeks?: boolean;
/**
* Whether days from previous or next month shall be rendered if the month doesn't start on the first day of the week or doesn't end on the last day of the week, respectively.
*
* @default true
* @example false
*/
showNeighboringMonth?: boolean;

@@ -11,0 +33,0 @@ } & Omit<React.ComponentProps<typeof TileGroup>, 'dateTransform' | 'dateType' | 'end' | 'renderTile' | 'start'> & Omit<React.ComponentProps<typeof Day>, 'classes' | 'currentMonthIndex' | 'date' | 'point'>;

@@ -5,5 +5,25 @@ /// <reference types="react" />

type WeekdaysProps = {
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType: CalendarType | DeprecatedCalendarType | undefined;
/**
* Function called to override default formatting of weekday names (shortened). Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd')
*/
formatShortWeekday?: typeof defaultFormatShortWeekday;
/**
* Function called to override default formatting of weekday names. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'dd')
*/
formatWeekday?: typeof defaultFormatWeekday;
/**
* Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.
*
* @example 'hu-HU'
*/
locale?: string;

@@ -10,0 +30,0 @@ onMouseLeave?: () => void;

/// <reference types="react" />
import type { CalendarType, DeprecatedCalendarType, OnClickWeekNumberFunc } from '../shared/types.js';
type WeekNumbersProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;
/**
* Type of calendar that should be used. Can be `'gregory`, `'hebrew'`, `'islamic'`, `'iso8601'`. Setting to `"gregory"` or `"hebrew"` will change the first day of the week to Sunday. Setting to `"islamic"` will change the first day of the week to Saturday. Setting to `"islamic"` or `"hebrew"` will make weekends appear on Friday to Saturday.
*
* @example 'iso8601'
*/
calendarType: CalendarType | DeprecatedCalendarType | undefined;
/**
* Function called when the user clicks a week number.
*
* @example (weekNumber, date, event) => alert('Clicked week: ', weekNumber, 'that starts on: ', date)
*/
onClickWeekNumber?: OnClickWeekNumberFunc;
onMouseLeave?: () => void;
/**
* Whether to always show fixed number of weeks (6). Forces `showNeighboringMonth` prop to be `true`.
*
* @default false
* @example true
*/
showFixedNumberOfWeeks?: boolean;

@@ -9,0 +30,0 @@ };

@@ -23,6 +23,6 @@ import PropTypes from 'prop-types';

onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
tileClassName: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | NonNullable<string | (string | null | undefined)[] | null | undefined> | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
tileClassName: PropTypes.Requireable<NonNullable<NonNullable<string | (string | null | undefined)[] | null | undefined> | ((...args: any[]) => any) | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
value: PropTypes.Requireable<NonNullable<Date | Range<Date> | null | undefined>>;
valueType: PropTypes.Validator<NonNullable<"day" | "month" | "year" | "century" | "decade">>;
valueType: PropTypes.Validator<NonNullable<"century" | "decade" | "year" | "month" | "day">>;
};

@@ -41,5 +41,5 @@ export declare const tileProps: {

}>;
tileClassName: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | NonNullable<string | (string | null | undefined)[] | null | undefined> | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
tileClassName: PropTypes.Requireable<NonNullable<NonNullable<string | (string | null | undefined)[] | null | undefined> | ((...args: any[]) => any) | null | undefined>>;
tileContent: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
tileDisabled: PropTypes.Requireable<(...args: any[]) => any>;
};
import React from 'react';
import type { ClassName, TileClassNameFunc, TileContentFunc, TileDisabledFunc, View } from './shared/types.js';
type TileProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;

@@ -9,5 +14,22 @@ children: React.ReactNode;

formatAbbr?: (locale: string | undefined, date: Date) => string;
/**
* Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag).
*
* **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.
*
* @example 'hu-HU'
*/
locale?: string;
/**
* Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.
*
* @example new Date()
*/
maxDate?: Date;
maxDateTransform: (date: Date) => Date;
/**
* Minimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although react-calendar will ensure that no earlier date is selected.
*
* @example new Date()
*/
minDate?: Date;

@@ -18,5 +40,28 @@ minDateTransform: (date: Date) => Date;

style?: React.CSSProperties;
/**
* Class name(s) that will be applied to a given calendar item (day on month view, month on year view and so on).
*
* @example 'class1 class2'
* @example ['class1', 'class2 class3']
* @example ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null
*/
tileClassName?: TileClassNameFunc | ClassName;
/**
* Allows to render custom content within a given calendar item (day on month view, month on year view and so on).
*
* @example 'Sample'
* @example ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null
*/
tileContent?: TileContentFunc | React.ReactNode;
/**
* Pass a function to determine if a certain day should be displayed as disabled.
*
* @example ({ activeStartDate, date, view }) => date.getDay() === 0
*/
tileDisabled?: TileDisabledFunc;
/**
* Determines which calendar view shall be opened. Does not disable navigation. Can be `"month"`, `"year"`, `"decade"` or `"century"`.
*
* @example 'year'
*/
view: View;

@@ -23,0 +68,0 @@ };

import React from 'react';
import Months from './YearView/Months.js';
type YearViewProps = React.ComponentProps<typeof Months>;
/**
* Displays a given year.
*/
declare const YearView: React.FC<YearViewProps>;
export default YearView;

@@ -15,2 +15,5 @@ var __assign = (this && this.__assign) || function () {

import { tileGroupProps } from './shared/propTypes.js';
/**
* Displays a given year.
*/
var YearView = function YearView(props) {

@@ -17,0 +20,0 @@ function renderMonths() {

@@ -6,3 +6,13 @@ import React from 'react';

classes?: string[];
/**
* Function called to override default formatting of month names. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMM')
*/
formatMonth?: typeof defaultFormatMonth;
/**
* Function called to override default formatting of months and years. Can be used to use your own formatting function.
*
* @example (locale, date) => formatDate(date, 'MMMM YYYY')
*/
formatMonthYear?: typeof defaultFormatMonthYear;

@@ -9,0 +19,0 @@ } & Omit<React.ComponentProps<typeof Tile>, 'children' | 'formatAbbr' | 'maxDateTransform' | 'minDateTransform' | 'view'>;

@@ -5,2 +5,7 @@ import React from 'react';

type MonthsProps = {
/**
* The beginning of a period that shall be displayed.
*
* @example new Date(2017, 0, 1)
*/
activeStartDate: Date;

@@ -7,0 +12,0 @@ } & Omit<React.ComponentProps<typeof TileGroup>, 'dateTransform' | 'dateType' | 'end' | 'renderTile' | 'start'> & Omit<React.ComponentProps<typeof Month>, 'classes' | 'date'>;

{
"name": "react-calendar",
"version": "4.6.1",
"version": "4.7.0",
"description": "Ultimate calendar for your React app.",

@@ -32,3 +32,3 @@ "type": "module",

"test": "yarn lint && yarn tsc && yarn prettier && yarn unit",
"tsc": "tsc --noEmit",
"tsc": "tsc",
"unit": "vitest",

@@ -57,3 +57,3 @@ "watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\""

"devDependencies": {
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",

@@ -71,4 +71,4 @@ "@types/node": "*",

"rimraf": "^3.0.0",
"typescript": "^5.0.0",
"vitest": "^0.34.0"
"typescript": "^5.3.2",
"vitest": "^1.0.2"
},

@@ -75,0 +75,0 @@ "peerDependencies": {

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

[![npm](https://img.shields.io/npm/v/react-calendar.svg)](https://www.npmjs.com/package/react-calendar) ![downloads](https://img.shields.io/npm/dt/react-calendar.svg) [![CI](https://github.com/wojtekmaj/react-calendar/workflows/CI/badge.svg)](https://github.com/wojtekmaj/react-calendar/actions)
[![npm](https://img.shields.io/npm/v/react-calendar.svg)](https://www.npmjs.com/package/react-calendar) ![downloads](https://img.shields.io/npm/dt/react-calendar.svg) [![CI](https://github.com/wojtekmaj/react-calendar/actions/workflows/ci.yml/badge.svg)](https://github.com/wojtekmaj/react-calendar/actions)

@@ -26,3 +26,3 @@ # react-calendar

[Online demo](http://projects.wojtekmaj.pl/react-calendar/) is also available!
[Online demo](https://projects.wojtekmaj.pl/react-calendar/) is also available!

@@ -115,3 +115,3 @@ ## Before you continue

| inputRef | A prop that behaves like [ref](https://reactjs.org/docs/refs-and-the-dom.html), but it's passed to main `<div>` rendered by `<Calendar>` component. | n/a | <ul><li>Function:<br />`(ref) => { this.myCalendar = ref; }`</li><li>Ref created using `createRef`:<br />`this.ref = createRef();`<br />…<br />`inputRef={this.ref}`</li><li>Ref created using `useRef`:<br />`const ref = useRef();`<br />…<br />`inputRef={ref}`</li></ul> |
| locale | Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). | User's browser settings | `"hu-HU"` |
| locale | Locale that should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). **Note**: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client. | Server locale/User's browser settings | `"hu-HU"` |
| maxDate | Maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected. | n/a | Date: `new Date()` |

@@ -123,10 +123,9 @@ | maxDetail | The most detailed view that the user shall see. View defined here also becomes the one on which clicking an item will select a date and pass it to onChange. Can be `"month"`, `"year"`, `"decade"` or `"century"`. | `"month"` | `"year"` |

| navigationAriaLive | `aria-live` attribute of a label rendered on calendar navigation bar. | `undefined` | `"polite"` |
| navigationLabel | Content of a label rendered on calendar navigation bar. | (default label) | ``({ date, label, locale, view }) => `Current view: ${view}, date: ${date.toLocaleDateString(locale)}` `` |
| navigationLabel | Content of a label rendered on calendar navigation bar. | (default label) | ``({ date, label, locale, view }) => alert(`Current view: ${view}, date: ${date.toLocaleDateString(locale)}`)`` |
| next2AriaLabel | `aria-label` attribute of the "next on higher level" button on the navigation pane. | n/a | `"Jump forwards"` |
| next2Label | Content of the "next on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon. | `"»"` | <ul><li>String: `"»"`</li><li>React element: `<DoubleNextIcon />`</li></ul> |
| nextAriaLabel | `aria-label` attribute of the "next" button on the navigation pane. | n/a | `"Next"` |
| nextLabel | Content of the "next" button on the navigation pane. Setting the value explicitly to null will hide the icon. | `"›"` | <ul><li>String: `"›"`</li><li>React element: `<NextIcon />`</li></ul> |
| next2AriaLabel | `aria-label` attribute of the "next on higher level" button on the navigation pane. | n/a | `"Jump forwards"` |
| next2Label | Content of the "next on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon. | `"»"` | <ul><li>String: `"»"`</li><li>React element: `<DoubleNextIcon />`</li></ul> |
| onActiveStartDateChange | Function called when the user navigates from one view to another using previous/next button. Note that this function will not be called when e.g. drilling up from January 2021 to 2021 or drilling down the other way around.<br />`action` signifies the reason for active start date change and can be one of the following values: `"prev"`, `"prev2"`, `"next"`, `"next2"`, `"drillUp"`, `"drillDown"`, `"onChange"`. | n/a | `({ action, activeStartDate, value, view }) => alert('Changed view to: ', activeStartDate, view)` |
| onChange | Function called when the user clicks an item (day on month view, month on year view and so on) on the most detailed view available. | n/a | `(value, event) => alert('New date is: ', value)` |
| onViewChange | Function called when the user navigates from one view to another using drill up button or by clicking a tile.<br />`action` signifies the reason for view change and can be one of the following values: `"prev"`, `"prev2"`, `"next"`, `"next2"`, `"drillUp"`, `"drillDown"`, `"onChange"`. | n/a | `({ action, activeStartDate, value, view }) => alert('New view is: ', view)` |
| onClickDay | Function called when the user clicks a day. | n/a | `(value, event) => alert('Clicked day: ', value)` |

@@ -139,7 +138,9 @@ | onClickDecade | Function called when the user clicks a decade. | n/a | `(value, event) => alert('Clicked decade: ', value)` |

| onDrillUp | Function called when the user drills up by clicking drill up button. | n/a | `({ activeStartDate, view }) => alert('Drilled up to: ', activeStartDate, view)` |
| onViewChange | Function called when the user navigates from one view to another using drill up button or by clicking a tile.<br />`action` signifies the reason for view change and can be one of the following values: `"prev"`, `"prev2"`, `"next"`, `"next2"`, `"drillUp"`, `"drillDown"`, `"onChange"`. | n/a | `({ action, activeStartDate, value, view }) => alert('New view is: ', view)` |
| prev2AriaLabel | `aria-label` attribute of the "previous on higher level" button on the navigation pane. | n/a | `"Jump backwards"` |
| prev2Label | Content of the "previous on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon. | `"«"` | <ul><li>String: `"«"`</li><li>React element: `<DoublePreviousIcon />`</li></ul> |
| prevAriaLabel | `aria-label` attribute of the "previous" button on the navigation pane. | n/a | `"Previous"` |
| prevLabel | Content of the "previous" button on the navigation pane. Setting the value explicitly to null will hide the icon. | `"‹"` | <ul><li>String: `"‹"`</li><li>React element: `<PreviousIcon />`</li></ul> |
| prev2AriaLabel | `aria-label` attribute of the "previous on higher level" button on the navigation pane. | n/a | `"Jump backwards"` |
| prev2Label | Content of the "previous on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon. | `"«"` | <ul><li>String: `"«"`</li><li>React element: `<DoublePreviousIcon />`</li></ul> |
| returnValue | Which dates shall be passed by the calendar to the onChange function and onClick{Period} functions. Can be `"start"`, `"end"` or `"range"`. The latter will cause an array with start and end values to be passed. | `"start"` | `"range"` |
| selectRange | Whether the user shall select two dates forming a range instead of just one. **Note**: This feature will make react-calendar return array with two dates regardless of returnValue setting. | `false` | `true` |
| showDoubleView | Whether to show two months/years/… at a time instead of one. Defaults `showFixedNumberOfWeeks` prop to be `true`. | `false` | `true` |

@@ -149,7 +150,6 @@ | showFixedNumberOfWeeks | Whether to always show fixed number of weeks (6). Forces `showNeighboringMonth` prop to be `true`. | `false` | `true` |

| showNeighboringMonth | Whether days from previous or next month shall be rendered if the month doesn't start on the first day of the week or doesn't end on the last day of the week, respectively. | `true` | `false` |
| selectRange | Whether the user shall select two dates forming a range instead of just one. **Note**: This feature will make react-calendar return array with two dates regardless of returnValue setting. | `false` | `true` |
| showWeekNumbers | Whether week numbers shall be shown at the left of MonthView or not. | `false` | `true` |
| tileClassName | Class name(s) that will be applied to a given calendar item (day on month view, month on year view and so on). | n/a | <ul><li>String: `"class1 class2"`</li><li>Array of strings: `["class1", "class2 class3"]`</li><li>Function: `({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null`</li></ul> |
| tileContent | Allows to render custom content within a given calendar item (day on month view, month on year view and so on). | n/a | <ul><li>String: `"Sample"`</li><li>React element: `<TileContent />`</li><li>Function: `({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null`</li></ul> |
| tileDisabled | Pass a function to determine if a certain day should be displayed as disabled. | n/a | <ul><li>Function: `({ activeStartDate, date, view }) => date.getDay() === 0`</li></ul> |
| tileDisabled | Pass a function to determine if a certain day should be displayed as disabled. | n/a | `({ activeStartDate, date, view }) => date.getDay() === 0` |
| value | Calendar value. Can be either one value or an array of two values. If you wish to use react-calendar in an uncontrolled way, use `defaultValue` instead. | n/a | <ul><li>Date: `new Date()`</li><li>String: `2017-01-01`</li><li>An array of dates: `[new Date(2017, 0, 1), new Date(2017, 7, 1)]`</li><li>An array of strings: `['2017-01-01', '2017-08-01']`</li></ul> |

@@ -156,0 +156,0 @@ | view | Determines which calendar view shall be opened. Does not disable navigation. Can be `"month"`, `"year"`, `"decade"` or `"century"`. If you wish to use react-calendar in an uncontrolled way, use `defaultView` instead. | The most detailed view allowed | `"year"` |

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