@blocklet/ui-react 2.9.75 → 2.9.77

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.
@@ -190,34 +190,6 @@ export default function Notification({ user }) {
190
190
  size: "small",
191
191
  onChange: (event) => handleChangeSwitch("email", event.target.checked)
192
192
  }
193
- ),
194
- /* @__PURE__ */ jsx(
195
- Switch,
196
- {
197
- disabled: true,
198
- checked: notifications.phone,
199
- labelProps: {
200
- label: /* @__PURE__ */ jsxs(
201
- Typography,
202
- {
203
- color: "text.primary",
204
- sx: {
205
- fontSize: 14,
206
- display: "flex",
207
- flexFlow: "wrap",
208
- columnGap: 1,
209
- flex: 1
210
- },
211
- children: [
212
- t("phoneNotification"),
213
- user?.phone && /* @__PURE__ */ jsx(Typography, { component: "span", color: "text.secondary", fontSize: 13, children: user?.phone })
214
- ]
215
- }
216
- )
217
- },
218
- size: "small",
219
- onChange: (event) => handleChangeSwitch("phone", event.target.checked)
220
- }
221
193
  )
222
194
  ]
223
195
  }
@@ -124,7 +124,7 @@ export default function ThirdPartyItem({
124
124
  lineHeight: 1
125
125
  },
126
126
  children: [
127
- /* @__PURE__ */ jsx(Icon, { icon, fontSize: 16 }),
127
+ /* @__PURE__ */ jsx(Icon, { icon, fontSize: 16, width: "1em", height: "1em" }),
128
128
  /* @__PURE__ */ jsx(
129
129
  Box,
130
130
  {
@@ -191,29 +191,6 @@ function Notification({
191
191
  },
192
192
  size: "small",
193
193
  onChange: event => handleChangeSwitch("email", event.target.checked)
194
- }), /* @__PURE__ */(0, _jsxRuntime.jsx)(_Switch.default, {
195
- disabled: true,
196
- checked: notifications.phone,
197
- labelProps: {
198
- label: /* @__PURE__ */(0, _jsxRuntime.jsxs)(_material.Typography, {
199
- color: "text.primary",
200
- sx: {
201
- fontSize: 14,
202
- display: "flex",
203
- flexFlow: "wrap",
204
- columnGap: 1,
205
- flex: 1
206
- },
207
- children: [t("phoneNotification"), user?.phone && /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Typography, {
208
- component: "span",
209
- color: "text.secondary",
210
- fontSize: 13,
211
- children: user?.phone
212
- })]
213
- })
214
- },
215
- size: "small",
216
- onChange: event => handleChangeSwitch("phone", event.target.checked)
217
194
  })]
218
195
  }), /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Divider, {}), /* @__PURE__ */(0, _jsxRuntime.jsxs)(_material.Stack, {
219
196
  spacing: 1.5,
@@ -143,7 +143,9 @@ function ThirdPartyItem({
143
143
  },
144
144
  children: [/* @__PURE__ */(0, _jsxRuntime.jsx)(_react.Icon, {
145
145
  icon,
146
- fontSize: 16
146
+ fontSize: 16,
147
+ width: "1em",
148
+ height: "1em"
147
149
  }), /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Box, {
148
150
  sx: {
149
151
  display: "flex",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.9.75",
3
+ "version": "2.9.77",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -62,10 +62,10 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@arcblock/bridge": "^2.9.75",
66
- "@arcblock/did-connect": "^2.9.75",
67
- "@arcblock/react-hooks": "^2.9.75",
68
- "@arcblock/ux": "^2.9.75",
65
+ "@arcblock/bridge": "^2.9.77",
66
+ "@arcblock/did-connect": "^2.9.77",
67
+ "@arcblock/react-hooks": "^2.9.77",
68
+ "@arcblock/ux": "^2.9.77",
69
69
  "@blocklet/js-sdk": "^1.16.26",
70
70
  "@emotion/react": "^11.10.4",
71
71
  "@emotion/styled": "^11.10.4",
@@ -109,5 +109,5 @@
109
109
  "jest": "^28.1.3",
110
110
  "unbuild": "^2.0.0"
111
111
  },
112
- "gitHead": "b5576c513aaf140bf0b3607f4c2f62235910bbd5"
112
+ "gitHead": "24ef8a1319fae952d5aedb57f2030d1553dfdd8e"
113
113
  }
@@ -196,7 +196,8 @@ export default function Notification({ user }: { user: User }) {
196
196
  size="small"
197
197
  onChange={(event: ChangeEvent<HTMLInputElement>) => handleChangeSwitch('email', event.target.checked)}
198
198
  />
199
- <Switch
199
+ {/* TODO: 实现短信通知后展示此配置项 */}
200
+ {/* <Switch
200
201
  disabled
201
202
  checked={notifications.phone}
202
203
  labelProps={{
@@ -221,7 +222,7 @@ export default function Notification({ user }: { user: User }) {
221
222
  }}
222
223
  size="small"
223
224
  onChange={(event: ChangeEvent<HTMLInputElement>) => handleChangeSwitch('phone', event.target.checked)}
224
- />
225
+ /> */}
225
226
  </Box>
226
227
  <Divider />
227
228
  <Stack spacing={1.5} useFlexGap direction="column" alignItems="start">
@@ -141,7 +141,7 @@ export default function ThirdPartyItem({
141
141
  fontSize: '14px',
142
142
  lineHeight: 1,
143
143
  }}>
144
- <Icon icon={icon} fontSize={16} />
144
+ <Icon icon={icon} fontSize={16} width="1em" height="1em" />
145
145
  <Box
146
146
  sx={{
147
147
  display: 'flex',