y200subcontrols 0.0.3738 → 0.0.3739
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.
|
@@ -12,6 +12,7 @@ export let validationText = void 0;
|
|
|
12
12
|
export let customCss = "";
|
|
13
13
|
export let customValidation = void 0;
|
|
14
14
|
export let disabled = false;
|
|
15
|
+
export let visible = true;
|
|
15
16
|
let input;
|
|
16
17
|
let isValid = true;
|
|
17
18
|
let inputType = "password";
|
|
@@ -44,9 +45,10 @@ onMount(() => {
|
|
|
44
45
|
{name}
|
|
45
46
|
{required}
|
|
46
47
|
{placeholder}
|
|
48
|
+
{visible}
|
|
47
49
|
on:validated={handleValidated}
|
|
48
50
|
>
|
|
49
|
-
<div class="relative group">
|
|
51
|
+
<div class="relative group {visible ? '' : 'hidden'}">
|
|
50
52
|
<input
|
|
51
53
|
type="password"
|
|
52
54
|
bind:this={input}
|