@mbao01/next 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbao01/next",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "author": "Ayomide Bakare",
@@ -50,62 +50,68 @@
50
50
  "test:watch": "vitest"
51
51
  },
52
52
  "dependencies": {
53
- "@mbao01/common": "^0.5.2",
53
+ "@mbao01/common": "^0.6.0",
54
+ "@storybook/nextjs-vite": "^10.1.6",
54
55
  "clsx": "^2.1.1",
55
56
  "lucide-react": "^0.546.0"
56
57
  },
57
58
  "devDependencies": {
58
- "@eslint/eslintrc": "^3.3.1",
59
- "@eslint/js": "^9.38.0",
59
+ "@eslint/eslintrc": "^3.3.3",
60
+ "@eslint/js": "^9.39.1",
60
61
  "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
61
- "@storybook/addon-a11y": "^9.1.13",
62
- "@storybook/addon-coverage": "^2.0.0",
63
- "@storybook/addon-docs": "^9.1.13",
64
- "@storybook/addon-links": "^9.1.13",
65
- "@storybook/addon-onboarding": "^9.1.13",
66
- "@storybook/addon-themes": "^9.1.13",
67
- "@storybook/nextjs": "^9.1.13",
68
- "@storybook/test-runner": "^0.23.0",
69
- "@tailwindcss/postcss": "^4.1.15",
62
+ "@storybook/addon-a11y": "^10.1.6",
63
+ "@storybook/addon-coverage": "^3.0.0",
64
+ "@storybook/addon-docs": "^10.1.6",
65
+ "@storybook/addon-links": "^10.1.6",
66
+ "@storybook/addon-onboarding": "^10.1.6",
67
+ "@storybook/addon-themes": "^10.1.6",
68
+ "@storybook/test-runner": "^0.24.2",
69
+ "@tailwindcss/postcss": "^4.1.17",
70
70
  "@testing-library/jest-dom": "^6.9.1",
71
71
  "@testing-library/react": "^16.3.0",
72
72
  "@testing-library/user-event": "^14.6.1",
73
73
  "@types/jest-image-snapshot": "^6.4.0",
74
- "@types/node": "^24.9.1",
75
- "@types/react": "^19.2.2",
76
- "@types/react-dom": "^19.2.2",
77
- "@typescript-eslint/eslint-plugin": "^8.46.2",
78
- "@typescript-eslint/parser": "^8.46.2",
79
- "@vitejs/plugin-react": "^5.0.4",
74
+ "@types/node": "^24.10.2",
75
+ "@types/react": "19.2.7",
76
+ "@types/react-dom": "19.2.3",
77
+ "@typescript-eslint/eslint-plugin": "^8.49.0",
78
+ "@typescript-eslint/parser": "^8.49.0",
79
+ "@vitejs/plugin-react": "^5.1.2",
80
80
  "@vitest/coverage-v8": "^3.2.4",
81
81
  "@vitest/ui": "^3.2.4",
82
82
  "axe-playwright": "^2.2.2",
83
- "eslint": "^9.38.0",
84
- "eslint-config-next": "^15.5.6",
83
+ "eslint": "^9.39.1",
84
+ "eslint-config-next": "16.0.8",
85
85
  "eslint-plugin-jsx-a11y": "^6.10.2",
86
86
  "eslint-plugin-react": "^7.37.5",
87
- "eslint-plugin-react-hooks": "^7.0.0",
87
+ "eslint-plugin-react-hooks": "^7.0.1",
88
88
  "eslint-plugin-react-refresh": "^0.4.24",
89
- "eslint-plugin-storybook": "^9.1.13",
90
- "globals": "^16.4.0",
89
+ "eslint-plugin-storybook": "^10.1.6",
90
+ "globals": "^16.5.0",
91
91
  "jest-image-snapshot": "^6.5.1",
92
- "jsdom": "^27.0.1",
93
- "next": "^15.5.6",
94
- "next-router-mock": "^1.0.2",
92
+ "jsdom": "^27.3.0",
93
+ "next": "16.0.8",
94
+ "next-router-mock": "^1.0.4",
95
95
  "path": "^0.12.7",
96
96
  "postcss": "^8.5.6",
97
- "prettier": "^3.6.2",
98
- "react": "^19.2.0",
99
- "react-dom": "^19.2.0",
100
- "react-router-dom": "^7.9.4",
101
- "storybook": "^9.1.13",
102
- "tailwindcss": "^4.1.15",
97
+ "prettier": "^3.7.4",
98
+ "react": "19.2.1",
99
+ "react-dom": "19.2.1",
100
+ "react-router-dom": "^7.10.1",
101
+ "storybook": "^10.1.6",
102
+ "tailwindcss": "^4.1.17",
103
103
  "typescript": "^5.9.3",
104
- "typescript-eslint": "^8.46.2",
104
+ "typescript-eslint": "^8.49.0",
105
105
  "vitest": "^3.2.4"
106
106
  },
107
107
  "peerDependencies": {
108
108
  "next": "15"
109
109
  },
110
- "gitHead": "30eba9ab76ef0ae78f5acbfb4b309204ca39971d"
110
+ "pnpm": {
111
+ "overrides": {
112
+ "@types/react": "19.2.7",
113
+ "@types/react-dom": "19.2.3"
114
+ }
115
+ },
116
+ "gitHead": "8a77b018bca2938c499639bb4e0afa17ae30df87"
111
117
  }
@@ -2,7 +2,7 @@ import NextLink from "next/link";
2
2
  import { Anchor } from "@mbao01/common";
3
3
  import { cn } from "@mbao01/common/utilities";
4
4
  import { ExternalLinkIcon } from "lucide-react";
5
- import { getLinkClasses } from "./constant";
5
+ import { getLinkClasses } from "./constants";
6
6
  import { type LinkProps } from "./types";
7
7
 
8
8
  export const Link = <T,>({
@@ -1,13 +1,13 @@
1
1
  import { cva } from "@mbao01/common/libs";
2
+ import { createVariants } from "@mbao01/common/utilities";
2
3
 
3
4
  export const getLinkClasses = cva("link transition-all", {
4
- variants: {
5
+ variants: createVariants({
5
6
  variant: {
6
7
  accent: "link-accent",
7
8
  default: "link-default",
8
9
  error: "link-error",
9
10
  info: "link-info",
10
- link: "link-link",
11
11
  neutral: "link-neutral",
12
12
  primary: "link-primary",
13
13
  secondary: "link-secondary",
@@ -20,5 +20,5 @@ export const getLinkClasses = cva("link transition-all", {
20
20
  underline: {
21
21
  false: "no-underline",
22
22
  },
23
- },
23
+ }),
24
24
  });
@@ -2,12 +2,12 @@ import type { LinkProps as OriginalLinkProps } from "next/dist/client/link.js";
2
2
  import { AnchorHTMLAttributes, DetailedHTMLProps } from "react";
3
3
  import { type UrlObject } from "url";
4
4
  import { type VariantProps } from "@mbao01/common/libs";
5
- import { getLinkClasses } from "./constant";
5
+ import { getLinkClasses } from "./constants";
6
6
 
7
7
  export type LinkProps<T> = Omit<
8
8
  Omit<
9
9
  DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>,
10
- keyof OriginalLinkProps
10
+ keyof OriginalLinkProps | "style"
11
11
  > &
12
12
  OriginalLinkProps,
13
13
  "href"