mtxuilib 0.1.317 → 0.1.319

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,6 +1,6 @@
1
- import { VariantProps } from "class-variance-authority";
1
+ import type { VariantProps } from "class-variance-authority";
2
2
  import Link from "next/link";
3
- import React, { ComponentProps } from "react";
3
+ import React, { type ComponentProps } from "react";
4
4
  import { buttonVariants } from "../ui/button";
5
5
  export interface TMtLinkProps extends ComponentProps<typeof Link>, VariantProps<typeof buttonVariants> {
6
6
  asChild?: boolean;
@@ -1,4 +1,4 @@
1
- 'use client';
1
+ "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Slot } from "@radix-ui/react-slot";
4
4
  import Link from "next/link";
@@ -7,7 +7,7 @@ import { cn } from "../lib/utils";
7
7
  import { buttonVariants } from "../ui/button";
8
8
  export const MtLink = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
9
9
  const Comp = asChild ? Slot : Link;
10
- return (_jsx(Comp, { className: cn(((variant) && buttonVariants({ variant: variant, className }))), ref: ref, ...props }));
10
+ return (_jsx(Comp, { className: cn(variant && buttonVariants({ variant: variant, className })), ref: ref, ...props }));
11
11
  });
12
12
  MtLink.displayName = "MtLink";
13
13
  export function MtExternalLink({ children, className, ...props }) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.317",
4
+ "version": "0.1.319",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },