@versini/ui-textinput 7.0.6 → 7.0.7
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/index.d.ts +3 -2
- package/dist/index.js +7 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { JSX } from 'react
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { default as React_2 } from 'react';
|
|
2
3
|
|
|
3
4
|
declare type CommonTextInputProps = {
|
|
4
5
|
/**
|
|
@@ -62,7 +63,7 @@ export declare const TEXT_INPUT_WRAPPER_CLASSNAME = "av-text-input-wrapper";
|
|
|
62
63
|
|
|
63
64
|
export declare function TextInput({ id, name, label, error, raw, className, inputClassName, mode, disabled, noBorder, labelId, labelHidden, type, helperText, rightElement, rightElementClassName, size, ref, ...extraProps }: TextInputProps): JSX.Element;
|
|
64
65
|
|
|
65
|
-
export declare function TextInputMask({ name, disabled, label, labelHidden, onMaskChange, onChange, onBlur, onFocus, onTextInputMaskBlur, rightElement, ref, ...otherProps }: TextInputMaskProps): JSX.Element;
|
|
66
|
+
export declare function TextInputMask({ name, disabled, label, labelHidden, onMaskChange, onChange, onBlur, onFocus, onTextInputMaskBlur, rightElement, ref, ...otherProps }: TextInputMaskProps): React_2.JSX.Element;
|
|
66
67
|
|
|
67
68
|
declare type TextInputMaskProps = {
|
|
68
69
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-textinput v7.0.
|
|
2
|
+
@versini/ui-textinput v7.0.7
|
|
3
3
|
© 2026 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -7,10 +7,12 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { useResizeObserver } from "@versini/ui-hooks/use-resize-observer";
|
|
8
8
|
import { useUniqueId } from "@versini/ui-hooks/use-unique-id";
|
|
9
9
|
import { LiveRegion } from "@versini/ui-liveregion";
|
|
10
|
-
import react
|
|
10
|
+
import react, { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import { useMergeRefs } from "@versini/ui-hooks/use-merge-refs";
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
|
|
14
16
|
const TEXT_INPUT_CLASSNAME = "av-text-input";
|
|
15
17
|
const TEXT_INPUT_SIMPLE_CLASSNAME = "av-text-input-simple";
|
|
16
18
|
const TEXT_INPUT_WRAPPER_CLASSNAME = "av-text-input-wrapper";
|
|
@@ -280,6 +282,9 @@ function TextInput({ id, name, label, error = false, raw = false, className, inp
|
|
|
280
282
|
|
|
281
283
|
|
|
282
284
|
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
283
288
|
const CLEAR_ANNOUNCEMENT_TIMEOUT = 500;
|
|
284
289
|
const AUTO_HIDE_CLEAR_ANNOUNCEMENT_TIMEOUT = 5000;
|
|
285
290
|
const AUTO_HIDE_TIMEOUT = 20000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-textinput",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"@versini/ui-hooks": "6.1.1",
|
|
45
45
|
"@versini/ui-liveregion": "3.2.8",
|
|
46
46
|
"clsx": "2.1.1",
|
|
47
|
-
"tailwindcss": "4.3.
|
|
47
|
+
"tailwindcss": "4.3.1"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": [
|
|
50
50
|
"**/*.css"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "f25e4b557175f745705c249d10e2e77dc02ed462"
|
|
53
53
|
}
|