mtxuilib 0.0.591 → 0.0.593
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.
|
@@ -6,3 +6,9 @@ export interface TMtLinkProps extends ComponentProps<typeof Link>, VariantProps<
|
|
|
6
6
|
asChild?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare const MtLink: React.ForwardRefExoticComponent<Omit<TMtLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
+
type ExternalLinkProps = ComponentProps<"a">;
|
|
10
|
+
interface TExternalLink extends ExternalLinkProps {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function MtExternalLink({ children, className, ...props }: TExternalLink): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";var
|
|
1
|
+
"use client";var d=Object.defineProperty,P=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var m=(r,e,t)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,i=(r,e)=>{for(var t in e||(e={}))l.call(e,t)&&m(r,t,e[t]);if(a)for(var t of a(e))f.call(e,t)&&m(r,t,e[t]);return r},c=(r,e)=>P(r,h(e));var p=(r,e)=>{var t={};for(var n in r)l.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&a)for(var n of a(r))e.indexOf(n)<0&&f.call(r,n)&&(t[n]=r[n]);return t};import{jsx as L}from"react/jsx-runtime";import{Slot as b}from"@radix-ui/react-slot";import u from"next/link";import C from"react";import{cn as k}from"../lib/utils";import{buttonVariants as E}from"../ui/button";const M=C.forwardRef((T,x)=>{var s=T,{className:r,variant:e,size:t,asChild:n=!1}=s,o=p(s,["className","variant","size","asChild"]);return L(n?b:u,i({className:k(e&&E({variant:e,className:r})),ref:x},o))});M.displayName="MtLink";function S(n){var o=n,{children:r,className:e}=o,t=p(o,["children","className"]);return L("a",c(i({className:k(e,"hover:text-brandtext-500 hover:underline hover:brightness-150"),rel:"noopener noreferrer"},t),{children:r}))}export{S as MtExternalLink,M as MtLink};
|