@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
11 lines (10 loc) • 515 B
TypeScript
import { Spatial } from "./types.internal";
export interface Positioned {
horizontalPosition: number;
direction: "left" | "right";
}
export declare const isVisible: ({ horizontalPosition }: Positioned) => boolean;
export declare const getFirstDate: (periods: any) => any;
export declare const getLastDate: (periods: any) => any;
export declare const withinADay: (date1: Date, date2: Date) => boolean;
export declare const invisiblePeriods: ({ horizontalPosition, width, }: Positioned & Spatial) => boolean;