@mbao01/next 0.0.5 → 0.0.7

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/README.md CHANGED
@@ -36,8 +36,7 @@ export default {
36
36
  ...
37
37
  ],
38
38
  "plugins": [
39
- require("@mbao01/common/plugin"), // -> import the tailwind library plugin
40
- ...
39
+ ...require("@mbao01/common/plugin"), // -> import the tailwind library plugin
41
40
  ]
42
41
  }
43
42
  ```
@@ -1,5 +1,4 @@
1
- import { LinkVariant } from './types';
2
- export declare const getLinkClasses: ({ hover, variant }: {
3
- hover?: boolean | undefined;
4
- variant?: LinkVariant | undefined;
5
- }) => string;
1
+ export declare const getLinkClasses: (props?: ({
2
+ variant?: "accent" | "default" | "error" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
+ hover?: boolean | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1,7 +1,5 @@
1
1
  /// <reference path="../../../../.next/types/link.d.ts" />
2
2
  import type { LinkProps as NextLinkProps } from "next/link";
3
- export type LinkVariant = "default" | "neutral" | "primary" | "secondary" | "accent" | "link" | "info" | "success" | "warning" | "error";
4
- export type LinkProps<T> = NextLinkProps<T> & {
5
- hover?: boolean;
6
- variant?: LinkVariant;
7
- };
3
+ import { type VariantProps } from "@mbao01/common/libs";
4
+ import { getLinkClasses } from "./constant";
5
+ export type LinkProps<T> = NextLinkProps<T> & VariantProps<typeof getLinkClasses>;
@@ -1,3 +1,2 @@
1
1
  export * from "@mbao01/common";
2
- export { Breadcrumbs } from "./components/Breadcrumbs";
3
2
  export { Link } from "./components/Link";