Skip to content

Commit a036095

Browse files
committed
fix(imports): fix imports
1 parent f503311 commit a036095

9 files changed

+27
-19
lines changed

src/components/AutocompleteController.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import { Autocomplete, CircularProgress, TextField } from '@mui/material';
22
import { Controller } from 'react-hook-form';
3-
import { useAsyncFieldControllerLabels, useFieldControllerLabels, useFieldControllerWithOptionsLabels } from '../hooks';
3+
import {
4+
useAsyncFieldControllerLabels,
5+
useFieldControllerLabels,
6+
useFieldControllerWithOptionsLabels,
7+
} from '../hooks/index';
48
import { useState } from 'react';
59
import type {
610
AsyncFieldControllerProps,
711
FieldControllerProps,
812
FieldControllerWithOptionsProps,
913
ObjectLike,
10-
} from '../types';
14+
} from '../types/index';
1115
import type { AutocompleteProps, AutocompleteValue, ChipTypeMap, TextFieldProps } from '@mui/material';
1216
import type { FieldValues } from 'react-hook-form';
1317

src/components/PhoneInputController.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { MuiTelInput } from 'mui-tel-input';
22
import { useController } from 'react-hook-form';
3-
import { useFieldControllerLabels, useOnErrorMessage } from '../hooks';
4-
import type { DistributiveOmit, FieldControllerProps } from '../types';
3+
import { useFieldControllerLabels, useOnErrorMessage } from '../hooks/index';
4+
import type { DistributiveOmit, FieldControllerProps } from '../types/index';
55
import type { FieldValues } from 'react-hook-form';
66
import type { MuiTelInputProps } from 'mui-tel-input';
77

src/components/SelectController.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ import {
1010
Typography,
1111
} from '@mui/material';
1212
import { Controller } from 'react-hook-form';
13-
import { useAsyncFieldControllerLabels, useFieldControllerLabels, useFieldControllerWithOptionsLabels } from '../hooks';
13+
import {
14+
useAsyncFieldControllerLabels,
15+
useFieldControllerLabels,
16+
useFieldControllerWithOptionsLabels,
17+
} from '../hooks/index';
1418
import { useMemo } from 'react';
1519
import type {
1620
AsyncFieldControllerProps,
1721
FieldControllerProps,
1822
FieldControllerWithOptionsProps,
1923
ObjectLike,
20-
} from '../types';
24+
} from '../types/index';
2125
import type {
2226
CircularProgressProps,
2327
FormControlProps,

src/components/TextFieldController.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { TextField as MuiTextField } from '@mui/material';
22
import { useController } from 'react-hook-form';
3-
import { useFieldControllerLabels, useOnErrorMessage } from '../hooks';
4-
import type { FieldControllerProps } from '../types';
3+
import { useFieldControllerLabels, useOnErrorMessage } from '../hooks/index';
4+
import type { FieldControllerProps } from '../types/index';
55
import type { FieldValues } from 'react-hook-form';
66
import type { TextFieldProps } from '@mui/material';
77

src/hooks/useAsyncFieldControllerLabels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useMemo } from 'react';
2-
import { useMuiFormConfig } from '../providers';
3-
import type { AsyncFieldControllerProps } from '../types';
2+
import { useMuiFormConfig } from '../providers/index';
3+
import type { AsyncFieldControllerProps } from '../types/index';
44

55
interface Props extends Omit<AsyncFieldControllerProps, 'isLoading'> {}
66

src/hooks/useFieldControllerLabels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useMemo } from 'react';
2-
import { useMuiFormConfig } from '../providers';
3-
import type { FieldControllerProps } from '../types';
2+
import { useMuiFormConfig } from '../providers/index';
3+
import type { FieldControllerProps } from '../types/index';
44
import type { FieldValues } from 'react-hook-form';
55

66
interface Props extends Pick<FieldControllerProps<FieldValues>, 'requiredLabel'> {

src/hooks/useFieldControllerWithOptionsLabels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useMemo } from 'react';
2-
import { useMuiFormConfig } from '../providers';
3-
import type { FieldControllerWithOptionsProps, ObjectLike } from '../types';
2+
import { useMuiFormConfig } from '../providers/index';
3+
import type { FieldControllerWithOptionsProps, ObjectLike } from '../types/index';
44

55
interface Props extends Pick<FieldControllerWithOptionsProps<ObjectLike>, 'noOptionsLabel'> {}
66

src/hooks/useOnErrorMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useCallback } from 'react';
2-
import { useMuiFormConfig } from '../providers';
2+
import { useMuiFormConfig } from '../providers/index';
33

44
interface Props {
55
onErrorMessage?: (error: string) => string;

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from './components';
2-
export * from './providers';
3-
export * from './hooks';
4-
export * from './types';
1+
export * from './components/index';
2+
export * from './providers/index';
3+
export * from './hooks/index';
4+
export * from './types/index';

0 commit comments

Comments
 (0)