(({ className, ...props }, ref) => {
+ const [showPassword, setShowPassword] = React.useState(false);
+ const setFocused = useInputFocus((state) => state.setFocused);
+
+ return (
+
+ setFocused(true)}
+ onBlur={() => setFocused(false)}
+ {...props}
+ />
+
+
+ );
+});
+
+PasswordInput.displayName = 'PasswordInput';
+
+export { PasswordInput };
diff --git a/resources/js/types/dynamic-field-config.d.ts b/resources/js/types/dynamic-field-config.d.ts
index ca5892808..72a1a0197 100644
--- a/resources/js/types/dynamic-field-config.d.ts
+++ b/resources/js/types/dynamic-field-config.d.ts
@@ -1,5 +1,5 @@
export interface DynamicFieldConfig {
- type: 'text' | 'textarea' | 'select' | 'checkbox' | 'component' | 'alert';
+ type: 'text' | 'password' | 'password-with-toggle' | 'textarea' | 'select' | 'checkbox' | 'component' | 'alert';
name: string;
options?: string[] | { [key: string]: string };
component?: string;