import { BoxProps, DataAttributes, InputProps } from '@mantine/core'; import { TimePickerProps } from '@mantine/dates'; import { ComponentPropsWithoutRef } from 'react'; export type HiddenRequiredTimePickerProps = { /** Props passed down to wrapper component for the `TimePicker` and hidden required input. */ hiddenRequiredInputWrapperProps?: BoxProps; /** Props passed down to hidden required input for form validation. */ hiddenRequiredInputProps?: InputProps & ComponentPropsWithoutRef<'input'> & DataAttributes; }; export type CustomTimePickerProps = TimePickerProps & HiddenRequiredTimePickerProps;