import { FieldBaseProps } from "../FieldBase/FieldBase.cjs"; import { TimeValue } from "react-aria-components/TimeField"; import { WidthProp } from "@marigold/system"; import { Ref } from "react"; import RAC from "react-aria-components"; type RemovedProps = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'slot'; export interface TimeFieldProps extends Omit, RemovedProps>, Pick, 'label' | 'addon' | 'description' | 'errorMessage'> { /** * Visual variant of the component. Which values exist is defined by the theme * and listed in the "Appearance" section of the component's documentation. */ variant?: string; /** * Size of the component. Which values exist is defined by the theme and listed * in the "Appearance" section of the component's documentation. */ size?: string; /** * Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width * * Numeric/scale values are spacing-scale tokens, not pixels: `width={64}` * resolves to `calc(var(--spacing) * 64)` ~= 16rem (256px), not 64px. * @default full */ width?: WidthProp['width']; /** * If `true`, the input is disabled. * @default false */ disabled?: RAC.TimeFieldProps['isDisabled']; /** * If `true`, the input is required. * @default false */ required?: RAC.TimeFieldProps['isRequired']; /** * If `true`, the field is considered invalid and if set the `errorMessage` is shown instead of the `description`. * @default false */ error?: RAC.TimeFieldProps['isInvalid']; /** * If `true`, the input is readOnly. * @default false */ readOnly?: RAC.TimeFieldProps['isReadOnly']; /** * Whether to display the time in 12 or 24 hour format * @default 24 */ hourCycle?: 12 | 24 | undefined; /** * Determines the smallest unit that is displayed in the time picker. * @default minute */ granularity?: 'hour' | 'minute' | 'second'; /** * Whether to always show leading zeros in the hour field. Default is determined by the user's locale. * @default none */ shouldForceLeadingZeros?: boolean; /** Ref to the DOM element the component renders. */ ref?: Ref; } declare const TimeField: ({ required, disabled, readOnly, error, variant, size, width, ref, ...rest }: TimeFieldProps) => import("react").JSX.Element; export { TimeField };