stratosphere-ui 2.1.1 → 2.1.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.
@@ -17,4 +17,4 @@ export interface FormControlProps<Values extends FieldValues, TOutput> extends F
17
17
  size?: InputSize;
18
18
  transform?: Transform<TOutput>;
19
19
  }
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;
20
+ export declare const FormControl: <Values extends FieldValues, TOutput>({ bordered, className, color, controllerProps, elementLeft, elementRight, hideErrorMessage, inputClassName, inputRef, isRequired, labelText, name, onChange, showDirty, size, transform, ...props }: FormControlProps<Values, TOutput>) => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,6 @@ export interface SecurityCodeInputProps<NextElement> {
4
4
  inputRef: RefObject<HTMLInputElement>;
5
5
  inputClassName?: string;
6
6
  name: string;
7
- nextFocusRef: RefObject<NextElement>;
7
+ nextFocusRef?: RefObject<NextElement>;
8
8
  }
9
9
  export declare const SecurityCodeInput: <NextElement extends HTMLElement>({ className, inputRef, inputClassName, name, nextFocusRef, }: SecurityCodeInputProps<NextElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const defaultSecurityCodeInputValues: {
2
+ digit1: string;
3
+ digit2: string;
4
+ digit3: string;
5
+ digit4: string;
6
+ digit5: string;
7
+ digit6: string;
8
+ };
@@ -1 +1,3 @@
1
1
  export * from './SecurityCodeInput';
2
+ export * from './constants';
3
+ export * from './schema';
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ export declare const securityCodeInputSchema: z.ZodObject<{
3
+ digit1: z.ZodString;
4
+ digit2: z.ZodString;
5
+ digit3: z.ZodString;
6
+ digit4: z.ZodString;
7
+ digit5: z.ZodString;
8
+ digit6: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ digit1: string;
11
+ digit2: string;
12
+ digit3: string;
13
+ digit4: string;
14
+ digit5: string;
15
+ digit6: string;
16
+ }, {
17
+ digit1: string;
18
+ digit2: string;
19
+ digit3: string;
20
+ digit4: string;
21
+ digit5: string;
22
+ digit6: string;
23
+ }>;
@@ -1,2 +1,2 @@
1
- import { KeyboardEvent, RefObject } from 'react';
2
- export declare const getKeyUpHandler: (nextElement: RefObject<HTMLElement>) => ({ key }: KeyboardEvent<HTMLInputElement>) => void;
1
+ import { ChangeEvent, RefObject } from 'react';
2
+ export declare const getOnChangeHandler: (nextElement?: RefObject<HTMLElement>) => ({ target: { value } }: ChangeEvent<HTMLInputElement>) => void;