@mbao01/ui 0.6.2 → 0.7.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.
@@ -1,5 +1,5 @@
1
1
  export declare const getLinkClasses: (props?: ({
2
- variant?: "accent" | "default" | "error" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
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 './constant';
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.6.2",
4
+ "version": "0.7.0",
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.5.2",
51
+ "@mbao01/common": "^0.6.0",
52
52
  "clsx": "^2.1.1",
53
53
  "lucide-react": "^0.546.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@eslint/js": "^9.38.0",
56
+ "@eslint/js": "^9.39.1",
57
57
  "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
58
- "@storybook/addon-a11y": "^9.1.13",
59
- "@storybook/addon-coverage": "^2.0.0",
60
- "@storybook/addon-docs": "^9.1.13",
61
- "@storybook/addon-links": "^9.1.13",
62
- "@storybook/addon-onboarding": "^9.1.13",
63
- "@storybook/addon-themes": "^9.1.13",
64
- "@storybook/react-vite": "^9.1.13",
65
- "@storybook/test-runner": "^0.23.0",
66
- "@tailwindcss/postcss": "^4.1.15",
67
- "@tailwindcss/vite": "^4.1.15",
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": "^24.9.1",
73
- "@types/react": "^19.2.2",
74
- "@types/react-dom": "^19.2.2",
75
- "@typescript-eslint/eslint-plugin": "^8.46.2",
76
- "@typescript-eslint/parser": "^8.46.2",
77
- "@vitejs/plugin-react": "^5.0.4",
72
+ "@types/node": "^24.10.2",
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.38.0",
81
+ "eslint": "^9.39.1",
82
82
  "eslint-plugin-react": "^7.37.5",
83
- "eslint-plugin-react-hooks": "^7.0.0",
83
+ "eslint-plugin-react-hooks": "^7.0.1",
84
84
  "eslint-plugin-react-refresh": "^0.4.24",
85
- "eslint-plugin-storybook": "^9.1.13",
86
- "globals": "^16.4.0",
85
+ "eslint-plugin-storybook": "^10.1.6",
86
+ "globals": "^16.5.0",
87
87
  "jest-image-snapshot": "^6.5.1",
88
- "jsdom": "^27.0.1",
88
+ "jsdom": "^27.3.0",
89
89
  "path": "^0.12.7",
90
90
  "postcss": "^8.5.6",
91
- "prettier": "^3.6.2",
92
- "react": "^19.2.0",
93
- "react-dom": "^19.2.0",
94
- "react-router-dom": "^7.9.4",
95
- "storybook": "^9.1.13",
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.15",
97
+ "tailwindcss": "^4.1.17",
98
98
  "typescript": "^5.9.3",
99
- "typescript-eslint": "^8.46.2",
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": "30eba9ab76ef0ae78f5acbfb4b309204ca39971d"
107
+ "gitHead": "8a77b018bca2938c499639bb4e0afa17ae30df87"
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 "./constant";
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 "./constant";
3
+ import { getLinkClasses } from "./constants";
4
4
 
5
5
  export type LinkProps = Omit<RouterLinkProps, "to"> & {
6
6
  isExternal?: boolean;