@aptos-labs/wallet-adapter-mui-design 5.2.0 → 5.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,20 @@
1
1
  # @aptos-labs/wallet-adapter-mui-design
2
2
 
3
+ ## 5.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d2d308c: Bump @aptos-connect/wallet-adapter-plugin to 2.7.0
8
+ - b3474b3: Update AC dns to web.petra.app
9
+ - 499e03e: Rename aptos connect to petra web
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [d2d308c]
14
+ - Updated dependencies [b3474b3]
15
+ - Updated dependencies [499e03e]
16
+ - @aptos-labs/wallet-adapter-react@7.2.0
17
+
3
18
  ## 5.2.0
4
19
 
5
20
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -7,12 +7,7 @@ interface WalletConnectorProps extends WalletSortingOptions {
7
7
  handleNavigate?: () => void;
8
8
  /** The max width of the wallet selector modal. Defaults to `xs`. */
9
9
  modalMaxWidth?: Breakpoint;
10
- crossChainWallets?: {
11
- evm: boolean;
12
- solana: boolean;
13
- };
14
10
  }
11
+ declare function WalletConnector({ networkSupport, handleNavigate, modalMaxWidth, ...walletSortingOptions }: WalletConnectorProps): react_jsx_runtime.JSX.Element;
15
12
 
16
- declare function WalletConnector({ networkSupport, handleNavigate, modalMaxWidth, crossChainWallets, ...walletSortingOptions }: WalletConnectorProps): react_jsx_runtime.JSX.Element;
17
-
18
- export { WalletConnector };
13
+ export { WalletConnector, type WalletConnectorProps };
package/dist/index.d.ts CHANGED
@@ -7,12 +7,7 @@ interface WalletConnectorProps extends WalletSortingOptions {
7
7
  handleNavigate?: () => void;
8
8
  /** The max width of the wallet selector modal. Defaults to `xs`. */
9
9
  modalMaxWidth?: Breakpoint;
10
- crossChainWallets?: {
11
- evm: boolean;
12
- solana: boolean;
13
- };
14
10
  }
11
+ declare function WalletConnector({ networkSupport, handleNavigate, modalMaxWidth, ...walletSortingOptions }: WalletConnectorProps): react_jsx_runtime.JSX.Element;
15
12
 
16
- declare function WalletConnector({ networkSupport, handleNavigate, modalMaxWidth, crossChainWallets, ...walletSortingOptions }: WalletConnectorProps): react_jsx_runtime.JSX.Element;
17
-
18
- export { WalletConnector };
13
+ export { WalletConnector, type WalletConnectorProps };
package/dist/index.js CHANGED
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
5
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
@@ -19,7 +17,6 @@ var __spreadValues = (a, b) => {
19
17
  }
20
18
  return a;
21
19
  };
22
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
20
  var __objRest = (source, exclude) => {
24
21
  var target = {};
25
22
  for (var prop in source)
@@ -228,95 +225,21 @@ function WalletsModal(_a) {
228
225
  handleClose,
229
226
  modalOpen,
230
227
  networkSupport,
231
- modalMaxWidth,
232
- crossChainWallets
228
+ modalMaxWidth
233
229
  } = _b, walletSortingOptions = __objRest(_b, [
234
230
  "handleClose",
235
231
  "modalOpen",
236
232
  "networkSupport",
237
- "modalMaxWidth",
238
- "crossChainWallets"
233
+ "modalMaxWidth"
239
234
  ]);
240
235
  const theme = (0, import_material3.useTheme)();
241
236
  const [expanded, setExpanded] = (0, import_react3.useState)(false);
242
- const [tabValue, setTabValue] = (0, import_react3.useState)(0);
243
- const handleTabChange = (event, newValue) => {
244
- setTabValue(newValue);
245
- };
246
237
  const { wallets = [], notDetectedWallets = [] } = (0, import_wallet_adapter_react3.useWallet)();
247
238
  const { aptosConnectWallets, availableWallets, installableWallets } = (0, import_wallet_adapter_react3.groupAndSortWallets)(
248
239
  [...wallets, ...notDetectedWallets],
249
240
  walletSortingOptions
250
241
  );
251
242
  const hasAptosConnectWallets = !!aptosConnectWallets.length;
252
- const crossChainMode = crossChainWallets && (crossChainWallets.evm || crossChainWallets.solana);
253
- const { evmWallets, solanaWallets, aptosWallets } = crossChainMode ? availableWallets.reduce(
254
- (acc, wallet) => {
255
- if (wallet.name.includes("Ethereum")) {
256
- acc.evmWallets.push(wallet);
257
- } else if (wallet.name.includes("Solana")) {
258
- acc.solanaWallets.push(wallet);
259
- } else {
260
- acc.aptosWallets.push(wallet);
261
- }
262
- return acc;
263
- },
264
- { evmWallets: [], solanaWallets: [], aptosWallets: [] }
265
- ) : { evmWallets: [], solanaWallets: [], aptosWallets: availableWallets };
266
- const {
267
- evmInstallableWallets,
268
- solanaInstallableWallets,
269
- aptosInstallableWallets
270
- } = crossChainMode ? installableWallets.reduce(
271
- (acc, wallet) => {
272
- if (wallet.name.includes("Ethereum")) {
273
- acc.evmInstallableWallets.push(wallet);
274
- } else if (wallet.name.includes("Solana")) {
275
- acc.solanaInstallableWallets.push(wallet);
276
- } else {
277
- acc.aptosInstallableWallets.push(wallet);
278
- }
279
- return acc;
280
- },
281
- {
282
- evmInstallableWallets: [],
283
- solanaInstallableWallets: [],
284
- aptosInstallableWallets: []
285
- }
286
- ) : {
287
- evmInstallableWallets: [],
288
- solanaInstallableWallets: [],
289
- aptosInstallableWallets: installableWallets
290
- };
291
- const tabsConfig = crossChainMode ? [
292
- { key: "aptos", label: "Aptos", enabled: true },
293
- { key: "solana", label: "Solana", enabled: crossChainWallets.solana },
294
- { key: "evm", label: "Ethereum", enabled: crossChainWallets.evm }
295
- ].filter((tab) => tab.enabled) : [];
296
- const getTabIndex = (key) => tabsConfig.findIndex((tab) => tab.key === key);
297
- const renderWalletList = (wallets2, installableWallets2) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
298
- wallets2.map((wallet) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(WalletRow, { wallet, onConnect: handleClose }, wallet.name)),
299
- !!installableWallets2.length && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
300
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
301
- import_material3.Button,
302
- {
303
- variant: "text",
304
- size: "small",
305
- onClick: () => setExpanded((prev) => !prev),
306
- endIcon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material2.ExpandMore, { sx: { height: "20px", width: "20px" } }),
307
- children: "More Wallets"
308
- }
309
- ),
310
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Collapse, { in: expanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Stack, { sx: { gap: 1 }, children: installableWallets2.map((wallet) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
311
- WalletRow,
312
- {
313
- wallet,
314
- onConnect: handleClose
315
- },
316
- wallet.name
317
- )) }) })
318
- ] })
319
- ] });
320
243
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
321
244
  import_material3.Dialog,
322
245
  {
@@ -365,7 +288,7 @@ function WalletsModal(_a) {
365
288
  },
366
289
  children: hasAptosConnectWallets ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
367
290
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "Log in or sign up" }),
368
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "with Social + Aptos Connect" })
291
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "with Social + Petra Web" })
369
292
  ] }) : "Connect Wallet"
370
293
  }
371
294
  ),
@@ -449,7 +372,7 @@ function WalletsModal(_a) {
449
372
  appearance: "none"
450
373
  },
451
374
  children: [
452
- "Aptos Connect ",
375
+ "Petra Web ",
453
376
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material2.ArrowForward, { sx: { height: 16, width: 16 } })
454
377
  ]
455
378
  }
@@ -499,26 +422,36 @@ function WalletsModal(_a) {
499
422
  ),
500
423
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Divider, { sx: { color: grey[400], pt: 2 }, children: "Or" })
501
424
  ] }),
502
- crossChainMode ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
503
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
504
- import_material3.Tabs,
425
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material3.Stack, { sx: { gap: 1 }, children: [
426
+ availableWallets.map((wallet) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
427
+ WalletRow,
505
428
  {
506
- value: tabValue,
507
- onChange: handleTabChange,
508
- textColor: "secondary",
509
- indicatorColor: "secondary",
510
- variant: "fullWidth",
511
- "aria-label": "cross chain wallets tabs",
512
- children: tabsConfig.map((tab, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Tab, __spreadValues({ label: tab.label }, a11yProps(index)), tab.key))
513
- }
514
- ),
515
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TabPanel, { value: tabValue, index: getTabIndex("aptos"), children: renderWalletList(aptosWallets, aptosInstallableWallets) }),
516
- crossChainWallets.solana && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TabPanel, { value: tabValue, index: getTabIndex("solana"), children: renderWalletList(solanaWallets, solanaInstallableWallets) }),
517
- crossChainWallets.evm && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TabPanel, { value: tabValue, index: getTabIndex("evm"), children: renderWalletList(evmWallets, evmInstallableWallets) })
518
- ] }) : (
519
- // Simple list mode (original WalletModel behavior)
520
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Stack, { sx: { gap: 1 }, children: renderWalletList(availableWallets, installableWallets) })
521
- )
429
+ wallet,
430
+ onConnect: handleClose
431
+ },
432
+ wallet.name
433
+ )),
434
+ !!installableWallets.length && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
435
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
436
+ import_material3.Button,
437
+ {
438
+ variant: "text",
439
+ size: "small",
440
+ onClick: () => setExpanded((prev) => !prev),
441
+ endIcon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material2.ExpandMore, { sx: { height: "20px", width: "20px" } }),
442
+ children: "More Wallets"
443
+ }
444
+ ),
445
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Collapse, { in: expanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Stack, { sx: { gap: 1 }, children: installableWallets.map((wallet) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
446
+ WalletRow,
447
+ {
448
+ wallet,
449
+ onConnect: handleClose
450
+ },
451
+ wallet.name
452
+ )) }) })
453
+ ] })
454
+ ] })
522
455
  ] })
523
456
  ]
524
457
  }
@@ -599,7 +532,7 @@ function renderEducationScreen(screen) {
599
532
  },
600
533
  children: [
601
534
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.IconButton, { onClick: screen.cancel, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material2.ArrowBack, {}) }),
602
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Typography, { variant: "body1", component: "h2", width: "100%", align: "center", children: "About Aptos Connect" })
535
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Typography, { variant: "body1", component: "h2", width: "100%", align: "center", children: "About Petra Web" })
603
536
  ]
604
537
  }
605
538
  ),
@@ -707,26 +640,6 @@ function renderEducationScreen(screen) {
707
640
  )
708
641
  ] });
709
642
  }
710
- function TabPanel(props) {
711
- const _a = props, { children, value, index } = _a, other = __objRest(_a, ["children", "value", "index"]);
712
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
713
- "div",
714
- __spreadProps(__spreadValues({
715
- role: "tabpanel",
716
- hidden: value !== index,
717
- id: `simple-tabpanel-${index}`,
718
- "aria-labelledby": `simple-tab-${index}`
719
- }, other), {
720
- children: value === index && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Stack, { sx: { gap: 1 }, children })
721
- })
722
- );
723
- }
724
- function a11yProps(index) {
725
- return {
726
- id: `simple-tab-${index}`,
727
- "aria-controls": `simple-tabpanel-${index}`
728
- };
729
- }
730
643
 
731
644
  // src/WalletConnector.tsx
732
645
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -734,13 +647,11 @@ function WalletConnector(_a) {
734
647
  var _b = _a, {
735
648
  networkSupport,
736
649
  handleNavigate,
737
- modalMaxWidth,
738
- crossChainWallets
650
+ modalMaxWidth
739
651
  } = _b, walletSortingOptions = __objRest(_b, [
740
652
  "networkSupport",
741
653
  "handleNavigate",
742
- "modalMaxWidth",
743
- "crossChainWallets"
654
+ "modalMaxWidth"
744
655
  ]);
745
656
  const [modalOpen, setModalOpen] = (0, import_react4.useState)(false);
746
657
  const handleModalOpen = () => setModalOpen(true);
@@ -759,8 +670,7 @@ function WalletConnector(_a) {
759
670
  handleClose,
760
671
  modalOpen,
761
672
  networkSupport,
762
- modalMaxWidth,
763
- crossChainWallets
673
+ modalMaxWidth
764
674
  }, walletSortingOptions)
765
675
  )
766
676
  ] });
package/dist/index.mjs CHANGED
@@ -1,6 +1,4 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
2
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
3
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
4
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -16,7 +14,6 @@ var __spreadValues = (a, b) => {
16
14
  }
17
15
  return a;
18
16
  };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
17
  var __objRest = (source, exclude) => {
21
18
  var target = {};
22
19
  for (var prop in source)
@@ -203,8 +200,6 @@ import {
203
200
  ListItem as ListItem2,
204
201
  ListItemText as ListItemText2,
205
202
  Stack,
206
- Tab,
207
- Tabs,
208
203
  Typography as Typography2,
209
204
  useTheme
210
205
  } from "@mui/material";
@@ -239,95 +234,21 @@ function WalletsModal(_a) {
239
234
  handleClose,
240
235
  modalOpen,
241
236
  networkSupport,
242
- modalMaxWidth,
243
- crossChainWallets
237
+ modalMaxWidth
244
238
  } = _b, walletSortingOptions = __objRest(_b, [
245
239
  "handleClose",
246
240
  "modalOpen",
247
241
  "networkSupport",
248
- "modalMaxWidth",
249
- "crossChainWallets"
242
+ "modalMaxWidth"
250
243
  ]);
251
244
  const theme = useTheme();
252
245
  const [expanded, setExpanded] = useState3(false);
253
- const [tabValue, setTabValue] = useState3(0);
254
- const handleTabChange = (event, newValue) => {
255
- setTabValue(newValue);
256
- };
257
246
  const { wallets = [], notDetectedWallets = [] } = useWallet3();
258
247
  const { aptosConnectWallets, availableWallets, installableWallets } = groupAndSortWallets(
259
248
  [...wallets, ...notDetectedWallets],
260
249
  walletSortingOptions
261
250
  );
262
251
  const hasAptosConnectWallets = !!aptosConnectWallets.length;
263
- const crossChainMode = crossChainWallets && (crossChainWallets.evm || crossChainWallets.solana);
264
- const { evmWallets, solanaWallets, aptosWallets } = crossChainMode ? availableWallets.reduce(
265
- (acc, wallet) => {
266
- if (wallet.name.includes("Ethereum")) {
267
- acc.evmWallets.push(wallet);
268
- } else if (wallet.name.includes("Solana")) {
269
- acc.solanaWallets.push(wallet);
270
- } else {
271
- acc.aptosWallets.push(wallet);
272
- }
273
- return acc;
274
- },
275
- { evmWallets: [], solanaWallets: [], aptosWallets: [] }
276
- ) : { evmWallets: [], solanaWallets: [], aptosWallets: availableWallets };
277
- const {
278
- evmInstallableWallets,
279
- solanaInstallableWallets,
280
- aptosInstallableWallets
281
- } = crossChainMode ? installableWallets.reduce(
282
- (acc, wallet) => {
283
- if (wallet.name.includes("Ethereum")) {
284
- acc.evmInstallableWallets.push(wallet);
285
- } else if (wallet.name.includes("Solana")) {
286
- acc.solanaInstallableWallets.push(wallet);
287
- } else {
288
- acc.aptosInstallableWallets.push(wallet);
289
- }
290
- return acc;
291
- },
292
- {
293
- evmInstallableWallets: [],
294
- solanaInstallableWallets: [],
295
- aptosInstallableWallets: []
296
- }
297
- ) : {
298
- evmInstallableWallets: [],
299
- solanaInstallableWallets: [],
300
- aptosInstallableWallets: installableWallets
301
- };
302
- const tabsConfig = crossChainMode ? [
303
- { key: "aptos", label: "Aptos", enabled: true },
304
- { key: "solana", label: "Solana", enabled: crossChainWallets.solana },
305
- { key: "evm", label: "Ethereum", enabled: crossChainWallets.evm }
306
- ].filter((tab) => tab.enabled) : [];
307
- const getTabIndex = (key) => tabsConfig.findIndex((tab) => tab.key === key);
308
- const renderWalletList = (wallets2, installableWallets2) => /* @__PURE__ */ jsxs3(Fragment2, { children: [
309
- wallets2.map((wallet) => /* @__PURE__ */ jsx3(WalletRow, { wallet, onConnect: handleClose }, wallet.name)),
310
- !!installableWallets2.length && /* @__PURE__ */ jsxs3(Fragment2, { children: [
311
- /* @__PURE__ */ jsx3(
312
- Button2,
313
- {
314
- variant: "text",
315
- size: "small",
316
- onClick: () => setExpanded((prev) => !prev),
317
- endIcon: /* @__PURE__ */ jsx3(ExpandMore, { sx: { height: "20px", width: "20px" } }),
318
- children: "More Wallets"
319
- }
320
- ),
321
- /* @__PURE__ */ jsx3(Collapse, { in: expanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx3(Stack, { sx: { gap: 1 }, children: installableWallets2.map((wallet) => /* @__PURE__ */ jsx3(
322
- WalletRow,
323
- {
324
- wallet,
325
- onConnect: handleClose
326
- },
327
- wallet.name
328
- )) }) })
329
- ] })
330
- ] });
331
252
  return /* @__PURE__ */ jsx3(
332
253
  Dialog,
333
254
  {
@@ -376,7 +297,7 @@ function WalletsModal(_a) {
376
297
  },
377
298
  children: hasAptosConnectWallets ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
378
299
  /* @__PURE__ */ jsx3("span", { children: "Log in or sign up" }),
379
- /* @__PURE__ */ jsx3("span", { children: "with Social + Aptos Connect" })
300
+ /* @__PURE__ */ jsx3("span", { children: "with Social + Petra Web" })
380
301
  ] }) : "Connect Wallet"
381
302
  }
382
303
  ),
@@ -460,7 +381,7 @@ function WalletsModal(_a) {
460
381
  appearance: "none"
461
382
  },
462
383
  children: [
463
- "Aptos Connect ",
384
+ "Petra Web ",
464
385
  /* @__PURE__ */ jsx3(ArrowForward, { sx: { height: 16, width: 16 } })
465
386
  ]
466
387
  }
@@ -510,26 +431,36 @@ function WalletsModal(_a) {
510
431
  ),
511
432
  /* @__PURE__ */ jsx3(Divider, { sx: { color: grey[400], pt: 2 }, children: "Or" })
512
433
  ] }),
513
- crossChainMode ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
514
- /* @__PURE__ */ jsx3(
515
- Tabs,
434
+ /* @__PURE__ */ jsxs3(Stack, { sx: { gap: 1 }, children: [
435
+ availableWallets.map((wallet) => /* @__PURE__ */ jsx3(
436
+ WalletRow,
516
437
  {
517
- value: tabValue,
518
- onChange: handleTabChange,
519
- textColor: "secondary",
520
- indicatorColor: "secondary",
521
- variant: "fullWidth",
522
- "aria-label": "cross chain wallets tabs",
523
- children: tabsConfig.map((tab, index) => /* @__PURE__ */ jsx3(Tab, __spreadValues({ label: tab.label }, a11yProps(index)), tab.key))
524
- }
525
- ),
526
- /* @__PURE__ */ jsx3(TabPanel, { value: tabValue, index: getTabIndex("aptos"), children: renderWalletList(aptosWallets, aptosInstallableWallets) }),
527
- crossChainWallets.solana && /* @__PURE__ */ jsx3(TabPanel, { value: tabValue, index: getTabIndex("solana"), children: renderWalletList(solanaWallets, solanaInstallableWallets) }),
528
- crossChainWallets.evm && /* @__PURE__ */ jsx3(TabPanel, { value: tabValue, index: getTabIndex("evm"), children: renderWalletList(evmWallets, evmInstallableWallets) })
529
- ] }) : (
530
- // Simple list mode (original WalletModel behavior)
531
- /* @__PURE__ */ jsx3(Stack, { sx: { gap: 1 }, children: renderWalletList(availableWallets, installableWallets) })
532
- )
438
+ wallet,
439
+ onConnect: handleClose
440
+ },
441
+ wallet.name
442
+ )),
443
+ !!installableWallets.length && /* @__PURE__ */ jsxs3(Fragment2, { children: [
444
+ /* @__PURE__ */ jsx3(
445
+ Button2,
446
+ {
447
+ variant: "text",
448
+ size: "small",
449
+ onClick: () => setExpanded((prev) => !prev),
450
+ endIcon: /* @__PURE__ */ jsx3(ExpandMore, { sx: { height: "20px", width: "20px" } }),
451
+ children: "More Wallets"
452
+ }
453
+ ),
454
+ /* @__PURE__ */ jsx3(Collapse, { in: expanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx3(Stack, { sx: { gap: 1 }, children: installableWallets.map((wallet) => /* @__PURE__ */ jsx3(
455
+ WalletRow,
456
+ {
457
+ wallet,
458
+ onConnect: handleClose
459
+ },
460
+ wallet.name
461
+ )) }) })
462
+ ] })
463
+ ] })
533
464
  ] })
534
465
  ]
535
466
  }
@@ -610,7 +541,7 @@ function renderEducationScreen(screen) {
610
541
  },
611
542
  children: [
612
543
  /* @__PURE__ */ jsx3(IconButton, { onClick: screen.cancel, children: /* @__PURE__ */ jsx3(ArrowBack, {}) }),
613
- /* @__PURE__ */ jsx3(Typography2, { variant: "body1", component: "h2", width: "100%", align: "center", children: "About Aptos Connect" })
544
+ /* @__PURE__ */ jsx3(Typography2, { variant: "body1", component: "h2", width: "100%", align: "center", children: "About Petra Web" })
614
545
  ]
615
546
  }
616
547
  ),
@@ -718,26 +649,6 @@ function renderEducationScreen(screen) {
718
649
  )
719
650
  ] });
720
651
  }
721
- function TabPanel(props) {
722
- const _a = props, { children, value, index } = _a, other = __objRest(_a, ["children", "value", "index"]);
723
- return /* @__PURE__ */ jsx3(
724
- "div",
725
- __spreadProps(__spreadValues({
726
- role: "tabpanel",
727
- hidden: value !== index,
728
- id: `simple-tabpanel-${index}`,
729
- "aria-labelledby": `simple-tab-${index}`
730
- }, other), {
731
- children: value === index && /* @__PURE__ */ jsx3(Stack, { sx: { gap: 1 }, children })
732
- })
733
- );
734
- }
735
- function a11yProps(index) {
736
- return {
737
- id: `simple-tab-${index}`,
738
- "aria-controls": `simple-tabpanel-${index}`
739
- };
740
- }
741
652
 
742
653
  // src/WalletConnector.tsx
743
654
  import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
@@ -745,13 +656,11 @@ function WalletConnector(_a) {
745
656
  var _b = _a, {
746
657
  networkSupport,
747
658
  handleNavigate,
748
- modalMaxWidth,
749
- crossChainWallets
659
+ modalMaxWidth
750
660
  } = _b, walletSortingOptions = __objRest(_b, [
751
661
  "networkSupport",
752
662
  "handleNavigate",
753
- "modalMaxWidth",
754
- "crossChainWallets"
663
+ "modalMaxWidth"
755
664
  ]);
756
665
  const [modalOpen, setModalOpen] = useState4(false);
757
666
  const handleModalOpen = () => setModalOpen(true);
@@ -770,8 +679,7 @@ function WalletConnector(_a) {
770
679
  handleClose,
771
680
  modalOpen,
772
681
  networkSupport,
773
- modalMaxWidth,
774
- crossChainWallets
682
+ modalMaxWidth
775
683
  }, walletSortingOptions)
776
684
  )
777
685
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-mui-design",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Aptos Wallet Adapter mui design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -41,7 +41,7 @@
41
41
  "@emotion/styled": "^11.10.5",
42
42
  "@mui/icons-material": "^5.11.0",
43
43
  "@mui/material": "^5.11.6",
44
- "@aptos-labs/wallet-adapter-react": "7.1.3"
44
+ "@aptos-labs/wallet-adapter-react": "7.2.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^18.0.0 || ^19.0.0",
@@ -224,7 +224,7 @@ export default function WalletsModal({
224
224
  {hasAptosConnectWallets ? (
225
225
  <>
226
226
  <span>Log in or sign up</span>
227
- <span>with Social + Aptos Connect</span>
227
+ <span>with Social + Petra Web</span>
228
228
  </>
229
229
  ) : (
230
230
  "Connect Wallet"
@@ -297,7 +297,7 @@ export default function WalletsModal({
297
297
  appearance: "none",
298
298
  }}
299
299
  >
300
- Aptos Connect <ArrowForward sx={{ height: 16, width: 16 }} />
300
+ Petra Web <ArrowForward sx={{ height: 16, width: 16 }} />
301
301
  </Box>
302
302
  </Typography>
303
303
 
@@ -465,7 +465,7 @@ function renderEducationScreen(screen: AboutAptosConnectEducationScreen) {
465
465
  <ArrowBack />
466
466
  </IconButton>
467
467
  <Typography variant="body1" component="h2" width="100%" align="center">
468
- About Aptos Connect
468
+ About Petra Web
469
469
  </Typography>
470
470
  </Box>
471
471