@nativetail/ui 0.0.3 → 0.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativetail/ui",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {},
@@ -38,8 +38,9 @@ export function FloatingInput({
38
38
  const onBlur = useCallback(() => {
39
39
  setIsFocused(false);
40
40
  }, []);
41
- const tw = useTw();
42
- const [showPassword, setShowPassword] = useState(false);
41
+ const [showPassword, setShowPassword] = useState(
42
+ isSecretToggleable ? false : true
43
+ );
43
44
  return (
44
45
  <>
45
46
  <View
@@ -32,7 +32,10 @@ export function Input({
32
32
  ...props
33
33
  }: InputProps) {
34
34
  const tw = useTw();
35
- const [showPassword, setShowPassword] = useState(false);
35
+
36
+ const [showPassword, setShowPassword] = useState(
37
+ isSecretToggleable ? false : true
38
+ );
36
39
  return (
37
40
  <View className={cn("w-full gap-1", containerClassName)}>
38
41
  <Text className={cn("text-muted/75 duration-75 ")}>{label}</Text>