Commit 274b1103 by Moorthy G

chore: upgrade dependencies

parent b64d4793
import Link from 'next/link'; import { LinkButton } from '@/components/base/LinkButton';
import { Button } from "@heroui/button";
const AnotherPage = () => { const AnotherPage = () => {
return ( return (
...@@ -8,9 +7,9 @@ const AnotherPage = () => { ...@@ -8,9 +7,9 @@ const AnotherPage = () => {
<h3 className="text-3xl text-gray-600 font-semibold mb-5 px-5"> <h3 className="text-3xl text-gray-600 font-semibold mb-5 px-5">
You&lsquo;ve landed on another page You&lsquo;ve landed on another page
</h3> </h3>
<Button as={Link} href="/" color="primary" size="lg"> <LinkButton href="/" color="primary" size="lg">
Navigate home page Navigate home page
</Button> </LinkButton>
</center> </center>
</div> </div>
); );
......
import Image from 'next/image'; import Image from 'next/image';
import Link from 'next/link'; import { LinkButton } from '@/components/base/LinkButton';
import { Button } from '@heroui/button';
const HomePage = () => { const HomePage = () => {
return ( return (
...@@ -43,9 +42,9 @@ const HomePage = () => { ...@@ -43,9 +42,9 @@ const HomePage = () => {
/> />
</div> </div>
</div> </div>
<Button as={Link} href="/another" color="primary" size="lg"> <LinkButton href="/another" color="primary" size="lg">
Navigate to another page Navigate to another page
</Button> </LinkButton>
</center> </center>
); );
}; };
......
'use client';
import Link from 'next/link';
import { Button, type ButtonProps } from '@heroui/button';
import { type ComponentProps } from 'react';
type LinkButtonProps = Omit<ButtonProps, 'as' | 'href'> & {
href: string;
} & Pick<ComponentProps<typeof Link>, 'prefetch' | 'replace' | 'scroll'>;
export const LinkButton = ({ href, ...buttonProps }: LinkButtonProps) => {
return <Button as={Link} href={href} {...buttonProps} />;
};
export { LinkButton } from './LinkButton';
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";
// NOTE: This file should not be edited // NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
...@@ -13,38 +13,38 @@ ...@@ -13,38 +13,38 @@
"type-check": "tsc --noEmit" "type-check": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"@heroui/react": "2.8.2", "@heroui/react": "2.8.5",
"@storybook/nextjs": "^9.1.2", "@storybook/nextjs": "^9.1.13",
"@tailwindcss/postcss": "^4.1.12", "@tailwindcss/postcss": "^4.1.16",
"@tailwindcss/typography": "^0.5.16", "@tailwindcss/typography": "^0.5.19",
"@types/node": "^24.3.0", "@types/node": "^24.9.1",
"@types/react": "^19.1.10", "@types/react": "^19.2.2",
"autoprefixer": "^10.4.21", "autoprefixer": "^10.4.21",
"markdown-to-jsx": "^7.7.13", "markdown-to-jsx": "^7.7.17",
"next": "^15.4.6", "next": "^16.0.0",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"react": "^19.1.1", "react": "^19.2.0",
"react-dom": "^19.1.1", "react-dom": "^19.2.0",
"sharp": "^0.34.3", "sharp": "^0.34.4",
"tailwindcss": "^4.1.12", "tailwindcss": "^4.1.16",
"typescript": "^5.9.2" "typescript": "^5.9.3"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.8.1", "@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^19.8.1", "@commitlint/config-conventional": "^20.0.0",
"@next/bundle-analyzer": "^15.4.6", "@next/bundle-analyzer": "^16.0.0",
"@storybook/addon-links": "^9.1.2", "@storybook/addon-links": "^9.1.13",
"@storybook/addon-themes": "^9.1.2", "@storybook/addon-themes": "^9.1.13",
"@types/eslint": "^9.6.1", "@types/eslint": "^9.6.1",
"cross-env": "^10.0.0", "cross-env": "^10.1.0",
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
"eslint": "^9.33.0", "eslint": "^9.38.0",
"eslint-config-next": "^15.4.6", "eslint-config-next": "^16.0.0",
"eslint-plugin-storybook": "^9.1.2", "eslint-plugin-storybook": "^9.1.13",
"husky": "^9.1.7", "husky": "^9.1.7",
"prettier": "^3.6.2", "prettier": "^3.6.2",
"pretty-quick": "^4.2.2", "pretty-quick": "^4.2.2",
"storybook": "^9.1.2" "storybook": "^9.1.13"
}, },
"packageManager": "pnpm@10.6.5+sha256.47c8bca42b4b48534b5b1b28d573c506773937b02f68e52992fbd8269131c5c8" "packageManager": "pnpm@10.6.5+sha256.47c8bca42b4b48534b5b1b28d573c506773937b02f68e52992fbd8269131c5c8"
} }
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"compilerOptions": { "compilerOptions": {
"target": "es5", "target": "es5",
"lib": ["dom", "dom.iterable", "esnext"], "lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
...@@ -11,7 +15,7 @@ ...@@ -11,7 +15,7 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"plugins": [ "plugins": [
{ {
...@@ -19,9 +23,21 @@ ...@@ -19,9 +23,21 @@
} }
], ],
"paths": { "paths": {
"@/*": ["./*"] "@/*": [
"./*"
]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": [
"exclude": ["node_modules"] "next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next\\dev/types/**/*.ts",
".next\\dev/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment