@unsource/ui 2.8.10 → 2.8.12

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.8.10",
4
+ "version": "2.8.12",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -198,7 +198,7 @@
198
198
 
199
199
  <script setup>
200
200
  import { NuxtLink } from "#components";
201
- import { useDevice } from "#imports";
201
+ import { ref, useDevice } from "#imports";
202
202
  const { direction = "column", customClass = {}, to = "", infoIcon = "solar:info-circle-bold-duotone" } = defineProps({
203
203
  direction: { type: String, required: false },
204
204
  customClass: { type: Object, required: false },
@@ -21,6 +21,7 @@
21
21
  </template>
22
22
 
23
23
  <script setup>
24
+ import { ref } from "#imports";
24
25
  defineProps({
25
26
  isError: { type: Boolean, required: false }
26
27
  });
@@ -1,24 +1,65 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
- type __VLS_WithSlots<T, S> = T & (new () => {
5
- $slots: S;
6
- });
7
- declare const __VLS_base: import("vue").DefineComponent<{}, {
8
- $props: Partial<typeof __VLS_props>;
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ icon?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ edit: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ icon: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ label: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ accept: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (value: any) => any;
28
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
+ edit: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ disabled: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ icon: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ label: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ accept: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ }>> & Readonly<{
50
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
51
+ }>, {
9
52
  icon: string;
10
53
  label: string;
11
54
  disabled: boolean;
12
55
  accept: string;
13
56
  edit: boolean;
14
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- type __VLS_Slots = {
16
- icon?: ((props: {}) => any) | undefined;
17
- };
18
- declare const __VLS_props: {
19
- readonly icon: string;
20
- readonly label: string;
21
- readonly disabled: boolean;
22
- readonly accept: string;
23
- readonly edit: boolean;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
59
+ declare const _default: typeof __VLS_export;
60
+ export default _default;
61
+ type __VLS_WithSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
24
65
  };
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <form
3
3
  class="flex flex-col relative"
4
- @dragenter="hovered=true"
5
- @dragleave="hovered=false"
4
+ @dragenter="hovered = true"
5
+ @dragleave="hovered = false"
6
6
  @submit.prevent="upload"
7
7
  @dragover.prevent
8
8
  @drop.stop.prevent="drop"
@@ -15,7 +15,7 @@
15
15
  <div
16
16
  v-if="!value || loading"
17
17
  class="flex flex-col justify-center items-center gap-3 p-2 border-(2 dashed) rounded-2xl grow"
18
- :class="label ? 'border-(primary-500)' : 'border-transparent' "
18
+ :class="label ? 'border-(primary-500)' : 'border-transparent'"
19
19
  >
20
20
  <UnNuxtIcon
21
21
  v-if="!loading"
@@ -51,6 +51,7 @@
51
51
  </template>
52
52
 
53
53
  <script setup>
54
+ import { ref, usePost } from "#imports";
54
55
  defineProps({
55
56
  edit: {
56
57
  type: Boolean,
@@ -1,24 +1,65 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
- type __VLS_WithSlots<T, S> = T & (new () => {
5
- $slots: S;
6
- });
7
- declare const __VLS_base: import("vue").DefineComponent<{}, {
8
- $props: Partial<typeof __VLS_props>;
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ icon?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ edit: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ icon: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ label: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ accept: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (value: any) => any;
28
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
+ edit: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ disabled: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ icon: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ label: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ accept: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ }>> & Readonly<{
50
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
51
+ }>, {
9
52
  icon: string;
10
53
  label: string;
11
54
  disabled: boolean;
12
55
  accept: string;
13
56
  edit: boolean;
14
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- type __VLS_Slots = {
16
- icon?: ((props: {}) => any) | undefined;
17
- };
18
- declare const __VLS_props: {
19
- readonly icon: string;
20
- readonly label: string;
21
- readonly disabled: boolean;
22
- readonly accept: string;
23
- readonly edit: boolean;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
59
+ declare const _default: typeof __VLS_export;
60
+ export default _default;
61
+ type __VLS_WithSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
24
65
  };
@@ -21,7 +21,7 @@ export declare const verifyPayment: (txId?: string) => Promise<{
21
21
  trx: undefined;
22
22
  status: boolean;
23
23
  message: string;
24
- } | undefined>;
24
+ }>;
25
25
  export declare const submitInviteCode: (code: string) => Promise<void>;
26
26
  export declare const normalizePersian: (text: string) => string;
27
27
  export declare const unNormalizePersian: (text: string) => string;
@@ -169,13 +169,11 @@ export const verifyPayment = async (txId = "") => {
169
169
  const { result } = await useGet(`/transaction/${txId || route.query.txId}`);
170
170
  if (result) {
171
171
  if (["SUCCESS", "ACCEPTED"].includes(result.status || "")) {
172
- if (result.trade) {
173
- return {
174
- trx: result,
175
- status: true,
176
- message: "\u0645\u0639\u0627\u0645\u0644\u0647 \u062B\u0628\u062A \u0634\u062F"
177
- };
178
- }
172
+ return {
173
+ trx: result,
174
+ status: true,
175
+ message: "\u0645\u0639\u0627\u0645\u0644\u0647 \u062B\u0628\u062A \u0634\u062F"
176
+ };
179
177
  } else {
180
178
  return {
181
179
  trx: result,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.8.10",
3
+ "version": "2.8.12",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",