@okam/stack-ui 1.20.4 → 1.20.5

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.
@@ -1,19 +1,24 @@
1
1
  import type { InputHTMLAttributes } from 'react';
2
- import type { AriaTextFieldProps } from 'react-aria';
2
+ import type { AriaTextFieldOptions } from 'react-aria';
3
3
  import type { RefCallBack } from 'react-hook-form';
4
4
  import type { TDefaultComponent, TReactHookForm } from '../../../types/components';
5
- export type TFieldReactHookForm = TReactHookForm & TDefaultComponent;
6
- export interface TTextInputProps extends TFieldReactHookForm, Omit<AriaTextFieldProps, 'onBlur' | 'onChange'> {
5
+ export type TFieldReactHookForm = TDefaultComponent & TReactHookForm;
6
+ export interface TTextInputProps extends TFieldReactHookForm, Omit<AriaTextFieldOptions<'input'>, 'onChange' | 'onBlur'> {
7
7
  name: string;
8
- required?: boolean;
9
- disabled?: boolean;
10
- errorMessage?: string;
11
- isError?: boolean;
12
8
  ariaLabel?: string;
9
+ errorMessage?: string;
13
10
  fieldRef?: RefCallBack;
14
- }
15
- export interface TTextInputStyle extends TDefaultComponent {
11
+ /**
12
+ * @deprecated use isRequired instead
13
+ */
14
+ required?: boolean;
15
+ /**
16
+ * @deprecated use isDisabled instead
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * @deprecated depends on errorMEssage
21
+ */
16
22
  isError?: boolean;
17
- errorMessage?: string;
18
23
  }
19
24
  export type TUseTextFieldInputProps = InputHTMLAttributes<HTMLInputElement>;