@abtnode/ux 1.16.21-beta-2e75c75c → 1.16.21-beta-da3f852a

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.
@@ -1,13 +1,13 @@
1
1
  /* eslint-disable react/prop-types */
2
- /* eslint-disable react/jsx-one-expression-per-line */
3
2
  import React, { useContext } from 'react';
4
- import styled from '@emotion/styled';
5
3
  import { useNavigate } from 'react-router-dom';
4
+ import Box from '@mui/material/Box';
6
5
  import Spinner from '@mui/material/CircularProgress';
7
6
  import Center from '@arcblock/ux/lib/Center';
8
7
  import Toast from '@arcblock/ux/lib/Toast';
9
8
  import DidConnect from '@arcblock/did-connect/lib/Connect';
10
9
  import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
10
+ import Fullpage from '@arcblock/did-connect/lib/Connect/fullpage';
11
11
  import { WELLKNOWN_SERVICE_PATH_PREFIX } from '@abtnode/constant';
12
12
  import wrapLocale from './wrap-locale';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -61,9 +61,14 @@ function ExchangePassport({
61
61
  children: /*#__PURE__*/_jsx(Spinner, {})
62
62
  });
63
63
  }
64
- return /*#__PURE__*/_jsx(Div, {
65
- children: /*#__PURE__*/_jsx("div", {
66
- className: "connect-wrapper",
64
+ return /*#__PURE__*/_jsx(Fullpage, {
65
+ did: window?.blocklet?.appPid || window?.env?.appPid,
66
+ children: /*#__PURE__*/_jsx(Box, {
67
+ sx: {
68
+ width: '560px',
69
+ maxWidth: '100%',
70
+ height: '100%'
71
+ },
67
72
  children: /*#__PURE__*/_jsx(DidConnect, {
68
73
  className: "connect",
69
74
  action: "exchange-passport",
@@ -85,18 +90,4 @@ function ExchangePassport({
85
90
  })
86
91
  });
87
92
  }
88
- export default wrapLocale(ExchangePassport);
89
- const Div = styled.div`
90
- box-sizing: border-box;
91
- width: 100%;
92
- height: 100vh;
93
- position: relative;
94
- display: flex;
95
- flex-direction: column;
96
- .connect-wrapper {
97
- flex: 1;
98
- }
99
- .connect {
100
- background: #fafafa;
101
- }
102
- `;
93
+ export default wrapLocale(ExchangePassport);
@@ -105,6 +105,11 @@ const Div = styled.div`
105
105
  }
106
106
  }
107
107
 
108
+ .locale-addon .locales {
109
+ max-height: 400px;
110
+ overflow-y: auto;
111
+ }
112
+
108
113
  ${props => props.theme.breakpoints.down('md')} {
109
114
  > button,
110
115
  > a {