almost done

This commit is contained in:
2025-09-08 11:25:11 -05:00
parent f315412b03
commit 1d82c18179
11 changed files with 330 additions and 295 deletions

View File

@@ -1,5 +1,6 @@
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
import { type Timestamp } from '@/lib/types';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
@@ -19,11 +20,6 @@ export const ccn = ({
return twMerge(className, context ? on : off);
};
export const PASSWORD_MIN = 8;
export const PASSWORD_MAX = 100;
export const PASSWORD_REGEX = /^(?=.{8,100}$)(?!.*\s)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\p{P}\p{S}]).*$/u;
type Timestamp = number | string | Date;
const toDate = (ts: Timestamp): Date | null => {
if (ts instanceof Date) return isNaN(ts.getTime()) ? null : ts;