@aptos-labs/wallet-adapter-mui-design 0.2.0 → 0.3.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @aptos-labs/wallet-adapter-mui-design
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 55727e0: Update mui package design layout
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -249,8 +249,8 @@ function WalletsModal({
249
249
  onClick: () => onWalletSelect(option.name),
250
250
  sx: {
251
251
  background: theme.palette.mode === "dark" ? grey[700] : grey[200],
252
- padding: "1rem 3rem",
253
- borderRadius: "10px",
252
+ padding: "1rem 2rem",
253
+ borderRadius: `${theme.shape.borderRadius}px`,
254
254
  display: "flex",
255
255
  gap: "1rem"
256
256
  },
@@ -289,7 +289,7 @@ function WalletsModal({
289
289
  sx: {
290
290
  borderRadius: `${theme.shape.borderRadius}px`,
291
291
  background: theme.palette.mode === "dark" ? grey[700] : grey[200],
292
- padding: "1rem 3rem",
292
+ padding: "1rem 2rem",
293
293
  gap: "1rem"
294
294
  },
295
295
  children: [
@@ -335,14 +335,15 @@ function WalletsModal({
335
335
  onClose: handleClose,
336
336
  "aria-labelledby": "wallet selector modal",
337
337
  "aria-describedby": "select a wallet to connect",
338
- sx: { borderRadius: "5px" },
338
+ sx: { borderRadius: `${theme.shape.borderRadius}px` },
339
+ maxWidth: "xs",
340
+ fullWidth: true,
339
341
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material3.Stack, {
340
342
  sx: {
341
343
  display: "flex",
342
344
  flexDirection: "column",
343
345
  top: "50%",
344
346
  left: "50%",
345
- width: 500,
346
347
  bgcolor: "background.paper",
347
348
  boxShadow: 24,
348
349
  p: 3
package/dist/index.mjs CHANGED
@@ -243,8 +243,8 @@ function WalletsModal({
243
243
  onClick: () => onWalletSelect(option.name),
244
244
  sx: {
245
245
  background: theme.palette.mode === "dark" ? grey[700] : grey[200],
246
- padding: "1rem 3rem",
247
- borderRadius: "10px",
246
+ padding: "1rem 2rem",
247
+ borderRadius: `${theme.shape.borderRadius}px`,
248
248
  display: "flex",
249
249
  gap: "1rem"
250
250
  },
@@ -283,7 +283,7 @@ function WalletsModal({
283
283
  sx: {
284
284
  borderRadius: `${theme.shape.borderRadius}px`,
285
285
  background: theme.palette.mode === "dark" ? grey[700] : grey[200],
286
- padding: "1rem 3rem",
286
+ padding: "1rem 2rem",
287
287
  gap: "1rem"
288
288
  },
289
289
  children: [
@@ -329,14 +329,15 @@ function WalletsModal({
329
329
  onClose: handleClose,
330
330
  "aria-labelledby": "wallet selector modal",
331
331
  "aria-describedby": "select a wallet to connect",
332
- sx: { borderRadius: "5px" },
332
+ sx: { borderRadius: `${theme.shape.borderRadius}px` },
333
+ maxWidth: "xs",
334
+ fullWidth: true,
333
335
  children: /* @__PURE__ */ jsxs3(Stack, {
334
336
  sx: {
335
337
  display: "flex",
336
338
  flexDirection: "column",
337
339
  top: "50%",
338
340
  left: "50%",
339
- width: 500,
340
341
  bgcolor: "background.paper",
341
342
  boxShadow: 24,
342
343
  p: 3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-mui-design",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Aptos Wallet Adapter mui design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -44,7 +44,8 @@ export default function WalletsModal({
44
44
  const icon = option.icon;
45
45
  return (
46
46
  <Grid key={option.name} xs={12} paddingY={0.5} item>
47
- {wallet.readyState === "Installed" || wallet.readyState === "Loadable" ? (
47
+ {wallet.readyState === "Installed" ||
48
+ wallet.readyState === "Loadable" ? (
48
49
  <ListItem disablePadding>
49
50
  <ListItemButton
50
51
  alignItems="center"
@@ -53,8 +54,8 @@ export default function WalletsModal({
53
54
  sx={{
54
55
  background:
55
56
  theme.palette.mode === "dark" ? grey[700] : grey[200],
56
- padding: "1rem 3rem",
57
- borderRadius: "10px",
57
+ padding: "1rem 2rem",
58
+ borderRadius: `${theme.shape.borderRadius}px`,
58
59
  display: "flex",
59
60
  gap: "1rem",
60
61
  }}
@@ -97,7 +98,7 @@ export default function WalletsModal({
97
98
  borderRadius: `${theme.shape.borderRadius}px`,
98
99
  background:
99
100
  theme.palette.mode === "dark" ? grey[700] : grey[200],
100
- padding: "1rem 3rem",
101
+ padding: "1rem 2rem",
101
102
  gap: "1rem",
102
103
  }}
103
104
  >
@@ -148,7 +149,9 @@ export default function WalletsModal({
148
149
  onClose={handleClose}
149
150
  aria-labelledby="wallet selector modal"
150
151
  aria-describedby="select a wallet to connect"
151
- sx={{ borderRadius: "5px" }}
152
+ sx={{ borderRadius: `${theme.shape.borderRadius}px` }}
153
+ maxWidth="xs"
154
+ fullWidth
152
155
  >
153
156
  <Stack
154
157
  sx={{
@@ -156,7 +159,6 @@ export default function WalletsModal({
156
159
  flexDirection: "column",
157
160
  top: "50%",
158
161
  left: "50%",
159
- width: 500,
160
162
  bgcolor: "background.paper",
161
163
  boxShadow: 24,
162
164
  p: 3,