From f794ed73006b45023821adc917517c95a2f291a9 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 7 Feb 2026 10:19:47 +0000 Subject: [PATCH] Split icons --- frontend/src/components/ui/Icons.tsx | 90 ------------------- .../src/components/ui/icons/ChevronIcon.tsx | 20 +++++ .../src/components/ui/icons/CloseIcon.tsx | 17 ++++ frontend/src/components/ui/icons/EyeIcon.tsx | 18 ++++ .../src/components/ui/icons/FilterIcon.tsx | 15 ++++ frontend/src/components/ui/icons/InfoIcon.tsx | 12 +++ .../src/components/ui/icons/LightbulbIcon.tsx | 15 ++++ frontend/src/components/ui/icons/PlusIcon.tsx | 11 +++ frontend/src/components/ui/icons/index.ts | 7 ++ 9 files changed, 115 insertions(+), 90 deletions(-) delete mode 100644 frontend/src/components/ui/Icons.tsx create mode 100644 frontend/src/components/ui/icons/ChevronIcon.tsx create mode 100644 frontend/src/components/ui/icons/CloseIcon.tsx create mode 100644 frontend/src/components/ui/icons/EyeIcon.tsx create mode 100644 frontend/src/components/ui/icons/FilterIcon.tsx create mode 100644 frontend/src/components/ui/icons/InfoIcon.tsx create mode 100644 frontend/src/components/ui/icons/LightbulbIcon.tsx create mode 100644 frontend/src/components/ui/icons/PlusIcon.tsx create mode 100644 frontend/src/components/ui/icons/index.ts diff --git a/frontend/src/components/ui/Icons.tsx b/frontend/src/components/ui/Icons.tsx deleted file mode 100644 index f81acc2..0000000 --- a/frontend/src/components/ui/Icons.tsx +++ /dev/null @@ -1,90 +0,0 @@ -interface IconProps { - className?: string; -} - -export function CloseIcon({ className = 'w-4 h-4' }: IconProps) { - return ( - - - - ); -} - -export function InfoIcon({ className = 'w-3.5 h-3.5' }: IconProps) { - return ( - - - - - ); -} - -export function EyeIcon({ filled, className = 'w-3.5 h-3.5' }: IconProps & { filled: boolean }) { - return ( - - - - - ); -} - -export function PlusIcon({ className = 'w-3.5 h-3.5' }: IconProps) { - return ( - - - - ); -} - -export function ChevronIcon({ - direction, - className = 'w-4 h-4', -}: IconProps & { direction: 'left' | 'right' | 'up' | 'down' }) { - const paths: Record = { - left: 'M15 19l-7-7 7-7', - right: 'M9 5l7 7-7 7', - up: 'M18 15l-6-6-6 6', - down: 'M6 9l6 6 6-6', - }; - return ( - - - - ); -} - -export function FilterIcon({ className = 'w-8 h-8' }: IconProps) { - return ( - - - - ); -} - -export function LightbulbIcon({ className = 'w-4 h-4' }: IconProps) { - return ( - - - - ); -} diff --git a/frontend/src/components/ui/icons/ChevronIcon.tsx b/frontend/src/components/ui/icons/ChevronIcon.tsx new file mode 100644 index 0000000..261c035 --- /dev/null +++ b/frontend/src/components/ui/icons/ChevronIcon.tsx @@ -0,0 +1,20 @@ +interface IconProps { + className?: string; +} + +export function ChevronIcon({ + direction, + className = 'w-4 h-4', +}: IconProps & { direction: 'left' | 'right' | 'up' | 'down' }) { + const paths: Record = { + left: 'M15 19l-7-7 7-7', + right: 'M9 5l7 7-7 7', + up: 'M18 15l-6-6-6 6', + down: 'M6 9l6 6 6-6', + }; + return ( + + + + ); +} diff --git a/frontend/src/components/ui/icons/CloseIcon.tsx b/frontend/src/components/ui/icons/CloseIcon.tsx new file mode 100644 index 0000000..09edd7f --- /dev/null +++ b/frontend/src/components/ui/icons/CloseIcon.tsx @@ -0,0 +1,17 @@ +interface IconProps { + className?: string; +} + +export function CloseIcon({ className = 'w-4 h-4' }: IconProps) { + return ( + + + + ); +} diff --git a/frontend/src/components/ui/icons/EyeIcon.tsx b/frontend/src/components/ui/icons/EyeIcon.tsx new file mode 100644 index 0000000..ae8a7ec --- /dev/null +++ b/frontend/src/components/ui/icons/EyeIcon.tsx @@ -0,0 +1,18 @@ +interface IconProps { + className?: string; +} + +export function EyeIcon({ filled, className = 'w-3.5 h-3.5' }: IconProps & { filled: boolean }) { + return ( + + + + + ); +} diff --git a/frontend/src/components/ui/icons/FilterIcon.tsx b/frontend/src/components/ui/icons/FilterIcon.tsx new file mode 100644 index 0000000..ec87459 --- /dev/null +++ b/frontend/src/components/ui/icons/FilterIcon.tsx @@ -0,0 +1,15 @@ +interface IconProps { + className?: string; +} + +export function FilterIcon({ className = 'w-8 h-8' }: IconProps) { + return ( + + + + ); +} diff --git a/frontend/src/components/ui/icons/InfoIcon.tsx b/frontend/src/components/ui/icons/InfoIcon.tsx new file mode 100644 index 0000000..bab8edd --- /dev/null +++ b/frontend/src/components/ui/icons/InfoIcon.tsx @@ -0,0 +1,12 @@ +interface IconProps { + className?: string; +} + +export function InfoIcon({ className = 'w-3.5 h-3.5' }: IconProps) { + return ( + + + + + ); +} diff --git a/frontend/src/components/ui/icons/LightbulbIcon.tsx b/frontend/src/components/ui/icons/LightbulbIcon.tsx new file mode 100644 index 0000000..7d60a5a --- /dev/null +++ b/frontend/src/components/ui/icons/LightbulbIcon.tsx @@ -0,0 +1,15 @@ +interface IconProps { + className?: string; +} + +export function LightbulbIcon({ className = 'w-4 h-4' }: IconProps) { + return ( + + + + ); +} diff --git a/frontend/src/components/ui/icons/PlusIcon.tsx b/frontend/src/components/ui/icons/PlusIcon.tsx new file mode 100644 index 0000000..8fdb1c6 --- /dev/null +++ b/frontend/src/components/ui/icons/PlusIcon.tsx @@ -0,0 +1,11 @@ +interface IconProps { + className?: string; +} + +export function PlusIcon({ className = 'w-3.5 h-3.5' }: IconProps) { + return ( + + + + ); +} diff --git a/frontend/src/components/ui/icons/index.ts b/frontend/src/components/ui/icons/index.ts new file mode 100644 index 0000000..1c38057 --- /dev/null +++ b/frontend/src/components/ui/icons/index.ts @@ -0,0 +1,7 @@ +export { CloseIcon } from './CloseIcon'; +export { InfoIcon } from './InfoIcon'; +export { EyeIcon } from './EyeIcon'; +export { PlusIcon } from './PlusIcon'; +export { ChevronIcon } from './ChevronIcon'; +export { FilterIcon } from './FilterIcon'; +export { LightbulbIcon } from './LightbulbIcon';