@aptos-labs/wallet-adapter-ant-design 0.0.1 → 0.0.3

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/README.md ADDED
File without changes
package/dist/index.css CHANGED
@@ -33,4 +33,10 @@
33
33
  padding: 10px 20px;
34
34
  height: auto;
35
35
  font-size: 16px;
36
+ background-color: "#3F67FF";
37
+ color: "white";
38
+ }
39
+ .wallet-modal-titles {
40
+ text-align: "center";
41
+ font-size: "1.5rem";
36
42
  }
package/dist/index.js CHANGED
@@ -56,13 +56,12 @@ function WalletSelector() {
56
56
  children: [
57
57
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Button, {
58
58
  className: "wallet-button",
59
- style: { backgroundColor: "#3F67FF", color: "white" },
60
59
  onClick: () => onWalletButtonClick(),
61
60
  children: connected ? truncateAddress(account == null ? void 0 : account.address) : "Connect Wallet"
62
61
  }),
63
62
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Modal, {
64
63
  title: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
65
- style: { textAlign: "center", fontSize: "1.5rem" },
64
+ className: "wallet-modal-title",
66
65
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
67
66
  children: "Connect Wallet"
68
67
  })
package/dist/index.mjs CHANGED
@@ -33,13 +33,12 @@ function WalletSelector() {
33
33
  children: [
34
34
  /* @__PURE__ */ jsx(Button, {
35
35
  className: "wallet-button",
36
- style: { backgroundColor: "#3F67FF", color: "white" },
37
36
  onClick: () => onWalletButtonClick(),
38
37
  children: connected ? truncateAddress(account == null ? void 0 : account.address) : "Connect Wallet"
39
38
  }),
40
39
  /* @__PURE__ */ jsx(Modal, {
41
40
  title: /* @__PURE__ */ jsx("div", {
42
- style: { textAlign: "center", fontSize: "1.5rem" },
41
+ className: "wallet-modal-title",
43
42
  children: /* @__PURE__ */ jsx("span", {
44
43
  children: "Connect Wallet"
45
44
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-ant-design",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Aptos Wallet Adapter ant-design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -27,16 +27,12 @@ export function WalletSelector() {
27
27
 
28
28
  return (
29
29
  <>
30
- <Button
31
- className="wallet-button"
32
- style={{ backgroundColor: "#3F67FF", color: "white" }}
33
- onClick={() => onWalletButtonClick()}
34
- >
30
+ <Button className="wallet-button" onClick={() => onWalletButtonClick()}>
35
31
  {connected ? truncateAddress(account?.address) : "Connect Wallet"}
36
32
  </Button>
37
33
  <Modal
38
34
  title={
39
- <div style={{ textAlign: "center", fontSize: "1.5rem" }}>
35
+ <div className="wallet-modal-title">
40
36
  <span>Connect Wallet</span>
41
37
  </div>
42
38
  }
package/src/styles.css CHANGED
@@ -39,4 +39,11 @@
39
39
  padding: 10px 20px;
40
40
  height: auto;
41
41
  font-size: 16px;
42
+ background-color: "#3F67FF";
43
+ color: "white";
44
+ }
45
+
46
+ .wallet-modal-titles {
47
+ text-align: "center";
48
+ font-size: "1.5rem";
42
49
  }