@micromag/element-call-to-action 0.3.50 → 0.3.51

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 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';
12
- import { isValidUrl, getStyleFromColor, isIos, getStyleFromBox } from '@micromag/core/utils';
11
+ import { isValidUrl, getStyleFromColor, isIos } 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
 
@@ -158,7 +158,7 @@ function CallToAction(_ref) {
158
158
  focusable: focusable,
159
159
  buttonStyle: _objectSpread({
160
160
  marginBottom: 10
161
- }, getStyleFromBox(buttonStyle))
161
+ }, buttonStyle)
162
162
  }, swipeUpEnabled && !disabled ? bind() : null, inWebView ? {
163
163
  onClick: onOpenWebView
164
164
  } : {
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');
14
13
  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,6 +23,7 @@ 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);
26
27
  var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
27
28
  var WebView__default = /*#__PURE__*/_interopDefaultLegacy(WebView);
28
29
 
@@ -165,13 +166,13 @@ function CallToAction(_ref) {
165
166
  className: styles.arrow,
166
167
  style: arrowStyle,
167
168
  icon: freeSolidSvgIcons.faChevronUp
168
- }) : null, /*#__PURE__*/React__default["default"].createElement(components.Button, Object.assign({
169
+ }) : null, /*#__PURE__*/React__default["default"].createElement(Button__default["default"], Object.assign({
169
170
  className: styles.button,
170
171
  refButton: buttonRef,
171
172
  focusable: focusable,
172
173
  buttonStyle: _objectSpread__default["default"]({
173
174
  marginBottom: 10
174
- }, utils.getStyleFromBox(buttonStyle))
175
+ }, buttonStyle)
175
176
  }, swipeUpEnabled && !disabled ? bind() : null, inWebView ? {
176
177
  onClick: onOpenWebView
177
178
  } : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-call-to-action",
3
- "version": "0.3.50",
3
+ "version": "0.3.51",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "d021aec0c6ae2543f8dcde725a8cca8c7c811d75"
71
+ "gitHead": "e15a616fcf1f0c6c9f75ef89876eb1112c6d7c12"
72
72
  }