@dt-dds/react-link 1.0.0-beta.87 → 1.0.0-beta.88
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 +6 -0
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ var import_react = require("react");
|
|
|
68
68
|
var import_react_icon = require("@dt-dds/react-icon");
|
|
69
69
|
|
|
70
70
|
// src/Link.styled.ts
|
|
71
|
+
var import_is_prop_valid = __toESM(require("@emotion/is-prop-valid"));
|
|
71
72
|
var import_styled = __toESM(require("@emotion/styled"));
|
|
72
73
|
var fontStyleMap = {
|
|
73
74
|
inline: {
|
|
@@ -111,7 +112,9 @@ var colorMap = (palette) => ({
|
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
});
|
|
114
|
-
var LinkStyled = import_styled.default
|
|
115
|
+
var LinkStyled = (0, import_styled.default)("a", {
|
|
116
|
+
shouldForwardProp: (prop) => (0, import_is_prop_valid.default)(prop) && !prop.startsWith("$")
|
|
117
|
+
})`
|
|
115
118
|
${({
|
|
116
119
|
theme,
|
|
117
120
|
$disabled,
|
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,7 @@ import { forwardRef } from "react";
|
|
|
35
35
|
import { Icon } from "@dt-dds/react-icon";
|
|
36
36
|
|
|
37
37
|
// src/Link.styled.ts
|
|
38
|
+
import isPropValid from "@emotion/is-prop-valid";
|
|
38
39
|
import styled from "@emotion/styled";
|
|
39
40
|
var fontStyleMap = {
|
|
40
41
|
inline: {
|
|
@@ -78,7 +79,9 @@ var colorMap = (palette) => ({
|
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
});
|
|
81
|
-
var LinkStyled = styled
|
|
82
|
+
var LinkStyled = styled("a", {
|
|
83
|
+
shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
|
|
84
|
+
})`
|
|
82
85
|
${({
|
|
83
86
|
theme,
|
|
84
87
|
$disabled,
|