- Added new dependencies for drag-and-drop functionality with @dnd-kit packages. - Updated package versions for @tanstack/react-virtual and date-fns. - Refactored AppShell component to utilize AppSidebar and SiteHeader for improved layout. - Enhanced Frame component with new theming capabilities and improved structure. - Introduced filtering capabilities in Agents and Lists pages with new UI elements. - Added new utility functions for authentication claims management. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
745 B
TypeScript
36 lines
745 B
TypeScript
import type { ReactNode } from 'react'
|
|
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldError,
|
|
FieldLabel,
|
|
} from '@evofw/ui/components/field'
|
|
import { cn } from '@evofw/ui/lib/utils'
|
|
|
|
interface FormFieldSimpleProps {
|
|
label: string
|
|
htmlFor: string
|
|
error?: { message?: string }
|
|
hint?: string
|
|
className?: string
|
|
children: ReactNode
|
|
}
|
|
|
|
export function FormFieldSimple({
|
|
label,
|
|
htmlFor,
|
|
error,
|
|
hint,
|
|
className,
|
|
children,
|
|
}: FormFieldSimpleProps) {
|
|
return (
|
|
<Field data-invalid={!!error} className={cn(className)}>
|
|
<FieldLabel htmlFor={htmlFor}>{label}</FieldLabel>
|
|
{children}
|
|
{hint && !error ? <FieldDescription>{hint}</FieldDescription> : null}
|
|
<FieldError errors={[error]} />
|
|
</Field>
|
|
)
|
|
}
|