@movable/ui 2.12.4 → 2.12.5-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,11 @@ import { TextFieldProps } from '@mui/material/TextField';
2
2
  export type InkTextFieldProps = TextFieldProps & {
3
3
  name: string;
4
4
  };
5
- export default function InkTextField({ name, minRows, sx, ...rest }: InkTextFieldProps): import("react/jsx-runtime").JSX.Element;
5
+ declare const InkTextField: import("react").ForwardRefExoticComponent<(Omit<import("@mui/material").OutlinedTextFieldProps & {
6
+ name: string;
7
+ }, "ref"> | Omit<import("@mui/material").FilledTextFieldProps & {
8
+ name: string;
9
+ }, "ref"> | Omit<import("@mui/material").StandardTextFieldProps & {
10
+ name: string;
11
+ }, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
12
+ export default InkTextField;
package/lib/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { DrawerProps } from '@mui/material/Drawer';
11
11
  import { DrawerProps as DrawerProps_2 } from '@mui/material';
12
12
  import { FieldPath } from 'react-hook-form';
13
13
  import { FieldValues } from 'react-hook-form';
14
+ import { FilledTextFieldProps } from '@mui/material';
14
15
  import { FormControlLabelProps } from '@mui/material/FormControlLabel';
15
16
  import { FormGroupProps } from '@mui/material/FormGroup';
16
17
  import { FormLabelProps } from '@mui/material/FormLabel';
@@ -24,6 +25,7 @@ import { ListItemTextProps } from '@mui/material/ListItemText';
24
25
  import { ListProps } from '@mui/material/List';
25
26
  import { MenuItemProps } from '@mui/material';
26
27
  import { MenuProps } from '@mui/material';
28
+ import { OutlinedTextFieldProps } from '@mui/material';
27
29
  import { OverridableComponent } from '@mui/material/OverridableComponent';
28
30
  import { PaperProps } from '@mui/material/Paper';
29
31
  import { PropsWithChildren } from 'react';
@@ -36,6 +38,7 @@ import { RefAttributes } from 'react';
36
38
  import { SelectProps } from '@mui/material';
37
39
  import { SnackbarProviderProps } from 'notistack';
38
40
  import { StackProps } from '@mui/material/Stack';
41
+ import { StandardTextFieldProps } from '@mui/material';
39
42
  import { SvgIconTypeMap } from '@mui/material';
40
43
  import { SwitchProps } from '@mui/material/Switch';
41
44
  import { SxProps } from '@mui/material';
@@ -418,7 +421,13 @@ export declare type InkSwitchProps = {
418
421
  formControlLabelProps?: FormControlLabelProps;
419
422
  } & SwitchProps;
420
423
 
421
- export declare function InkTextField({ name, minRows, sx, ...rest }: InkTextFieldProps): JSX_2.Element;
424
+ export declare const InkTextField: ForwardRefExoticComponent<(Omit<OutlinedTextFieldProps & {
425
+ name: string;
426
+ }, "ref"> | Omit<FilledTextFieldProps & {
427
+ name: string;
428
+ }, "ref"> | Omit<StandardTextFieldProps & {
429
+ name: string;
430
+ }, "ref">) & RefAttributes<HTMLDivElement>>;
422
431
 
423
432
  export declare type InkTextFieldProps = TextFieldProps & {
424
433
  name: string;