@blocklet/launcher-layout 2.1.90 → 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.
- package/lib/header.js +2 -1
- package/lib/index.js +16 -11
- package/package.json +4 -4
package/lib/header.js
CHANGED
|
@@ -128,6 +128,7 @@ function AppIcon(_ref3) {
|
|
|
128
128
|
blockletSize
|
|
129
129
|
} = _ref3;
|
|
130
130
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Img.default, {
|
|
131
|
+
// force update
|
|
131
132
|
width: blockletSize,
|
|
132
133
|
height: blockletSize,
|
|
133
134
|
src: logoUrl,
|
|
@@ -136,7 +137,7 @@ function AppIcon(_ref3) {
|
|
|
136
137
|
style: {
|
|
137
138
|
verticalAlign: 'text-bottom'
|
|
138
139
|
}
|
|
139
|
-
});
|
|
140
|
+
}, "layout-app-icon-".concat(logoUrl));
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
// eslint-disable-next-line react/prop-types
|
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)(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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.
|
|
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.
|
|
43
|
-
"@blocklet/launcher-ux": "2.1.
|
|
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": "
|
|
63
|
+
"gitHead": "6f32ac9b9a7c2c1fc84cb9e69bede56b58cdf84a"
|
|
64
64
|
}
|