v7.0.0
·
7 commits
to tailwind
since this release
Release Notes
Version 7.0.0
π Major Changes
- BREAKING: Complete migration from Chakra UI to Tailwind CSS
- BREAKING: Updated React to v19.1.0 and React DOM to v19.1.0
- BREAKING: All component APIs remain the same, but styling is now handled by Tailwind classes
β¨ New Components
- Header: Complete header component with desktop/mobile navigation and user menu
- Footer: Simple footer component for page layouts
- Loading: Spinner component with Tailwind animations
- Pagination: Full-featured pagination component with page navigation
- Snackbar: Toast notification component with different severity levels
- Table: Advanced table component with sorting, filtering, and responsive cards view
- Typeahead: Autocomplete input component with keyboard navigation
π¨ New Icons
Added 33 new SVG icons including:
- Navigation:
ChevronDownIcon,ChevronLeftIcon,ChevronRightIcon,ArrowBackIcon,ArrowForwardIcon - Actions:
AddIcon,EditIcon,DeleteIcon,SaveIcon,CloseIcon,SearchIcon - Status:
CheckCircleIcon,ErrorIcon,InfoIcon,HelpIcon - UI:
MenuIcon,MoreVertIcon,FilterListIcon,SortIcon,UploadFileIcon - User:
UserIcon,AccountCircleIcon,GroupIcon - And many more...
π§ Developer Experience
- Comprehensive Testing: Added 79 unit tests covering all components
- Storybook Integration: Complete stories for all components
- TypeScript Support: Better type definitions and IntelliSense
- Subpath Exports: Import specific modules with
@indec/react-commons/components,/Icons,/hooks,/utils
ποΈ Build & Package
- Optimized build process with proper CSS compilation
- Excluded test and story files from published package (reduced from ~300KB to 214KB)
- Fixed build structure for better tree-shaking
- Added proper file filtering for npm package
π Bug Fixes
- Fixed UserMenu dropdown positioning to appear outside header bounds
- Fixed Select component icon positioning and cursor pointer behavior
- Resolved SVG import issues in tests
- Fixed component prop validation and error handling
π¦ Package Structure
@indec/react-commons/
βββ components/ # All UI components
βββ Icons/ # SVG icon components
βββ hooks/ # React hooks (useScreenSize)
βββ utils/ # Utility functions
π Migration Guide
This is a major version with breaking changes. To migrate from v6.x:
- Update imports - No changes needed, same import paths work
- Update styling - Components now use Tailwind classes instead of Chakra
- Check dependencies - Ensure your project has Tailwind CSS configured
- Test thoroughly - Visual changes due to CSS framework migration
π Full Component List
- Form Components: Button, Field, Select, Typeahead
- Layout Components: Header, Footer, Modal, Table
- Feedback Components: ErrorMessage, Loading, Snackbar, Pagination
- Icons: 33+ SVG icons for common UI needs
- Hooks: useScreenSize for responsive design
- Utils: Pagination helpers and utility functions
Full Changelog: v5.8.0...v7.0.0