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.
@@ -1,45 +1,28 @@
1
1
  import { FC } from 'react';
2
- import { IHookFormsInputProps, LABELTYPE } from '../../../shared/models/components/base.model';
3
- interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange' | 'labelType'> {
4
- /** Label type styling */
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
- /** Show/hide toggle functionality */
13
- showToggle?: boolean;
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
- onToggleVisibility?: (isVisible: boolean) => void;
18
- /** Input type for the fields */
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
- /** Custom classes for individual input fields */
23
- inputFieldClasses?: string;
24
- /** Custom classes for the container of input fields */
25
- inputContainerClasses?: string;
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 - 6 individual square input fields
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' | 'labelType'> {
1553
- /** Label type styling */
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
- /** Show/hide toggle functionality */
1562
- showToggle?: boolean;
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
- onToggleVisibility?: (isVisible: boolean) => void;
1567
- /** Input type for the fields */
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
- /** Custom classes for individual input fields */
1572
- inputFieldClasses?: string;
1573
- /** Custom classes for the container of input fields */
1574
- inputContainerClasses?: string;
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 - 6 individual square input fields
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.14.20",
3
+ "version": "1.14.22",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",