stratosphere-ui 2.0.1 → 2.0.2

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,4 +1,4 @@
1
- import { HTMLProps, ReactNode } from 'react';
1
+ import { HTMLProps, ReactNode, RefObject } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { Transform } from '../../common';
4
4
  import { FormFieldProps } from './types';
@@ -13,7 +13,8 @@ export interface FormControlProps<Values extends FieldValues, TOutput> extends F
13
13
  elementRight?: ReactNode;
14
14
  hideErrorMessage?: boolean;
15
15
  inputClassName?: string;
16
+ inputRef?: RefObject<HTMLInputElement>;
16
17
  size?: InputSize;
17
18
  transform?: Transform<TOutput>;
18
19
  }
19
- export declare const FormControl: <Values extends FieldValues, TOutput>({ bordered, className, color, controllerProps, elementLeft, elementRight, hideErrorMessage, inputClassName, isRequired, labelText, name, showDirty, size, transform, ...props }: FormControlProps<Values, TOutput>) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const FormControl: <Values extends FieldValues, TOutput>({ bordered, className, color, controllerProps, elementLeft, elementRight, hideErrorMessage, inputClassName, inputRef, isRequired, labelText, name, showDirty, size, transform, ...props }: FormControlProps<Values, TOutput>) => import("react/jsx-runtime").JSX.Element;
@@ -19,6 +19,7 @@ export interface SelectProps<DataItem extends GenericDataType, Values extends Fi
19
19
  menuSize?: MenuSize;
20
20
  multi?: true;
21
21
  options?: DataItem[];
22
+ portal?: boolean;
22
23
  showDirty?: boolean;
23
24
  }
24
- export declare const Select: <DataItem extends GenericDataType, Values extends FieldValues>({ anchor, buttonColor, buttonProps: { children: buttonChildren, className: buttonClassName, color: buttonPropsColor, ...buttonProps }, className, disabled, dropdownIcon, formValueMode, getItemText, hideDropdownIcon, isRequired, labelText, menuClassName, menuSize, multi, name, options: optionsArray, showDirty, }: SelectProps<DataItem, Values>) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const Select: <DataItem extends GenericDataType, Values extends FieldValues>({ anchor, buttonColor, buttonProps: { children: buttonChildren, className: buttonClassName, color: buttonPropsColor, ...buttonProps }, className, disabled, dropdownIcon, formValueMode, getItemText, hideDropdownIcon, isRequired, labelText, menuClassName, menuSize, multi, name, options: optionsArray, portal, showDirty, }: SelectProps<DataItem, Values>) => import("react/jsx-runtime").JSX.Element;