From 94ddb3496b4d3ad508400d0c01cfbefd75208a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez?= Date: Tue, 7 May 2024 18:56:37 +0200 Subject: [PATCH] analysis: grouped categories selector --- client/src/components/ui/select.tsx | 33 ++-- .../analysis-filters/indicators/component.tsx | 88 ---------- .../analysis-filters/indicators/index.tsx | 153 +++++++++++++++++- client/src/types.d.ts | 1 + 4 files changed, 171 insertions(+), 104 deletions(-) delete mode 100644 client/src/containers/analysis-visualization/analysis-filters/indicators/component.tsx diff --git a/client/src/components/ui/select.tsx b/client/src/components/ui/select.tsx index 989cba607..887be33e7 100644 --- a/client/src/components/ui/select.tsx +++ b/client/src/components/ui/select.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import * as SelectPrimitive from '@radix-ui/react-select'; -import { Check, ChevronDown, ChevronUp } from 'lucide-react'; +import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/solid'; import { cn } from '@/lib/utils'; @@ -17,14 +17,23 @@ const SelectTrigger = React.forwardRef< span]:line-clamp-1', + 'group flex h-10 w-full items-center justify-between rounded-md border border-gray-200 bg-background px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:border-navy-400 focus:outline-none focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className, )} {...props} > {children} - + <> + )); @@ -39,7 +48,7 @@ const SelectScrollUpButton = React.forwardRef< className={cn('flex cursor-default items-center justify-center py-1', className)} {...props} > - +