@blocklet/launcher-layout 2.1.91 → 2.1.92

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.
Files changed (2) hide show
  1. package/lib/index.js +16 -11
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -13,6 +13,7 @@ var _Hidden = _interopRequireDefault(require("@mui/material/Hidden"));
13
13
  var _react = require("@emotion/react");
14
14
  var _styles = require("@mui/material/styles");
15
15
  var _useMediaQuery = _interopRequireDefault(require("@mui/material/useMediaQuery"));
16
+ var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
16
17
  var _isObject = _interopRequireDefault(require("lodash/isObject"));
17
18
  var _propTypes = _interopRequireDefault(require("prop-types"));
18
19
  var _react2 = require("react");
@@ -139,16 +140,20 @@ function Layout(_ref) {
139
140
  subTitle: navSubTitle,
140
141
  loading: loading
141
142
  })
142
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.Suspense, {
143
- fallback: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Center.default, {
144
- relative: "parent",
145
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
146
- style: {
147
- marginTop: 36
148
- }
149
- })
150
- }),
151
- children: children
143
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
144
+ component: "div",
145
+ className: "layout-content",
146
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.Suspense, {
147
+ fallback: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Center.default, {
148
+ relative: "parent",
149
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
150
+ style: {
151
+ marginTop: 36
152
+ }
153
+ })
154
+ }),
155
+ children: children
156
+ })
152
157
  })]
153
158
  })]
154
159
  }))
@@ -197,7 +202,7 @@ if (ua.includes('iphone os') && ua.includes('crios')) {
197
202
  injectStyle = 'height: calc(100vh - 60px);';
198
203
  }
199
204
  const Header = _styled.default.header(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", ";\n min-width: 900px;\n box-sizing: border-box;\n position: absolute;\n z-index: 200;\n top: 0;\n display: flex;\n max-width: ", ";\n height: 68px;\n align-items: center;\n\n @media (max-height: 900px) {\n width: 100%;\n }\n\n ", " and (min-height: 900px) {\n justify-content: flex-end;\n }\n\n ", " {\n min-width: 360px;\n width: 100%;\n height: ", ";\n padding: 14px 16px;\n justify-content: space-between;\n background: #f6f8fa;\n }\n\n .left {\n flex: 1;\n display: flex;\n align-items: center;\n }\n\n .right {\n display: flex;\n align-items: center;\n ", " {\n button,\n a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n }\n"])), props => props.width || '80%', props => props.maxWidth, props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), HEADER_HEIGHT_MD, props => props.theme.breakpoints.down('md'));
200
- const Root = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n letter-spacing: normal;\n ", "\n\n .circular {\n display: inline-block;\n position: relative;\n width: 15px;\n height: 12px;\n > * {\n position: absolute;\n left: 3px;\n top: 2px;\n width: 100%;\n height: 100%;\n }\n }\n\n ", " {\n background: #f6f8fa;\n }\n\n ", " {\n background: ", ";\n }\n"])), injectStyle, props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), props => props.theme.palette.common.white);
205
+ const Root = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n letter-spacing: normal;\n ", "\n\n .circular {\n display: inline-block;\n position: relative;\n width: 15px;\n height: 12px;\n > * {\n position: absolute;\n left: 3px;\n top: 2px;\n width: 100%;\n height: 100%;\n }\n }\n\n .layout-content {\n width: 100%;\n height: 100%;\n padding: 32px;\n\n ", " {\n padding: 0 16px 16px;\n }\n }\n\n ", " {\n background: #f6f8fa;\n }\n\n ", " {\n background: ", ";\n }\n"])), injectStyle, props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), props => props.theme.palette.common.white);
201
206
  const LogoContainer = _styled.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n margin-top: 4px;\n"])));
202
207
  var _default = Layout;
203
208
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-layout",
3
- "version": "2.1.91",
3
+ "version": "2.1.92",
4
4
  "description": "Common ux components of launcher",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -39,8 +39,8 @@
39
39
  "@arcblock/did-connect": "^2.6.7",
40
40
  "@arcblock/icons": "^2.6.7",
41
41
  "@arcblock/ux": "^2.6.7",
42
- "@blocklet/launcher-util": "2.1.91",
43
- "@blocklet/launcher-ux": "2.1.91",
42
+ "@blocklet/launcher-util": "2.1.92",
43
+ "@blocklet/launcher-ux": "2.1.92",
44
44
  "@blocklet/meta": "^1.16.13",
45
45
  "@emotion/react": "^11.11.1",
46
46
  "@emotion/styled": "^11.11.0",
@@ -60,5 +60,5 @@
60
60
  "@storybook/react": "^6.5.16",
61
61
  "babel-plugin-inline-react-svg": "^2.0.2"
62
62
  },
63
- "gitHead": "a1aa8dd8d2a8e3c9cced8e26f5f579630451c1f0"
63
+ "gitHead": "6f32ac9b9a7c2c1fc84cb9e69bede56b58cdf84a"
64
64
  }