import { type VariantProps, cva } from 'class-variance-authority'

import { twJoin } from '@/utils'

export const rootStyles = cva(
	twJoin({
		tw: 'group/form-item',
		display: 'flex gap-4'
	}),
	{
		variants: {
			layout: {
				horizontal: '',
				vertical: 'form-vertical flex-col'
			}
		},
		defaultVariants: {
			layout: 'horizontal'
		}
	}
)

export type RootStylesProps = VariantProps<typeof rootStyles>
