import { t as ModuleTheme } from "./module-theme-hGWXgqv4.cjs"; import { t as CalendarTime } from "./calendar-time-BhGHLeqY.cjs"; import { ReactNode } from "react"; //#region src/modules/time/time-track.d.ts /** * Pure presentational trio of drums (hours / minutes / optional seconds, plus * an AM/PM switch in 12h mode). Works directly on `CalendarTime` — no JS * `Date` — and reports a new `CalendarTime` up. All store wiring lives in * `CalendarTimeWheel`. */ type TimeLabelStyle = "short" | "long"; interface TimeStep { hour?: number; minute?: number; second?: number; } //#endregion //#region src/modules/time/CalendarTimeWheel.d.ts type CalendarTimeWheelProps = { /** * Range mode only: edit time on one explicit boundary (`fromTime` / `toTime`) * instead of the point selection's time. No effect outside span selections. */ bound?: "from" | "to"; /** 12-hour clock with an AM/PM switch. Default `false` (24h). */ hour12?: boolean; /** Render the seconds drum. Default `false`. */ seconds?: boolean; /** Per-field increment. Default 1 each. */ step?: TimeStep; /** Small label above each drum: `"short"` (HH/MM/SS) or `"long"` (localized). */ labels?: TimeLabelStyle; /** * Render a localized date header above the drums for the bound's current * date. Requires `bound`; hidden while the range is empty. Default `true`. */ showBoundDate?: boolean; /** * Render a "now" reset button below the drums. Click sets the time fields * on the selection (or bound) to the current hour/minute (and second when * `seconds` is on). Default `false`. */ showReset?: boolean; /** Override the reset button content. Default: localized "now" word. */ resetLabel?: ReactNode; /** aria-label template for the reset button (registry key `resetTime`). */ resetTimeLabel?: string; hoursLabel?: string; minutesLabel?: string; secondsLabel?: string; timePeriodLabel?: string; timePickerLabel?: string; /** * Per-module theme override: a built-in family name (`data-theme`) or a * `createTheme` token object (inline `--c-*` vars on the container). */ theme?: ModuleTheme; /** Per-module scheme override (`data-scheme` on the module container). */ scheme?: "light" | "dark" | "auto"; col?: number | string; className?: string; /** * Observational: fires after a time change actually commits (rejected * attempts — walls, validation — do not fire). The root `onChange` stays * the single source of the public value. */ onTimeSelect?: (time: CalendarTime) => void; }; declare function CalendarTimeWheel({ bound, hour12, seconds, step, labels, showBoundDate, showReset, resetLabel, resetTimeLabel, hoursLabel, minutesLabel, secondsLabel, timePeriodLabel, timePickerLabel, theme, scheme, col, className, onTimeSelect }: CalendarTimeWheelProps): import("react/jsx-runtime").JSX.Element; //#endregion export { type CalendarTimeWheelProps as n, CalendarTimeWheel as t };