@blocklet/ui-react 2.11.33 → 2.11.34
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.
|
@@ -69,6 +69,7 @@ export default function UserBasicInfo({
|
|
|
69
69
|
backgroundColor: "#fff",
|
|
70
70
|
position: "relative",
|
|
71
71
|
overflow: "hidden",
|
|
72
|
+
flexShrink: 0,
|
|
72
73
|
...isMyself ? {
|
|
73
74
|
cursor: "pointer",
|
|
74
75
|
"&::after": {
|
|
@@ -90,36 +91,45 @@ export default function UserBasicInfo({
|
|
|
90
91
|
onClick: isMyself ? switchProfile : noop
|
|
91
92
|
}
|
|
92
93
|
),
|
|
93
|
-
/* @__PURE__ */ jsxs(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
94
|
+
/* @__PURE__ */ jsxs(
|
|
95
|
+
Box,
|
|
96
|
+
{
|
|
97
|
+
sx: {
|
|
98
|
+
flex: 1,
|
|
99
|
+
overflow: "hidden"
|
|
100
|
+
},
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ jsxs(
|
|
103
|
+
Typography,
|
|
104
|
+
{
|
|
105
|
+
variant: "h6",
|
|
106
|
+
sx: {
|
|
107
|
+
fontWeight: "bold",
|
|
108
|
+
display: "flex",
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
gap: 1,
|
|
111
|
+
fontSize: "24px !important"
|
|
112
|
+
},
|
|
113
|
+
children: [
|
|
114
|
+
user?.fullName,
|
|
115
|
+
isMyself ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
116
|
+
/* @__PURE__ */ jsx(SwitchRole, { user, switchPassport }),
|
|
117
|
+
!isEmpty(user.url) && /* @__PURE__ */ jsx(
|
|
118
|
+
Tooltip,
|
|
119
|
+
{
|
|
120
|
+
title: !loading && translate(translations, "refreshProfile.title", locale),
|
|
121
|
+
sx: { display: "flex", alignItems: "center" },
|
|
122
|
+
children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: "16px", sx: { color: theme?.colors?.primary, ml: 0.5 } }) : /* @__PURE__ */ jsx(RefreshOutlinedIcon, { onClick: refreshProfile })
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
] }) : null
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ jsx(DID, { did: user.did, showQrcode: true, copyable: true, compact: !showFullDid, responsive: !showFullDid, locale })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
)
|
|
123
133
|
]
|
|
124
134
|
}
|
|
125
135
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.34",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@abtnode/constant": "^1.16.38",
|
|
36
|
-
"@arcblock/bridge": "^2.11.
|
|
37
|
-
"@arcblock/react-hooks": "^2.11.
|
|
36
|
+
"@arcblock/bridge": "^2.11.34",
|
|
37
|
+
"@arcblock/react-hooks": "^2.11.34",
|
|
38
38
|
"@arcblock/ws": "^1.19.9",
|
|
39
|
-
"@blocklet/did-space-react": "^1.0.
|
|
39
|
+
"@blocklet/did-space-react": "^1.0.12",
|
|
40
40
|
"@iconify-icons/logos": "^1.2.36",
|
|
41
41
|
"@iconify-icons/material-symbols": "^1.2.58",
|
|
42
42
|
"@iconify/react": "^4.1.1",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"jest": "^29.7.0",
|
|
85
85
|
"unbuild": "^2.0.0"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "da67489f9fe5ca7e635ea1b9e8136dbf582e00cb"
|
|
88
88
|
}
|
|
@@ -83,6 +83,7 @@ export default function UserBasicInfo({
|
|
|
83
83
|
backgroundColor: '#fff',
|
|
84
84
|
position: 'relative',
|
|
85
85
|
overflow: 'hidden',
|
|
86
|
+
flexShrink: 0,
|
|
86
87
|
...(isMyself
|
|
87
88
|
? {
|
|
88
89
|
cursor: 'pointer',
|
|
@@ -105,7 +106,11 @@ export default function UserBasicInfo({
|
|
|
105
106
|
}}
|
|
106
107
|
onClick={isMyself ? switchProfile : noop}
|
|
107
108
|
/>
|
|
108
|
-
<Box
|
|
109
|
+
<Box
|
|
110
|
+
sx={{
|
|
111
|
+
flex: 1,
|
|
112
|
+
overflow: 'hidden',
|
|
113
|
+
}}>
|
|
109
114
|
<Typography
|
|
110
115
|
variant="h6"
|
|
111
116
|
sx={{
|