@eliseubatista99/react-scaffold-core 0.1.83 → 0.1.84
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.
|
@@ -10,6 +10,7 @@ export interface InputFieldProps {
|
|
|
10
10
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
11
11
|
value?: string;
|
|
12
12
|
initialValue?: string;
|
|
13
|
+
pattern?: string;
|
|
13
14
|
maxLength?: number;
|
|
14
15
|
type?: HTMLInputTypeAttribute;
|
|
15
16
|
onChange?: (value: string) => void;
|
|
@@ -19,4 +20,4 @@ export interface InputFieldProps {
|
|
|
19
20
|
containerStyles?: CSSProperties;
|
|
20
21
|
styles?: CSSProperties;
|
|
21
22
|
}
|
|
22
|
-
export declare const InputField: (
|
|
23
|
+
export declare const InputField: (props: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { InputFieldProps } from './inputField';
|
|
3
|
+
export declare const useInputFieldHelper: (props: InputFieldProps) => {
|
|
4
|
+
props: InputFieldProps;
|
|
5
|
+
handleOnBlur: (event: React.FocusEvent<HTMLInputElement, Element>) => void;
|
|
6
|
+
handleOnFocus: (event: React.FocusEvent<HTMLInputElement, Element>) => void;
|
|
7
|
+
onValueChanged: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
handleOnInput: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
9
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (
|
|
4
|
+
component: (props: import('../inputField').InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -19,3 +19,4 @@ export declare const WithLabel: Story;
|
|
|
19
19
|
export declare const WithErrorMessage: Story;
|
|
20
20
|
export declare const CountrySearch: Story;
|
|
21
21
|
export declare const SearchInput: Story;
|
|
22
|
+
export declare const Numeric: Story;
|