@unsource/ui 2.8.0 → 2.8.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.
Files changed (26) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/UnCheckboxItem.vue +1 -1
  3. package/dist/runtime/components/{UnModal/Transfer.vue → UnModalTransfer.vue} +1 -0
  4. package/dist/runtime/components/{UnModal/Withdrawal.d.vue.ts → UnModalWalletIncrease.d.vue.ts} +1 -1
  5. package/dist/runtime/components/{UnModal/WalletIncrease.vue → UnModalWalletIncrease.vue} +1 -1
  6. package/dist/runtime/components/{UnModal/WalletIncrease.d.vue.ts → UnModalWalletIncrease.vue.d.ts} +1 -1
  7. package/dist/runtime/components/{UnModal/Withdrawal.vue.d.ts → UnModalWithdrawal.d.vue.ts} +1 -1
  8. package/dist/runtime/components/{UnModal/Withdrawal.vue → UnModalWithdrawal.vue} +2 -2
  9. package/dist/runtime/components/{UnModal/WalletIncrease.vue.d.ts → UnModalWithdrawal.vue.d.ts} +1 -1
  10. package/dist/runtime/components/UnRadioItem.vue +1 -1
  11. package/dist/runtime/components/UnTab.vue +1 -1
  12. package/dist/runtime/components/UnToggle.vue +1 -1
  13. package/dist/runtime/components/UnWallet.vue +1 -1
  14. package/dist/runtime/components/UnWalletActions.d.vue.ts +1 -1
  15. package/dist/runtime/components/UnWalletActions.vue +1 -1
  16. package/dist/runtime/components/UnWalletActions.vue.d.ts +1 -1
  17. package/dist/runtime/composables/global.js +1 -0
  18. package/package.json +1 -1
  19. /package/dist/runtime/components/{UnModal/PaymentMethod.d.vue.ts → UnModalPaymentMethod.d.vue.ts} +0 -0
  20. /package/dist/runtime/components/{UnModal/PaymentMethod.vue → UnModalPaymentMethod.vue} +0 -0
  21. /package/dist/runtime/components/{UnModal/PaymentMethod.vue.d.ts → UnModalPaymentMethod.vue.d.ts} +0 -0
  22. /package/dist/runtime/components/{UnModal/Transfer.d.vue.ts → UnModalTransfer.d.vue.ts} +0 -0
  23. /package/dist/runtime/components/{UnModal/Transfer.vue.d.ts → UnModalTransfer.vue.d.ts} +0 -0
  24. /package/dist/runtime/components/{UnModal/WalletSelection.d.vue.ts → UnModalWalletSelection.d.vue.ts} +0 -0
  25. /package/dist/runtime/components/{UnModal/WalletSelection.vue → UnModalWalletSelection.vue} +0 -0
  26. /package/dist/runtime/components/{UnModal/WalletSelection.vue.d.ts → UnModalWalletSelection.vue.d.ts} +0 -0
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.8.0",
4
+ "version": "2.8.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  class="select-none group px-4 py-3 flex items-center gap-2 transition duration-300 hover:bg-primary-100"
4
4
  :class="{ 'opacity-50 grayscale': disabled, 'disable': disabled, 'selected': selected }"
5
- @click="toggle"
5
+ @click.prevent.stop="toggle"
6
6
  >
7
7
  <div
8
8
  name="box"
