chore: update packages, remove deprecated dependencies, sync react version

This commit is contained in:
Borris 2025-05-18 10:39:06 +04:00
parent f82f416855
commit ee771ba636
11 changed files with 898 additions and 829 deletions

View File

@ -24,7 +24,7 @@ pnpm dev
To add components to your app, run the following command at the root of your `web` app: To add components to your app, run the following command at the root of your `web` app:
```bash ```bash
pnpm dlx shadcn@canary add button -c apps/web pnpm dlx shadcn@latest add button -c apps/web
``` ```
This will place the ui components in the `packages/ui/src/components` directory. This will place the ui components in the `packages/ui/src/components` directory.

View File

@ -1,9 +1,9 @@
import { Geist, Geist_Mono } from 'next/font/google'; import { Geist, Geist_Mono } from 'next/font/google';
import '@workspace/ui/globals.css'; import '@workspace/ui/globals.css';
// import "@/app/globals.css"
import { Providers } from '@/components/providers'; import { Providers } from '@/components/providers';
import { Metadata } from 'next'; import type { Metadata } from 'next';
const fontSans = Geist({ const fontSans = Geist({
subsets: ['latin'], subsets: ['latin'],

View File

@ -11,18 +11,18 @@
}, },
"dependencies": { "dependencies": {
"@workspace/ui": "workspace:*", "@workspace/ui": "workspace:*",
"lucide-react": "0.477.0", "lucide-react": "0.511.0",
"next-themes": "^0.4.4", "next-themes": "^0.4.6",
"next": "15.2.0", "next": "15.3.2",
"react": "19.0.0", "react": "19.1.0",
"react-dom": "19.0.0" "react-dom": "19.1.0"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/postcss": "^4", "@tailwindcss/postcss": "^4",
"@types/node": "^20", "@types/node": "^20",
"@types/react": "19.0.10", "@types/react": "^19.1.4",
"@types/react-dom": "19.0.4", "@types/react-dom": "^19.1.5",
"@workspace/eslint-config": "workspace:^", "@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*", "@workspace/typescript-config": "workspace:*",
"tailwindcss": "^4", "tailwindcss": "^4",
"typescript": "^5" "typescript": "^5"

View File

@ -11,9 +11,9 @@
"devDependencies": { "devDependencies": {
"@workspace/eslint-config": "workspace:*", "@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*", "@workspace/typescript-config": "workspace:*",
"prettier": "^3.5.1", "prettier": "^3.5.3",
"turbo": "^2.4.4", "turbo": "^2.5.3",
"typescript": "5.7.3" "typescript": "5.8.3"
}, },
"packageManager": "pnpm@9.12.3", "packageManager": "pnpm@9.12.3",
"engines": { "engines": {

View File

@ -9,17 +9,17 @@
"./react-internal": "./react-internal.js" "./react-internal": "./react-internal.js"
}, },
"devDependencies": { "devDependencies": {
"@next/eslint-plugin-next": "^15.2.0", "@next/eslint-plugin-next": "^15.3.2",
"@typescript-eslint/eslint-plugin": "^8.24.1", "@typescript-eslint/eslint-plugin": "^8.32.1",
"@typescript-eslint/parser": "^8.24.1", "@typescript-eslint/parser": "^8.32.1",
"eslint": "^9.20.1", "eslint": "^9.27.0",
"eslint-config-prettier": "^10.0.1", "eslint-config-prettier": "^10.1.5",
"eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-react": "^7.37.4", "eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-turbo": "^2.4.4", "eslint-plugin-turbo": "^2.5.3",
"globals": "^15.15.0", "globals": "^16.1.0",
"typescript": "^5.7.3", "typescript": "^5.8.3",
"typescript-eslint": "^8.24.1" "typescript-eslint": "^8.32.1"
} }
} }

View File

@ -14,26 +14,26 @@
"lint": "eslint . --max-warnings 0" "lint": "eslint . --max-warnings 0"
}, },
"dependencies": { "dependencies": {
"@radix-ui/react-dropdown-menu": "^2.1.6", "@radix-ui/react-dropdown-menu": "^2.1.14",
"@radix-ui/react-slot": "^1.1.2", "@radix-ui/react-slot": "^1.2.2",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"react": "^19.0.0", "react": "^19.1.0",
"react-dom": "^19.0.0", "react-dom": "^19.1.0",
"tailwind-merge": "^3.0.1", "tailwind-merge": "^3.3.0",
"tailwindcss-animate": "^1.0.7", "zod": "^3.24.4"
"zod": "^3.24.2"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/postcss": "^4", "@tailwindcss/postcss": "^4",
"@turbo/gen": "^2.4.2", "@turbo/gen": "^2.5.3",
"@types/node": "^22.13.4", "@types/node": "^20",
"@types/react": "^19", "@types/react": "^19.1.4",
"@types/react-dom": "^19", "@types/react-dom": "^19.1.5",
"@workspace/eslint-config": "workspace:*", "@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*", "@workspace/typescript-config": "workspace:*",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"lucide-react": "0.477.0", "lucide-react": "0.511.0",
"tailwindcss": "^4", "tailwindcss": "^4",
"tw-animate-css": "^1.3.0",
"typescript": "^5" "typescript": "^5"
} }
} }

