@arcblock/ux 2.12.9 → 2.12.10
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/header.js
CHANGED
package/lib/Locale/selector.js
CHANGED
@@ -10,6 +10,7 @@ import { getColor, getBackground } from '../Util';
|
|
10
10
|
import { temp as colors } from '../Colors';
|
11
11
|
import { LocaleContext } from './context';
|
12
12
|
import { styled, useTheme } from '../Theme';
|
13
|
+
import { mergeSx } from '../Util/style';
|
13
14
|
export default function LocaleSelector(props) {
|
14
15
|
const {
|
15
16
|
showText = true,
|
@@ -90,6 +91,14 @@ export default function LocaleSelector(props) {
|
|
90
91
|
open: open,
|
91
92
|
anchorEl: anchorEl.current,
|
92
93
|
...popperProps,
|
94
|
+
// @ts-ignore
|
95
|
+
sx: mergeSx(
|
96
|
+
// @ts-ignore
|
97
|
+
{
|
98
|
+
zIndex: _theme => _theme.zIndex.tooltip + 10
|
99
|
+
},
|
100
|
+
// @ts-ignore
|
101
|
+
popperProps?.sx),
|
93
102
|
children: /*#__PURE__*/_jsx(Box, {
|
94
103
|
className: "locales",
|
95
104
|
sx: {
|
@@ -161,11 +170,4 @@ const Div = styled('div', {
|
|
161
170
|
color: ${props => getColor(props)};
|
162
171
|
}
|
163
172
|
}
|
164
|
-
`;
|
165
|
-
const StyledPopper = styled(Popper)`
|
166
|
-
z-index: ${({
|
167
|
-
theme
|
168
|
-
}) => {
|
169
|
-
return theme.zIndex.modal + 1;
|
170
|
-
}};
|
171
173
|
`;
|
@@ -114,6 +114,9 @@ export default function UnLogin({
|
|
114
114
|
open: currentState.open,
|
115
115
|
anchorEl: userAnchorRef.current,
|
116
116
|
transition: true,
|
117
|
+
sx: {
|
118
|
+
zIndex: theme => theme.zIndex.appBar
|
119
|
+
},
|
117
120
|
placement: "bottom-end",
|
118
121
|
modifiers: [{
|
119
122
|
name: 'offset',
|
@@ -145,8 +148,8 @@ export default function UnLogin({
|
|
145
148
|
},
|
146
149
|
children: [loginAppLogo && !currentState.loadAppLogoError ? /*#__PURE__*/_jsx("img", {
|
147
150
|
src: loginAppLogo,
|
148
|
-
height: 20,
|
149
151
|
style: {
|
152
|
+
height: 20,
|
150
153
|
maxWidth: 100
|
151
154
|
},
|
152
155
|
onError: () => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.12.
|
3
|
+
"version": "2.12.10",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -68,12 +68,12 @@
|
|
68
68
|
"react": ">=18.2.0",
|
69
69
|
"react-router-dom": ">=6.22.3"
|
70
70
|
},
|
71
|
-
"gitHead": "
|
71
|
+
"gitHead": "a4e740e658ec69a4889872ce0c4f1ef6746fa57b",
|
72
72
|
"dependencies": {
|
73
73
|
"@arcblock/did-motif": "^1.1.13",
|
74
|
-
"@arcblock/icons": "^2.12.
|
75
|
-
"@arcblock/nft-display": "^2.12.
|
76
|
-
"@arcblock/react-hooks": "^2.12.
|
74
|
+
"@arcblock/icons": "^2.12.10",
|
75
|
+
"@arcblock/nft-display": "^2.12.10",
|
76
|
+
"@arcblock/react-hooks": "^2.12.10",
|
77
77
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
78
78
|
"@fontsource/inter": "^5.0.16",
|
79
79
|
"@fontsource/ubuntu-mono": "^5.0.18",
|
package/src/Header/header.tsx
CHANGED
package/src/Locale/selector.tsx
CHANGED
@@ -11,6 +11,7 @@ import { temp as colors } from '../Colors';
|
|
11
11
|
import { LocaleContext } from './context';
|
12
12
|
import { styled, useTheme } from '../Theme';
|
13
13
|
import type { Locale } from '../type';
|
14
|
+
import { mergeSx } from '../Util/style';
|
14
15
|
|
15
16
|
export interface LocaleSelectorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
16
17
|
showText?: true | false;
|
@@ -94,7 +95,17 @@ export default function LocaleSelector(props: LocaleSelectorProps) {
|
|
94
95
|
</Box>
|
95
96
|
</ButtonComponent>
|
96
97
|
|
97
|
-
<Popper
|
98
|
+
<Popper
|
99
|
+
open={open}
|
100
|
+
anchorEl={anchorEl.current}
|
101
|
+
{...popperProps}
|
102
|
+
// @ts-ignore
|
103
|
+
sx={mergeSx(
|
104
|
+
// @ts-ignore
|
105
|
+
{ zIndex: (_theme) => _theme.zIndex.tooltip + 10 },
|
106
|
+
// @ts-ignore
|
107
|
+
popperProps?.sx
|
108
|
+
)}>
|
98
109
|
<Box
|
99
110
|
className="locales"
|
100
111
|
sx={{
|
@@ -168,9 +179,3 @@ const Div = styled('div', {
|
|
168
179
|
}
|
169
180
|
}
|
170
181
|
`;
|
171
|
-
|
172
|
-
const StyledPopper = styled(Popper)`
|
173
|
-
z-index: ${({ theme }) => {
|
174
|
-
return theme.zIndex.modal + 1;
|
175
|
-
}};
|
176
|
-
`;
|
@@ -128,6 +128,9 @@ export default function UnLogin({ session, onLogin = noop, size = 24, dark = fal
|
|
128
128
|
open={currentState.open}
|
129
129
|
anchorEl={userAnchorRef.current}
|
130
130
|
transition
|
131
|
+
sx={{
|
132
|
+
zIndex: (theme) => theme.zIndex.appBar,
|
133
|
+
}}
|
131
134
|
placement="bottom-end"
|
132
135
|
modifiers={[
|
133
136
|
{
|
@@ -160,8 +163,8 @@ export default function UnLogin({ session, onLogin = noop, size = 24, dark = fal
|
|
160
163
|
{loginAppLogo && !currentState.loadAppLogoError ? (
|
161
164
|
<img
|
162
165
|
src={loginAppLogo}
|
163
|
-
height={20}
|
164
166
|
style={{
|
167
|
+
height: 20,
|
165
168
|
maxWidth: 100,
|
166
169
|
}}
|
167
170
|
onError={() => {
|