@sb1/ffe-messages-react 0.3.6 → 0.3.8

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/MessageBox.js CHANGED
@@ -27,7 +27,7 @@ import classNames from 'classnames';
27
27
  import { Content } from './Content';
28
28
  import { txt } from './texts';
29
29
  export var MessageBox = function (_a) {
30
- var type = _a.type, header = _a.header, iconFileUrl = _a.iconFileUrl, children = _a.children, _b = _a.locale, locale = _b === void 0 ? 'nb' : _b, role = _a.role, onColoredBg = _a.onColoredBg, className = _a.className, rest = __rest(_a, ["type", "header", "iconFileUrl", "children", "locale", "role", "onColoredBg", "className"]);
30
+ var type = _a.type, header = _a.header, iconFileUrl = _a.iconFileUrl, children = _a.children, _b = _a.locale, locale = _b === void 0 ? 'nb' : _b, onColoredBg = _a.onColoredBg, className = _a.className, rest = __rest(_a, ["type", "header", "iconFileUrl", "children", "locale", "onColoredBg", "className"]);
31
31
  return (React.createElement("div", __assign({ className: classNames("ffe-message", "ffe-message--box", "ffe-message--".concat(type), {
32
32
  'ffe-message--colored-bg': onColoredBg,
33
33
  }, className), role: type === 'error' ? 'alert' : 'group', "aria-label": txt[locale][type].ariaLabel }, rest),
package/lib/MessageBox.js CHANGED
@@ -33,7 +33,7 @@ var classnames_1 = __importDefault(require("classnames"));
33
33
  var Content_1 = require("./Content");
34
34
  var texts_1 = require("./texts");
35
35
  var MessageBox = function (_a) {
36
- var type = _a.type, header = _a.header, iconFileUrl = _a.iconFileUrl, children = _a.children, _b = _a.locale, locale = _b === void 0 ? 'nb' : _b, role = _a.role, onColoredBg = _a.onColoredBg, className = _a.className, rest = __rest(_a, ["type", "header", "iconFileUrl", "children", "locale", "role", "onColoredBg", "className"]);
36
+ var type = _a.type, header = _a.header, iconFileUrl = _a.iconFileUrl, children = _a.children, _b = _a.locale, locale = _b === void 0 ? 'nb' : _b, onColoredBg = _a.onColoredBg, className = _a.className, rest = __rest(_a, ["type", "header", "iconFileUrl", "children", "locale", "onColoredBg", "className"]);
37
37
  return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)("ffe-message", "ffe-message--box", "ffe-message--".concat(type), {
38
38
  'ffe-message--colored-bg': onColoredBg,
39
39
  }, className), role: type === 'error' ? 'alert' : 'group', "aria-label": texts_1.txt[locale][type].ariaLabel }, rest),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-messages-react",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "license": "MIT",
5
5
  "author": "SpareBank 1",
6
6
  "files": [
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@sb1/ffe-icons-react": "^11.0.3",
29
- "@sb1/ffe-messages": "^0.3.0",
29
+ "@sb1/ffe-messages": "^0.3.1",
30
30
  "classnames": "^2.3.1"
31
31
  },
32
32
  "devDependencies": {
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "98d33cf2e867ce718139edf1adf97336b8da6b68"
44
+ "gitHead": "045f089a1bede6be6a21f2374b467378867571b5"
45
45
  }