| 102 | } |
| 103 | |
| 104 | function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) { |
| 105 | return ( |
| 106 | <Label |
| 107 | data-slot="field-label" |
| 108 | className={cn( |
| 109 | "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", |
| 110 | "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4", |
| 111 | "has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10", |
| 112 | className, |
| 113 | )} |
| 114 | {...props} |
| 115 | /> |
| 116 | ); |
| 117 | } |
| 118 | |
| 119 | function FieldTitle({ className, ...props }: React.ComponentProps<"div">) { |
| 120 | return ( |