Files
pos-system/apps/web-client/src/lib/utils.ts
Ho Ngoc Hai c088de53c3 Update dependencies and enhance Tailwind CSS configuration for web applications
- Added new dependencies including clsx, lucide-react, recharts, and various Radix UI components to improve UI functionality.
- Upgraded Tailwind CSS to version 4.0.0 and updated configuration to utilize CSS variables for theming and responsive design.
- Introduced global styles and improved accessibility features in the layout and components.
- Removed outdated login page and refactored authentication store for better state management.
- Enhanced API service with additional authentication methods and improved error handling.

These changes aim to modernize the web applications and improve user experience through better design and functionality.
2026-01-02 09:41:40 +07:00

13 lines
469 B
TypeScript

import { type ClassValue, clsx } from 'clsx';
/**
* EN: Utility function to merge class names with conditional logic
* VI: Hàm tiện ích để hợp nhất tên class với logic có điều kiện
*
* @param inputs - Class names or conditional class objects / Tên class hoặc object class có điều kiện
* @returns Merged class string / Chuỗi class đã được hợp nhất
*/
export function cn(...inputs: ClassValue[]) {
return clsx(inputs);
}