Merge remote-tracking branch 'origin/main' into drag-and-drop

This commit is contained in:
Alex Gleason committed 2025-09-20 18:32:23 -05:00
commit 549385077f
100 files changed
+6771 -958

No files matched your search

+9 -3
View File
@@ -3,6 +3,7 @@ import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { ChevronLeft, ChevronRight, RefreshCw } from 'lucide-react';
import { cn } from '@/lib/utils';
import { ReactNode } from 'react';
interface BrowserAddressBarProps {
currentPath?: string;
@@ -13,6 +14,7 @@ interface BrowserAddressBarProps {
canGoBack?: boolean;
canGoForward?: boolean;
className?: string;
extraContent?: ReactNode;
}
export function BrowserAddressBar({
@@ -24,18 +26,19 @@ export function BrowserAddressBar({
canGoBack = false,
canGoForward = false,
className,
extraContent,
}: BrowserAddressBarProps) {
const [inputValue, setInputValue] = useState(currentPath);
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
let path = inputValue.trim();
// Ensure path starts with /
if (!path.startsWith('/')) {
path = '/' + path;
}
onNavigate?.(path);
};
@@ -45,7 +48,7 @@ export function BrowserAddressBar({
return (
<div className={cn(
"flex items-center gap-1 p-2 border-b bg-background",
"flex items-center gap-1 p-2 border-b bg-background w-full",
className
)}>
{/* Navigation buttons */}
@@ -91,6 +94,9 @@ export function BrowserAddressBar({
className="h-8 bg-muted/50 border-muted-foreground/20 focus:bg-background"
/>
</form>
{/* Extra content */}
{extraContent}
</div>
);
}
+2 -3
View File
@@ -8,13 +8,12 @@ const PasswordInput = React.forwardRef<HTMLInputElement, React.InputHTMLAttribut
const [isFocused, setIsFocused] = React.useState(false)
return (
<div className="relative">
<div className={cn("relative", className)}>
<input
type={showPassword ? "text" : "password"}
className={cn(
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 pr-10 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
isFocused && "ring-2 ring-ring ring-offset-2",
className
isFocused && "ring-2 ring-ring ring-offset-2"
)}
ref={ref}
onFocus={(e) => {