hd-wallet-ui 2.0.13 → 2.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hd-wallet-ui",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "description": "HD Wallet modal UI — login, keys, identity, trust map, and security bond. Attach to any button in your app.",
5
5
  "type": "module",
6
6
  "main": "src/app.js",
@@ -40,7 +40,7 @@
40
40
  "buffer": "^6.0.3",
41
41
  "flatbuffers": "^25.9.23",
42
42
  "flatc-wasm": "^26.1.32",
43
- "hd-wallet-wasm": "^2.0.13",
43
+ "hd-wallet-wasm": "^2.0.14",
44
44
  "qrcode": "^1.5.3",
45
45
  "spacedatastandards.org": "^1.93.3",
46
46
  "vcard-cryptoperson": "^1.1.11"
package/src/template.js CHANGED
@@ -3,7 +3,7 @@ export function getModalHTML() {
3
3
  <!-- Keys Modal -->
4
4
  <div id="keys-modal" class="modal">
5
5
  <div class="modal-glass modal-wide">
6
- <div class="modal-header account-modal-header"><div class="account-header-info"><div class="account-wallet-row"><select id="account-wallet-select" class="glass-input compact account-wallet-select" aria-label="Select wallet"></select></div><div class="account-wallet-summary"><div class="ph-portfolio-value" id="wallet-bond-value">$0.00</div><div class="ph-portfolio-label">Bond</div></div></div><button class="modal-close account-modal-close" type="button" aria-label="Close"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button></div>
6
+ <div class="modal-header account-modal-header"><div class="account-header-info"><div class="account-wallet-row"><select id="account-wallet-select" class="glass-input compact account-wallet-select" aria-label="Select wallet"></select></div><div class="account-wallet-summary"><div class="account-wallet-balance-line"><div class="ph-portfolio-value" id="wallet-bond-value">$0.00</div><div class="ph-portfolio-label">Bond</div></div></div></div><button class="modal-close account-modal-close" type="button" aria-label="Close"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button></div>
7
7
  <div class="modal-tabs">
8
8
  <button class="modal-tab active" data-modal-tab="vcard-tab-content">Identity</button>
9
9
  <button class="modal-tab" data-modal-tab="trust-tab-content">Trust Map</button>
package/styles/main.css CHANGED
@@ -1188,7 +1188,7 @@ body:has(.modal.active) .nav-bar {
1188
1188
  .account-header-info {
1189
1189
  display: flex;
1190
1190
  flex-direction: column;
1191
- align-items: center;
1191
+ align-items: flex-start;
1192
1192
  gap: 8px;
1193
1193
  flex: 1 1 auto;
1194
1194
  min-width: 0;
@@ -1196,7 +1196,6 @@ body:has(.modal.active) .nav-bar {
1196
1196
 
1197
1197
  .account-modal-header {
1198
1198
  position: relative;
1199
- justify-content: center;
1200
1199
  min-height: 118px;
1201
1200
  padding-right: 56px;
1202
1201
  }
@@ -1204,7 +1203,7 @@ body:has(.modal.active) .nav-bar {
1204
1203
  .account-wallet-row {
1205
1204
  display: flex;
1206
1205
  align-items: center;
1207
- justify-content: center;
1206
+ justify-content: flex-start;
1208
1207
  gap: 8px;
1209
1208
  width: auto;
1210
1209
  min-width: 0;
@@ -1228,7 +1227,23 @@ body:has(.modal.active) .nav-bar {
1228
1227
  }
1229
1228
 
1230
1229
  .account-wallet-summary {
1231
- text-align: center;
1230
+ text-align: left;
1231
+ }
1232
+
1233
+ .account-wallet-balance-line {
1234
+ display: flex;
1235
+ align-items: baseline;
1236
+ gap: 10px;
1237
+ }
1238
+
1239
+ .account-wallet-summary .ph-portfolio-value {
1240
+ color: #4ade80;
1241
+ }
1242
+
1243
+ .account-wallet-summary .ph-portfolio-label {
1244
+ font-size: 26px;
1245
+ color: var(--white-80);
1246
+ margin-top: 0;
1232
1247
  }
1233
1248
 
1234
1249
  @media (max-width: 600px) {
package/styles/widget.css CHANGED
@@ -1190,7 +1190,7 @@ body:has(#hd-wallet-ui-container .modal.active) #hd-wallet-ui-container .nav-bar
1190
1190
  #hd-wallet-ui-container .account-header-info {
1191
1191
  display: flex;
1192
1192
  flex-direction: column;
1193
- align-items: center;
1193
+ align-items: flex-start;
1194
1194
  gap: 8px;
1195
1195
  flex: 1 1 auto;
1196
1196
  min-width: 0;
@@ -1198,7 +1198,6 @@ body:has(#hd-wallet-ui-container .modal.active) #hd-wallet-ui-container .nav-bar
1198
1198
 
1199
1199
  #hd-wallet-ui-container .account-modal-header {
1200
1200
  position: relative;
1201
- justify-content: center;
1202
1201
  min-height: 118px;
1203
1202
  padding-right: 56px;
1204
1203
  }
@@ -1206,7 +1205,7 @@ body:has(#hd-wallet-ui-container .modal.active) #hd-wallet-ui-container .nav-bar
1206
1205
  #hd-wallet-ui-container .account-wallet-row {
1207
1206
  display: flex;
1208
1207
  align-items: center;
1209
- justify-content: center;
1208
+ justify-content: flex-start;
1210
1209
  gap: 8px;
1211
1210
  width: auto;
1212
1211
  min-width: 0;
@@ -1230,7 +1229,23 @@ body:has(#hd-wallet-ui-container .modal.active) #hd-wallet-ui-container .nav-bar
1230
1229
  }
1231
1230
 
1232
1231
  #hd-wallet-ui-container .account-wallet-summary {
1233
- text-align: center;
1232
+ text-align: left;
1233
+ }
1234
+
1235
+ #hd-wallet-ui-container .account-wallet-balance-line {
1236
+ display: flex;
1237
+ align-items: baseline;
1238
+ gap: 10px;
1239
+ }
1240
+
1241
+ #hd-wallet-ui-container .account-wallet-summary .ph-portfolio-value {
1242
+ color: #4ade80;
1243
+ }
1244
+
1245
+ #hd-wallet-ui-container .account-wallet-summary .ph-portfolio-label {
1246
+ font-size: 26px;
1247
+ color: var(--white-80);
1248
+ margin-top: 0;
1234
1249
  }
1235
1250
 
1236
1251
  @media (max-width: 600px) {