@blocklet/launcher-layout 2.1.6 → 2.1.8

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/index.js CHANGED
@@ -30,8 +30,8 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
30
30
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
31
31
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
32
32
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
33
- const HEADER_HEIGHT_MD = '56px';
34
- const MobileContent = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 100%;\n padding-top: 68px;\n"])));
33
+ const HEADER_HEIGHT_MD = '72px';
34
+ const MobileContent = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 100%;\n padding-top: ", ";\n"])), HEADER_HEIGHT_MD);
35
35
  const PcContent = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n min-width: 900px;\n max-width: ", ";\n max-height: 880px;\n border-radius: 8px;\n background-color: #fff;\n width: ", ";\n height: ", ";\n\n @media (max-height: 900px) {\n margin-top: ", ";\n width: 100%;\n height: 100%;\n }\n"])), props => props.contentMaxWidth, props => props.width || '80%', props => props.height || '80%', HEADER_HEIGHT_MD);
36
36
  function Layout(_ref) {
37
37
  let {
@@ -79,4 +79,4 @@ LaunchResultMessage.defaultProps = {
79
79
  };
80
80
  var _default = LaunchResultMessage;
81
81
  exports.default = _default;
82
- const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n width: 100%;\n height: 100%;\n\n .result-body {\n padding: 0 14px;\n max-width: 500px;\n text-align: center;\n margin-top: -64px;\n }\n\n .result-icon {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n width: 48px;\n height: 48px;\n border-radius: 100%;\n color: ", ";\n transition: all ease 0.3s;\n &.color-success {\n background-color: ", ";\n }\n &.color-error {\n background-color: ", ";\n }\n &.color-info {\n background-color: ", ";\n }\n }\n\n .result-title {\n height: 34px;\n font-size: 24px;\n margin-bottom: 8px;\n font-weight: bolder;\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n &.color-success {\n color: ", ";\n }\n &.color-error {\n color: ", ";\n }\n &.color-info {\n color: ", ";\n }\n &.ele-hide {\n height: 0;\n opacity: 0;\n margin-bottom: 0;\n }\n }\n\n .result-sub-title {\n margin: 0 auto;\n min-height: 17px;\n color: ", ";\n font-size: 14px;\n line-height: 1.21em; // 0.01\u53EF\u4EE5\u89E3\u51B3\u89C6\u7F51\u819C\u5C4F\u8F7B\u5FAE\u504F\u79FB\u95EE\u9898\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n word-break: break-word;\n &.ele-hide {\n line-height: 0;\n opacity: 0;\n min-height: 0;\n }\n }\n\n .result-footer {\n padding-top: 24px;\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n }\n"])), props => props.theme.palette.common.white, props => props.theme.palette.success.main, props => props.theme.palette.error.main, props => props.theme.palette.primary.main, props => props.theme.palette.success.main, props => props.theme.palette.error.main, props => props.theme.palette.primary.main, props => props.theme.palette.grey[700]);
82
+ const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n width: 100%;\n height: 100%;\n\n .result-body {\n padding: 0 14px;\n max-width: 500px;\n text-align: center;\n margin-top: -64px;\n }\n\n .result-icon {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n width: 48px;\n height: 48px;\n border-radius: 100%;\n color: ", ";\n transition: all ease 0.3s;\n &.color-success {\n background-color: ", ";\n }\n &.color-error {\n background-color: ", ";\n }\n &.color-info {\n background-color: ", ";\n }\n }\n\n .result-title {\n height: 34px;\n font-size: 21px;\n margin-bottom: 8px;\n font-weight: bolder;\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n &.color-success {\n color: ", ";\n }\n &.color-error {\n color: ", ";\n }\n &.color-info {\n color: ", ";\n }\n &.ele-hide {\n height: 0;\n opacity: 0;\n margin-bottom: 0;\n }\n }\n\n .result-sub-title {\n margin: 0 auto;\n min-height: 17px;\n color: ", ";\n font-size: 14px;\n line-height: 1.21em; // 0.01\u53EF\u4EE5\u89E3\u51B3\u89C6\u7F51\u819C\u5C4F\u8F7B\u5FAE\u504F\u79FB\u95EE\u9898\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n word-break: break-word;\n &.ele-hide {\n line-height: 0;\n opacity: 0;\n min-height: 0;\n }\n }\n\n .result-footer {\n padding-top: 24px;\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n }\n"])), props => props.theme.palette.common.white, props => props.theme.palette.success.main, props => props.theme.palette.error.main, props => props.theme.palette.primary.main, props => props.theme.palette.success.main, props => props.theme.palette.error.main, props => props.theme.palette.primary.main, props => props.theme.palette.grey[700]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-layout",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
4
4
  "description": "Common ux components of launcher",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -36,11 +36,11 @@
36
36
  "react": ">=18.1.0"
37
37
  },
38
38
  "dependencies": {
39
- "@arcblock/did-connect": "^2.5.47",
40
- "@arcblock/icons": "^2.5.47",
41
- "@arcblock/ux": "^2.5.47",
42
- "@blocklet/launcher-util": "2.1.6",
43
- "@blocklet/launcher-ux": "2.1.6",
39
+ "@arcblock/did-connect": "^2.5.48",
40
+ "@arcblock/icons": "^2.5.48",
41
+ "@arcblock/ux": "^2.5.48",
42
+ "@blocklet/launcher-util": "2.1.8",
43
+ "@blocklet/launcher-ux": "2.1.8",
44
44
  "@blocklet/meta": "^1.16.10",
45
45
  "@emotion/react": "^11.11.0",
46
46
  "@emotion/styled": "^11.11.0",
@@ -59,5 +59,5 @@
59
59
  "@storybook/react": "^6.5.16",
60
60
  "babel-plugin-inline-react-svg": "^2.0.2"
61
61
  },
62
- "gitHead": "0ce72656e21595f9bee690ce3c3a5446d781ed50"
62
+ "gitHead": "abcdcb5793393d11c97d4bb70423f47c9ba9b048"
63
63
  }