From 145a6fce8fae5e7d2dd29144fd5153066e5a7e2f Mon Sep 17 00:00:00 2001 From: Egutierrez Date: Fri, 3 Apr 2026 15:02:24 +0200 Subject: [PATCH] refactor: migrar Select y SimpleSelect a native HTML select Select reescrito de @base-ui/react primitives a / directamente sin intermediarios. Checkbox corregido: import CheckboxIndicator separado reemplazado por CheckboxPrimitive.Indicator para consistencia. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/functions/ui/checkbox.tsx | 5 +- frontend/functions/ui/select.tsx | 139 ++++++++++++------------ frontend/functions/ui/simple_select.tsx | 76 +++++++------ 3 files changed, 115 insertions(+), 105 deletions(-) diff --git a/frontend/functions/ui/checkbox.tsx b/frontend/functions/ui/checkbox.tsx index 117afce8..e129c1c7 100644 --- a/frontend/functions/ui/checkbox.tsx +++ b/frontend/functions/ui/checkbox.tsx @@ -1,6 +1,5 @@ import * as React from "react" import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox" -import { CheckboxIndicator } from "@base-ui/react/checkbox" import { cn } from "../core/cn" interface CheckboxProps extends CheckboxPrimitive.Root.Props { @@ -30,7 +29,7 @@ function Checkbox({ className, label, id, indeterminate, ...props }: CheckboxPro indeterminate={indeterminate} {...props} > - @@ -60,7 +59,7 @@ function Checkbox({ className, label, id, indeterminate, ...props }: CheckboxPro )} - + {label && (