import "./month_view.css"; import type * as React from "react"; import { useRender } from "@base-ui/react/use-render"; import { type StyleProps } from "../style_props"; /** * The height below which a month grid stops being able to say anything. * * Six rows that can hold the date, one event and the overflow chip. Under this * every row fits the chip alone, and the grid degenerates into a heat map of * "+3 more" with not one event named — which is a worse answer than the agenda, * so the root falls back to it on height exactly as it does on width. */ export declare const MIN_MONTH_HEIGHT: number; export interface CalendarMonthProps extends StyleProps { testID?: string; ref?: React.Ref; render?: useRender.RenderProp; } /** * The month grid. * * Two things it decides for you, because getting either wrong is invisible until * a real month arrives: * * **How many week rows.** As many as the month needs (4–6), not a fixed 42 days. * A constant six spends a whole row on greyed-out next-month dates in most * months. * * **How many event lanes.** Measured, not constant. The row is `flex: 1`, so its * height is whatever the calendar's height divided by the week count happens to * be — a fixed cap either wastes a tall row or draws lanes straight through a * short one's neighbours. We measure and fit, and give one lane back to the * "+N more" chip when there is overflow. */ export declare function CalendarMonth({ testID, render, ref, ...styleProps }: CalendarMonthProps): React.ReactElement>;