@micromag/element-call-to-action 0.3.42 → 0.3.46
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 +1 -2
- package/lib/index.js +2 -4
- package/package.json +5 -5
package/es/index.js
CHANGED
|
@@ -8,8 +8,8 @@ import classNames from 'classnames';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import React, { useState, useMemo, useRef, useEffect, useCallback } from 'react';
|
|
10
10
|
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
11
|
+
import { Button } from '@micromag/core/components';
|
|
11
12
|
import { isValidUrl, getStyleFromColor, isIos, getStyleFromBox } from '@micromag/core/utils';
|
|
12
|
-
import Button from '@micromag/element-button';
|
|
13
13
|
import Text from '@micromag/element-text';
|
|
14
14
|
import WebView from '@micromag/element-webview';
|
|
15
15
|
|
|
@@ -138,7 +138,6 @@ function CallToAction(_ref) {
|
|
|
138
138
|
var onCloseWebView = useCallback(function () {
|
|
139
139
|
setShowWebView(false);
|
|
140
140
|
}, [setShowWebView]);
|
|
141
|
-
console.log(callToAction, inWebView, showWebView);
|
|
142
141
|
return active ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
143
142
|
className: classNames([styles.container, (_ref6 = {}, _defineProperty(_ref6, className, className !== null), _defineProperty(_ref6, styles.disabled, disabled), _defineProperty(_ref6, styles.animationDisabled, animationDisabled), _defineProperty(_ref6, styles.invalidUrl, !validUrl), _defineProperty(_ref6, styles.withWebView, inWebView), _ref6)]),
|
|
144
143
|
ref: elRef
|
package/lib/index.js
CHANGED
|
@@ -10,8 +10,8 @@ var classNames = require('classnames');
|
|
|
10
10
|
var PropTypes = require('prop-types');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var core = require('@micromag/core');
|
|
13
|
+
var components = require('@micromag/core/components');
|
|
13
14
|
var utils = require('@micromag/core/utils');
|
|
14
|
-
var Button = require('@micromag/element-button');
|
|
15
15
|
var Text = require('@micromag/element-text');
|
|
16
16
|
var WebView = require('@micromag/element-webview');
|
|
17
17
|
|
|
@@ -23,7 +23,6 @@ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray)
|
|
|
23
23
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
24
24
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
26
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
27
26
|
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
|
|
28
27
|
var WebView__default = /*#__PURE__*/_interopDefaultLegacy(WebView);
|
|
29
28
|
|
|
@@ -152,7 +151,6 @@ function CallToAction(_ref) {
|
|
|
152
151
|
var onCloseWebView = React.useCallback(function () {
|
|
153
152
|
setShowWebView(false);
|
|
154
153
|
}, [setShowWebView]);
|
|
155
|
-
console.log(callToAction, inWebView, showWebView);
|
|
156
154
|
return active ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
157
155
|
className: classNames__default["default"]([styles.container, (_ref6 = {}, _defineProperty__default["default"](_ref6, className, className !== null), _defineProperty__default["default"](_ref6, styles.disabled, disabled), _defineProperty__default["default"](_ref6, styles.animationDisabled, animationDisabled), _defineProperty__default["default"](_ref6, styles.invalidUrl, !validUrl), _defineProperty__default["default"](_ref6, styles.withWebView, inWebView), _ref6)]),
|
|
158
156
|
ref: elRef
|
|
@@ -167,7 +165,7 @@ function CallToAction(_ref) {
|
|
|
167
165
|
className: styles.arrow,
|
|
168
166
|
style: arrowStyle,
|
|
169
167
|
icon: freeSolidSvgIcons.faChevronUp
|
|
170
|
-
}) : null, /*#__PURE__*/React__default["default"].createElement(
|
|
168
|
+
}) : null, /*#__PURE__*/React__default["default"].createElement(components.Button, Object.assign({
|
|
171
169
|
className: styles.button,
|
|
172
170
|
refButton: buttonRef,
|
|
173
171
|
focusable: focusable,
|
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.46",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
54
54
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
55
55
|
"@micromag/core": "^0.3.42",
|
|
56
|
-
"@micromag/element-button": "^0.3.
|
|
57
|
-
"@micromag/element-text": "^0.3.
|
|
58
|
-
"@micromag/element-webview": "^0.3.
|
|
56
|
+
"@micromag/element-button": "^0.3.45",
|
|
57
|
+
"@micromag/element-text": "^0.3.45",
|
|
58
|
+
"@micromag/element-webview": "^0.3.46",
|
|
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": "7d99fe7ce243492f14f5528cf9c191f96d4e5985"
|
|
72
72
|
}
|