@pnkx-lib/ui 1.9.355 → 1.9.356
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/es/fields/Input.js
CHANGED
|
@@ -1244,12 +1244,14 @@ const Input = (props) => {
|
|
|
1244
1244
|
contentTooltip,
|
|
1245
1245
|
toLowerCaseValue,
|
|
1246
1246
|
classNameLabel,
|
|
1247
|
+
inputPassword,
|
|
1247
1248
|
...restProps
|
|
1248
1249
|
} = props;
|
|
1249
1250
|
const { name, value, onChange, onBlur } = field || {};
|
|
1250
1251
|
const { touchedFields, errors, isSubmitted } = formState || {};
|
|
1251
1252
|
const isTouched = get(touchedFields, name);
|
|
1252
1253
|
const errorMessage = get(errors, name)?.message;
|
|
1254
|
+
useState(false);
|
|
1253
1255
|
const inputRef = useRef(null);
|
|
1254
1256
|
const [isComposing, setIsComposing] = useState(false);
|
|
1255
1257
|
const capitalizeAfterPeriod = (text) => {
|
|
@@ -1385,9 +1387,10 @@ const Input = (props) => {
|
|
|
1385
1387
|
}
|
|
1386
1388
|
);
|
|
1387
1389
|
}
|
|
1390
|
+
const InputComponent = inputPassword ? Input$1.Password : Input$1;
|
|
1388
1391
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1389
1392
|
/* @__PURE__ */ jsx(
|
|
1390
|
-
|
|
1393
|
+
InputComponent,
|
|
1391
1394
|
{
|
|
1392
1395
|
ref: inputRef,
|
|
1393
1396
|
onCompositionStart: handleCompositionStart,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, JSX } from 'react';
|
|
2
2
|
import { InputProps as InputPropsAntd } from 'antd';
|
|
3
3
|
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
4
|
-
type CustomInputTypeAttribute = React.HTMLInputTypeAttribute | "money" | "number_custom";
|
|
4
|
+
type CustomInputTypeAttribute = React.HTMLInputTypeAttribute | "money" | "number_custom" | "password";
|
|
5
5
|
type TInputNumberType = "number" | "money" | "number_custom";
|
|
6
6
|
export interface InputProps extends InputPropsAntd {
|
|
7
7
|
field?: ControllerRenderProps<any, any>;
|
|
@@ -19,6 +19,7 @@ export interface InputProps extends InputPropsAntd {
|
|
|
19
19
|
contentTooltip?: string;
|
|
20
20
|
toLowerCaseValue?: boolean;
|
|
21
21
|
classNameLabel?: string;
|
|
22
|
+
inputPassword?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export declare const Input: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
export interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
|
|
@@ -25,7 +25,7 @@ export interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
|
|
25
25
|
rowsSelected?: React.Key[];
|
|
26
26
|
onSelect: (newSelectedRowKeys: React.Key[]) => void;
|
|
27
27
|
onRowClick?: (record: T) => void;
|
|
28
|
-
rowKey
|
|
28
|
+
rowKey: string;
|
|
29
29
|
onDoubleClickRow?: (record: T) => void;
|
|
30
30
|
showIndexColumn?: boolean;
|
|
31
31
|
size?: SizeType;
|