@availity/mui-link 0.2.7 → 0.2.8
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/CHANGELOG.md +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/lib/Link.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.8](https://github.com/Availity/element/compare/@availity/mui-link@0.2.7...@availity/mui-link@0.2.8) (2024-04-04)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-icon` updated to version `0.8.1`
|
|
10
|
+
|
|
11
|
+
### Performance Improvements
|
|
12
|
+
|
|
13
|
+
* **mui-link:** use path imports for material deps ([13fba92](https://github.com/Availity/element/commit/13fba92f1e081d679e6a1de4bd2fa6cd15e53824))
|
|
14
|
+
|
|
5
15
|
## [0.2.7](https://github.com/Availity/element/compare/@availity/mui-link@0.2.6...@availity/mui-link@0.2.7) (2024-03-15)
|
|
6
16
|
|
|
7
17
|
### Dependency Updates
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ init_cjs_shims();
|
|
|
112
112
|
// src/lib/Link.tsx
|
|
113
113
|
init_cjs_shims();
|
|
114
114
|
var import_react = require("react");
|
|
115
|
-
var
|
|
115
|
+
var import_Link = __toESM(require("@mui/material/Link"));
|
|
116
116
|
|
|
117
117
|
// ../icon/src/index.ts
|
|
118
118
|
init_cjs_shims();
|
|
@@ -123,14 +123,14 @@ init_cjs_shims();
|
|
|
123
123
|
// ../icon/src/lib/FaSvgIcon.tsx
|
|
124
124
|
init_cjs_shims();
|
|
125
125
|
var React = __toESM(require("react"));
|
|
126
|
-
var
|
|
126
|
+
var import_SvgIcon = __toESM(require("@mui/material/SvgIcon"));
|
|
127
127
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
128
128
|
var FaSvgIcon = React.forwardRef((props, ref) => {
|
|
129
129
|
const { icon, ...svgProps } = props;
|
|
130
130
|
const {
|
|
131
131
|
icon: [width, height, , , svgPathData]
|
|
132
132
|
} = icon;
|
|
133
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SvgIcon.default, {
|
|
134
134
|
ref,
|
|
135
135
|
viewBox: `0 0 ${width} ${height}`,
|
|
136
136
|
...svgProps,
|
|
@@ -203,7 +203,7 @@ var Link = (0, import_react.forwardRef)((props, ref) => {
|
|
|
203
203
|
const encode = !(absolute || !loadApp);
|
|
204
204
|
const url = encode ? getUrl(href) : href;
|
|
205
205
|
const NewWindowIcon = target === "_blank" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OpenInNewIcon, {}) : null;
|
|
206
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Link.default, {
|
|
207
207
|
href: url,
|
|
208
208
|
target,
|
|
209
209
|
onClick: (event) => onClick && onClick(event, url),
|
package/dist/index.mjs
CHANGED
|
@@ -101,7 +101,7 @@ init_esm_shims();
|
|
|
101
101
|
// src/lib/Link.tsx
|
|
102
102
|
init_esm_shims();
|
|
103
103
|
import { forwardRef as forwardRef2 } from "react";
|
|
104
|
-
import {
|
|
104
|
+
import { default as MuiLink } from "@mui/material/Link";
|
|
105
105
|
|
|
106
106
|
// ../icon/src/index.ts
|
|
107
107
|
init_esm_shims();
|
|
@@ -112,7 +112,7 @@ init_esm_shims();
|
|
|
112
112
|
// ../icon/src/lib/FaSvgIcon.tsx
|
|
113
113
|
init_esm_shims();
|
|
114
114
|
import * as React from "react";
|
|
115
|
-
import
|
|
115
|
+
import SvgIcon from "@mui/material/SvgIcon";
|
|
116
116
|
import { jsx } from "react/jsx-runtime";
|
|
117
117
|
var FaSvgIcon = React.forwardRef((props, ref) => {
|
|
118
118
|
const { icon, ...svgProps } = props;
|
package/package.json
CHANGED
package/src/lib/Link.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, forwardRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { default as MuiLink, LinkProps as MuiLinkProps } from '@mui/material/Link';
|
|
3
3
|
import { OpenInNewIcon } from '@availity/mui-icon';
|
|
4
4
|
|
|
5
5
|
// Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
|