Remove unused dependencies

This commit is contained in:
2025-11-28 10:13:46 +00:00
parent 032b966a9d
commit 239e0e64da
7 changed files with 7 additions and 45 deletions

View File

@@ -13,7 +13,6 @@ The following UI components in `src/components/ui/` are derived from [shadcn/ui]
- `popover.tsx`
- `select.tsx`
- `separator.tsx`
- `slider.tsx`
- `switch.tsx`
- `tooltip.tsx`

View File

@@ -25,7 +25,6 @@ src/
│ ├── popover.tsx
│ ├── select.tsx
│ ├── separator.tsx
│ ├── slider.tsx
│ ├── switch.tsx
│ └── tooltip.tsx
├── hooks/ # Custom React hooks (TypeScript)

View File

@@ -3,34 +3,23 @@
"version": "0.1.1",
"private": true,
"dependencies": {
"@hookform/resolvers": "^5.2.2",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slider": "^1.3.6",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tooltip": "^1.2.8",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^13.5.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.554.0",
"npx": "^10.2.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-hook-form": "^7.66.1",
"react-is": "^19.2.0",
"react-scripts": "5.0.1",
"recharts": "^3.3.0",
"tailwind-merge": "^3.4.0",
"tailwindcss-animate": "^1.0.7",
"tw-animate-css": "^1.4.0",
"web-vitals": "^2.1.4",
"zod": "^4.1.13"
"tailwindcss-animate": "^1.0.7"
},
"scripts": {
"start": "cross-env HOST=0.0.0.0 BROWSER=none CHOKIDAR_USEPOLLING=true FAST_REFRESH=false react-scripts start",
@@ -59,6 +48,10 @@
},
"devDependencies": {
"@hint/configuration-web-recommended": "^8.2.24",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.10.1",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
@@ -68,6 +61,6 @@
"postcss": "^8.5.6",
"puppeteer": "^24.27.0",
"tailwindcss": "^3.4.18",
"typescript": "^4.9.5"
"typescript": "^5.9.3"
}
}

View File

@@ -18,7 +18,7 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '.
import { Switch } from './ui/switch';
import { Label } from './ui/label';
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
import { Trash2, X } from 'lucide-react';
import { X } from 'lucide-react';
const DeviationList = ({
deviations,

View File

@@ -14,7 +14,6 @@ The following components are from [shadcn/ui](https://ui.shadcn.com) (MIT Licens
- **`popover.tsx`** - Popover/dropdown container
- **`select.tsx`** - Select/dropdown menu
- **`separator.tsx`** - Horizontal/vertical divider
- **`slider.tsx`** - Range slider input
- **`switch.tsx`** - Toggle switch
- **`tooltip.tsx`** - Tooltip wrapper

View File

@@ -28,7 +28,6 @@ const FormTimeInput = React.forwardRef<HTMLInputElement, TimeInputProps>(
const [displayValue, setDisplayValue] = React.useState(value)
const [isPickerOpen, setIsPickerOpen] = React.useState(false)
const [showError, setShowError] = React.useState(false)
const [touched, setTouched] = React.useState(false)
const containerRef = React.useRef<HTMLDivElement>(null)
const [pickerHours, pickerMinutes] = (value || "00:00").split(':').map(Number)
@@ -42,7 +41,6 @@ const FormTimeInput = React.forwardRef<HTMLInputElement, TimeInputProps>(
const handleBlur = (e: React.FocusEvent<HTMLInputElement>) => {
const inputValue = e.target.value.trim()
setTouched(true)
setShowError(false)
if (inputValue === '') {

View File

@@ -1,26 +0,0 @@
import * as React from "react"
import * as SliderPrimitive from "@radix-ui/react-slider"
import { cn } from "../../lib/utils"
const Slider = React.forwardRef<
React.ElementRef<typeof SliderPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
>(({ className, ...props }, ref) => (
<SliderPrimitive.Root
ref={ref}
className={cn(
"relative flex w-full touch-none select-none items-center",
className
)}
{...props}
>
<SliderPrimitive.Track className="relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20">
<SliderPrimitive.Range className="absolute h-full bg-primary" />
</SliderPrimitive.Track>
<SliderPrimitive.Thumb className="block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" />
</SliderPrimitive.Root>
))
Slider.displayName = SliderPrimitive.Root.displayName
export { Slider }