@micromag/element-call-to-action 0.4.38 → 0.4.40

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 +5 -5
  2. package/package.json +6 -6
package/es/index.js CHANGED
@@ -169,7 +169,7 @@ function CallToAction(_ref) {
169
169
  };
170
170
  }, [setLeaving]);
171
171
  return /*#__PURE__*/React.createElement("div", {
172
- className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, className, className !== null), styles.disabled, disabled), styles.animationDisabled, animationDisabled), styles.invalidUrl, !validUrl), styles.inWebView, inWebView)]),
172
+ className: classNames([styles.container, className, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.disabled, disabled), styles.animationDisabled, animationDisabled), styles.invalidUrl, !validUrl), styles.inWebView, inWebView)]),
173
173
  ref: elRef
174
174
  }, leaving ? /*#__PURE__*/React.createElement("div", {
175
175
  className: styles.leavingFrame
@@ -179,12 +179,12 @@ function CallToAction(_ref) {
179
179
  ref: selfTargetLinkRef,
180
180
  tabIndex: focusable ? '0' : '-1'
181
181
  }) : null, swipeUpEnabled ? /*#__PURE__*/React.createElement("div", {
182
- className: classNames([styles.arrow, _defineProperty({}, arrowClassName, arrowClassName !== null)]),
182
+ className: classNames([styles.arrow, arrowClassName]),
183
183
  style: arrowStyle
184
184
  }, arrow || /*#__PURE__*/React.createElement(Arrow, null)) : null, /*#__PURE__*/React.createElement("div", {
185
- className: classNames([styles.buttonBorder, _defineProperty({}, buttonBorderClassName, buttonBorderClassName !== null)])
185
+ className: classNames([styles.buttonBorder, buttonBorderClassName])
186
186
  }, /*#__PURE__*/React.createElement(Button, Object.assign({
187
- className: classNames([styles.button, _defineProperty(_defineProperty({}, styles.withoutLinkStyle, !inWebView), buttonClassName, buttonClassName !== null)]),
187
+ className: classNames([styles.button, buttonClassName, _defineProperty({}, styles.withoutLinkStyle, !inWebView)]),
188
188
  refButton: buttonRef,
189
189
  focusable: focusable,
190
190
  buttonStyle: boxStyle,
@@ -194,7 +194,7 @@ function CallToAction(_ref) {
194
194
  external: !inWebView ? external : false,
195
195
  onClick: onClickLink
196
196
  }, swipeUpEnabled && !disabled ? bind() : null), /*#__PURE__*/React.createElement("span", {
197
- className: classNames([styles.label, _defineProperty({}, labelClassName, labelClassName !== null)])
197
+ className: classNames([styles.label, labelClassName])
198
198
  }, icon !== null ? /*#__PURE__*/React.createElement("div", {
199
199
  className: styles.icon
200
200
  }, icon) : null, /*#__PURE__*/React.createElement(Text, Object.assign({}, label, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-call-to-action",
3
- "version": "0.4.38",
3
+ "version": "0.4.40",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -63,10 +63,10 @@
63
63
  "@fortawesome/fontawesome-svg-core": "^7.2.0",
64
64
  "@fortawesome/free-solid-svg-icons": "^7.2.0",
65
65
  "@fortawesome/react-fontawesome": "^3.2.0",
66
- "@micromag/core": "^0.4.38",
67
- "@micromag/element-button": "^0.4.38",
68
- "@micromag/element-text": "^0.4.38",
69
- "@micromag/element-webview": "^0.4.38",
66
+ "@micromag/core": "^0.4.40",
67
+ "@micromag/element-button": "^0.4.40",
68
+ "@micromag/element-text": "^0.4.40",
69
+ "@micromag/element-webview": "^0.4.40",
70
70
  "@react-spring/core": "^10.0.3",
71
71
  "@react-spring/web": "^10.0.3",
72
72
  "@use-gesture/react": "^10.3.0",
@@ -79,6 +79,6 @@
79
79
  "access": "public",
80
80
  "registry": "https://registry.npmjs.org/"
81
81
  },
82
- "gitHead": "e984a8b97d5c87914dd4844ff29628a5690edd6f",
82
+ "gitHead": "6a9ff6e196a972abfd617f49353862cf445b0e83",
83
83
  "types": "es/index.d.ts"
84
84
  }