@canonical/react-components 0.53.0 → 0.53.2

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/README.md CHANGED
@@ -72,3 +72,8 @@ yarn link @canonical/react-components
72
72
  cd react-components
73
73
  yarn run unlink-packages
74
74
  ```
75
+
76
+ ## Related projects
77
+ The following projects are related to, or build upon this library:
78
+ - [Store components](https://github.com/canonical/store-components)
79
+ - [MAAS React components](https://github.com/canonical/maas-react-components)
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.EmptyState = void 0;
7
+ var _classnames = _interopRequireDefault(require("classnames"));
7
8
  var _react = _interopRequireDefault(require("react"));
8
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
10
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -16,10 +17,14 @@ const EmptyState = _ref => {
16
17
  ...props
17
18
  } = _ref;
18
19
  return /*#__PURE__*/_react.default.createElement("div", _extends({
19
- className: className
20
- }, props), image, /*#__PURE__*/_react.default.createElement("h2", {
21
- className: "p-heading--4"
22
- }, title), children);
20
+ className: (0, _classnames.default)(["row", className])
21
+ }, props), /*#__PURE__*/_react.default.createElement("div", {
22
+ className: "u-align--right col-4 col-medium-2 col-small-1"
23
+ }, image), /*#__PURE__*/_react.default.createElement("div", {
24
+ className: "u-align--left col-8 col-medium-4 col-small-3"
25
+ }, /*#__PURE__*/_react.default.createElement("p", {
26
+ className: "p-heading--4 u-no-margin--bottom"
27
+ }, title), children));
23
28
  };
24
29
  exports.EmptyState = EmptyState;
25
30
  var _default = exports.default = EmptyState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonical/react-components",
3
- "version": "0.53.0",
3
+ "version": "0.53.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "Huw Wilkins <huw.wilkins@canonical.com>",