All files / src/components/ui/Form index.ts

0% Statements 0/54
100% Branches 0/0
0% Functions 0/1
0% Lines 0/54

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55                                                                                                             
/**
 * Form Components - Unified Export
 *
 * Central entry point for all form-related components.
 * Import form components directly from '@/components/ui/Form'.
 *
 * @example
 * ```tsx
 * import { FormInput, FormSelect, FormTextarea, FormField } from '@/components/ui/Form';
 *
 * <FormInput
 *   label="Email"
 *   name="email"
 *   type="email"
 *   isError={!!errors.email}
 *   errorMessage={errors.email}
 *   required
 * />
 * ```
 */

// =============================================================================
// FORM COMPONENTS
// =============================================================================

export { FormInput } from '../FormInput';
export type { FormInputProps } from '../FormInput';

export { FormSelect } from '../FormSelect';
export type { FormSelectProps, SelectOption } from '../FormSelect';

export { FormTextarea } from '../FormTextarea';
export type { FormTextareaProps } from '../FormTextarea';

export { FormField } from '../FormField';

// =============================================================================
// FORM TYPES (Re-export standard types)
// =============================================================================

export type {
  FormFieldProps as StandardFormFieldProps,
  StateProps,
  CommonSize,
  Size,
} from '../types';

// =============================================================================
// INPUT COMPONENTS (Base)
// =============================================================================

export { Input } from '../Input';
export { Checkbox } from '../Checkbox';
export { RadioGroup } from '../RadioGroup';