View File

@ -1,4 +1,4 @@
import * as React from 'react'; import type * as React from 'react';
import { Slot } from '@radix-ui/react-slot'; import { Slot } from '@radix-ui/react-slot';
import { cva, type VariantProps } from 'class-variance-authority'; import { cva, type VariantProps } from 'class-variance-authority';

View File

@ -1,6 +1,6 @@
'use client'; 'use client';
import * as React from 'react'; import type * as React from 'react';
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'; import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react'; import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react';

View File

@ -1,113 +1,112 @@
@import 'tailwindcss'; @import 'tailwindcss';
@import 'tw-animate-css';
@source "../../../../packages/ui/src/**/*.{js,ts,jsx,tsx}"; @source "../../../../packages/ui/src/**/*.{js,ts,jsx,tsx}";
@plugin "tailwindcss-animate";
@custom-variant dark (&:is(.dark *)); @custom-variant dark (&:is(.dark *));
@theme { @theme {
--font-sans: var(--font-geist-sans); --font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono); --font-mono: var(--font-geist-mono);
} }
:root { :root {
--background: hsl(0 0% 100%); --background: hsl(0 0% 100%);
--foreground: hsl(0 0% 3.9%); --foreground: hsl(0 0% 3.9%);
--card: hsl(0 0% 100%); --card: hsl(0 0% 100%);
--card-foreground: hsl(0 0% 3.9%); --card-foreground: hsl(0 0% 3.9%);
--popover: hsl(0 0% 100%); --popover: hsl(0 0% 100%);
--popover-foreground: hsl(0 0% 3.9%); --popover-foreground: hsl(0 0% 3.9%);
--primary: hsl(0 0% 9%); --primary: hsl(0 0% 9%);
--primary-foreground: hsl(0 0% 98%); --primary-foreground: hsl(0 0% 98%);
--secondary: hsl(0 0% 96.1%); --secondary: hsl(0 0% 96.1%);
--secondary-foreground: hsl(0 0% 9%); --secondary-foreground: hsl(0 0% 9%);
--muted: hsl(0 0% 96.1%); --muted: hsl(0 0% 96.1%);
--muted-foreground: hsl(0 0% 45.1%); --muted-foreground: hsl(0 0% 45.1%);
--accent: hsl(0 0% 96.1%); --accent: hsl(0 0% 96.1%);
--accent-foreground: hsl(0 0% 9%); --accent-foreground: hsl(0 0% 9%);
--destructive: hsl(0 84.2% 60.2%); --destructive: hsl(0 84.2% 60.2%);
--destructive-foreground: hsl(0 0% 98%); --destructive-foreground: hsl(0 0% 98%);
--border: hsl(0 0% 89.8%); --border: hsl(0 0% 89.8%);
--input: hsl(0 0% 89.8%); --input: hsl(0 0% 89.8%);
--ring: hsl(0 0% 3.9%); --ring: hsl(0 0% 3.9%);
--chart-1: hsl(12 76% 61%); --chart-1: hsl(12 76% 61%);
--chart-2: hsl(173 58% 39%); --chart-2: hsl(173 58% 39%);
--chart-3: hsl(197 37% 24%); --chart-3: hsl(197 37% 24%);
--chart-4: hsl(43 74% 66%); --chart-4: hsl(43 74% 66%);
--chart-5: hsl(27 87% 67%); --chart-5: hsl(27 87% 67%);
--radius: 0.6rem; --radius: 0.6rem;
} }
.dark { .dark {
--background: hsl(0 0% 3.9%); --background: hsl(0 0% 3.9%);
--foreground: hsl(0 0% 98%); --foreground: hsl(0 0% 98%);
--card: hsl(0 0% 3.9%); --card: hsl(0 0% 3.9%);
--card-foreground: hsl(0 0% 98%); --card-foreground: hsl(0 0% 98%);
--popover: hsl(0 0% 3.9%); --popover: hsl(0 0% 3.9%);
--popover-foreground: hsl(0 0% 98%); --popover-foreground: hsl(0 0% 98%);
--primary: hsl(0 0% 98%); --primary: hsl(0 0% 98%);
--primary-foreground: hsl(0 0% 9%); --primary-foreground: hsl(0 0% 9%);
--secondary: hsl(0 0% 14.9%); --secondary: hsl(0 0% 14.9%);
--secondary-foreground: hsl(0 0% 98%); --secondary-foreground: hsl(0 0% 98%);
--muted: hsl(0 0% 14.9%); --muted: hsl(0 0% 14.9%);
--muted-foreground: hsl(0 0% 63.9%); --muted-foreground: hsl(0 0% 63.9%);
--accent: hsl(0 0% 14.9%); --accent: hsl(0 0% 14.9%);
--accent-foreground: hsl(0 0% 98%); --accent-foreground: hsl(0 0% 98%);
--destructive: hsl(0 62.8% 30.6%); --destructive: hsl(0 62.8% 30.6%);
--destructive-foreground: hsl(0 0% 98%); --destructive-foreground: hsl(0 0% 98%);
--border: hsl(0 0% 14.9%); --border: hsl(0 0% 14.9%);
--input: hsl(0 0% 14.9%); --input: hsl(0 0% 14.9%);
--ring: hsl(0 0% 83.1%); --ring: hsl(0 0% 83.1%);
--chart-1: hsl(220 70% 50%); --chart-1: hsl(220 70% 50%);
--chart-2: hsl(160 60% 45%); --chart-2: hsl(160 60% 45%);
--chart-3: hsl(30 80% 55%); --chart-3: hsl(30 80% 55%);
--chart-4: hsl(280 65% 60%); --chart-4: hsl(280 65% 60%);
--chart-5: hsl(340 75% 55%); --chart-5: hsl(340 75% 55%);
} }
@theme inline { @theme inline {
--color-background: var(--background); --color-background: var(--background);
--color-foreground: var(--foreground); --color-foreground: var(--foreground);
--color-card: var(--card); --color-card: var(--card);
--color-card-foreground: var(--card-foreground); --color-card-foreground: var(--card-foreground);
--color-popover: var(--popover); --color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground); --color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary); --color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground); --color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary); --color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground); --color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted); --color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground); --color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent); --color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground); --color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive); --color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground); --color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border); --color-border: var(--border);
--color-input: var(--input); --color-input: var(--input);
--color-ring: var(--ring); --color-ring: var(--ring);
--color-chart-1: var(--chart-1); --color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2); --color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3); --color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4); --color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5); --color-chart-5: var(--chart-5);
--radius-sm: calc(var(--radius) - 4px); --radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px); --radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius); --radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px); --radius-xl: calc(var(--radius) + 4px);
} }
@layer base { @layer base {
* { * {
@apply border-border outline-ring/50; @apply border-border outline-ring/50;
} }
body { body {
@apply bg-background text-foreground; @apply bg-background text-foreground;
} }
/* https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor */ /* https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor */
button:not(:disabled), button:not(:disabled),
[role='button']:not(:disabled) { [role='button']:not(:disabled) {
cursor: pointer; cursor: pointer;
} }
} }

View File

@ -1,7 +1,6 @@
{ {
"extends": "@workspace/typescript-config/react-library.json", "extends": "@workspace/typescript-config/react-library.json",
"compilerOptions": { "compilerOptions": {
//"outDir": "dist"
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@workspace/ui/*": ["./src/*"] "@workspace/ui/*": ["./src/*"]

File diff suppressed because it is too large Load Diff