@blocklet/payment-react 1.18.9 → 1.18.11

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.
@@ -180,22 +180,33 @@ function SupporterAvatar({
180
180
  if (customersNum === 0)
181
181
  return null;
182
182
  return /* @__PURE__ */ jsxs(Stack, { flexDirection: "row", justifyContent: "center", alignItems: "center", children: [
183
- /* @__PURE__ */ jsx(AvatarGroup, { max: 5, children: customers.slice(0, 5).map((supporter) => /* @__PURE__ */ jsx(
184
- Avatar,
183
+ /* @__PURE__ */ jsx(
184
+ AvatarGroup,
185
185
  {
186
- src: getCustomerAvatar(
187
- supporter.customer?.did,
188
- supporter?.updated_at ? new Date(supporter.updated_at).toISOString() : "",
189
- 24
190
- ),
191
- alt: supporter.customer?.name,
186
+ max: 5,
192
187
  sx: {
193
- width: "24px",
194
- height: "24px"
195
- }
196
- },
197
- supporter.customer?.id
198
- )) }),
188
+ "& .MuiAvatar-root": {
189
+ backgroundColor: "background.paper"
190
+ }
191
+ },
192
+ children: customers.slice(0, 5).map((supporter) => /* @__PURE__ */ jsx(
193
+ Avatar,
194
+ {
195
+ src: getCustomerAvatar(
196
+ supporter.customer?.did,
197
+ supporter?.updated_at ? new Date(supporter.updated_at).toISOString() : "",
198
+ 24
199
+ ),
200
+ alt: supporter.customer?.name,
201
+ sx: {
202
+ width: "24px",
203
+ height: "24px"
204
+ }
205
+ },
206
+ supporter.customer?.id
207
+ ))
208
+ }
209
+ ),
199
210
  /* @__PURE__ */ jsx(
200
211
  Box,
201
212
  {
@@ -181,6 +181,11 @@ function SupporterAvatar({
181
181
  alignItems: "center",
182
182
  children: [/* @__PURE__ */(0, _jsxRuntime.jsx)(_material.AvatarGroup, {
183
183
  max: 5,
184
+ sx: {
185
+ "& .MuiAvatar-root": {
186
+ backgroundColor: "background.paper"
187
+ }
188
+ },
184
189
  children: customers.slice(0, 5).map(supporter => /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Avatar, {
185
190
  src: (0, _util.getCustomerAvatar)(supporter.customer?.did, supporter?.updated_at ? new Date(supporter.updated_at).toISOString() : "", 24),
186
191
  alt: supporter.customer?.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-react",
3
- "version": "1.18.9",
3
+ "version": "1.18.11",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -53,10 +53,10 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@arcblock/did-connect": "^2.11.44",
57
- "@arcblock/ux": "^2.11.44",
56
+ "@arcblock/did-connect": "^2.11.48",
57
+ "@arcblock/ux": "^2.11.48",
58
58
  "@arcblock/ws": "^1.19.10",
59
- "@blocklet/ui-react": "^2.11.44",
59
+ "@blocklet/ui-react": "^2.11.48",
60
60
  "@mui/icons-material": "^5.16.6",
61
61
  "@mui/lab": "^5.0.0-alpha.173",
62
62
  "@mui/material": "^5.16.6",
@@ -92,7 +92,7 @@
92
92
  "@babel/core": "^7.25.2",
93
93
  "@babel/preset-env": "^7.25.2",
94
94
  "@babel/preset-react": "^7.24.7",
95
- "@blocklet/payment-types": "1.18.9",
95
+ "@blocklet/payment-types": "1.18.11",
96
96
  "@storybook/addon-essentials": "^7.6.20",
97
97
  "@storybook/addon-interactions": "^7.6.20",
98
98
  "@storybook/addon-links": "^7.6.20",
@@ -123,5 +123,5 @@
123
123
  "vite-plugin-babel": "^1.2.0",
124
124
  "vite-plugin-node-polyfills": "^0.21.0"
125
125
  },
126
- "gitHead": "e1e02357e4ef1294a788595d34b2f3e8ef6046b3"
126
+ "gitHead": "370cb327400359ab5972ef60316ccd7fc86c174e"
127
127
  }
@@ -249,7 +249,13 @@ function SupporterAvatar({
249
249
  if (customersNum === 0) return null;
250
250
  return (
251
251
  <Stack flexDirection="row" justifyContent="center" alignItems="center">
252
- <AvatarGroup max={5}>
252
+ <AvatarGroup
253
+ max={5}
254
+ sx={{
255
+ '& .MuiAvatar-root': {
256
+ backgroundColor: 'background.paper',
257
+ },
258
+ }}>
253
259
  {customers.slice(0, 5).map((supporter) => (
254
260
  <Avatar
255
261
  src={getCustomerAvatar(