File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 import type { ValidationResult } from ' $lib/types/ValidationResult' ;
88 import type { FullAutoFill } from ' svelte/elements' ;
99 import TextInput from ' ./TextInput.svelte' ;
10- import type { ButtonSettings } from ' ./impl/ButtonSettings' ;
1110 import PasswordStrengthMeter from ' ./impl/PasswordStrengthMeter.svelte' ;
1211
1312 interface Props {
102101 $effect (() => {
103102 valid = validationResult ?.valid ?? false ;
104103 });
105-
106- let button: ButtonSettings = $derived ({
107- Icon: valueShown ? EyeOff : Eye ,
108- class: ' cursor-pointer' ,
109- onClick : () => (valueShown = ! valueShown ),
110- });
111104 </script >
112105
113106<TextInput
118111 bind:value
119112 {validationResult }
120113 {Icon }
121- {button }
114+ button ={{
115+ Icon : valueShown ? EyeOff : Eye ,
116+ class : ' cursor-pointer' ,
117+ onClick : () => (valueShown = ! valueShown ),
118+ }}
122119 {oninput }
123120>
124121 {#snippet popup ()}
Original file line number Diff line number Diff line change 2626 <div class =" relative h-0 w-full" >
2727 <div
2828 class =" absolute size-2 -translate-x-1 -translate-y-1 rotate-45 transform bg-black dark:bg-white"
29- style ={` left: ${percent }%` }
29+ style:left ={` ${percent }% ` }
3030 ></div >
3131 </div >
3232</div >
You can’t perform that action at this time.
0 commit comments