@micromag/element-webview 0.3.112 → 0.3.119
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 -54
- package/lib/index.js +2 -55
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -3,60 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Button from '@micromag/element-button';
|
|
6
|
-
|
|
7
|
-
var propTypes$1 = {
|
|
8
|
-
stroke: PropTypes.string,
|
|
9
|
-
border: PropTypes.string,
|
|
10
|
-
fill: PropTypes.string,
|
|
11
|
-
className: PropTypes.string
|
|
12
|
-
};
|
|
13
|
-
var defaultProps$1 = {
|
|
14
|
-
stroke: 'currentColor',
|
|
15
|
-
border: 'rgba(0,0,0,0.67)',
|
|
16
|
-
fill: '#fff',
|
|
17
|
-
className: null
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
var Close = function Close(_ref) {
|
|
21
|
-
var stroke = _ref.stroke,
|
|
22
|
-
border = _ref.border,
|
|
23
|
-
fill = _ref.fill,
|
|
24
|
-
className = _ref.className;
|
|
25
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
26
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
-
width: "42.9",
|
|
28
|
-
height: "42.9",
|
|
29
|
-
viewBox: "0 0 42.9 42.9",
|
|
30
|
-
className: className
|
|
31
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
32
|
-
transform: "translate(-352.531 -47.531)"
|
|
33
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
34
|
-
fill: border,
|
|
35
|
-
d: "M374,47.5c11.9,0,21.5,9.6,21.5,21.5s-9.6,21.5-21.5,21.5s-21.5-9.6-21.5-21.5c0,0,0,0,0,0 C352.5,57.1,362.1,47.5,374,47.5z"
|
|
36
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
37
|
-
fill: fill,
|
|
38
|
-
d: "M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"
|
|
39
|
-
}), /*#__PURE__*/React.createElement("g", {
|
|
40
|
-
transform: "translate(366.893 61.893)"
|
|
41
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
42
|
-
transform: "translate(0 0)"
|
|
43
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
44
|
-
fill: fill,
|
|
45
|
-
stroke: stroke,
|
|
46
|
-
strokeWidth: "2",
|
|
47
|
-
strokeLinecap: "round",
|
|
48
|
-
d: "M14.2,0.3L0,13.9"
|
|
49
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
50
|
-
fill: fill,
|
|
51
|
-
stroke: stroke,
|
|
52
|
-
strokeWidth: "2",
|
|
53
|
-
strokeLinecap: "round",
|
|
54
|
-
d: "M0.3,0l13.7,14.2"
|
|
55
|
-
})))));
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
Close.propTypes = propTypes$1;
|
|
59
|
-
Close.defaultProps = defaultProps$1;
|
|
6
|
+
import { Close } from '@micromag/core/components';
|
|
60
7
|
|
|
61
8
|
var styles = {"container":"micromag-element-webview-container","close":"micromag-element-webview-close","iframe":"micromag-element-webview-iframe","top":"micromag-element-webview-top","icon":"micromag-element-webview-icon"};
|
|
62
9
|
|
package/lib/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var classNames = require('classnames');
|
|
|
5
5
|
var PropTypes = require('prop-types');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var Button = require('@micromag/element-button');
|
|
8
|
+
var components = require('@micromag/core/components');
|
|
8
9
|
|
|
9
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
11
|
|
|
@@ -14,60 +15,6 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
14
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
16
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
16
17
|
|
|
17
|
-
var propTypes$1 = {
|
|
18
|
-
stroke: PropTypes__default["default"].string,
|
|
19
|
-
border: PropTypes__default["default"].string,
|
|
20
|
-
fill: PropTypes__default["default"].string,
|
|
21
|
-
className: PropTypes__default["default"].string
|
|
22
|
-
};
|
|
23
|
-
var defaultProps$1 = {
|
|
24
|
-
stroke: 'currentColor',
|
|
25
|
-
border: 'rgba(0,0,0,0.67)',
|
|
26
|
-
fill: '#fff',
|
|
27
|
-
className: null
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
var Close = function Close(_ref) {
|
|
31
|
-
var stroke = _ref.stroke,
|
|
32
|
-
border = _ref.border,
|
|
33
|
-
fill = _ref.fill,
|
|
34
|
-
className = _ref.className;
|
|
35
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
36
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
-
width: "42.9",
|
|
38
|
-
height: "42.9",
|
|
39
|
-
viewBox: "0 0 42.9 42.9",
|
|
40
|
-
className: className
|
|
41
|
-
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
42
|
-
transform: "translate(-352.531 -47.531)"
|
|
43
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
44
|
-
fill: border,
|
|
45
|
-
d: "M374,47.5c11.9,0,21.5,9.6,21.5,21.5s-9.6,21.5-21.5,21.5s-21.5-9.6-21.5-21.5c0,0,0,0,0,0 C352.5,57.1,362.1,47.5,374,47.5z"
|
|
46
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
47
|
-
fill: fill,
|
|
48
|
-
d: "M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"
|
|
49
|
-
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
50
|
-
transform: "translate(366.893 61.893)"
|
|
51
|
-
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
52
|
-
transform: "translate(0 0)"
|
|
53
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
54
|
-
fill: fill,
|
|
55
|
-
stroke: stroke,
|
|
56
|
-
strokeWidth: "2",
|
|
57
|
-
strokeLinecap: "round",
|
|
58
|
-
d: "M14.2,0.3L0,13.9"
|
|
59
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
60
|
-
fill: fill,
|
|
61
|
-
stroke: stroke,
|
|
62
|
-
strokeWidth: "2",
|
|
63
|
-
strokeLinecap: "round",
|
|
64
|
-
d: "M0.3,0l13.7,14.2"
|
|
65
|
-
})))));
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
Close.propTypes = propTypes$1;
|
|
69
|
-
Close.defaultProps = defaultProps$1;
|
|
70
|
-
|
|
71
18
|
var styles = {"container":"micromag-element-webview-container","close":"micromag-element-webview-close","iframe":"micromag-element-webview-iframe","top":"micromag-element-webview-top","icon":"micromag-element-webview-icon"};
|
|
72
19
|
|
|
73
20
|
var propTypes = {
|
|
@@ -116,7 +63,7 @@ function WebView(_ref) {
|
|
|
116
63
|
}, /*#__PURE__*/React__default["default"].createElement(Button__default["default"], {
|
|
117
64
|
className: styles.close,
|
|
118
65
|
onClick: onClose
|
|
119
|
-
}, /*#__PURE__*/React__default["default"].createElement(Close, {
|
|
66
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Close, {
|
|
120
67
|
className: styles.closeIcon
|
|
121
68
|
}))) : null, !hidden ? /*#__PURE__*/React__default["default"].createElement("iframe", {
|
|
122
69
|
className: styles.iframe,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-webview",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.119",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -52,8 +52,8 @@
|
|
|
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.
|
|
55
|
+
"@micromag/core": "^0.3.119",
|
|
56
|
+
"@micromag/element-button": "^0.3.119",
|
|
57
57
|
"classnames": "^2.2.6",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
59
|
"prop-types": "^15.7.2",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "009841dc1641be98ddce6ed56cfcddc22509f342"
|
|
67
67
|
}
|