stratosphere-ui 2.0.1 → 2.1.0

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;
@@ -0,0 +1,8 @@
1
+ import { RefObject } from 'react';
2
+ export interface SecurityCodeInputProps<NextElement> {
3
+ className?: string;
4
+ inputClassName?: string;
5
+ name: string;
6
+ nextFocusRef: RefObject<NextElement>;
7
+ }
8
+ export declare const SecurityCodeInput: <NextElement extends HTMLElement>({ className, inputClassName, name, nextFocusRef, }: SecurityCodeInputProps<NextElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { SecurityCodeInput } from './SecurityCodeInput';
3
+ declare const meta: Meta<typeof SecurityCodeInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SecurityCodeInput>;
6
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export * from './SecurityCodeInput';
@@ -0,0 +1,2 @@
1
+ import { KeyboardEvent, RefObject } from 'react';
2
+ export declare const getKeyUpHandler: (nextElement: RefObject<HTMLElement>) => ({ key }: KeyboardEvent<HTMLInputElement>) => void;
@@ -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;
@@ -21,6 +21,7 @@ export * from './Pagination';
21
21
  export * from './PasswordInput';
22
22
  export * from './Popover';
23
23
  export * from './Progress';
24
+ export * from './SecurityCodeInput';
24
25
  export * from './Select';
25
26
  export * from './Stat';
26
27
  export * from './Steps';
@@ -1,3 +1,4 @@
1
1
  import { Transform } from '../common/types';
2
+ export declare const digitInputTransformer: Transform<string>;
2
3
  export declare const integerInputTransformer: Transform<number | null>;
3
4
  export declare const nullEmptyStringTransformer: Transform<string | null>;