@sb1/ffe-message-box-react 7.1.0 → 7.2.1
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/BaseMessage.js +3 -3
- package/es/ErrorMessage.js +1 -1
- package/es/InfoMessage.js +1 -1
- package/es/SuccessMessage.js +1 -1
- package/es/TipsMessage.js +1 -1
- package/lib/BaseMessage.js +3 -3
- package/package.json +6 -12
package/es/BaseMessage.js
CHANGED
|
@@ -16,8 +16,8 @@ import React from 'react';
|
|
|
16
16
|
import { bool, node, oneOf, string } from 'prop-types';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
18
|
var iconStyles = {
|
|
19
|
-
width: '
|
|
20
|
-
height: '
|
|
19
|
+
width: '32px',
|
|
20
|
+
height: '32px'
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
var BaseMessage = function BaseMessage(props) {
|
|
@@ -42,7 +42,7 @@ var BaseMessage = function BaseMessage(props) {
|
|
|
42
42
|
}, icon.props))), /*#__PURE__*/React.createElement("div", {
|
|
43
43
|
className: "ffe-message-box__box"
|
|
44
44
|
}, title && /*#__PURE__*/React.createElement("div", {
|
|
45
|
-
className: "ffe-
|
|
45
|
+
className: "ffe-message-box__title"
|
|
46
46
|
}, title), content && /*#__PURE__*/React.createElement("p", null, content), !content && children));
|
|
47
47
|
};
|
|
48
48
|
|
package/es/ErrorMessage.js
CHANGED
|
@@ -8,7 +8,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { node, string, bool } from 'prop-types';
|
|
11
|
-
import UtropstegnIkon from
|
|
11
|
+
import UtropstegnIkon from "@sb1/ffe-icons-react/es/utropstegn-ikon";
|
|
12
12
|
import BaseMessage from './BaseMessage';
|
|
13
13
|
|
|
14
14
|
var ErrorMessage = function ErrorMessage(props) {
|
package/es/InfoMessage.js
CHANGED
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { node, string } from 'prop-types';
|
|
5
|
-
import InfoIkon from
|
|
5
|
+
import InfoIkon from "@sb1/ffe-icons-react/es/info-ikon";
|
|
6
6
|
import BaseMessage from './BaseMessage';
|
|
7
7
|
|
|
8
8
|
var InfoMessage = function InfoMessage(props) {
|
package/es/SuccessMessage.js
CHANGED
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { node, string } from 'prop-types';
|
|
5
|
-
import HakeIkon from
|
|
5
|
+
import HakeIkon from "@sb1/ffe-icons-react/es/hake-ikon";
|
|
6
6
|
import BaseMessage from './BaseMessage';
|
|
7
7
|
|
|
8
8
|
var SuccessMessage = function SuccessMessage(props) {
|
package/es/TipsMessage.js
CHANGED
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { node, string } from 'prop-types';
|
|
5
|
-
import LyspareIkon from
|
|
5
|
+
import LyspareIkon from "@sb1/ffe-icons-react/es/lyspare-ikon";
|
|
6
6
|
import BaseMessage from './BaseMessage';
|
|
7
7
|
|
|
8
8
|
var TipsMessage = function TipsMessage(props) {
|
package/lib/BaseMessage.js
CHANGED
|
@@ -28,8 +28,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
28
28
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
29
|
|
|
30
30
|
var iconStyles = {
|
|
31
|
-
width: '
|
|
32
|
-
height: '
|
|
31
|
+
width: '32px',
|
|
32
|
+
height: '32px'
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
var BaseMessage = function BaseMessage(props) {
|
|
@@ -54,7 +54,7 @@ var BaseMessage = function BaseMessage(props) {
|
|
|
54
54
|
}, icon.props))), /*#__PURE__*/_react.default.createElement("div", {
|
|
55
55
|
className: "ffe-message-box__box"
|
|
56
56
|
}, title && /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
-
className: "ffe-
|
|
57
|
+
className: "ffe-message-box__title"
|
|
58
58
|
}, title), content && /*#__PURE__*/_react.default.createElement("p", null, content), !content && children));
|
|
59
59
|
};
|
|
60
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-message-box-react",
|
|
3
|
-
"version": "7.1
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "SpareBank 1",
|
|
6
6
|
"files": [
|
|
@@ -20,22 +20,16 @@
|
|
|
20
20
|
"build": "ffe-buildtool babel",
|
|
21
21
|
"watch": "ffe-buildtool babel-watch",
|
|
22
22
|
"lint": "eslint src",
|
|
23
|
-
"test": "jest",
|
|
24
|
-
"test:watch": "jest --watch"
|
|
25
|
-
},
|
|
26
|
-
"jest": {
|
|
27
|
-
"setupTestFrameworkScriptFile": "../../test-setup.js"
|
|
23
|
+
"test": "ffe-buildtool jest",
|
|
24
|
+
"test:watch": "ffe-buildtool jest --watch"
|
|
28
25
|
},
|
|
29
26
|
"dependencies": {
|
|
30
|
-
"@sb1/ffe-icons-react": "^7.
|
|
27
|
+
"@sb1/ffe-icons-react": "^7.3.1",
|
|
31
28
|
"classnames": "^2.3.1"
|
|
32
29
|
},
|
|
33
30
|
"devDependencies": {
|
|
34
|
-
"@sb1/ffe-buildtool": "^0.
|
|
35
|
-
"enzyme": "^3.7.0",
|
|
36
|
-
"enzyme-adapter-react-16": "^1.7.0",
|
|
31
|
+
"@sb1/ffe-buildtool": "^0.4.0",
|
|
37
32
|
"eslint": "^5.9.0",
|
|
38
|
-
"jest": "^26.0.0",
|
|
39
33
|
"prop-types": "^15.7.2",
|
|
40
34
|
"react": "^16.9.0",
|
|
41
35
|
"react-addons-test-utils": "^15.6.2",
|
|
@@ -48,5 +42,5 @@
|
|
|
48
42
|
"publishConfig": {
|
|
49
43
|
"access": "public"
|
|
50
44
|
},
|
|
51
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e900240c8817faf27fdccbc479905958b4c5aa79"
|
|
52
46
|
}
|