@etsoo/materialui 1.6.64 → 1.6.65

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,4 +1,5 @@
1
1
  import { LinkProps } from "@mui/material";
2
+ import React from "react";
2
3
  import { Link as RouterLink } from "react-router";
3
4
  /**
4
5
  * Extended link component props
@@ -14,4 +15,4 @@ export type LinkExProps = Omit<LinkProps<typeof RouterLink>, "component"> & {
14
15
  * @param props Props
15
16
  * @returns Component
16
17
  */
17
- export declare function LinkEx(props: LinkExProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function LinkEx(props: LinkExProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
package/lib/cjs/LinkEx.js CHANGED
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.LinkEx = LinkEx;
7
4
  const jsx_runtime_1 = require("react/jsx-runtime");
8
5
  const material_1 = require("@mui/material");
9
- const react_1 = __importDefault(require("react"));
10
6
  const react_router_1 = require("react-router");
11
7
  /**
12
8
  * Extended link component
@@ -15,5 +11,5 @@ const react_router_1 = require("react-router");
15
11
  */
16
12
  function LinkEx(props) {
17
13
  const { children, disabled, underline = "hover", ...rest } = props;
18
- return disabled ? ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: children })) : ((0, jsx_runtime_1.jsx)(material_1.Link, { component: react_router_1.Link, underline: underline, ...rest, children: children }));
14
+ return disabled ? (children) : ((0, jsx_runtime_1.jsx)(material_1.Link, { component: react_router_1.Link, underline: underline, ...rest, children: children }));
19
15
  }
@@ -1,4 +1,5 @@
1
1
  import { LinkProps } from "@mui/material";
2
+ import React from "react";
2
3
  import { Link as RouterLink } from "react-router";
3
4
  /**
4
5
  * Extended link component props
@@ -14,4 +15,4 @@ export type LinkExProps = Omit<LinkProps<typeof RouterLink>, "component"> & {
14
15
  * @param props Props
15
16
  * @returns Component
16
17
  */
17
- export declare function LinkEx(props: LinkExProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function LinkEx(props: LinkExProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
package/lib/mjs/LinkEx.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Link } from "@mui/material";
3
- import React from "react";
4
3
  import { Link as RouterLink } from "react-router";
5
4
  /**
6
5
  * Extended link component
@@ -9,5 +8,5 @@ import { Link as RouterLink } from "react-router";
9
8
  */
10
9
  export function LinkEx(props) {
11
10
  const { children, disabled, underline = "hover", ...rest } = props;
12
- return disabled ? (_jsx(React.Fragment, { children: children })) : (_jsx(Link, { component: RouterLink, underline: underline, ...rest, children: children }));
11
+ return disabled ? (children) : (_jsx(Link, { component: RouterLink, underline: underline, ...rest, children: children }));
13
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.6.64",
3
+ "version": "1.6.65",
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 CHANGED
@@ -20,7 +20,7 @@ export type LinkExProps = Omit<LinkProps<typeof RouterLink>, "component"> & {
20
20
  export function LinkEx(props: LinkExProps) {
21
21
  const { children, disabled, underline = "hover", ...rest } = props;
22
22
  return disabled ? (
23
- <React.Fragment>{children}</React.Fragment>
23
+ children
24
24
  ) : (
25
25
  <Link component={RouterLink} underline={underline} {...rest}>
26
26
  {children}