react-calendar-kit
Version:
React Calendar Kit is a powerful and flexible library for building accessible and highly customizable calendar and date/time picker components in your React applications. React Calendar Kit provides a solid foundation for creating inclusive user experienc
18 lines (15 loc) • 820 B
TypeScript
import { DateValue } from '@internationalized/date';
import { clsx } from 'clsx';
declare const cn: typeof clsx;
declare const withAttr: (cond: boolean | undefined) => any;
declare function getYearRange(start?: DateValue, end?: DateValue): DateValue[];
declare function addMonths(date: DateValue, months: number): DateValue;
declare function getMonthRange(year: DateValue): DateValue[];
/**
* Merges multiple CSS properties objects into one.
* Filters out any undefined or null values before merging.
* @param styles An array of React.CSSProperties objects or undefined.
* @returns A single merged React.CSSProperties object.
*/
declare function mergeStyles(...styles: (React.CSSProperties | undefined | null)[]): React.CSSProperties;
export { addMonths, cn, getMonthRange, getYearRange, mergeStyles, withAttr };