@blocklet/ui-react 2.11.11 → 2.11.13

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.
@@ -61,7 +61,7 @@ export default function ConfigProfile({ user, onSave }) {
61
61
  }
62
62
  }
63
63
  ),
64
- /* @__PURE__ */ jsx(Select, { fullWidth: true, value: currentState.locale, onChange: handleChange, size: "small", children: (window.blocklet.languages || languages).map((x) => /* @__PURE__ */ jsx(MenuItem, { value: x.code, children: x.name }, x.code)) })
64
+ /* @__PURE__ */ jsx(Select, { value: currentState.locale, onChange: handleChange, size: "small", sx: { minWidth: 300 }, children: (window.blocklet.languages || languages).map((x) => /* @__PURE__ */ jsx(MenuItem, { value: x.code, children: x.name }, x.code)) })
65
65
  ] })
66
66
  ]
67
67
  }
@@ -93,7 +93,7 @@ export default function Settings({
93
93
  }
94
94
  ),
95
95
  /* @__PURE__ */ jsx(Box, { mt: 2.5, children: tab.content }),
96
- index < tabs.length - 1 ? /* @__PURE__ */ jsx(Divider, { sx: { mt: 2.5, mb: 2.5 } }) : null
96
+ index < tabs.length - 1 ? /* @__PURE__ */ jsx(Divider, { sx: { mt: 2.5, mb: 2.5, borderColor: colors.dividerColor } }) : null
97
97
  ] }, tab.value))
98
98
  }
99
99
  );
@@ -316,7 +316,7 @@ export default function UserCenter({
316
316
  }
317
317
  }
318
318
  ),
