umwd-components 0.1.256 → 0.1.258
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/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
// import NextLink from "next/link";
|
|
3
|
-
import
|
|
4
|
-
import { Link
|
|
5
|
-
// import { SxProps, Theme } from "@mui/system";
|
|
3
|
+
import NextLink from "next/link";
|
|
4
|
+
import { Link } from "@mui/material";
|
|
6
5
|
import { SxProps, Theme } from "@mui/material/styles";
|
|
7
6
|
|
|
8
7
|
export default function StyledLink({
|
|
@@ -17,10 +16,10 @@ export default function StyledLink({
|
|
|
17
16
|
readonly target?: string;
|
|
18
17
|
}) {
|
|
19
18
|
return (
|
|
20
|
-
<
|
|
21
|
-
<
|
|
19
|
+
<NextLink href={href} passHref legacyBehavior>
|
|
20
|
+
<Link target={target || "_blank"} sx={{ ...sx }}>
|
|
22
21
|
{children}
|
|
23
|
-
</
|
|
24
|
-
</
|
|
22
|
+
</Link>
|
|
23
|
+
</NextLink>
|
|
25
24
|
);
|
|
26
25
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* UMWD-Components
|
|
3
|
-
* @copyright Jelle Paulus
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
6
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("next/link"),t=require("@mui/material");exports.default=function(a){let{href:i,sx:l,children:n,target:u}=a;return e.createElement(r,{href:i,passHref:!0,legacyBehavior:!0},e.createElement(t.Link,{target:u||"_blank",sx:{...l}},n))};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* UMWD-Components
|
|
3
|
-
* @copyright Jelle Paulus
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
6
|
-
import e from"react";import r from"next/link";import{Link as t}from"@mui/material";function a(a){let{href:i,sx:m,children:n,target:l}=a;return e.createElement(r,{href:i,passHref:!0,legacyBehavior:!0},e.createElement(t,{target:l||"_blank",sx:{...m}},n))}export{a as default};
|