mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-24 10:05:47 -05:00
Add WireGuard networking fields (interface, management pool, listen port), container network pool, coold/corrosion versioning, and builder CPU quota to clusters and servers via new migrations and model fillables. Expose full cluster and server CRUD on the Clusters page with private key selection, pending state tracking, and new form primitives (Field, Input, Textarea). Add server status check fields and a lima test VM config for development.
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import type * as React from 'react';
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
type FieldProps = React.ComponentProps<'label'>;
|
|
|
|
function Field({ className, ...props }: FieldProps) {
|
|
return <label data-slot="field" className={cn('flex flex-col gap-1 text-sm', className)} {...props} />;
|
|
}
|
|
|
|
type FieldLabelProps = React.ComponentProps<'span'>;
|
|
|
|
function FieldLabel({ className, ...props }: FieldLabelProps) {
|
|
return <span data-slot="field-label" className={cn('font-medium text-foreground', className)} {...props} />;
|
|
}
|
|
|
|
type FieldErrorProps = React.ComponentProps<'span'> & {
|
|
message?: string;
|
|
};
|
|
|
|
function FieldError({ className, message, ...props }: FieldErrorProps) {
|
|
return (
|
|
<span
|
|
aria-hidden={message ? undefined : true}
|
|
aria-live="polite"
|
|
data-slot="field-error"
|
|
className={cn('min-h-4 text-xs leading-4 text-destructive', className)}
|
|
{...props}
|
|
>
|
|
{message ?? ''}
|
|
</span>
|
|
);
|
|
}
|
|
|
|
export { Field, FieldError, FieldLabel };
|