stratosphere-ui 2.1.3 → 2.1.4
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,2 +1,3 @@
|
|
|
1
1
|
export declare const COLORS: readonly ["base-100", "base-200", "base-300", "base-content", "primary", "primary-content", "secondary", "secondary-content", "accent", "accent-content", "neutral", "neutral-content", "info", "info-content", "success", "success-content", "warning", "warning-content", "error", "error-content"];
|
|
2
2
|
export declare const DIGIT_REGEX: RegExp;
|
|
3
|
+
export declare const SECURITY_CODE_REGEX: RegExp;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLProps, ReactNode, RefObject } from 'react';
|
|
1
|
+
import { ChangeEventHandler, 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';
|
|
@@ -6,7 +6,7 @@ export declare const INPUT_COLORS: readonly ["ghost", "neutral", "primary", "sec
|
|
|
6
6
|
export declare const INPUT_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
|
|
7
7
|
export type InputColor = (typeof INPUT_COLORS)[number];
|
|
8
8
|
export type InputSize = (typeof INPUT_SIZES)[number];
|
|
9
|
-
export interface FormControlProps<Values extends FieldValues, TOutput> extends FormFieldProps<Values>, Omit<HTMLProps<HTMLInputElement>, 'name' | 'size'> {
|
|
9
|
+
export interface FormControlProps<Values extends FieldValues, TOutput> extends FormFieldProps<Values>, Omit<HTMLProps<HTMLInputElement>, 'name' | 'onChange' | 'size'> {
|
|
10
10
|
bordered?: boolean;
|
|
11
11
|
color?: InputColor;
|
|
12
12
|
elementLeft?: ReactNode;
|
|
@@ -14,6 +14,7 @@ export interface FormControlProps<Values extends FieldValues, TOutput> extends F
|
|
|
14
14
|
hideErrorMessage?: boolean;
|
|
15
15
|
inputClassName?: string;
|
|
16
16
|
inputRef?: RefObject<HTMLInputElement>;
|
|
17
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
17
18
|
size?: InputSize;
|
|
18
19
|
transform?: Transform<TOutput>;
|
|
19
20
|
}
|