@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @dt-ui/react-link
2
2
 
3
+ ## 1.0.0-beta.88
4
+
5
+ ### Minor Changes
6
+
7
+ - feat: prevent transient props from leaking on Link
8
+
3
9
  ## 1.0.0-beta.87
4
10
 
5
11
  ### Minor Changes
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.a`
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.a`
82
+ var LinkStyled = styled("a", {
83
+ shouldForwardProp: (prop) => isPropValid(prop) && !prop.startsWith("$")
84
+ })`
82
85
  ${({
83
86
  theme,
84
87
  $disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-link",
3
- "version": "1.0.0-beta.87",
3
+ "version": "1.0.0-beta.88",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"