From ad066b1ad0f2ae564551b47f66e218b26e0beeb4 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 26 Jun 2026 11:21:52 +0200 Subject: [PATCH] . --- .../src/components/form/select-field.tsx | 93 +++++++++---------- 1 file changed, 45 insertions(+), 48 deletions(-) diff --git a/packages/rdx-ui/src/components/form/select-field.tsx b/packages/rdx-ui/src/components/form/select-field.tsx index 2d827994..6a4323f1 100644 --- a/packages/rdx-ui/src/components/form/select-field.tsx +++ b/packages/rdx-ui/src/components/form/select-field.tsx @@ -8,7 +8,6 @@ import { SelectTrigger, } from "@repo/shadcn-ui/components"; import { cn } from "@repo/shadcn-ui/lib/utils"; -import { XIcon } from "lucide-react"; import React from "react"; import { Controller, type FieldPath, type FieldValues, useFormContext } from "react-hook-form"; @@ -67,7 +66,6 @@ export function SelectField({ clearable = false, clearLabel = "Sin selección", - clearButtonLabel = "Quitar selección", emptyValue = null, placeholder, @@ -128,55 +126,27 @@ export function SelectField({ }} value={fieldValue} > -
- + - - {selectedItem?.label ?? placeholder} - - - - {clearable && selectedItem && !isDisabled ? ( - - ) : null} -
+ {selectedItem?.label ?? placeholder} + + {clearable ? ( @@ -204,3 +174,30 @@ export function SelectField({ /> ); } + +/* + {clearable && selectedItem && !isDisabled ? ( + + ) : null} +*/