@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'>;
package/build/index.d.ts CHANGED
@@ -1065,6 +1065,8 @@ type InputProps$1 = {
1065
1065
  isLoading?: boolean;
1066
1066
  /** Disables the input */
1067
1067
  disabled?: boolean;
1068
+ /** Prevents the input from being edited */
1069
+ readOnly?: boolean;
1068
1070
  } & InputContainerStyleProps & Omit<InputElementStyleProps, 'isDisabled'>;
1069
1071
 
1070
1072
  type TriggerProp = {
@@ -2146,11 +2148,11 @@ type Props$8 = {
2146
2148
  } & DateInputProps & PickerProps;
2147
2149
  declare const DateRangePicker: ({ startValue, endValue, label, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, description, errorMessage, preventPast, preventFuture, onChange, afterShow, afterHide, ...props }: Props$8) => react_jsx_runtime.JSX.Element;
2148
2150
 
2149
- type Props$7 = InputProps$1 & Omit<NumberFieldProps, 'isDisabled'>;
2150
- declare const NumberInput: ({ value, label, placeholder, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, description, errorMessage, onChange, ...props }: Props$7) => react_jsx_runtime.JSX.Element;
2151
+ type Props$7 = InputProps$1 & Omit<NumberFieldProps, 'isDisabled' | 'isReadOnly'>;
2152
+ declare const NumberInput: ({ value, label, placeholder, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, readOnly, description, errorMessage, onChange, ...props }: Props$7) => react_jsx_runtime.JSX.Element;
2151
2153
 
2152
- type Props$6 = InputProps$1 & Omit<TextFieldProps, 'isDisabled'>;
2153
- declare const TextInput: ({ value, label, placeholder, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, description, errorMessage, ...props }: Props$6) => react_jsx_runtime.JSX.Element;
2154
+ type Props$6 = InputProps$1 & Omit<TextFieldProps, 'isDisabled' | 'isReadOnly'>;
2155
+ declare const TextInput: ({ value, label, placeholder, inputRef, iconLeft, iconRight, isLoading, fontSize, placeholderColor, disabled, readOnly, description, errorMessage, ...props }: Props$6) => react_jsx_runtime.JSX.Element;
2154
2156
 
2155
2157
  type LabelProps = {
2156
2158
  children?: ReactNode;
@@ -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'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.23",
4
4
  "files": [
5
5
  "build/**/*"
6
6
  ],