@blocklet/launcher-layout 1.7.57 → 1.7.58
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 +12 -23
- package/lib/nav.js +1 -2
- package/package.json +6 -5
package/lib/index.js
CHANGED
|
@@ -15,12 +15,12 @@ var _Hidden = _interopRequireDefault(require("@mui/material/Hidden"));
|
|
|
15
15
|
|
|
16
16
|
var _useMediaQuery = _interopRequireDefault(require("@mui/material/useMediaQuery"));
|
|
17
17
|
|
|
18
|
-
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
19
|
-
|
|
20
18
|
var _Center = _interopRequireDefault(require("@arcblock/ux/lib/Center"));
|
|
21
19
|
|
|
22
20
|
var _Spinner = _interopRequireDefault(require("@arcblock/ux/lib/Spinner"));
|
|
23
21
|
|
|
22
|
+
var _smallCircleProgress = _interopRequireDefault(require("@blocklet/launcher-ux/lib/small-circle-progress"));
|
|
23
|
+
|
|
24
24
|
var _isObject = _interopRequireDefault(require("lodash/isObject"));
|
|
25
25
|
|
|
26
26
|
var _step = require("./context/step");
|
|
@@ -90,26 +90,11 @@ function Layout(_ref) {
|
|
|
90
90
|
}),
|
|
91
91
|
navLogo: navLogo,
|
|
92
92
|
subTitle: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
93
|
-
children: ["".concat(stepTip || translations.stepTip, " ").concat(activeStep + 1, "/").concat(totalStepsCount), /*#__PURE__*/(0, _jsxRuntime.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
value: 100,
|
|
99
|
-
size: 10,
|
|
100
|
-
"aria-label": "decorative progress bar",
|
|
101
|
-
thickness: 10,
|
|
102
|
-
style: {
|
|
103
|
-
color: '#dddddd'
|
|
104
|
-
}
|
|
105
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
|
|
106
|
-
variant: "determinate",
|
|
107
|
-
value: (activeStep + 1) / totalStepsCount * 100,
|
|
108
|
-
role: "progressbar",
|
|
109
|
-
size: 10,
|
|
110
|
-
thickness: 10,
|
|
111
|
-
"aria-label": "main progress bar"
|
|
112
|
-
})]
|
|
93
|
+
children: ["".concat(stepTip || translations.stepTip, " ").concat(activeStep + 1, "/").concat(totalStepsCount), /*#__PURE__*/(0, _jsxRuntime.jsx)(_smallCircleProgress.default, {
|
|
94
|
+
value: (activeStep + 1) / totalStepsCount * 100,
|
|
95
|
+
style: {
|
|
96
|
+
marginLeft: 3
|
|
97
|
+
}
|
|
113
98
|
})]
|
|
114
99
|
}),
|
|
115
100
|
logoUrl: logoUrl,
|
|
@@ -139,7 +124,11 @@ function Layout(_ref) {
|
|
|
139
124
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
140
125
|
fallback: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Center.default, {
|
|
141
126
|
relative: "parent",
|
|
142
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.default, {
|
|
127
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.default, {
|
|
128
|
+
style: {
|
|
129
|
+
marginTop: 36
|
|
130
|
+
}
|
|
131
|
+
})
|
|
143
132
|
}),
|
|
144
133
|
children: children
|
|
145
134
|
})]
|
package/lib/nav.js
CHANGED
|
@@ -87,7 +87,6 @@ function Nav(_ref) {
|
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Div, {
|
|
90
|
-
className: "nav-sidebar",
|
|
91
90
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_header.default, {
|
|
92
91
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(AppLink, {
|
|
93
92
|
target: "_blank",
|
|
@@ -178,7 +177,7 @@ const AppLink = _styledComponents.default.a.withConfig({
|
|
|
178
177
|
const Div = _styledComponents.default.div.withConfig({
|
|
179
178
|
displayName: "nav__Div",
|
|
180
179
|
componentId: "sc-1qwhj4c-1"
|
|
181
|
-
})(["overflow-y:auto;", "{padding:24px;border-right:1px solid ", ";
|
|
180
|
+
})(["overflow-y:auto;", "{padding:24px;border-right:1px solid ", ";flex:0 0 280px;min-height:48px;.MuiStepConnector-vertical{padding:0;}}", "{padding:16px;.MuiStepConnector-lineVertical{border:none;}}.stepper{padding:0 !important;background:transparent;", "{margin-top:100px;}", "{margin-top:40px;}.step{cursor:pointer;}}.always-step-child{.step-child-block{animation:none !important;}}"], props => props.theme.breakpoints.up('md'), props => props.theme.palette.grey[100], props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'));
|
|
182
181
|
|
|
183
182
|
const StepContainer = _styledComponents.default.div.withConfig({
|
|
184
183
|
displayName: "nav__StepContainer",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-layout",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.58",
|
|
4
4
|
"description": "Common ux components of launcher",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,9 +37,10 @@
|
|
|
37
37
|
"react": ">=18.1.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcblock/did-connect": "^2.1.
|
|
41
|
-
"@arcblock/icons": "^2.1.
|
|
42
|
-
"@arcblock/ux": "^2.1.
|
|
40
|
+
"@arcblock/did-connect": "^2.1.58",
|
|
41
|
+
"@arcblock/icons": "^2.1.58",
|
|
42
|
+
"@arcblock/ux": "^2.1.58",
|
|
43
|
+
"@blocklet/launcher-ux": "1.7.58",
|
|
43
44
|
"@blocklet/meta": "^1.8.2",
|
|
44
45
|
"@emotion/react": "^11.9.0",
|
|
45
46
|
"@emotion/styled": "^11.8.1",
|
|
@@ -62,5 +63,5 @@
|
|
|
62
63
|
"babel-plugin-inline-react-svg": "^2.0.1",
|
|
63
64
|
"babel-plugin-styled-components": "^1.10.7"
|
|
64
65
|
},
|
|
65
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "42a3cca652d1f2703a8e43be65014411933d48e1"
|
|
66
67
|
}
|