@micromag/element-call-to-action 0.3.61 → 0.3.63
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/es/index.js +4 -5
- package/lib/index.js +4 -5
- package/package.json +6 -6
package/es/index.js
CHANGED
|
@@ -118,8 +118,8 @@ function CallToAction(_ref) {
|
|
|
118
118
|
url = _ref2$url === void 0 ? null : _ref2$url,
|
|
119
119
|
_ref2$label = _ref2.label,
|
|
120
120
|
label = _ref2$label === void 0 ? null : _ref2$label,
|
|
121
|
-
_ref2$
|
|
122
|
-
|
|
121
|
+
_ref2$boxStyle = _ref2.boxStyle,
|
|
122
|
+
boxStyle = _ref2$boxStyle === void 0 ? null : _ref2$boxStyle,
|
|
123
123
|
_ref2$inWebView = _ref2.inWebView,
|
|
124
124
|
inWebView = _ref2$inWebView === void 0 ? false : _ref2$inWebView;
|
|
125
125
|
|
|
@@ -151,8 +151,7 @@ function CallToAction(_ref) {
|
|
|
151
151
|
return _objectSpread(_objectSpread({}, {
|
|
152
152
|
fontSize: fontSize
|
|
153
153
|
}), getStyleFromColor(color, 'color'));
|
|
154
|
-
}, [fontSize, color]);
|
|
155
|
-
console.log(buttonStyle); // MobileSafari blocks popup no matter what
|
|
154
|
+
}, [fontSize, color]); // MobileSafari blocks popup no matter what
|
|
156
155
|
|
|
157
156
|
var selfTargetLinkRef = useRef(null);
|
|
158
157
|
|
|
@@ -242,7 +241,7 @@ function CallToAction(_ref) {
|
|
|
242
241
|
focusable: focusable,
|
|
243
242
|
buttonStyle: _objectSpread({
|
|
244
243
|
marginBottom: 10
|
|
245
|
-
},
|
|
244
|
+
}, boxStyle)
|
|
246
245
|
}, swipeUpEnabled && !disabled ? bind() : null, inWebView ? {
|
|
247
246
|
onClick: onOpenWebView
|
|
248
247
|
} : {
|
package/lib/index.js
CHANGED
|
@@ -132,8 +132,8 @@ function CallToAction(_ref) {
|
|
|
132
132
|
url = _ref2$url === void 0 ? null : _ref2$url,
|
|
133
133
|
_ref2$label = _ref2.label,
|
|
134
134
|
label = _ref2$label === void 0 ? null : _ref2$label,
|
|
135
|
-
_ref2$
|
|
136
|
-
|
|
135
|
+
_ref2$boxStyle = _ref2.boxStyle,
|
|
136
|
+
boxStyle = _ref2$boxStyle === void 0 ? null : _ref2$boxStyle,
|
|
137
137
|
_ref2$inWebView = _ref2.inWebView,
|
|
138
138
|
inWebView = _ref2$inWebView === void 0 ? false : _ref2$inWebView;
|
|
139
139
|
|
|
@@ -165,8 +165,7 @@ function CallToAction(_ref) {
|
|
|
165
165
|
return _objectSpread__default["default"](_objectSpread__default["default"]({}, {
|
|
166
166
|
fontSize: fontSize
|
|
167
167
|
}), utils.getStyleFromColor(color, 'color'));
|
|
168
|
-
}, [fontSize, color]);
|
|
169
|
-
console.log(buttonStyle); // MobileSafari blocks popup no matter what
|
|
168
|
+
}, [fontSize, color]); // MobileSafari blocks popup no matter what
|
|
170
169
|
|
|
171
170
|
var selfTargetLinkRef = React.useRef(null);
|
|
172
171
|
|
|
@@ -256,7 +255,7 @@ function CallToAction(_ref) {
|
|
|
256
255
|
focusable: focusable,
|
|
257
256
|
buttonStyle: _objectSpread__default["default"]({
|
|
258
257
|
marginBottom: 10
|
|
259
|
-
},
|
|
258
|
+
}, boxStyle)
|
|
260
259
|
}, swipeUpEnabled && !disabled ? bind() : null, inWebView ? {
|
|
261
260
|
onClick: onOpenWebView
|
|
262
261
|
} : {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-call-to-action",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.63",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
53
53
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
54
54
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
55
|
-
"@micromag/core": "^0.3.
|
|
56
|
-
"@micromag/element-button": "^0.3.
|
|
57
|
-
"@micromag/element-text": "^0.3.
|
|
58
|
-
"@micromag/element-webview": "^0.3.
|
|
55
|
+
"@micromag/core": "^0.3.63",
|
|
56
|
+
"@micromag/element-button": "^0.3.63",
|
|
57
|
+
"@micromag/element-text": "^0.3.63",
|
|
58
|
+
"@micromag/element-webview": "^0.3.63",
|
|
59
59
|
"@react-spring/core": "^9.1.1",
|
|
60
60
|
"@react-spring/web": "^9.1.1",
|
|
61
61
|
"@use-gesture/react": "^10.2.4",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "002ba9d6db19aa37ea77a2465942060661f19dcf"
|
|
72
72
|
}
|