import { CSSProperties, ReactElement, ReactNode } from 'react'; import { ChartLoadingStyle, ChartEmptyState, ChartMotion, ChartPalette, ChartStyle, ChartSurface } from '../types'; import { CardRange } from './cartesian-card'; import { NumericKey } from './keys'; import { AnimatedNumberVariant } from '../motion/animated-number'; /** How the resting headline sums up the day. */ export type ActivityAggregate = 'sum' | 'mean' | 'max'; export interface ActivityRingCardProps> { /** Optional visible title. Use aria-label to name an embedded chart. */ title?: string; /** Show the header, including headline and period controls. Defaults to true. */ header?: boolean; /** Accessible name, independent of the visible title. */ 'aria-label'?: string; /** One row per time slot. Omit when `ranges` supplies the data. */ data?: readonly Row[]; /** Numeric field with the time of day in hours, from 0 up to 24; 14.5 is 14:30. */ hour: NumericKey; /** How much happened in the slot. `null` means not recorded; zero means nothing happened. */ value: Key; /** Minutes per slot around the day. Must divide 1,440. Defaults to 60. */ bucketMinutes?: number; /** What `value` counts, e.g. "requests". Defaults to the `value` field's name. */ unit?: string; /** Value that fills a slot's dots completely. Defaults to a round number above the peak. */ maximum?: number; /** How the resting headline sums up the day: `sum` (default), `mean`, or `max`. */ aggregate?: ActivityAggregate; /** Turns each dot into a small puck with walls receding up and to the right. */ depth?: boolean; /** Ring height in pixels, at least 180. Defaults to 280. */ height?: number; /** Resting headline. Defaults to the `aggregate` of every recorded slot. */ headline?: number; /** Fractional change shown as a chip, e.g. 0.052 → +5.2%. */ delta?: number; deltaTone?: 'default' | 'inverse' | 'neutral'; /** Static period label, e.g. "Today". */ range?: string; /** Period select. Each range replaces data, delta, and headline. */ ranges?: readonly CardRange[]; defaultRange?: string; valueFormat?: Intl.NumberFormatOptions; locale?: string; formatValue?: (value: number) => string; /** Any CSS color for the dots. Defaults to the palette's first color. */ color?: string; surface?: ChartSurface; /** A glass tab tucked behind the card's top edge, e.g. a caption, a command, or actions. */ badge?: ReactNode; /** Headline motion: `count` (default), `pop`, `slide`, `roll`, `flow`, or `scramble`. */ numberStyle?: AnimatedNumberVariant; palette?: ChartPalette; loading?: boolean; loadingStyle?: ChartLoadingStyle; /** * What the card shows when the period has no data: `dots` (default), the chart's own `shape`, * your own element such as `No visits yet`, or `null` for nothing. */ empty?: ChartEmptyState; /** `none` turns off decorative motion; reduced-motion users get this automatically. */ motion?: ChartMotion; className?: string; style?: CSSProperties | ChartStyle; } /** "14:00" for 14, "03:20" for 3.333…; the day wraps at 24:00. */ export declare function clockLabel(hour: number): string; /** * An activity ring card: a 24-hour day wrapped into a ring of dot columns, each slot's dots * filled by how much happened then. Hovering or stepping around the ring reads each slot in the * headline; tiles name the busiest and quietest times. */ export declare function ActivityRingCard>({ title, header, 'aria-label': ariaLabel, data: suppliedData, hour, value, bucketMinutes, unit, maximum: suppliedMaximum, aggregate, height, depth, headline: suppliedHeadline, delta: suppliedDelta, deltaTone, range, ranges, defaultRange, valueFormat, locale, formatValue: suppliedFormatValue, color, surface, badge, numberStyle, palette, loading, loadingStyle, empty: emptyState, motion, className, style, }: ActivityRingCardProps): ReactElement;