mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 22:24:34 +00:00
- Add KiosksManagement component with full CRUD for kiosks - Add ScheduleManagement for staff schedules with break reminders - Update booking flow to allow artist selection by customers - Add staff_services API for assigning services to artists - Update staff management UI with service assignment dialog - Add auto-break reminder when schedule >= 8 hours - Update availability API to filter artists by service - Add kiosk management to Aperture dashboard - Clean up ralphy artifacts and logs
16 lines
836 B
TypeScript
16 lines
836 B
TypeScript
import { type ClassValue, clsx } from "clsx"
|
|
import { twMerge } from "tailwind-merge"
|
|
|
|
/**
|
|
* @description Utility function that merges and deduplicates CSS class names using clsx and tailwind-merge
|
|
* @param {ClassValue[]} inputs - Array of class name values (strings, objects, arrays, or falsy values)
|
|
* @returns {string} - Merged CSS class string with Tailwind class conflicts resolved
|
|
* @example cn('px-4 py-2', { 'bg-blue-500': true }, ['text-white', 'font-bold'])
|
|
* @audit BUSINESS RULE: Resolves Tailwind CSS class conflicts by letting later classes override earlier ones
|
|
* @audit PERFORMANCE: Optimized for frequent use in component className props
|
|
* @audit Validate: Handles all clsx input types (strings, objects, arrays, nested objects)
|
|
*/
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs))
|
|
}
|