From 7fc6f62504b85eb9054c82ee260568bee1f5b552 Mon Sep 17 00:00:00 2001 From: gabrieldallafavera Date: Wed, 18 Sep 2024 08:57:08 -0300 Subject: [PATCH] fix(ui): ajuste de className e style para checkbox e switch --- package.json | 2 +- src/components/ui/form/builder/form-control.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9fb6b0e..af7bc15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@continha/ui", - "version": "1.13.0", + "version": "1.13.1", "private": false, "repository": { "type": "git", diff --git a/src/components/ui/form/builder/form-control.tsx b/src/components/ui/form/builder/form-control.tsx index f9a7303..853a885 100644 --- a/src/components/ui/form/builder/form-control.tsx +++ b/src/components/ui/form/builder/form-control.tsx @@ -190,6 +190,8 @@ export function FormControl< aria-label={props.fieldConfig.label} aria-description={props.fieldConfig.helperText} disabled={disabled} + className={props.fieldConfig.className} + style={props.fieldConfig.style} /> ); } @@ -202,6 +204,8 @@ export function FormControl< disabled={disabled} checked={props.field.value} onCheckedChange={props.field.onChange} + className={props.fieldConfig.className} + style={props.fieldConfig.style} /> ); }