@epam/ai-dial-ui-kit 0.16.0-dev.35 → 0.16.0-dev.36
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.
|
@@ -5,6 +5,8 @@ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'iconAfter
|
|
|
5
5
|
showPasswordLabel?: string;
|
|
6
6
|
/** Accessible name of the reveal toggle while the value is visible. */
|
|
7
7
|
hidePasswordLabel?: string;
|
|
8
|
+
/** Hides the reveal toggle while the field stays editable, and keeps the value masked. */
|
|
9
|
+
isToggleHidden?: boolean;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* A password field with a reveal toggle, built on {@link Input}.
|
|
@@ -18,6 +20,9 @@ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'iconAfter
|
|
|
18
20
|
* A disabled field is masked with no toggle at all, and comes back masked if it
|
|
19
21
|
* is enabled again.
|
|
20
22
|
*
|
|
23
|
+
* `isToggleHidden` does the same without disabling the field: use it when there
|
|
24
|
+
* is nothing to reveal, such as a stored secret the server never returns.
|
|
25
|
+
*
|
|
21
26
|
* @example
|
|
22
27
|
* ```tsx
|
|
23
28
|
* <PasswordInput
|
|
@@ -32,5 +37,6 @@ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'iconAfter
|
|
|
32
37
|
* @param [hidePasswordLabel="Hide password"] - Accessible name of the toggle while the value is visible
|
|
33
38
|
* @param [size=ElementSize.Standard] - Field height: standard is 40px, small is 24px
|
|
34
39
|
* @param [disabled=false] - Disables the field, masks it, and hides the reveal toggle
|
|
40
|
+
* @param [isToggleHidden=false] - Hides the reveal toggle and keeps the value masked, leaving the field editable
|
|
35
41
|
*/
|
|
36
42
|
export declare const PasswordInput: FC<PasswordInputProps>;
|