import clsx from 'clsx';
export const generateBorder = (error) => {
    const labelProps = {
        className: clsx('pointer-events-none absolute -top-2 left-[1.0625rem] truncate overflow-visible px-1 text-xs leading-tight transition-all select-none', 'peer-disabled:text-gray-3 peer-not-empty:-top-2 peer-not-empty:text-xs peer-placeholder-shown:top-2.5 peer-placeholder-shown:text-sm peer-placeholder-shown:leading-tight peer-autofill:-top-2 peer-autofill:text-xs peer-focus:-top-2 peer-focus:text-xs', error ? 'text-error' : 'text-black'),
    };
    const fieldsetClasses = clsx('pointer-events-none absolute -top-2 left-0 h-[calc(100%+.5rem)] w-full rounded-full border px-4', 'peer-disabled:border-gray-3 peer-not-empty:*:max-w-full peer-not-empty:*:px-1 peer-placeholder-shown:*:max-w-0 peer-placeholder-shown:*:px-0 peer-autofill:max-w-full peer-autofill:*:px-1 peer-focus:*:max-w-full peer-focus:*:px-1', error ? 'border-error' : 'border-black');
    const legendClasses = clsx('invisible max-w-full px-1 text-left text-xs text-nowrap transition-all');
    return {
        labelProps,
        fieldsetClasses,
        legendClasses,
    };
};
//# sourceMappingURL=border.js.map