@mictonode/widget 0.3.18 → 0.3.19

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.
@@ -1,4 +1,4 @@
1
- import { _ as n, s as e } from "./main-bbea3e54.js";
1
+ import { _ as n, s as e } from "./main-c424432b.js";
2
2
  class l {
3
3
  constructor({
4
4
  requestClient: i
@@ -1,4 +1,4 @@
1
- import { C as u, m as r, T as W, t as ee, f as ie, L as d, P as L, A as p, a as B, b as F, c as w, d as M, e as U, g as Q, h as oe, _ as ne } from "./main-bbea3e54.js";
1
+ import { C as u, m as r, T as W, t as ee, f as ie, L as d, P as L, A as p, a as B, b as F, c as w, d as M, e as U, g as Q, h as oe, _ as ne } from "./main-c424432b.js";
2
2
  function Z() {
3
3
  return {
4
4
  positionId: d.UZERO,
@@ -1,4 +1,4 @@
1
- import { _ as n, M as r, i as c, m as t, j as a, k as d, l as h, n as l, o as g, p, q as u, r as m } from "./main-bbea3e54.js";
1
+ import { _ as n, M as r, i as c, m as t, j as a, k as d, l as h, n as l, o as g, p, q as u, r as m } from "./main-c424432b.js";
2
2
  class f {
3
3
  constructor(e) {
4
4
  n(this, "rpc", void 0), this.rpc = e, this.createPosition = this.createPosition.bind(this), this.withdrawPosition = this.withdrawPosition.bind(this), this.collectFees = this.collectFees.bind(this), this.collectIncentives = this.collectIncentives.bind(this), this.fungifyChargedPositions = this.fungifyChargedPositions.bind(this);
@@ -219,8 +219,8 @@ const customKeplr = computed(() => {
219
219
  <label for="PingConnectWallet" class="modal cursor-pointer z-[999999]">
220
220
  <label class="modal-box rounded-lg" for="">
221
221
  <h3 class="text-xl font-semibold">Connect Wallet</h3>
222
- <ul role="list" class="bg-gray-100 rounded-lg mt-4 px-3 py-3">
223
- <li class="flex items-center px-2 py-3 hover:bg-gray-200 dark:hover:bg-primary-700 rounded-lg cursor-pointer"
222
+ <ul role="list" class="bg-gray-100 dark:bg-[#0f1419] rounded-lg mt-4 px-3 py-3">
223
+ <li class="flex items-center px-2 py-3 hover:bg-gray-200 dark:hover:bg-gray-800 rounded-lg cursor-pointer"
224
224
  v-for="(i, k) of walletList" :key="k" @click="selectWallet(i.wallet)">
225
225
  <img class="h-10 w-10 bg-gray-50 rounded-full mr-4" :src="i.logo" alt="" />
226
226
  <p class="text-base font-semibold flex-1">
@@ -289,7 +289,7 @@ function fetchTx(tx: string) {
289
289
  }
290
290
  </script>
291
291
  <template>
292
- <div class="text-gray-600">
292
+ <div class="text-gray-600 dark:text-gray-300">
293
293
  <!-- Put this part before </body> tag -->
294
294
  <input v-model="open" type="checkbox" :id="type" class="modal-toggle" @change="initData()" />
295
295
  <label :for="type" class="modal cursor-pointer">
@@ -315,9 +315,9 @@ function fetchTx(tx: string) {
315
315
  </label>
316
316
  <label class="input-group flex items-center">
317
317
  <input v-model="feeAmount" type="text" placeholder="0.001"
318
- class="input flex-1 w-0" />
318
+ class="input border join-item flex-1 w-0" />
319
319
  <select v-model="feeDenom"
320
- class="select input w-[200px]">
320
+ class="select border join-item w-[200px]">
321
321
  <option disabled selected>
322
322
  Select Fee Token
323
323
  </option>
package/lib/main.css CHANGED
@@ -294,8 +294,13 @@ code, pre, .font-mono {
294
294
  }
295
295
 
296
296
  .dark .select {
297
- background: rgba(255, 255, 255, 0.05);
298
- border-color: rgba(255, 255, 255, 0.1);
297
+ background: #1a1f2e;
298
+ border-color: rgba(255, 255, 255, 0.15);
299
+ color: #e5e7eb;
300
+ }
301
+
302
+ .dark .select option {
303
+ background: #1a1f2e;
299
304
  color: #e5e7eb;
300
305
  }
301
306
 
@@ -403,14 +408,36 @@ code, pre, .font-mono {
403
408
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
404
409
  0 4px 6px -4px rgba(0, 0, 0, 0.1);
405
410
  padding: 0.5rem;
411
+ color: #374151;
412
+ }
413
+
414
+ .dropdown-content .text-gray-600,
415
+ .dropdown-content .text-gray-500,
416
+ .dropdown-content .text-sm,
417
+ .dropdown-content span,
418
+ .dropdown-content a {
419
+ color: inherit;
406
420
  }
407
421
 
408
422
  .dark .dropdown-content {
409
- background: rgba(15, 20, 25, 0.9);
410
- backdrop-filter: blur(12px);
411
- -webkit-backdrop-filter: blur(12px);
423
+ background: #1a1f2e;
412
424
  border: 1px solid rgba(255, 255, 255, 0.08);
413
425
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.5);
426
+ color: #e5e7eb;
427
+ }
428
+
429
+ .dark .dropdown-content .text-gray-600,
430
+ .dark .dropdown-content .text-gray-500,
431
+ .dark .dropdown-content .text-sm,
432
+ .dark .dropdown-content span,
433
+ .dark .dropdown-content a {
434
+ color: #e5e7eb;
435
+ }
436
+
437
+ /* Dropdown items inside dark dropdown should have visible hover */
438
+ .dark .dropdown-content .hover\:bg-gray-200:hover,
439
+ .dark .dropdown-content .hover\:bg-gray-100:hover {
440
+ background: rgba(255, 255, 255, 0.08);
414
441
  }
415
442
 
416
443
  .divider {
@@ -424,17 +451,27 @@ code, pre, .font-mono {
424
451
  }
425
452
 
426
453
  /* --- Card (used in TokenConvert dropdown) --- */
454
+ .card {
455
+ background: transparent;
456
+ }
457
+
427
458
  .card.dropdown-content {
428
459
  background: #ffffff;
429
460
  }
430
461
 
431
462
  .dark .card.dropdown-content {
432
- background: rgba(15, 20, 25, 0.9);
433
- backdrop-filter: blur(12px);
434
- -webkit-backdrop-filter: blur(12px);
463
+ background: #1a1f2e;
435
464
  border: 1px solid rgba(255, 255, 255, 0.08);
436
465
  }
437
466
 
467
+ .dark .card.dropdown-content .card-body {
468
+ color: #e5e7eb;
469
+ }
470
+
471
+ .dark .card.dropdown-content li {
472
+ color: #e5e7eb;
473
+ }
474
+
438
475
  /* --- Loading --- */
439
476
  .loading {
440
477
  display: inline-block;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mictonode/widget",
3
3
  "private": false,
4
- "version": "0.3.18",
4
+ "version": "0.3.19",
5
5
  "type": "module",
6
6
  "main": "dist/ping-widget.js",
7
7
  "author": {