@@ -39,6 +39,7 @@ import {
39
39
  _debounce,
40
40
  ajv,
41
41
  computed,
42
+ ref,
42
43
  s2n,
43
44
  submitPayment,
44
45
  useGet,
@@ -1,4 +1,4 @@
1
- import type { Wallet } from '../../types/models.js';
1
+ import type { Wallet } from '../types/models.js';
2
2
  type __VLS_Props = {
3
3
  wallet: Wallet;
4
4
  };
@@ -26,7 +26,7 @@
26
26
  </template>
27
27
 
28
28
  <script setup>
29
- import { s2n, submitPayment } from "#imports";
29
+ import { ref, s2n, submitPayment } from "#imports";
30
30
  const { wallet } = defineProps({
31
31
  wallet: { type: Object, required: true }
32
32
  });
@@ -1,4 +1,4 @@
1
- import type { Wallet } from '../../types/models.js';
1
+ import type { Wallet } from '../types/models.js';
2
2
  type __VLS_Props = {
3
3
  wallet: Wallet;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { Wallet } from '../../types/models.js';
1
+ import type { Wallet } from '../types/models.js';
2
2
  type __VLS_Props = {
3
3
  wallet: Wallet;
4
4
  };
@@ -20,8 +20,8 @@
20
20
  </template>
21
21
 
22
22
  <script setup>
23
- import { saveWithdraw } from "../../composables/services";
24
- import { computed, navigateTo, useNuxtApp, useTemplateRef } from "#imports";
23
+ import { saveWithdraw } from "../composables/services";
24
+ import { computed, navigateTo, ref, useNuxtApp, useTemplateRef } from "#imports";
25
25
  const { wallet } = defineProps({
26
26
  wallet: { type: Object, required: true }
27
27
  });
@@ -1,4 +1,4 @@
1
- import type { Wallet } from '../../types/models.js';
1
+ import type { Wallet } from '../types/models.js';
2
2
  type __VLS_Props = {
3
3
  wallet: Wallet;
4
4
  };
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  class="select-none group px-4 py-3 flex flex-row items-center gap-3 transition duration-300 hover:bg-primary-500/10 border-0 min-w-fit"
4
4
  :class="{ 'opacity-50 grayscale': disabled, 'disable': disabled, 'selected': selected }"
5
- @click="toggle"
5
+ @click.prevent.stop="toggle"
6
6
  >
7
7
  <div
8
8
  name="radio"
@@ -9,7 +9,7 @@
9
9
  mini ? 'px-3' : ' px-4'
10
10
  ]"
11
11
  class="group flex gap-2 justify-center items-center flex-grow basis-1 border-b-(2 solid) cursor-pointer p-3 text-sm"
12
- @click="addToQuery(item)"
12
+ @click.prevent.stop="addToQuery(item)"
13
13
  >
14
14
  <input
15
15
  v-model="value"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="group h-12 w-full flex flex-row gap-1 items-center cursor-pointer text-black-1 select-none"
4
- @click="changeValue"
4
+ @click.prevent.stop="changeValue"
5
5
  >
6
6
  <div
7
7
  v-if="label"
@@ -96,7 +96,7 @@
96
96
  </template>
97
97
 
98
98
  <script setup>
99
- import { _ceil, _round, computed, useAsyncData, useNuxtApp, useUser, useWallets } from "#imports";
99
+ import { _ceil, _round, computed, ref, useAsyncData, useNuxtApp, useUser, useWallets } from "#imports";
100
100
  import { getMyTransactions } from "../composables/services";
101
101
  const { multi = true, trxQuery = {} } = defineProps({
102
102
  multi: { type: Boolean, required: false },
@@ -1,4 +1,4 @@
1
- import type { Wallet } from '../types/wallet.js';
1
+ import type { Wallet } from '../types/models.js';
2
2
  type __VLS_Props = {
3
3
  selectedWallet: Wallet | null;
4
4
  noWithdraw?: boolean;
@@ -28,7 +28,7 @@
28
28
 
29
29
  <script setup>
30
30
  defineProps({
31
- selectedWallet: { type: null, required: true },
31
+ selectedWallet: { type: [Object, null], required: true },
32
32
  noWithdraw: { type: Boolean, required: false },
33
33
  noDeposit: { type: Boolean, required: false },
34
34
  noTransfer: { type: Boolean, required: false }
@@ -1,4 +1,4 @@
1
- import type { Wallet } from '../types/wallet.js';
1
+ import type { Wallet } from '../types/models.js';
2
2
  type __VLS_Props = {
3
3
  selectedWallet: Wallet | null;
4
4
  noWithdraw?: boolean;
@@ -12,6 +12,7 @@ import {
12
12
  ref,
13
13
  useDevice,
14
14
  useGet,
15
+ useI18n,
15
16
  useNuxtApp,
16
17
  usePost,
17
18
  useState
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.8.0",
3
+ "version": "2.8.3",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",