@micromag/element-call-to-action 0.3.779 → 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 +6 -3
  2. package/package.json +6 -6
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)])
@@ -240,10 +243,10 @@ function CallToAction(_ref) {
240
243
  }
241
244
  CallToAction.propTypes = propTypes;
242
245
  CallToAction.defaultProps = defaultProps;
243
- var CallToAction_default = /*#__PURE__*/React.forwardRef(function (props, ref) {
246
+ var CallToAction$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
244
247
  return /*#__PURE__*/React.createElement(CallToAction, Object.assign({
245
248
  elRef: ref
246
249
  }, props));
247
250
  });
248
251
 
249
- export { CallToAction_default as default };
252
+ export { CallToAction$1 as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-call-to-action",
3
- "version": "0.3.779",
3
+ "version": "0.3.786",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -62,10 +62,10 @@
62
62
  "@fortawesome/fontawesome-svg-core": "^6.5.2",
63
63
  "@fortawesome/free-solid-svg-icons": "^6.5.2",
64
64
  "@fortawesome/react-fontawesome": "^0.2.0",
65
- "@micromag/core": "^0.3.779",
66
- "@micromag/element-button": "^0.3.779",
67
- "@micromag/element-text": "^0.3.779",
68
- "@micromag/element-webview": "^0.3.779",
65
+ "@micromag/core": "^0.3.781",
66
+ "@micromag/element-button": "^0.3.781",
67
+ "@micromag/element-text": "^0.3.781",
68
+ "@micromag/element-webview": "^0.3.781",
69
69
  "@react-spring/core": "^9.6.1",
70
70
  "@react-spring/web": "^9.6.1",
71
71
  "@use-gesture/react": "^10.3.0",
@@ -79,5 +79,5 @@
79
79
  "access": "public",
80
80
  "registry": "https://registry.npmjs.org/"
81
81
  },
82
- "gitHead": "5cc7b8fc6d58ba77100060a9d9a4a3f87f835559"
82
+ "gitHead": "12a7a02b80b715ea1c8af72bdcbb043ad713a5e5"
83
83
  }