@mbao01/ui 0.6.3 → 0.7.1
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/dist/types/components/Link/{constant.d.ts → constants.d.ts} +1 -1
- package/dist/types/components/Link/types.d.ts +1 -1
- package/package.json +33 -33
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/Link/{constant.ts → constants.ts} +3 -3
- package/src/components/Link/types.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getLinkClasses: (props?: ({
|
|
2
|
-
variant?: "accent" | "default" | "error" | "info" | "
|
|
2
|
+
variant?: "accent" | "default" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
3
|
hover?: boolean | null | undefined;
|
|
4
4
|
underline?: boolean | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkProps as RouterLinkProps, To } from 'react-router-dom';
|
|
2
2
|
import { VariantProps } from '@mbao01/common/libs';
|
|
3
|
-
import { getLinkClasses } from './
|
|
3
|
+
import { getLinkClasses } from './constants';
|
|
4
4
|
export type LinkProps = Omit<RouterLinkProps, "to"> & {
|
|
5
5
|
isExternal?: boolean;
|
|
6
6
|
} & ({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mbao01/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Ayomide Bakare",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,55 +48,55 @@
|
|
|
48
48
|
"test:watch": "vitest"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@mbao01/common": "^0.
|
|
51
|
+
"@mbao01/common": "^0.6.1",
|
|
52
52
|
"clsx": "^2.1.1",
|
|
53
|
-
"lucide-react": "^0.
|
|
53
|
+
"lucide-react": "^0.559.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@eslint/js": "^9.
|
|
56
|
+
"@eslint/js": "^9.39.1",
|
|
57
57
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
58
|
-
"@storybook/addon-a11y": "^
|
|
59
|
-
"@storybook/addon-coverage": "^
|
|
60
|
-
"@storybook/addon-docs": "^
|
|
61
|
-
"@storybook/addon-links": "^
|
|
62
|
-
"@storybook/addon-onboarding": "^
|
|
63
|
-
"@storybook/addon-themes": "^
|
|
64
|
-
"@storybook/react-vite": "^
|
|
65
|
-
"@storybook/test-runner": "^0.
|
|
66
|
-
"@tailwindcss/postcss": "^4.1.
|
|
67
|
-
"@tailwindcss/vite": "^4.1.
|
|
58
|
+
"@storybook/addon-a11y": "^10.1.6",
|
|
59
|
+
"@storybook/addon-coverage": "^3.0.0",
|
|
60
|
+
"@storybook/addon-docs": "^10.1.6",
|
|
61
|
+
"@storybook/addon-links": "^10.1.6",
|
|
62
|
+
"@storybook/addon-onboarding": "^10.1.6",
|
|
63
|
+
"@storybook/addon-themes": "^10.1.6",
|
|
64
|
+
"@storybook/react-vite": "^10.1.6",
|
|
65
|
+
"@storybook/test-runner": "^0.24.2",
|
|
66
|
+
"@tailwindcss/postcss": "^4.1.17",
|
|
67
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
68
68
|
"@testing-library/jest-dom": "^6.9.1",
|
|
69
69
|
"@testing-library/react": "^16.3.0",
|
|
70
70
|
"@testing-library/user-event": "^14.6.1",
|
|
71
71
|
"@types/jest-image-snapshot": "^6.4.0",
|
|
72
|
-
"@types/node": "^
|
|
73
|
-
"@types/react": "^19.2.
|
|
74
|
-
"@types/react-dom": "^19.2.
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
76
|
-
"@typescript-eslint/parser": "^8.
|
|
77
|
-
"@vitejs/plugin-react": "^5.
|
|
72
|
+
"@types/node": "^25.0.0",
|
|
73
|
+
"@types/react": "^19.2.7",
|
|
74
|
+
"@types/react-dom": "^19.2.3",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
76
|
+
"@typescript-eslint/parser": "^8.49.0",
|
|
77
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
78
78
|
"@vitest/coverage-v8": "^3.2.4",
|
|
79
79
|
"@vitest/ui": "^3.2.4",
|
|
80
80
|
"axe-playwright": "^2.2.2",
|
|
81
|
-
"eslint": "^9.
|
|
81
|
+
"eslint": "^9.39.1",
|
|
82
82
|
"eslint-plugin-react": "^7.37.5",
|
|
83
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
83
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
84
84
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
85
|
-
"eslint-plugin-storybook": "^
|
|
86
|
-
"globals": "^16.
|
|
85
|
+
"eslint-plugin-storybook": "^10.1.6",
|
|
86
|
+
"globals": "^16.5.0",
|
|
87
87
|
"jest-image-snapshot": "^6.5.1",
|
|
88
|
-
"jsdom": "^27.0
|
|
88
|
+
"jsdom": "^27.3.0",
|
|
89
89
|
"path": "^0.12.7",
|
|
90
90
|
"postcss": "^8.5.6",
|
|
91
|
-
"prettier": "^3.
|
|
92
|
-
"react": "^19.2.
|
|
93
|
-
"react-dom": "^19.2.
|
|
94
|
-
"react-router-dom": "^7.
|
|
95
|
-
"storybook": "^
|
|
91
|
+
"prettier": "^3.7.4",
|
|
92
|
+
"react": "^19.2.1",
|
|
93
|
+
"react-dom": "^19.2.1",
|
|
94
|
+
"react-router-dom": "^7.10.1",
|
|
95
|
+
"storybook": "^10.1.6",
|
|
96
96
|
"storybook-addon-remix-react-router": "^5.0.0",
|
|
97
|
-
"tailwindcss": "^4.1.
|
|
97
|
+
"tailwindcss": "^4.1.17",
|
|
98
98
|
"typescript": "^5.9.3",
|
|
99
|
-
"typescript-eslint": "^8.
|
|
99
|
+
"typescript-eslint": "^8.49.0",
|
|
100
100
|
"vite": "^6.4.1",
|
|
101
101
|
"vite-plugin-dts": "^4.5.4",
|
|
102
102
|
"vitest": "^3.2.4"
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"react-router-dom": "7"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "24afe657b40172e816e13092e71b75cabff750b2"
|
|
108
108
|
}
|
|
@@ -2,7 +2,7 @@ import { Link as RouterLink } from "react-router-dom";
|
|
|
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 "./
|
|
5
|
+
import { getLinkClasses } from "./constants";
|
|
6
6
|
import { type LinkProps } from "./types";
|
|
7
7
|
|
|
8
8
|
export const Link = ({
|
|
@@ -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
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LinkProps as RouterLinkProps, To } from "react-router-dom";
|
|
2
2
|
import { type VariantProps } from "@mbao01/common/libs";
|
|
3
|
-
import { getLinkClasses } from "./
|
|
3
|
+
import { getLinkClasses } from "./constants";
|
|
4
4
|
|
|
5
5
|
export type LinkProps = Omit<RouterLinkProps, "to"> & {
|
|
6
6
|
isExternal?: boolean;
|