319
- /* @__PURE__ */ jsx(Divider, { sx: { mt: 3, mb: 3 } }),
319
+ /* @__PURE__ */ jsx(Divider, { sx: { mt: 3, mb: 3, borderColor: colors.dividerColor } }),
320
320
  userCenterTabs.length > 0 && currentTab ? /* @__PURE__ */ jsxs(
321
321
  Box,
322
322
  {
@@ -336,7 +336,7 @@ export default function UserCenter({
336
336
  current: currentActiveTab?.value ?? currentTab,
337
337
  onChange: handleChangeTab,
338
338
  sx: {
339
- width: isMobile ? "100%" : 180,
339
+ width: isMobile ? "100%" : 160,
340
340
  marginBottom: isMobile ? "8px" : 0,
341
341
  flexShrink: 0,
342
342
  ".MuiTabs-flexContainer": {
@@ -346,13 +346,15 @@ export default function UserCenter({
346
346
  },
347
347
  ".MuiTab-root": {
348
348
  display: "block",
349
- textAlign: "left"
349
+ textAlign: "left",
350
+ alignItems: "flex-start",
351
+ justifyContent: "flex-start"
350
352
  }
351
353
  }
352
354
  }
353
355
  }
354
356
  ),
355
- /* @__PURE__ */ jsx(Divider, { orientation: "vertical", sx: { height: "100%", mr: 2 } }),
357
+ /* @__PURE__ */ jsx(Divider, { orientation: "vertical", sx: { height: "100%", mr: 3, borderColor: colors.dividerColor } }),
356
358
  !privacyState.data || privacyState.loading ? /* @__PURE__ */ jsx(
357
359
  Box,
358
360
  {
@@ -257,12 +257,13 @@ export default function UserSessions({
257
257
  Box,
258
258
  {
259
259
  sx: {
260
+ maxWidth: 920,
260
261
  ".MuiTableCell-head": {
261
262
  whiteSpace: "nowrap",
262
263
  fontWeight: "bold"
263
264
  },
264
265
  ".MuiTableCell-root": {
265
- paddingRight: "16px"
266
+ paddingRight: "8px"
266
267
  }
267
268
  },
268
269
  children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.11.11",
3
+ "version": "2.11.13",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -32,8 +32,8 @@
32
32
  "url": "https://github.com/ArcBlock/ux/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@arcblock/bridge": "^2.11.11",
36
- "@arcblock/react-hooks": "^2.11.11",
35
+ "@arcblock/bridge": "^2.11.13",
36
+ "@arcblock/react-hooks": "^2.11.13",
37
37
  "@blocklet/did-space-react": "^0.6.0",
38
38
  "@iconify-icons/logos": "^1.2.36",
39
39
  "@iconify-icons/material-symbols": "^1.2.58",
@@ -81,5 +81,5 @@
81
81
  "jest": "^29.7.0",
82
82
  "unbuild": "^2.0.0"
83
83
  },
84
- "gitHead": "fc251e65f592a96d6fe876dda5d6158f7fbd2613"
84
+ "gitHead": "0be0694186c9696374c4adfa5c7fa530b2ca0050"
85
85
  }
@@ -60,7 +60,7 @@ export default function ConfigProfile({ user, onSave }: { user: User; onSave: (t
60
60
  height: 2,
61
61
  }}
62
62
  />
63
- <Select fullWidth value={currentState.locale} onChange={handleChange} size="small">
63
+ <Select value={currentState.locale} onChange={handleChange} size="small" sx={{ minWidth: 300 }}>
64
64
  {(window.blocklet.languages || languages).map((x: { name: string; code: string }) => (
65
65
  <MenuItem value={x.code} key={x.code}>
66
66
  {x.name}
@@ -104,7 +104,7 @@ export default function Settings({
104
104
  {tab.label}
105
105
  </Typography>
106
106
  <Box mt={2.5}>{tab.content}</Box>
107
- {index < tabs.length - 1 ? <Divider sx={{ mt: 2.5, mb: 2.5 }} /> : null}
107
+ {index < tabs.length - 1 ? <Divider sx={{ mt: 2.5, mb: 2.5, borderColor: colors.dividerColor }} /> : null}
108
108
  </Box>
109
109
  ))}
110
110
  </Box>
@@ -358,7 +358,7 @@ export default function UserCenter({
358
358
  mt: 2,
359
359
  }}
360
360
  />
361
- <Divider sx={{ mt: 3, mb: 3 }} />
361
+ <Divider sx={{ mt: 3, mb: 3, borderColor: colors.dividerColor }} />
362
362
  {userCenterTabs.length > 0 && currentTab ? (
363
363
  <Box
364
364
  display={isMobile ? 'block' : 'flex'}
@@ -374,7 +374,7 @@ export default function UserCenter({
374
374
  current={currentActiveTab?.value ?? currentTab}
375
375
  onChange={handleChangeTab}
376
376
  sx={{
377
- width: isMobile ? '100%' : 180,
377
+ width: isMobile ? '100%' : 160,
378
378
  marginBottom: isMobile ? '8px' : 0,
379
379
  flexShrink: 0,
380
380
  '.MuiTabs-flexContainer': {
@@ -385,11 +385,13 @@ export default function UserCenter({
385
385
  '.MuiTab-root': {
386
386
  display: 'block',
387
387
  textAlign: 'left',
388
+ alignItems: 'flex-start',
389
+ justifyContent: 'flex-start',
388
390
  },
389
391
  },
390
392
  }}
391
393
  />
392
- <Divider orientation="vertical" sx={{ height: '100%', mr: 2 }} />
394
+ <Divider orientation="vertical" sx={{ height: '100%', mr: 3, borderColor: colors.dividerColor }} />
393
395
  {!privacyState.data || privacyState.loading ? (
394
396
  <Box
395
397
  sx={{
@@ -308,12 +308,13 @@ export default function UserSessions({
308
308
  return (
309
309
  <Box
310
310
  sx={{
311
+ maxWidth: 920,
311
312
  '.MuiTableCell-head': {
312
313
  whiteSpace: 'nowrap',
313
314
  fontWeight: 'bold',
314
315
  },
315
316
  '.MuiTableCell-root': {
316
- paddingRight: '16px',
317
+ paddingRight: '8px',
317
318
  },
318
319
  }}>
319
320
  {confirmHolder}