Remove unused dependencies
This commit is contained in:
@@ -13,7 +13,6 @@ The following UI components in `src/components/ui/` are derived from [shadcn/ui]
|
|||||||
- `popover.tsx`
|
- `popover.tsx`
|
||||||
- `select.tsx`
|
- `select.tsx`
|
||||||
- `separator.tsx`
|
- `separator.tsx`
|
||||||
- `slider.tsx`
|
|
||||||
- `switch.tsx`
|
- `switch.tsx`
|
||||||
- `tooltip.tsx`
|
- `tooltip.tsx`
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ src/
|
|||||||
│ ├── popover.tsx
|
│ ├── popover.tsx
|
||||||
│ ├── select.tsx
|
│ ├── select.tsx
|
||||||
│ ├── separator.tsx
|
│ ├── separator.tsx
|
||||||
│ ├── slider.tsx
|
|
||||||
│ ├── switch.tsx
|
│ ├── switch.tsx
|
||||||
│ └── tooltip.tsx
|
│ └── tooltip.tsx
|
||||||
├── hooks/ # Custom React hooks (TypeScript)
|
├── hooks/ # Custom React hooks (TypeScript)
|
||||||
|
|||||||
19
package.json
19
package.json
@@ -3,34 +3,23 @@
|
|||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hookform/resolvers": "^5.2.2",
|
|
||||||
"@radix-ui/react-label": "^2.1.8",
|
"@radix-ui/react-label": "^2.1.8",
|
||||||
"@radix-ui/react-popover": "^1.1.15",
|
"@radix-ui/react-popover": "^1.1.15",
|
||||||
"@radix-ui/react-select": "^2.2.6",
|
"@radix-ui/react-select": "^2.2.6",
|
||||||
"@radix-ui/react-separator": "^1.1.8",
|
"@radix-ui/react-separator": "^1.1.8",
|
||||||
"@radix-ui/react-slider": "^1.3.6",
|
|
||||||
"@radix-ui/react-slot": "^1.2.4",
|
"@radix-ui/react-slot": "^1.2.4",
|
||||||
"@radix-ui/react-switch": "^1.2.6",
|
"@radix-ui/react-switch": "^1.2.6",
|
||||||
"@radix-ui/react-tooltip": "^1.2.8",
|
"@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",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"lucide-react": "^0.554.0",
|
"lucide-react": "^0.554.0",
|
||||||
"npx": "^10.2.2",
|
|
||||||
"react": "^19.1.1",
|
"react": "^19.1.1",
|
||||||
"react-dom": "^19.1.1",
|
"react-dom": "^19.1.1",
|
||||||
"react-hook-form": "^7.66.1",
|
|
||||||
"react-is": "^19.2.0",
|
"react-is": "^19.2.0",
|
||||||
"react-scripts": "5.0.1",
|
"react-scripts": "5.0.1",
|
||||||
"recharts": "^3.3.0",
|
"recharts": "^3.3.0",
|
||||||
"tailwind-merge": "^3.4.0",
|
"tailwind-merge": "^3.4.0",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7"
|
||||||
"tw-animate-css": "^1.4.0",
|
|
||||||
"web-vitals": "^2.1.4",
|
|
||||||
"zod": "^4.1.13"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "cross-env HOST=0.0.0.0 BROWSER=none CHOKIDAR_USEPOLLING=true FAST_REFRESH=false react-scripts start",
|
"start": "cross-env HOST=0.0.0.0 BROWSER=none CHOKIDAR_USEPOLLING=true FAST_REFRESH=false react-scripts start",
|
||||||
@@ -59,6 +48,10 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@hint/configuration-web-recommended": "^8.2.24",
|
"@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/node": "^24.10.1",
|
||||||
"@types/react": "^19.2.7",
|
"@types/react": "^19.2.7",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
@@ -68,6 +61,6 @@
|
|||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
"puppeteer": "^24.27.0",
|
"puppeteer": "^24.27.0",
|
||||||
"tailwindcss": "^3.4.18",
|
"tailwindcss": "^3.4.18",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^5.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '.
|
|||||||
import { Switch } from './ui/switch';
|
import { Switch } from './ui/switch';
|
||||||
import { Label } from './ui/label';
|
import { Label } from './ui/label';
|
||||||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
|
||||||
import { Trash2, X } from 'lucide-react';
|
import { X } from 'lucide-react';
|
||||||
|
|
||||||
const DeviationList = ({
|
const DeviationList = ({
|
||||||
deviations,
|
deviations,
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ The following components are from [shadcn/ui](https://ui.shadcn.com) (MIT Licens
|
|||||||
- **`popover.tsx`** - Popover/dropdown container
|
- **`popover.tsx`** - Popover/dropdown container
|
||||||
- **`select.tsx`** - Select/dropdown menu
|
- **`select.tsx`** - Select/dropdown menu
|
||||||
- **`separator.tsx`** - Horizontal/vertical divider
|
- **`separator.tsx`** - Horizontal/vertical divider
|
||||||
- **`slider.tsx`** - Range slider input
|
|
||||||
- **`switch.tsx`** - Toggle switch
|
- **`switch.tsx`** - Toggle switch
|
||||||
- **`tooltip.tsx`** - Tooltip wrapper
|
- **`tooltip.tsx`** - Tooltip wrapper
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ const FormTimeInput = React.forwardRef<HTMLInputElement, TimeInputProps>(
|
|||||||
const [displayValue, setDisplayValue] = React.useState(value)
|
const [displayValue, setDisplayValue] = React.useState(value)
|
||||||
const [isPickerOpen, setIsPickerOpen] = React.useState(false)
|
const [isPickerOpen, setIsPickerOpen] = React.useState(false)
|
||||||
const [showError, setShowError] = React.useState(false)
|
const [showError, setShowError] = React.useState(false)
|
||||||
const [touched, setTouched] = React.useState(false)
|
|
||||||
const containerRef = React.useRef<HTMLDivElement>(null)
|
const containerRef = React.useRef<HTMLDivElement>(null)
|
||||||
const [pickerHours, pickerMinutes] = (value || "00:00").split(':').map(Number)
|
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 handleBlur = (e: React.FocusEvent<HTMLInputElement>) => {
|
||||||
const inputValue = e.target.value.trim()
|
const inputValue = e.target.value.trim()
|
||||||
setTouched(true)
|
|
||||||
setShowError(false)
|
setShowError(false)
|
||||||
|
|
||||||
if (inputValue === '') {
|
if (inputValue === '') {
|
||||||
|
|||||||
@@ -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 }
|
|
||||||
Reference in New Issue
Block a user