@abtnode/ux 1.16.26-beta-cca12425 → 1.16.26-beta-c8902aec
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/es/blocklet/app-avatar.js +7 -19
- package/es/blocklet/authentication/oauth/apple.js +39 -15
- package/es/blocklet/authentication/oauth/auth0.js +18 -12
- package/es/blocklet/authentication/oauth/github.js +10 -9
- package/es/blocklet/authentication/oauth/google.js +10 -9
- package/es/blocklet/component/component-cell.js +201 -359
- package/es/blocklet/component/component-info-dialog.js +257 -0
- package/es/blocklet/component/index.js +16 -13
- package/es/blocklet/component/store-blocklet-list.js +3 -0
- package/es/blocklet/publish/connect-store-list.js +33 -4
- package/es/blocklet/publish/create-release.js +9 -4
- package/es/blocklet/status.js +13 -7
- package/es/locales/ar.js +20 -13
- package/es/locales/de.js +20 -13
- package/es/locales/en.js +19 -12
- package/es/locales/es.js +21 -14
- package/es/locales/fr.js +20 -13
- package/es/locales/hi.js +20 -13
- package/es/locales/i18n.db +0 -0
- package/es/locales/id.js +20 -13
- package/es/locales/ja.js +20 -13
- package/es/locales/ko.js +20 -13
- package/es/locales/pt.js +20 -13
- package/es/locales/ru.js +20 -13
- package/es/locales/th.js +20 -13
- package/es/locales/vi.js +20 -13
- package/es/locales/zh-tw.js +29 -22
- package/es/locales/zh.js +28 -21
- package/es/lost-passport.js +10 -2
- package/es/subscription/chip-label.js +19 -0
- package/lib/blocklet/app-avatar.js +7 -20
- package/lib/blocklet/authentication/oauth/apple.js +51 -28
- package/lib/blocklet/authentication/oauth/auth0.js +18 -16
- package/lib/blocklet/authentication/oauth/github.js +10 -13
- package/lib/blocklet/authentication/oauth/google.js +10 -13
- package/lib/blocklet/component/component-cell.js +209 -370
- package/lib/blocklet/component/component-info-dialog.js +253 -0
- package/lib/blocklet/component/index.js +16 -13
- package/lib/blocklet/component/store-blocklet-list.js +3 -0
- package/lib/blocklet/publish/connect-store-list.js +32 -3
- package/lib/blocklet/publish/create-release.js +9 -4
- package/lib/blocklet/status.js +14 -8
- package/lib/locales/ar.js +20 -13
- package/lib/locales/de.js +20 -13
- package/lib/locales/en.js +19 -12
- package/lib/locales/es.js +21 -14
- package/lib/locales/fr.js +20 -13
- package/lib/locales/hi.js +20 -13
- package/lib/locales/i18n.db +0 -0
- package/lib/locales/id.js +20 -13
- package/lib/locales/ja.js +20 -13
- package/lib/locales/ko.js +20 -13
- package/lib/locales/pt.js +20 -13
- package/lib/locales/ru.js +20 -13
- package/lib/locales/th.js +20 -13
- package/lib/locales/vi.js +20 -13
- package/lib/locales/zh-tw.js +29 -22
- package/lib/locales/zh.js +28 -21
- package/lib/lost-passport.js +7 -3
- package/lib/subscription/chip-label.js +19 -0
- package/package.json +16 -16
package/lib/lost-passport.js
CHANGED
|
@@ -24,6 +24,7 @@ var _useBrowser = _interopRequireDefault(require("@arcblock/react-hooks/lib/useB
|
|
|
24
24
|
var _ahooks = require("ahooks");
|
|
25
25
|
var _Connect = _interopRequireDefault(require("@arcblock/did-connect/lib/Connect"));
|
|
26
26
|
var _isFunction = _interopRequireDefault(require("lodash/isFunction"));
|
|
27
|
+
var _material = require("@mui/material");
|
|
27
28
|
var _cardSelector = _interopRequireDefault(require("./card-selector"));
|
|
28
29
|
var _didAddress = _interopRequireDefault(require("./did-address"));
|
|
29
30
|
var _wrapLocale = _interopRequireDefault(require("./wrap-locale"));
|
|
@@ -86,6 +87,7 @@ function LostPassport(_ref2) {
|
|
|
86
87
|
api,
|
|
87
88
|
session
|
|
88
89
|
} = (0, _react.useContext)(SessionContext);
|
|
90
|
+
const isSmallMobile = (0, _material.useMediaQuery)(theme => theme.breakpoints.down('sm'));
|
|
89
91
|
const pageState = (0, _ahooks.useReactive)({
|
|
90
92
|
user: null,
|
|
91
93
|
passport: null,
|
|
@@ -228,14 +230,16 @@ function LostPassport(_ref2) {
|
|
|
228
230
|
className: "did",
|
|
229
231
|
mt: 1,
|
|
230
232
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_didAddress.default, {
|
|
233
|
+
responsive: !isSmallMobile,
|
|
234
|
+
compact: isSmallMobile,
|
|
231
235
|
did: pageState.user.did
|
|
232
236
|
})
|
|
233
237
|
})]
|
|
234
238
|
})]
|
|
235
239
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
236
240
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cardSelector.default, {
|
|
237
|
-
width: 230,
|
|
238
|
-
height: 306,
|
|
241
|
+
width: isSmallMobile ? 180 : 230,
|
|
242
|
+
height: isSmallMobile ? 240 : 306,
|
|
239
243
|
cardSpace: 24,
|
|
240
244
|
list: pageState.user.passportTypes.map(x => {
|
|
241
245
|
return {
|
|
@@ -377,5 +381,5 @@ function LostPassport(_ref2) {
|
|
|
377
381
|
})
|
|
378
382
|
});
|
|
379
383
|
}
|
|
380
|
-
const Div = (0, _styled.default)(_Container.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 46px;\n padding-bottom: 46px;\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n @media (max-width: ", "px) {\n display: block;\n }\n .header {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .stepper {\n padding: 24px;\n height: auto;\n width: 100%;\n min-height: 640px;\n display: flex;\n flex-direction: column;\n\n .stepper-progress {\n padding: 0;\n flex: 0;\n margin-bottom: 24px;\n\n .MuiStepLabel-label.MuiStepLabel-alternativeLabel {\n margin-top: 8px;\n }\n\n .MuiStepConnector-alternativeLabel {\n top: 24px;\n }\n\n .MuiStepConnector-lineHorizontal {\n height: 3px;\n border: none;\n background-color: #eaeaf0;\n border-radius: 1px;\n }\n\n .step-icon-w {\n background-color: ", ";\n z-index: 1;\n color: ", ";\n width: 50px;\n height: 50px;\n display: flex;\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n .step-icon {\n font-size: 30px;\n }\n }\n\n .step-icon-w--active {\n background-color: ", ";\n }\n\n .step-icon-w--completed {\n background-color: ", ";\n }\n }\n\n .stepper-content {\n padding: 0 64px;\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n\n .stepper-icon {\n margin-left: 40px;\n }\n\n .stepper-auth {\n padding: 0;\n\n .auth-title {\n margin-bottom: 16px;\n }\n }\n\n .stepper-tip {\n text-align: center;\n margin-bottom: 16px;\n }\n @media (max-width: ", "px) {\n padding: 0;\n }\n }\n\n .stepper-actions {\n flex: 0;\n text-align: right;\n padding: 0 64px;\n display: none;\n .step-button {\n margin-right: 8px;\n }\n }\n\n .select-passport {\n width: 80%;\n @media (max-width: ", "px) {\n width: 100%;\n }\n }\n\n .user-info {\n .name {\n font-weight: 500;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n }\n\n .connect {\n background: #fafafa;\n }\n"])), props => props.theme.breakpoints.values.sm, props => props.theme.palette.grey[500], props => props.theme.palette.common.white, props => props.theme.palette.primary.main, props => props.theme.palette.secondary.main, props => props.theme.breakpoints.values.sm, props => props.theme.breakpoints.values.sm);
|
|
384
|
+
const Div = (0, _styled.default)(_Container.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 46px;\n padding-bottom: 46px;\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n @media (max-width: ", "px) {\n display: block;\n }\n .header {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .stepper {\n padding: 24px;\n height: auto;\n width: 100%;\n min-height: 640px;\n display: flex;\n flex-direction: column;\n\n @media (max-width: ", "px) {\n min-height: auto;\n }\n\n .stepper-progress {\n padding: 0;\n flex: 0;\n margin-bottom: 24px;\n\n .MuiStepLabel-label.MuiStepLabel-alternativeLabel {\n margin-top: 8px;\n }\n\n .MuiStepConnector-alternativeLabel {\n top: 24px;\n }\n\n .MuiStepConnector-lineHorizontal {\n height: 3px;\n border: none;\n background-color: #eaeaf0;\n border-radius: 1px;\n }\n\n .step-icon-w {\n background-color: ", ";\n z-index: 1;\n color: ", ";\n width: 50px;\n height: 50px;\n display: flex;\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n .step-icon {\n font-size: 30px;\n }\n }\n\n .step-icon-w--active {\n background-color: ", ";\n }\n\n .step-icon-w--completed {\n background-color: ", ";\n }\n }\n\n .stepper-content {\n padding: 0 64px;\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n\n .stepper-icon {\n margin-left: 40px;\n }\n\n .stepper-auth {\n padding: 0;\n\n .auth-title {\n margin-bottom: 16px;\n }\n }\n\n .stepper-tip {\n text-align: center;\n margin-bottom: 16px;\n }\n @media (max-width: ", "px) {\n padding: 0;\n }\n }\n\n .stepper-actions {\n flex: 0;\n text-align: right;\n padding: 0 64px;\n display: none;\n .step-button {\n margin-right: 8px;\n }\n }\n\n .select-passport {\n width: 80%;\n @media (max-width: ", "px) {\n width: 100%;\n }\n }\n\n .user-info {\n .name {\n font-weight: 500;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n }\n\n .connect {\n background: #fafafa;\n }\n"])), props => props.theme.breakpoints.values.sm, props => props.theme.breakpoints.values.sm, props => props.theme.palette.grey[500], props => props.theme.palette.common.white, props => props.theme.palette.primary.main, props => props.theme.palette.secondary.main, props => props.theme.breakpoints.values.sm, props => props.theme.breakpoints.values.sm);
|
|
381
385
|
var _default = exports.default = (0, _wrapLocale.default)(LostPassport);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = ChipLabel;
|
|
7
7
|
var _AccessTime = _interopRequireDefault(require("@mui/icons-material/AccessTime"));
|
|
8
|
+
var _material = require("@mui/material");
|
|
8
9
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
9
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -13,6 +14,24 @@ function ChipLabel(_ref) {
|
|
|
13
14
|
let {
|
|
14
15
|
children
|
|
15
16
|
} = _ref;
|
|
17
|
+
const isMobile = (0, _material.useMediaQuery)(theme => theme.breakpoints.down('md'));
|
|
18
|
+
if (isMobile) {
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tooltip, {
|
|
20
|
+
enterDelay: 500,
|
|
21
|
+
leaveDelay: 2000,
|
|
22
|
+
title: typeof children === 'string' ? children : '',
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
24
|
+
sx: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
gap: 1
|
|
28
|
+
},
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AccessTime.default, {
|
|
30
|
+
fontSize: "small"
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
}
|
|
16
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
17
36
|
sx: {
|
|
18
37
|
display: 'flex',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.26-beta-
|
|
3
|
+
"version": "1.16.26-beta-c8902aec",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -28,23 +28,23 @@
|
|
|
28
28
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@abtnode/auth": "1.16.26-beta-
|
|
32
|
-
"@abtnode/constant": "1.16.26-beta-
|
|
33
|
-
"@abtnode/util": "1.16.26-beta-
|
|
31
|
+
"@abtnode/auth": "1.16.26-beta-c8902aec",
|
|
32
|
+
"@abtnode/constant": "1.16.26-beta-c8902aec",
|
|
33
|
+
"@abtnode/util": "1.16.26-beta-c8902aec",
|
|
34
34
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
35
35
|
"@arcblock/did": "^1.18.115",
|
|
36
|
-
"@arcblock/did-connect": "^2.9.
|
|
36
|
+
"@arcblock/did-connect": "^2.9.72",
|
|
37
37
|
"@arcblock/did-motif": "^1.1.13",
|
|
38
|
-
"@arcblock/icons": "^2.9.
|
|
39
|
-
"@arcblock/nft-display": "2.9.
|
|
40
|
-
"@arcblock/react-hooks": "^2.9.
|
|
41
|
-
"@arcblock/terminal": "^2.9.
|
|
42
|
-
"@arcblock/ux": "^2.9.
|
|
43
|
-
"@blocklet/constant": "1.16.26-beta-
|
|
44
|
-
"@blocklet/launcher-layout": "2.3.
|
|
45
|
-
"@blocklet/list": "^0.12.
|
|
46
|
-
"@blocklet/meta": "1.16.26-beta-
|
|
47
|
-
"@blocklet/ui-react": "^2.9.
|
|
38
|
+
"@arcblock/icons": "^2.9.72",
|
|
39
|
+
"@arcblock/nft-display": "2.9.72",
|
|
40
|
+
"@arcblock/react-hooks": "^2.9.72",
|
|
41
|
+
"@arcblock/terminal": "^2.9.72",
|
|
42
|
+
"@arcblock/ux": "^2.9.72",
|
|
43
|
+
"@blocklet/constant": "1.16.26-beta-c8902aec",
|
|
44
|
+
"@blocklet/launcher-layout": "2.3.14",
|
|
45
|
+
"@blocklet/list": "^0.12.88",
|
|
46
|
+
"@blocklet/meta": "1.16.26-beta-c8902aec",
|
|
47
|
+
"@blocklet/ui-react": "^2.9.72",
|
|
48
48
|
"@blocklet/uploader": "^0.0.78",
|
|
49
49
|
"@emotion/react": "^11.10.4",
|
|
50
50
|
"@emotion/styled": "^11.10.4",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"jest": "^29.7.0",
|
|
110
110
|
"jest-environment-jsdom": "^29.7.0"
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "2b74f442ee04e89901d8f5d67a4017dea2b9f2ac",
|
|
113
113
|
"exports": {
|
|
114
114
|
".": {
|
|
115
115
|
"import": "./es/index.js",
|