feat: add mobile swipe-back navigation and gestures

- Implement swipe-to-close for mobile modals and dialogs
- Add PageTransition component with push/pop animations
- Create navigation store for managing navigation state
- Add useNavigationDirection hook for animation direction
- Implement useSwipeToClose hook for swipe gestures
- Add prefers-reduced-motion accessibility support
- Create FileBrowserSheet component for mobile file browser
- Add comprehensive tests for swipe behavior and navigation
- Update FileBrowser, Dialog, and BackButton components
- Configure Vite for proper CSS handling
This commit is contained in:
Chris Scott committed 2026-04-15 12:44:33 -04:00
1 parent 46731210e8
commit 9d94c333b4
23 files changed
+1684 -161

No files matched your search

+18
View File
@@ -108,6 +108,24 @@ body {
animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes page-slide-in-from-right {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
@keyframes page-slide-in-from-left {
from { transform: translateX(-30%); opacity: 0.7; }
to { transform: translateX(0); opacity: 1; }
}
.page-slide-in-push {
animation: page-slide-in-from-right 300ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.page-slide-in-pop {
animation: page-slide-in-from-left 300ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes shine-loading {
0% {
background-position: -200% 0;