@wavv/ui 2.0.0-alpha.21 → 2.0.0-alpha.23

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,5 +1,5 @@
1
1
  import { NumberFieldProps } from 'react-aria-components';
2
2
  import { InputProps } from '../types';
3
- type Props = InputProps & Omit<NumberFieldProps, 'isDisabled'>;
4
- declare const NumberInput: ({ value, label, placeholder, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, description, errorMessage, onChange, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
3
+ type Props = InputProps & Omit<NumberFieldProps, 'isDisabled' | 'isReadOnly'>;
4
+ declare const NumberInput: ({ value, label, placeholder, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, readOnly, description, errorMessage, onChange, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
5
5
  export default NumberInput;
@@ -1,5 +1,5 @@
1
1
  import { TextFieldProps } from 'react-aria-components';
2
2
  import { InputProps } from '../types';
3
- type Props = InputProps & Omit<TextFieldProps, 'isDisabled'>;
4
- declare const TextInput: ({ value, label, placeholder, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, description, errorMessage, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
3
+ type Props = InputProps & Omit<TextFieldProps, 'isDisabled' | 'isReadOnly'>;
4
+ declare const TextInput: ({ value, label, placeholder, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, readOnly, description, errorMessage, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
5
5
  export default TextInput;
@@ -141,4 +141,6 @@ export type InputProps = {
141
141
  isLoading?: boolean;
142
142
  /** Disables the input */
143
143
  disabled?: boolean;
144
+ /** Prevents the input from being edited */
145
+ readOnly?: boolean;
144
146
  } & InputContainerStyleProps & Omit<InputElementStyleProps, 'isDisabled'>;