@blocklet/launcher-layout 1.7.53 → 1.7.56

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 CHANGED
@@ -11,8 +11,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
13
 
14
- var _Img = _interopRequireDefault(require("@arcblock/ux/lib/Img"));
15
-
16
14
  var _useMediaQuery = _interopRequireDefault(require("@mui/material/useMediaQuery"));
17
15
 
18
16
  var _Skeleton = _interopRequireDefault(require("@mui/material/Skeleton"));
@@ -42,6 +40,7 @@ function AppHeader(_ref) {
42
40
  variant: "rectangular",
43
41
  width: 100,
44
42
  height: 16,
43
+ alt: "".concat(title, " icon"),
45
44
  style: {
46
45
  marginTop: 4
47
46
  }
@@ -52,10 +51,11 @@ function AppHeader(_ref) {
52
51
  });
53
52
 
54
53
  if (logoUrl) {
55
- blockletIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Img.default, {
54
+ blockletIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
56
55
  width: blockletSize,
56
+ height: blockletSize,
57
57
  src: logoUrl,
58
- size: "contain",
58
+ alt: "blocklet icon",
59
59
  style: {
60
60
  verticalAlign: 'text-bottom'
61
61
  }
package/lib/index.js CHANGED
@@ -94,8 +94,10 @@ function Layout(_ref) {
94
94
  className: "circular",
95
95
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
96
96
  variant: "determinate",
97
+ role: "progressbar",
97
98
  value: 100,
98
99
  size: 10,
100
+ "aria-label": "decorative progress bar",
99
101
  thickness: 10,
100
102
  style: {
101
103
  color: '#dddddd'
@@ -103,8 +105,10 @@ function Layout(_ref) {
103
105
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
104
106
  variant: "determinate",
105
107
  value: (activeStep + 1) / totalStepsCount * 100,
108
+ role: "progressbar",
106
109
  size: 10,
107
- thickness: 10
110
+ thickness: 10,
111
+ "aria-label": "main progress bar"
108
112
  })]
109
113
  })]
110
114
  }),
@@ -176,7 +180,7 @@ if (ua.includes('iphone os') && ua.includes('crios')) {
176
180
  const Root = _styledComponents.default.div.withConfig({
177
181
  displayName: "src__Root",
178
182
  componentId: "sc-11nbl7p-2"
179
- })(["display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;", " .circular{display:inline-block;position:relative;width:15px;height:12px;> *{position:absolute;left:3px;top:2px;width:100%;height:100%;}}.ellipsis-title{flex:1;position:absolute;left:0;top:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;", "{left:26px;width:calc(100% - 26px);}}", "{background:#f6f8fa;}", "{background:", ";}.root-header{box-sizing:border-box;position:absolute;z-index:200;top:0;display:flex;width:100%;max-width:1245px;height:68px;align-items:center;", "{padding:24px;justify-content:flex-end;}", "{height:56px;padding:14px 16px;justify-content:space-between;background:#f6f8fa;}.left{flex:1;display:flex;align-items:center;}.right{display:flex;align-items:center;", "{button,a{padding-left:8px;padding-right:8px;}}}}"], 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, props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.down('md'));
183
+ })(["display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;letter-spacing:normal;", " .circular{display:inline-block;position:relative;width:15px;height:12px;> *{position:absolute;left:3px;top:2px;width:100%;height:100%;}}.ellipsis-title{flex:1;position:absolute;left:0;top:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;", "{left:26px;width:calc(100% - 26px);}}", "{background:#f6f8fa;}", "{background:", ";}.root-header{box-sizing:border-box;position:absolute;z-index:200;top:0;display:flex;width:100%;max-width:1245px;height:68px;align-items:center;", "{padding:24px;justify-content:flex-end;}", "{height:56px;padding:14px 16px;justify-content:space-between;background:#f6f8fa;}.left{flex:1;display:flex;align-items:center;}.right{display:flex;align-items:center;", "{button,a{padding-left:8px;padding-right:8px;}}}}"], 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, props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.down('md'));
180
184
 
181
185
  const LogoContainer = _styledComponents.default.div.withConfig({
182
186
  displayName: "src__LogoContainer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-layout",
3
- "version": "1.7.53",
3
+ "version": "1.7.56",
4
4
  "description": "Common ux components of launcher",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,10 +37,10 @@
37
37
  "react": ">=18.1.0"
38
38
  },
39
39
  "dependencies": {
40
- "@arcblock/did-connect": "^2.1.54",
41
- "@arcblock/icons": "^2.1.54",
42
- "@arcblock/ux": "^2.1.54",
43
- "@blocklet/meta": "^1.8.1",
40
+ "@arcblock/did-connect": "^2.1.57",
41
+ "@arcblock/icons": "^2.1.57",
42
+ "@arcblock/ux": "^2.1.57",
43
+ "@blocklet/meta": "^1.8.2",
44
44
  "@emotion/react": "^11.9.0",
45
45
  "@emotion/styled": "^11.8.1",
46
46
  "@mui/icons-material": "^5.6.2",
@@ -62,5 +62,5 @@
62
62
  "babel-plugin-inline-react-svg": "^2.0.1",
63
63
  "babel-plugin-styled-components": "^1.10.7"
64
64
  },
65
- "gitHead": "7b2a5c56cd82baf212e6038eb0de9a260e767eb4"
65
+ "gitHead": "b8c044b0bf1ab3ad425a501b4e437fd7eda19d8c"
66
66
  }