|
| 1 | +# Overdrive Component Library - Quick Reference |
| 2 | + |
| 3 | +## At a Glance |
| 4 | + |
| 5 | +| Category | Details | |
| 6 | +| -------------------- | ------------------------- | |
| 7 | +| **Version** | 4.50.0 | |
| 8 | +| **Total Components** | 73 UI components | |
| 9 | +| **React Version** | 19.1.1 (supports 18+) | |
| 10 | +| **TypeScript** | 5.9.2 (strict mode) | |
| 11 | +| **Styling** | Vanilla Extract CSS-in-TS | |
| 12 | +| **Package** | @autoguru/overdrive (npm) | |
| 13 | +| **Docs** | overdrive.autoguru.io | |
| 14 | + |
| 15 | +## Component Count by Category |
| 16 | + |
| 17 | +- **Primitives**: 10 (Box, Text, Flex, Stack, etc.) |
| 18 | +- **Forms & Inputs**: 14 (TextInput, DatePicker, Calendar, etc.) |
| 19 | +- **Navigation**: 9 (Tabs, Pagination, Stepper, etc.) |
| 20 | +- **Content Display**: 15 (Heading, Badge, Image, etc.) |
| 21 | +- **Modals & Overlays**: 6 (Modal, Popover, Tooltip, etc.) |
| 22 | +- **Interactive**: 9 (Button, Toaster, Actions, etc.) |
| 23 | + |
| 24 | +## Key Technologies |
| 25 | + |
| 26 | +### Core Stack |
| 27 | + |
| 28 | +- React 19.1.1 + React DOM |
| 29 | +- TypeScript 5.9.2 |
| 30 | +- Vanilla Extract (CSS-in-TS) |
| 31 | + |
| 32 | +### Tooling |
| 33 | + |
| 34 | +- **Build**: Babel 7.28.3 + Vite 7.1.7 |
| 35 | +- **Lint**: ESLint 9.38.0 (flat config) |
| 36 | +- **Format**: Prettier 3.6.2 |
| 37 | +- **Tests**: Vitest 3.2.4 |
| 38 | +- **Dev Docs**: Storybook 9.1.10 |
| 39 | +- **CI/CD**: GitHub Actions |
| 40 | + |
| 41 | +### State & Positioning |
| 42 | + |
| 43 | +- PopperJS 2.11.8 (positioning) |
| 44 | +- React Focus Lock 2.13.6 (focus trapping) |
| 45 | +- React Intersection Observer 9.16.0 |
| 46 | +- React Swipeable 7.0.2 |
| 47 | + |
| 48 | +## Quick Commands |
| 49 | + |
| 50 | +```bash |
| 51 | +# Development |
| 52 | +yarn storybook # Start dev server (port 6006) |
| 53 | +yarn build # Build for distribution |
| 54 | + |
| 55 | +# Code Quality |
| 56 | +yarn lint # ESLint + TypeScript |
| 57 | +yarn format # Prettier format |
| 58 | +yarn lint:eslint # ESLint only |
| 59 | + |
| 60 | +# Testing |
| 61 | +yarn test # Watch mode |
| 62 | +yarn test:ci # CI with coverage |
| 63 | +yarn test:a11y # Storybook tests |
| 64 | +yarn test ComponentName # Specific component |
| 65 | + |
| 66 | +# Analysis |
| 67 | +yarn analyse # Bundle analysis |
| 68 | +yarn chromatic # Visual regression tests |
| 69 | +yarn check-deps # Update check |
| 70 | + |
| 71 | +# Component Generation |
| 72 | +yarn plop component # New component scaffold |
| 73 | +yarn typeEmit # Generate type declarations |
| 74 | +``` |
| 75 | + |
| 76 | +## Design System |
| 77 | + |
| 78 | +### Themes (3 Available) |
| 79 | + |
| 80 | +1. **baseTheme** (default) - AutoGuru primary |
| 81 | +2. **flatRedTheme** - Red variant |
| 82 | +3. **neutralTheme** - Grayscale variant |
| 83 | + |
| 84 | +### Responsive Breakpoints |
| 85 | + |
| 86 | +- `mobile` | `tablet` | `desktop` | `largeDesktop` |
| 87 | + |
| 88 | +### Space Tokens |
| 89 | + |
| 90 | +- Values `'1'` through `'9'` for spacing/sizing |
| 91 | + |
| 92 | +### Color Tokens |
| 93 | + |
| 94 | +- NEW: `color` (American) |
| 95 | +- LEGACY: `colour` (British) |
| 96 | + |
| 97 | +## File Structure |
| 98 | + |
| 99 | +``` |
| 100 | +lib/ |
| 101 | +├── components/ # 73 UI components |
| 102 | +├── hooks/ # 13 custom hooks |
| 103 | +├── styles/ # Vanilla Extract utilities |
| 104 | +├── themes/ # Design tokens & themes |
| 105 | +├── utils/ # 20+ utility functions |
| 106 | +├── types/ # TypeScript definitions |
| 107 | +└── stories/ # Storybook documentation |
| 108 | +``` |
| 109 | + |
| 110 | +## CI/CD |
| 111 | + |
| 112 | +- **Linting**: Pre-commit with husky + lint-staged |
| 113 | +- **Testing**: Unit tests + Storybook browser tests |
| 114 | +- **Coverage**: Codecov integration |
| 115 | +- **Visual**: Chromatic on all PRs (TurboSnap enabled) |
| 116 | +- **Releases**: Changesets-based versioning |
| 117 | + |
| 118 | +## Accessibility Focus |
| 119 | + |
| 120 | +- Full keyboard support |
| 121 | +- React Aria integration |
| 122 | +- Visible focus indicators (`:focus-visible`) |
| 123 | +- Screen reader support |
| 124 | + |
| 125 | +## Code Quality Standards |
| 126 | + |
| 127 | +✅ **MUST DO:** |
| 128 | + |
| 129 | +- Vanilla Extract CSS |
| 130 | +- Design tokens only (no hardcoded values) |
| 131 | +- Storybook stories for all components |
| 132 | +- Full keyboard/accessibility support |
| 133 | +- Strict TypeScript |
| 134 | +- Fix all ESLint errors |
| 135 | + |
| 136 | +❌ **NEVER:** |
| 137 | + |
| 138 | +- Inline styles or magic numbers |
| 139 | +- Hardcoded values |
| 140 | +- Unused imports/variables/parameters |
| 141 | +- Console statements |
| 142 | +- Missing displayNames |
| 143 | + |
| 144 | +--- |
| 145 | + |
| 146 | +**Last Updated**: October 23, 2025 |
0 commit comments