UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

31 lines 1.37 kB
import type { ReactNode } from 'react'; export interface CalendarCardProps { /** Content rendered inside the calendar (calendar grid + activities list). */ content: ReactNode; /** * Whether the calendar surface is currently open. * When provided, the component is **controlled**: the consumer is the source of truth. * When omitted, the component manages internal state. */ isOpen?: boolean; /** * Fired whenever the open state changes (user click, outside click, * programmatic close, ESC, etc.). */ onOpenChange?: (open: boolean) => void; /** Title displayed in the mobile Modal. Default: "Calendário". */ title?: string; /** Optional className applied to the trigger button. */ className?: string; } /** * Calendar widget for the app header. Renders a calendar icon trigger that * opens a `DropdownMenu` on tablet/desktop and a `Modal` on mobile (<500px). * * Pairs naturally with `AppHeader`'s `calendarContent` prop. Use the * controlled `isOpen` + `onOpenChange` pair when the consumer needs to close * the surface programmatically (e.g. on route change). */ export declare const CalendarCard: ({ content, isOpen, onOpenChange, title, className, }: CalendarCardProps) => import("react/jsx-runtime").JSX.Element; export default CalendarCard; //# sourceMappingURL=CalendarCard.d.ts.map