@micromag/element-call-to-action 0.3.781 → 0.3.786

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.
Files changed (2) hide show
  1. package/es/index.js +4 -1
  2. package/package.json +2 -2
package/es/index.js CHANGED
@@ -71,6 +71,7 @@ var propTypes = {
71
71
  labelClassName: PropTypes.string,
72
72
  arrowClassName: PropTypes.string,
73
73
  focusable: PropTypes.bool,
74
+ external: PropTypes.bool,
74
75
  openWebView: PropTypes.func,
75
76
  onClick: PropTypes.func
76
77
  };
@@ -92,6 +93,7 @@ var defaultProps = {
92
93
  labelClassName: null,
93
94
  arrowClassName: null,
94
95
  focusable: true,
96
+ external: true,
95
97
  openWebView: null,
96
98
  onClick: null
97
99
  };
@@ -113,6 +115,7 @@ function CallToAction(_ref) {
113
115
  labelClassName = _ref.labelClassName,
114
116
  arrowClassName = _ref.arrowClassName,
115
117
  focusable = _ref.focusable,
118
+ external = _ref.external,
116
119
  openWebView = _ref.openWebView,
117
120
  onClick = _ref.onClick;
118
121
  var trackEvent = useTrackEvent();
@@ -224,7 +227,7 @@ function CallToAction(_ref) {
224
227
  inline: true,
225
228
  "aria-pressed": toggled,
226
229
  href: !inWebView ? url : null,
227
- external: true,
230
+ external: !inWebView ? external : false,
228
231
  onClick: onClickLink
229
232
  }, swipeUpEnabled && !disabled ? bind() : null), /*#__PURE__*/React.createElement("span", {
230
233
  className: classNames([styles.label, _defineProperty({}, labelClassName, labelClassName !== null)])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-call-to-action",
3
- "version": "0.3.781",
3
+ "version": "0.3.786",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -79,5 +79,5 @@
79
79
  "access": "public",
80
80
  "registry": "https://registry.npmjs.org/"
81
81
  },
82
- "gitHead": "95e03bd48803c170ef4efbc5bd204a0c83563c11"
82
+ "gitHead": "12a7a02b80b715ea1c8af72bdcbb043ad713a5e5"
83
83
  }