diff --git a/THIRD_PARTY_LICENSES.md b/THIRD_PARTY_LICENSES.md index 106c762..f9411a6 100644 --- a/THIRD_PARTY_LICENSES.md +++ b/THIRD_PARTY_LICENSES.md @@ -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` diff --git a/docs/2025-10-18_MODULAR_STRUCTURE.md b/docs/2025-10-18_MODULAR_STRUCTURE.md index 513214c..344772a 100644 --- a/docs/2025-10-18_MODULAR_STRUCTURE.md +++ b/docs/2025-10-18_MODULAR_STRUCTURE.md @@ -25,7 +25,6 @@ src/ │ ├── popover.tsx │ ├── select.tsx │ ├── separator.tsx -│ ├── slider.tsx │ ├── switch.tsx │ └── tooltip.tsx ├── hooks/ # Custom React hooks (TypeScript) diff --git a/package.json b/package.json index 3f848fe..d49a9d6 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/components/deviation-list.tsx b/src/components/deviation-list.tsx index 7308f85..696f88a 100644 --- a/src/components/deviation-list.tsx +++ b/src/components/deviation-list.tsx @@ -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, diff --git a/src/components/ui/README.md b/src/components/ui/README.md index 541cbc0..1759262 100644 --- a/src/components/ui/README.md +++ b/src/components/ui/README.md @@ -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 diff --git a/src/components/ui/form-time-input.tsx b/src/components/ui/form-time-input.tsx index 514156c..e561b10 100644 --- a/src/components/ui/form-time-input.tsx +++ b/src/components/ui/form-time-input.tsx @@ -28,7 +28,6 @@ const FormTimeInput = React.forwardRef( 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(null) const [pickerHours, pickerMinutes] = (value || "00:00").split(':').map(Number) @@ -42,7 +41,6 @@ const FormTimeInput = React.forwardRef( const handleBlur = (e: React.FocusEvent) => { const inputValue = e.target.value.trim() - setTouched(true) setShowError(false) if (inputValue === '') { diff --git a/src/components/ui/slider.tsx b/src/components/ui/slider.tsx deleted file mode 100644 index a48b2c2..0000000 --- a/src/components/ui/slider.tsx +++ /dev/null @@ -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, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - - - - - - -)) -Slider.displayName = SliderPrimitive.Root.displayName - -export { Slider }