@portnet/ui 0.0.29 → 0.0.30

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.
@@ -19,6 +19,7 @@ const PuiDefaultPage = _ref => {
19
19
  topNav,
20
20
  bottomNav,
21
21
  loading,
22
+ show,
22
23
  retour,
23
24
  onRetour,
24
25
  children
@@ -28,20 +29,22 @@ const PuiDefaultPage = _ref => {
28
29
  title: title,
29
30
  icon: titleIcon,
30
31
  trace: trace
31
- }), Boolean(topNav) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiNavigation.default, {
32
- onRetour: onRetour,
33
- retour: retour,
34
- sx: {
35
- marginBottom: 2
36
- },
37
- children: navActions
38
- }), children, Boolean(bottomNav) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiNavigation.default, {
39
- onRetour: onRetour,
40
- retour: retour,
41
- sx: {
42
- marginTop: 2
43
- },
44
- children: navActions
32
+ }), show && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
33
+ children: [Boolean(topNav) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiNavigation.default, {
34
+ onRetour: onRetour,
35
+ retour: retour,
36
+ sx: {
37
+ marginBottom: 2
38
+ },
39
+ children: navActions
40
+ }), children, Boolean(bottomNav) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiNavigation.default, {
41
+ onRetour: onRetour,
42
+ retour: retour,
43
+ sx: {
44
+ marginTop: 2
45
+ },
46
+ children: navActions
47
+ })]
45
48
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiLoadingBackdrop.default, {
46
49
  open: loading
47
50
  })]
@@ -59,7 +62,8 @@ PuiDefaultPage.propTypes = {
59
62
  onRetour: _propTypes.default.func
60
63
  };
61
64
  PuiDefaultPage.defaultProps = {
62
- loading: false
65
+ loading: false,
66
+ show: true
63
67
  };
64
68
  var _default = PuiDefaultPage;
65
69
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portnet/ui",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "Portnet UI",
5
5
  "keywords": [
6
6
  "react",