UNPKG

@renderlesskit/react

Version:

Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit

29 lines (28 loc) 2.24 kB
/// <reference types="react" /> import { RoleHTMLProps, RoleOptions } from "reakit"; import { CalendarStateReturn } from "./CalendarState"; import { RangeCalendarStateReturn } from "./RangeCalendarState"; export declare const useCalendarCell: { (options?: CalendarCellOptions | undefined, htmlProps?: RoleHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): RoleHTMLProps; unstable_propsAreEqual: (prev: RoleOptions & Pick<CalendarStateReturn, "isDisabled" | "dateValue" | "currentMonth" | "isRangeCalendar"> & Partial<Pick<RangeCalendarStateReturn, "highlightedRange" | "highlightDate">> & { date: Date; } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & { wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined; }, next: RoleOptions & Pick<CalendarStateReturn, "isDisabled" | "dateValue" | "currentMonth" | "isRangeCalendar"> & Partial<Pick<RangeCalendarStateReturn, "highlightedRange" | "highlightDate">> & { date: Date; } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & { wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined; }) => boolean; __keys: readonly any[]; __useOptions: (options: CalendarCellOptions, htmlProps: RoleHTMLProps) => CalendarCellOptions; }; export declare const CalendarCell: import("../system").Component<"div", RoleOptions & Pick<CalendarStateReturn, "isDisabled" | "dateValue" | "currentMonth" | "isRangeCalendar"> & Partial<Pick<RangeCalendarStateReturn, "highlightedRange" | "highlightDate">> & { date: Date; } & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & { wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined; }>; export declare type CalendarCellOptions = RoleOptions & Pick<CalendarStateReturn, "dateValue" | "isDisabled" | "currentMonth" | "isRangeCalendar"> & Partial<Pick<RangeCalendarStateReturn, "highlightDate" | "highlightedRange">> & { date: Date; }; export declare type CalendarCellHTMLProps = RoleHTMLProps; export declare type CalendarCellProps = CalendarCellOptions & CalendarCellHTMLProps;