@micromag/element-webview 0.3.86 → 0.3.88
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 +47 -7
- package/lib/index.js +47 -7
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -1,11 +1,55 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
-
import { faTimes } from '@fortawesome/free-solid-svg-icons';
|
|
3
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
2
|
import classNames from 'classnames';
|
|
5
3
|
import PropTypes from 'prop-types';
|
|
6
4
|
import React from 'react';
|
|
7
5
|
import Button from '@micromag/element-button';
|
|
8
6
|
|
|
7
|
+
var propTypes$1 = {
|
|
8
|
+
color: PropTypes.string,
|
|
9
|
+
className: PropTypes.string
|
|
10
|
+
};
|
|
11
|
+
var defaultProps$1 = {
|
|
12
|
+
color: 'currentColor',
|
|
13
|
+
className: null
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
var Close = function Close(_ref) {
|
|
17
|
+
var color = _ref.color,
|
|
18
|
+
className = _ref.className;
|
|
19
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
+
width: "17.042",
|
|
22
|
+
height: "17.042",
|
|
23
|
+
viewBox: "0 0 17.042 17.042",
|
|
24
|
+
className: className
|
|
25
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
26
|
+
id: "Groupe_34",
|
|
27
|
+
"data-name": "Groupe 34",
|
|
28
|
+
transform: "translate(1.414 1.414)"
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
id: "Trac\xE9_222",
|
|
31
|
+
"data-name": "Trac\xE9 222",
|
|
32
|
+
d: "M-117.847,1483.807l-14.214,13.664",
|
|
33
|
+
transform: "translate(132.061 -1483.531)",
|
|
34
|
+
fill: "#fff",
|
|
35
|
+
stroke: color,
|
|
36
|
+
strokeLinecap: "round",
|
|
37
|
+
strokeWidth: "2"
|
|
38
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
39
|
+
id: "Trac\xE9_223",
|
|
40
|
+
"data-name": "Trac\xE9 223",
|
|
41
|
+
d: "M14.214,0,0,13.664",
|
|
42
|
+
transform: "translate(0.275 14.214) rotate(-90)",
|
|
43
|
+
fill: "#fff",
|
|
44
|
+
stroke: color,
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeWidth: "2"
|
|
47
|
+
})));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
Close.propTypes = propTypes$1;
|
|
51
|
+
Close.defaultProps = defaultProps$1;
|
|
52
|
+
|
|
9
53
|
var styles = {"container":"micromag-element-webview-container","iframe":"micromag-element-webview-iframe","top":"micromag-element-webview-top","close":"micromag-element-webview-close","icon":"micromag-element-webview-icon"};
|
|
10
54
|
|
|
11
55
|
var propTypes = {
|
|
@@ -54,11 +98,7 @@ function WebView(_ref) {
|
|
|
54
98
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
55
99
|
className: styles.close,
|
|
56
100
|
onClick: onClose
|
|
57
|
-
}, /*#__PURE__*/React.createElement(
|
|
58
|
-
className: styles.icon,
|
|
59
|
-
icon: faTimes,
|
|
60
|
-
size: "lg"
|
|
61
|
-
}))) : null, !hidden ? /*#__PURE__*/React.createElement("iframe", {
|
|
101
|
+
}, /*#__PURE__*/React.createElement(Close, null))) : null, !hidden ? /*#__PURE__*/React.createElement("iframe", {
|
|
62
102
|
className: styles.iframe,
|
|
63
103
|
ref: iframeRef,
|
|
64
104
|
title: "Popup",
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
|
-
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
5
|
-
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
6
4
|
var classNames = require('classnames');
|
|
7
5
|
var PropTypes = require('prop-types');
|
|
8
6
|
var React = require('react');
|
|
@@ -16,6 +14,52 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
16
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
15
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
18
16
|
|
|
17
|
+
var propTypes$1 = {
|
|
18
|
+
color: PropTypes__default["default"].string,
|
|
19
|
+
className: PropTypes__default["default"].string
|
|
20
|
+
};
|
|
21
|
+
var defaultProps$1 = {
|
|
22
|
+
color: 'currentColor',
|
|
23
|
+
className: null
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var Close = function Close(_ref) {
|
|
27
|
+
var color = _ref.color,
|
|
28
|
+
className = _ref.className;
|
|
29
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
width: "17.042",
|
|
32
|
+
height: "17.042",
|
|
33
|
+
viewBox: "0 0 17.042 17.042",
|
|
34
|
+
className: className
|
|
35
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
36
|
+
id: "Groupe_34",
|
|
37
|
+
"data-name": "Groupe 34",
|
|
38
|
+
transform: "translate(1.414 1.414)"
|
|
39
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
40
|
+
id: "Trac\xE9_222",
|
|
41
|
+
"data-name": "Trac\xE9 222",
|
|
42
|
+
d: "M-117.847,1483.807l-14.214,13.664",
|
|
43
|
+
transform: "translate(132.061 -1483.531)",
|
|
44
|
+
fill: "#fff",
|
|
45
|
+
stroke: color,
|
|
46
|
+
strokeLinecap: "round",
|
|
47
|
+
strokeWidth: "2"
|
|
48
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
49
|
+
id: "Trac\xE9_223",
|
|
50
|
+
"data-name": "Trac\xE9 223",
|
|
51
|
+
d: "M14.214,0,0,13.664",
|
|
52
|
+
transform: "translate(0.275 14.214) rotate(-90)",
|
|
53
|
+
fill: "#fff",
|
|
54
|
+
stroke: color,
|
|
55
|
+
strokeLinecap: "round",
|
|
56
|
+
strokeWidth: "2"
|
|
57
|
+
})));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
Close.propTypes = propTypes$1;
|
|
61
|
+
Close.defaultProps = defaultProps$1;
|
|
62
|
+
|
|
19
63
|
var styles = {"container":"micromag-element-webview-container","iframe":"micromag-element-webview-iframe","top":"micromag-element-webview-top","close":"micromag-element-webview-close","icon":"micromag-element-webview-icon"};
|
|
20
64
|
|
|
21
65
|
var propTypes = {
|
|
@@ -64,11 +108,7 @@ function WebView(_ref) {
|
|
|
64
108
|
}, /*#__PURE__*/React__default["default"].createElement(Button__default["default"], {
|
|
65
109
|
className: styles.close,
|
|
66
110
|
onClick: onClose
|
|
67
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
68
|
-
className: styles.icon,
|
|
69
|
-
icon: freeSolidSvgIcons.faTimes,
|
|
70
|
-
size: "lg"
|
|
71
|
-
}))) : null, !hidden ? /*#__PURE__*/React__default["default"].createElement("iframe", {
|
|
111
|
+
}, /*#__PURE__*/React__default["default"].createElement(Close, null))) : null, !hidden ? /*#__PURE__*/React__default["default"].createElement("iframe", {
|
|
72
112
|
className: styles.iframe,
|
|
73
113
|
ref: iframeRef,
|
|
74
114
|
title: "Popup",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-webview",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.88",
|
|
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.88",
|
|
56
|
+
"@micromag/element-button": "^0.3.88",
|
|
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": "d0fb1f7d4ae6bfa1fd07dc856307c1c4225ab889"
|
|
67
67
|
}
|