dfh-ui-library 1.14.20 → 1.14.22
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/cjs/index.css +1 -1
- package/dist/cjs/index.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/FormElements/IconInput/iconInputLock.d.ts +13 -30
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/FormElements/IconInput/iconInputLock.d.ts +13 -30
- package/dist/index.d.ts +12 -29
- package/package.json +1 -1
@@ -1,45 +1,28 @@
|
|
1
1
|
import { FC } from 'react';
|
2
|
-
import { IHookFormsInputProps
|
3
|
-
interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange'
|
4
|
-
/**
|
5
|
-
labelType?: LABELTYPE;
|
6
|
-
/** Number of input fields (default: 6) */
|
2
|
+
import { IHookFormsInputProps } from '../../../shared/models/components/base.model';
|
3
|
+
export interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange'> {
|
4
|
+
/** Number of input boxes (2-8) */
|
7
5
|
length?: number;
|
8
6
|
/** Current value as string */
|
9
7
|
value?: string;
|
10
8
|
/** Callback when value changes */
|
11
9
|
onChange?: (value: string) => void;
|
12
|
-
/**
|
13
|
-
|
10
|
+
/** Whether to show password visibility toggle */
|
11
|
+
showVisibilityToggle?: boolean;
|
14
12
|
/** Whether the code is currently visible */
|
15
13
|
isVisible?: boolean;
|
16
14
|
/** Callback when visibility toggle is clicked */
|
17
|
-
|
18
|
-
/**
|
19
|
-
inputType?: 'text' | 'password' | 'number';
|
20
|
-
/** Whether to auto-focus next field */
|
15
|
+
onVisibilityToggle?: () => void;
|
16
|
+
/** Whether to auto-focus next input */
|
21
17
|
autoFocus?: boolean;
|
22
|
-
/**
|
23
|
-
|
24
|
-
/** Custom
|
25
|
-
|
26
|
-
/** Show required icon when field is empty */
|
27
|
-
showIsRequiredIcon?: boolean;
|
28
|
-
/** Show tooltip */
|
29
|
-
showTooltip?: boolean;
|
30
|
-
/** Tooltip text */
|
31
|
-
tooltipText?: string;
|
32
|
-
/** Right icon type */
|
33
|
-
rightIcon?: string;
|
34
|
-
/** Right icon classes */
|
35
|
-
iconClassRight?: string;
|
36
|
-
/** Show right icon */
|
37
|
-
isIconRight?: boolean;
|
38
|
-
/** Icon click handler */
|
39
|
-
iconOnClick?: () => void;
|
18
|
+
/** Whether to allow paste */
|
19
|
+
allowPaste?: boolean;
|
20
|
+
/** Custom separator between inputs */
|
21
|
+
separator?: string;
|
40
22
|
}
|
41
23
|
/**
|
42
|
-
* Lock Code Input Component
|
24
|
+
* Dynamic Lock Code Input Component
|
25
|
+
* Creates individual input boxes for secure code entry (2-8 characters)
|
43
26
|
*/
|
44
27
|
declare const LockCodeInput: FC<ILockCodeInputProps>;
|
45
28
|
export default LockCodeInput;
|
package/dist/index.d.ts
CHANGED
@@ -1549,46 +1549,29 @@ declare const IconInput: FC<IHookFormsInputProps>;
|
|
1549
1549
|
*/
|
1550
1550
|
declare const IconInputV2: FC<IHookFormsInputProps>;
|
1551
1551
|
|
1552
|
-
interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange'
|
1553
|
-
/**
|
1554
|
-
labelType?: LABELTYPE;
|
1555
|
-
/** Number of input fields (default: 6) */
|
1552
|
+
interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange'> {
|
1553
|
+
/** Number of input boxes (2-8) */
|
1556
1554
|
length?: number;
|
1557
1555
|
/** Current value as string */
|
1558
1556
|
value?: string;
|
1559
1557
|
/** Callback when value changes */
|
1560
1558
|
onChange?: (value: string) => void;
|
1561
|
-
/**
|
1562
|
-
|
1559
|
+
/** Whether to show password visibility toggle */
|
1560
|
+
showVisibilityToggle?: boolean;
|
1563
1561
|
/** Whether the code is currently visible */
|
1564
1562
|
isVisible?: boolean;
|
1565
1563
|
/** Callback when visibility toggle is clicked */
|
1566
|
-
|
1567
|
-
/**
|
1568
|
-
inputType?: 'text' | 'password' | 'number';
|
1569
|
-
/** Whether to auto-focus next field */
|
1564
|
+
onVisibilityToggle?: () => void;
|
1565
|
+
/** Whether to auto-focus next input */
|
1570
1566
|
autoFocus?: boolean;
|
1571
|
-
/**
|
1572
|
-
|
1573
|
-
/** Custom
|
1574
|
-
|
1575
|
-
/** Show required icon when field is empty */
|
1576
|
-
showIsRequiredIcon?: boolean;
|
1577
|
-
/** Show tooltip */
|
1578
|
-
showTooltip?: boolean;
|
1579
|
-
/** Tooltip text */
|
1580
|
-
tooltipText?: string;
|
1581
|
-
/** Right icon type */
|
1582
|
-
rightIcon?: string;
|
1583
|
-
/** Right icon classes */
|
1584
|
-
iconClassRight?: string;
|
1585
|
-
/** Show right icon */
|
1586
|
-
isIconRight?: boolean;
|
1587
|
-
/** Icon click handler */
|
1588
|
-
iconOnClick?: () => void;
|
1567
|
+
/** Whether to allow paste */
|
1568
|
+
allowPaste?: boolean;
|
1569
|
+
/** Custom separator between inputs */
|
1570
|
+
separator?: string;
|
1589
1571
|
}
|
1590
1572
|
/**
|
1591
|
-
* Lock Code Input Component
|
1573
|
+
* Dynamic Lock Code Input Component
|
1574
|
+
* Creates individual input boxes for secure code entry (2-8 characters)
|
1592
1575
|
*/
|
1593
1576
|
declare const LockCodeInput: FC<ILockCodeInputProps>;
|
1594
1577
|
|