@oslokommune/punkt-elements
Version:
Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo
23 lines (22 loc) • 878 B
TypeScript
import type { IDateConstraints } from '../../shared-types/calendar';
export type { IDateConstraints } from '../../shared-types/calendar';
/**
* Check if a date is excluded based on constraints
*/
export declare function isDateExcluded(date: Date, constraints: IDateConstraints): boolean;
/**
* Check if a day should be disabled for selection
*/
export declare function isDayDisabled(date: Date, isSelected: boolean, constraints: IDateConstraints, options: {
multiple: boolean;
maxMultiple: number;
selectedCount: number;
}): boolean;
/**
* Check if navigation to previous month is allowed
*/
export declare function isPrevMonthAllowed(year: number, month: number, earliest: string | null): boolean;
/**
* Check if navigation to next month is allowed
*/
export declare function isNextMonthAllowed(year: number, month: number, latest: string | null): boolean;