From 79068c0faa0e0827a0177c85ff6592645bcf98a8 Mon Sep 17 00:00:00 2001 From: wisecolt Date: Fri, 9 Jan 2026 18:26:46 +0300 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20se=C3=A7im=20bile=C5=9Feninin?= =?UTF-8?q?=20g=C3=B6rsel=20etkile=C5=9Fimini=20modernize=20et.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/package.json | 1 + apps/web/src/components/ui/Select.tsx | 24 ++++++++++++++++++------ apps/web/src/pages/TimerPage.tsx | 4 ++-- apps/web/tailwind.config.cjs | 16 +++++++++++++++- pnpm-lock.yaml | 12 ++++++++++++ 5 files changed, 48 insertions(+), 9 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index 12c9bd5..40f4d91 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -28,6 +28,7 @@ "autoprefixer": "^10.4.19", "postcss": "^8.4.39", "tailwindcss": "^3.4.6", + "tailwindcss-animate": "^1.0.7", "typescript": "^5.5.3", "vite": "^5.3.3" } diff --git a/apps/web/src/components/ui/Select.tsx b/apps/web/src/components/ui/Select.tsx index c544e74..b53576c 100644 --- a/apps/web/src/components/ui/Select.tsx +++ b/apps/web/src/components/ui/Select.tsx @@ -51,7 +51,17 @@ export const Select = SelectPrimitive.Root; export const SelectGroup = SelectPrimitive.Group; -export const SelectValue = SelectPrimitive.Value; +export const SelectValue = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)); +SelectValue.displayName = "SelectValue"; export const SelectLabel = SelectPrimitive.Label; @@ -62,14 +72,14 @@ export const SelectTrigger = React.forwardRef< - {children} + {children} - + )); @@ -117,7 +127,9 @@ export const SelectContent = React.forwardRef< {children} diff --git a/apps/web/src/pages/TimerPage.tsx b/apps/web/src/pages/TimerPage.tsx index c4afeaa..96fb4fd 100644 --- a/apps/web/src/pages/TimerPage.tsx +++ b/apps/web/src/pages/TimerPage.tsx @@ -352,10 +352,10 @@ export const TimerPage = () => { } }} > - + - + {sortOptions.map((option) => ( = 0.4'} + tailwindcss-animate@1.0.7: + resolution: {integrity: sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==} + peerDependencies: + tailwindcss: '>=3.0.0 || insiders' + tailwindcss@3.4.19: resolution: {integrity: sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==} engines: {node: '>=14.0.0'} @@ -5210,6 +5218,10 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + tailwindcss-animate@1.0.7(tailwindcss@3.4.19): + dependencies: + tailwindcss: 3.4.19 + tailwindcss@3.4.19: dependencies: '@alloc/quick-lru': 5.2.0