@etsoo/materialui 1.5.17 → 1.5.18

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.
@@ -0,0 +1,12 @@
1
+ import { LinkProps } from "@mui/material";
2
+ import { Link as RouterLink } from "react-router";
3
+ /**
4
+ * Extended link component props
5
+ */
6
+ export type LinkExProps = Omit<LinkProps<typeof RouterLink>, "component">;
7
+ /**
8
+ * Extended link component
9
+ * @param props Props
10
+ * @returns Component
11
+ */
12
+ export declare function LinkEx(props: LinkExProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkEx = LinkEx;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const react_router_1 = require("react-router");
7
+ /**
8
+ * Extended link component
9
+ * @param props Props
10
+ * @returns Component
11
+ */
12
+ function LinkEx(props) {
13
+ const { underline = "hover", ...rest } = props;
14
+ return (0, jsx_runtime_1.jsx)(material_1.Link, { component: react_router_1.Link, underline: underline, ...rest });
15
+ }
@@ -68,6 +68,7 @@ export * from "./InputTipField";
68
68
  export * from "./IntInputField";
69
69
  export * from "./ItemList";
70
70
  export * from "./LineChart";
71
+ export * from "./LinkEx";
71
72
  export * from "./ListChooser";
72
73
  export * from "./ListItemRightIcon";
73
74
  export * from "./ListMoreDisplay";
package/lib/cjs/index.js CHANGED
@@ -84,6 +84,7 @@ __exportStar(require("./InputTipField"), exports);
84
84
  __exportStar(require("./IntInputField"), exports);
85
85
  __exportStar(require("./ItemList"), exports);
86
86
  __exportStar(require("./LineChart"), exports);
87
+ __exportStar(require("./LinkEx"), exports);
87
88
  __exportStar(require("./ListChooser"), exports);
88
89
  __exportStar(require("./ListItemRightIcon"), exports);
89
90
  __exportStar(require("./ListMoreDisplay"), exports);
@@ -0,0 +1,12 @@
1
+ import { LinkProps } from "@mui/material";
2
+ import { Link as RouterLink } from "react-router";
3
+ /**
4
+ * Extended link component props
5
+ */
6
+ export type LinkExProps = Omit<LinkProps<typeof RouterLink>, "component">;
7
+ /**
8
+ * Extended link component
9
+ * @param props Props
10
+ * @returns Component
11
+ */
12
+ export declare function LinkEx(props: LinkExProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Link } from "@mui/material";
3
+ import { Link as RouterLink } from "react-router";
4
+ /**
5
+ * Extended link component
6
+ * @param props Props
7
+ * @returns Component
8
+ */
9
+ export function LinkEx(props) {
10
+ const { underline = "hover", ...rest } = props;
11
+ return _jsx(Link, { component: RouterLink, underline: underline, ...rest });
12
+ }
@@ -68,6 +68,7 @@ export * from "./InputTipField";
68
68
  export * from "./IntInputField";
69
69
  export * from "./ItemList";
70
70
  export * from "./LineChart";
71
+ export * from "./LinkEx";
71
72
  export * from "./ListChooser";
72
73
  export * from "./ListItemRightIcon";
73
74
  export * from "./ListMoreDisplay";
package/lib/mjs/index.js CHANGED
@@ -68,6 +68,7 @@ export * from "./InputTipField";
68
68
  export * from "./IntInputField";
69
69
  export * from "./ItemList";
70
70
  export * from "./LineChart";
71
+ export * from "./LinkEx";
71
72
  export * from "./ListChooser";
72
73
  export * from "./ListItemRightIcon";
73
74
  export * from "./ListMoreDisplay";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.5.17",
3
+ "version": "1.5.18",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
package/src/LinkEx.tsx ADDED
@@ -0,0 +1,17 @@
1
+ import { Link, LinkProps } from "@mui/material";
2
+ import { Link as RouterLink } from "react-router";
3
+
4
+ /**
5
+ * Extended link component props
6
+ */
7
+ export type LinkExProps = Omit<LinkProps<typeof RouterLink>, "component">;
8
+
9
+ /**
10
+ * Extended link component
11
+ * @param props Props
12
+ * @returns Component
13
+ */
14
+ export function LinkEx(props: LinkExProps) {
15
+ const { underline = "hover", ...rest } = props;
16
+ return <Link component={RouterLink} underline={underline} {...rest} />;
17
+ }
package/src/index.ts CHANGED
@@ -73,6 +73,7 @@ export * from "./InputTipField";
73
73
  export * from "./IntInputField";
74
74
  export * from "./ItemList";
75
75
  export * from "./LineChart";
76
+ export * from "./LinkEx";
76
77
  export * from "./ListChooser";
77
78
  export * from "./ListItemRightIcon";
78
79
  export * from "./ListMoreDisplay";