@micromag/element-webview 0.3.39 → 0.3.41
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/assets/css/styles.css +1 -1
- package/es/index.js +5 -3
- package/lib/index.js +5 -3
- package/package.json +2 -2
package/assets/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.micromag-element-webview-container{position:relative;background-color:#343434}.micromag-element-webview-container,.micromag-element-webview-container .micromag-element-webview-iframe{width:100%;height:100%}.micromag-element-webview-container .micromag-element-webview-
|
|
1
|
+
.micromag-element-webview-container{position:relative;background-color:#343434}.micromag-element-webview-container,.micromag-element-webview-container .micromag-element-webview-iframe{width:100%;height:100%}.micromag-element-webview-container .micromag-element-webview-top{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;width:100%}.micromag-element-webview-container .micromag-element-webview-close{display:block;border:2px solid #fff;border-radius:50%;background-color:#343434}.micromag-element-webview-container .micromag-element-webview-icon{line-height:1}
|
package/es/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import Button from '@micromag/element-button';
|
|
9
9
|
|
|
10
|
-
var styles = {"container":"micromag-element-webview-container","iframe":"micromag-element-webview-iframe","close":"micromag-element-webview-close"};
|
|
10
|
+
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"};
|
|
11
11
|
|
|
12
12
|
var propTypes = {
|
|
13
13
|
iframeRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
@@ -48,13 +48,15 @@ function WebView(_ref) {
|
|
|
48
48
|
return /*#__PURE__*/React.createElement("div", {
|
|
49
49
|
className: classNames([styles.container, (_ref2 = {}, _defineProperty(_ref2, styles.closeable, closeable), _defineProperty(_ref2, className, className !== null), _ref2)]),
|
|
50
50
|
style: _objectSpread({}, size)
|
|
51
|
-
}, closeable ? /*#__PURE__*/React.createElement(
|
|
51
|
+
}, closeable ? /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: styles.top
|
|
53
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
52
54
|
className: styles.close,
|
|
53
55
|
onClick: onClose
|
|
54
56
|
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
55
57
|
className: styles.icon,
|
|
56
58
|
icon: faTimes
|
|
57
|
-
})) : null, /*#__PURE__*/React.createElement("iframe", Object.assign({
|
|
59
|
+
}))) : null, /*#__PURE__*/React.createElement("iframe", Object.assign({
|
|
58
60
|
className: styles.iframe,
|
|
59
61
|
ref: iframeRef,
|
|
60
62
|
title: "Popup",
|
package/lib/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
18
18
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
19
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
20
20
|
|
|
21
|
-
var styles = {"container":"micromag-element-webview-container","iframe":"micromag-element-webview-iframe","close":"micromag-element-webview-close"};
|
|
21
|
+
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"};
|
|
22
22
|
|
|
23
23
|
var propTypes = {
|
|
24
24
|
iframeRef: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].shape({
|
|
@@ -59,13 +59,15 @@ function WebView(_ref) {
|
|
|
59
59
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
60
60
|
className: classNames__default["default"]([styles.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, styles.closeable, closeable), _defineProperty__default["default"](_ref2, className, className !== null), _ref2)]),
|
|
61
61
|
style: _objectSpread__default["default"]({}, size)
|
|
62
|
-
}, closeable ? /*#__PURE__*/React__default["default"].createElement(
|
|
62
|
+
}, closeable ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
63
|
+
className: styles.top
|
|
64
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button__default["default"], {
|
|
63
65
|
className: styles.close,
|
|
64
66
|
onClick: onClose
|
|
65
67
|
}, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
|
|
66
68
|
className: styles.icon,
|
|
67
69
|
icon: freeSolidSvgIcons.faTimes
|
|
68
|
-
})) : null, /*#__PURE__*/React__default["default"].createElement("iframe", Object.assign({
|
|
70
|
+
}))) : null, /*#__PURE__*/React__default["default"].createElement("iframe", Object.assign({
|
|
69
71
|
className: styles.iframe,
|
|
70
72
|
ref: iframeRef,
|
|
71
73
|
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.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8c52a4fe354d583bab2697922e685998ee240aa2"
|
|
67
67
|
}
|