@eliseubatista99/react-scaffold-core 0.1.70 → 0.1.72
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.
- package/dist/components/inputField/inputField.d.ts +2 -1
- package/dist/components/inputField/stories/inputField.stories.d.ts +1 -1
- package/dist/components/textAreaField/stories/textAreaField.stories.d.ts +1 -1
- package/dist/components/textAreaField/textAreaField.d.ts +2 -1
- package/dist/helpers/timeHelper/timeHelper.d.ts +1 -0
- package/dist/index.cjs.js +10 -10
- package/dist/index.es.js +590 -581
- package/package.json +1 -1
|
@@ -13,8 +13,9 @@ export interface InputFieldProps {
|
|
|
13
13
|
type?: HTMLInputTypeAttribute;
|
|
14
14
|
onChange?: (value: string) => void;
|
|
15
15
|
onFocus?: () => void;
|
|
16
|
+
onBlur?: () => void;
|
|
16
17
|
inputStyles?: CSSProperties;
|
|
17
18
|
containerStyles?: CSSProperties;
|
|
18
19
|
styles?: CSSProperties;
|
|
19
20
|
}
|
|
20
|
-
export declare const InputField: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, autoComplete, value, initialValue, type, onChange, onFocus, inputStyles, containerStyles, styles, step, }: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const InputField: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, autoComplete, value, initialValue, type, onChange, onFocus, onBlur, inputStyles, containerStyles, styles, step, }: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, autoComplete, value, initialValue, type, onChange, onFocus, inputStyles, containerStyles, styles, step, }: import('../inputField').InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, autoComplete, value, initialValue, type, onChange, onFocus, onBlur, inputStyles, containerStyles, styles, step, }: import('../inputField').InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, value, initialValue, onChange, onFocus, inputStyles, containerStyles, styles, }: import('../textAreaField').TextAreaFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, value, initialValue, onChange, onFocus, onBlur, inputStyles, containerStyles, styles, }: import('../textAreaField').TextAreaFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -10,8 +10,9 @@ export interface TextAreaFieldProps {
|
|
|
10
10
|
initialValue?: string;
|
|
11
11
|
onChange?: (value: string) => void;
|
|
12
12
|
onFocus?: () => void;
|
|
13
|
+
onBlur?: () => void;
|
|
13
14
|
inputStyles?: CSSProperties;
|
|
14
15
|
containerStyles?: CSSProperties;
|
|
15
16
|
styles?: CSSProperties;
|
|
16
17
|
}
|
|
17
|
-
export declare const TextAreaField: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, value, initialValue, onChange, onFocus, inputStyles, containerStyles, styles, }: TextAreaFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const TextAreaField: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, value, initialValue, onChange, onFocus, onBlur, inputStyles, containerStyles, styles, }: TextAreaFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,7 @@ export declare class TimeHelper {
|
|
|
4
4
|
static waitForAsyncCondition: (condition: () => Promise<boolean>) => Promise<void>;
|
|
5
5
|
static differenceInMonths: (d1: Date, d2: Date) => number;
|
|
6
6
|
static isDateOneAfterDateTwo: (d1: Date, d2: Date) => boolean;
|
|
7
|
+
static isSameDate: (d1: Date, d2: Date) => boolean;
|
|
7
8
|
static getDateInUTC: (date: string | null | undefined) => {
|
|
8
9
|
day: number;
|
|
9
10
|
month: number;
|