linear-react-components-ui 0.4.77-beta.3 → 0.4.77-beta.4

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.
@@ -89,6 +89,7 @@
89
89
  animation: slideWithPositionRightToLeft 0.4s;
90
90
  }
91
91
  > .floatsubmenu {
92
+ width: 100%;
92
93
  > .submenuheader {
93
94
  color: $font-color-soft;
94
95
  display: flex;
@@ -99,6 +100,19 @@
99
100
  font-weight: 500;
100
101
  }
101
102
  }
103
+ > .submenucontent {
104
+ display: -webkit-box;
105
+ display: -ms-flexbox;
106
+ display: flex;
107
+ -webkit-box-orient: horizontal;
108
+ -webkit-box-direction: normal;
109
+ -ms-flex-flow: row wrap;
110
+ flex-flow: row wrap;
111
+
112
+ svg {
113
+ margin: 0 auto;
114
+ }
115
+ }
102
116
  }
103
117
  > .floatmenuitem .-items,
104
118
  > .floatsubmenu .floatmenuitem .-items {
@@ -13,6 +13,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
14
14
  var _icons = _interopRequireDefault(require("../../icons"));
15
15
 
16
+ var _SpinnerLoading = _interopRequireDefault(require("../../spinner/SpinnerLoading"));
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
19
 
18
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -23,7 +25,8 @@ var SubMenuContainer = function SubMenuContainer(_ref) {
23
25
  var title = _ref.title,
24
26
  customClass = _ref.customClass,
25
27
  children = _ref.children,
26
- handlerGoBack = _ref.handlerGoBack;
28
+ handlerGoBack = _ref.handlerGoBack,
29
+ isLoading = _ref.isLoading;
27
30
  (0, _react.useEffect)(function () {
28
31
  return function () {
29
32
  handlerGoBack();
@@ -42,18 +45,22 @@ var SubMenuContainer = function SubMenuContainer(_ref) {
42
45
  }
43
46
  }), title && /*#__PURE__*/_react["default"].createElement("span", null, title)), /*#__PURE__*/_react["default"].createElement("div", {
44
47
  className: "submenucontent"
45
- }, children));
48
+ }, isLoading ? /*#__PURE__*/_react["default"].createElement(_SpinnerLoading["default"], {
49
+ delayTime: 0
50
+ }) : children));
46
51
  };
47
52
 
48
53
  SubMenuContainer.propTypes = {
49
54
  children: _propTypes["default"].element.isRequired,
50
55
  handlerGoBack: _propTypes["default"].func.isRequired,
51
56
  title: _propTypes["default"].string,
52
- customClass: _propTypes["default"].string
57
+ customClass: _propTypes["default"].string,
58
+ isLoading: _propTypes["default"].bool
53
59
  };
54
60
  SubMenuContainer.defaultProps = {
55
61
  title: undefined,
56
- customClass: undefined
62
+ customClass: undefined,
63
+ isLoading: false
57
64
  };
58
65
  var _default = SubMenuContainer;
59
66
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "0.4.77-beta.3",
3
+ "version": "0.4.77-beta.4",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {