@aptos-labs/wallet-adapter-mui-design 0.0.1 → 0.0.2

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare type WalletConnectorProps = {
1
+ type WalletConnectorProps = {
2
2
  networkSupport?: string;
3
3
  handleNavigate?: () => void;
4
4
  };
package/dist/index.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,10 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
19
 
26
20
  // src/index.tsx
@@ -143,7 +137,7 @@ function truncateAddress(accountAddress) {
143
137
  }
144
138
 
145
139
  // src/WalletButton.tsx
146
- var import_AccountBalanceWalletOutlined = __toESM(require("@mui/icons-material/AccountBalanceWalletOutlined"));
140
+ var import_icons_material = require("@mui/icons-material");
147
141
  var import_jsx_runtime = require("react/jsx-runtime");
148
142
  function WalletButton({
149
143
  handleModalOpen,
@@ -186,7 +180,7 @@ function WalletButton({
186
180
  ]
187
181
  }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
188
182
  children: [
189
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_AccountBalanceWalletOutlined.default, {
183
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.AccountBalanceWalletOutlined, {
190
184
  sx: { marginRight: 1 }
191
185
  }),
192
186
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.Typography, {
@@ -225,8 +219,8 @@ var grey = {
225
219
  };
226
220
 
227
221
  // src/WalletModel.tsx
228
- var import_WarningAmberOutlined = __toESM(require("@mui/icons-material/WarningAmberOutlined"));
229
- var import_Close = __toESM(require("@mui/icons-material/Close"));
222
+ var import_icons_material2 = require("@mui/icons-material");
223
+ var import_icons_material3 = require("@mui/icons-material");
230
224
  var import_jsx_runtime = require("react/jsx-runtime");
231
225
  function WalletsModal({
232
226
  handleClose,
@@ -362,7 +356,7 @@ function WalletsModal({
362
356
  top: 12,
363
357
  color: grey[450]
364
358
  },
365
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Close.default, {})
359
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material3.Close, {})
366
360
  }),
367
361
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material3.Typography, {
368
362
  align: "center",
@@ -380,7 +374,7 @@ function WalletsModal({
380
374
  },
381
375
  children: networkSupport && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
382
376
  children: [
383
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_WarningAmberOutlined.default, {
377
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material2.LanOutlined, {
384
378
  sx: {
385
379
  fontSize: "0.9rem",
386
380
  color: grey[400]
package/dist/index.mjs CHANGED
@@ -118,7 +118,7 @@ function truncateAddress(accountAddress) {
118
118
  }
119
119
 
120
120
  // src/WalletButton.tsx
121
- import AccountBalanceWalletOutlinedIcon from "@mui/icons-material/AccountBalanceWalletOutlined";
121
+ import { AccountBalanceWalletOutlined as AccountBalanceWalletOutlinedIcon } from "@mui/icons-material";
122
122
  import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
123
123
  function WalletButton({
124
124
  handleModalOpen,
@@ -213,8 +213,8 @@ var grey = {
213
213
  };
214
214
 
215
215
  // src/WalletModel.tsx
216
- import LanOutlinedIcon from "@mui/icons-material/WarningAmberOutlined";
217
- import CloseIcon from "@mui/icons-material/Close";
216
+ import { LanOutlined as LanOutlinedIcon } from "@mui/icons-material";
217
+ import { Close as CloseIcon } from "@mui/icons-material";
218
218
  import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
219
219
  function WalletsModal({
220
220
  handleClose,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-mui-design",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Aptos Wallet Adapter mui design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -4,7 +4,7 @@ import { useWallet } from "@aptos-labs/wallet-adapter-react";
4
4
  import WalletMenu from "./WalletMenu";
5
5
  import React from "react";
6
6
  import { truncateAddress } from "./utils";
7
- import AccountBalanceWalletOutlinedIcon from "@mui/icons-material/AccountBalanceWalletOutlined";
7
+ import { AccountBalanceWalletOutlined as AccountBalanceWalletOutlinedIcon } from "@mui/icons-material";
8
8
 
9
9
  type WalletButtonProps = {
10
10
  handleModalOpen: () => void;
@@ -14,8 +14,8 @@ import {
14
14
  } from "@mui/material";
15
15
  import { useWallet, WalletName } from "@aptos-labs/wallet-adapter-react";
16
16
  import { grey } from "./aptosColorPalette";
17
- import LanOutlinedIcon from "@mui/icons-material/WarningAmberOutlined";
18
- import CloseIcon from "@mui/icons-material/Close";
17
+ import { LanOutlined as LanOutlinedIcon } from "@mui/icons-material";
18
+ import { Close as CloseIcon } from "@mui/icons-material";
19
19
 
20
20
  type WalletsModalProps = {
21
21
  handleClose: () => void;