@unsource/ui 2.8.15 → 2.8.17
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
package/dist/module.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineNuxtModule, createResolver, addComponentsDir, addImportsDir, addPlugin } from '@nuxt/kit';
|
|
2
2
|
import defu from 'defu';
|
|
3
3
|
import { presetWind4, presetAttributify, transformerVariantGroup, transformerDirectives } from 'unocss';
|
|
4
4
|
import { presetScrollbar } from 'unocss-preset-scrollbar';
|
|
5
5
|
|
|
6
|
-
const resolver = createResolver(import.meta.url);
|
|
7
6
|
const module$1 = defineNuxtModule({
|
|
8
7
|
meta: {
|
|
9
8
|
name: "unsource-ui",
|
|
@@ -26,12 +25,12 @@ const module$1 = defineNuxtModule({
|
|
|
26
25
|
presetScrollbar({
|
|
27
26
|
noCompatible: false
|
|
28
27
|
})
|
|
29
|
-
]
|
|
30
|
-
content: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
28
|
+
]
|
|
29
|
+
// content: {
|
|
30
|
+
// filesystem: [
|
|
31
|
+
// resolver.resolve('runtime/composables/global'),
|
|
32
|
+
// ],
|
|
33
|
+
// },
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
36
|
"@nuxt/icon": {
|
|
@@ -95,9 +94,9 @@ const module$1 = defineNuxtModule({
|
|
|
95
94
|
}
|
|
96
95
|
},
|
|
97
96
|
async setup(_options, _nuxt) {
|
|
98
|
-
const
|
|
97
|
+
const resolver = createResolver(import.meta.url);
|
|
99
98
|
addComponentsDir({
|
|
100
|
-
path:
|
|
99
|
+
path: resolver.resolve("runtime/components"),
|
|
101
100
|
// path of components
|
|
102
101
|
pathPrefix: false,
|
|
103
102
|
// Prefix component name by its path.
|
|
@@ -106,9 +105,9 @@ const module$1 = defineNuxtModule({
|
|
|
106
105
|
global: true
|
|
107
106
|
// Registers components to be globally available.
|
|
108
107
|
});
|
|
109
|
-
addImportsDir(
|
|
110
|
-
addPlugin(
|
|
111
|
-
addPlugin(
|
|
108
|
+
addImportsDir(resolver.resolve("runtime/composables"));
|
|
109
|
+
addPlugin(resolver.resolve("runtime/plugins/floating.client"));
|
|
110
|
+
addPlugin(resolver.resolve("runtime/plugins/toast.client"));
|
|
112
111
|
_nuxt.options.runtimeConfig.public.unsourceUi = defu(_nuxt.options.runtimeConfig.public.unsourceUi, _options);
|
|
113
112
|
}
|
|
114
113
|
});
|
|
@@ -38,5 +38,5 @@ const { variant = "danger", mini = false, customClass = {} } = defineProps({
|
|
|
38
38
|
customClass: { type: Object, required: false }
|
|
39
39
|
});
|
|
40
40
|
defineEmits(["prependClick", "iconClick"]);
|
|
41
|
-
const classVariant = computed(() => variants?.[variant]);
|
|
41
|
+
const classVariant = computed(() => variants?.[variant] || variant);
|
|
42
42
|
</script>
|
|
@@ -383,7 +383,10 @@ export const variants = {
|
|
|
383
383
|
"primary-fill": "border-primary-500 bg-primary-500 text-white",
|
|
384
384
|
"primary-border": "border-primary-500 bg-primary-500/10 text-primary-500",
|
|
385
385
|
"primary-flat": "border-transparent bg-white text-primary-500",
|
|
386
|
-
"secondary": "border-transparent bg-
|
|
386
|
+
"secondary": "border-transparent bg-secondary-500/10 text-secondary-500",
|
|
387
387
|
"secondary-fill": "border-secondary-500 bg-secondary-500 text-white",
|
|
388
|
-
"secondary-flat": "border-transparent bg-white text-secondary-500"
|
|
388
|
+
"secondary-flat": "border-transparent bg-white text-secondary-500",
|
|
389
|
+
"disable": "border-transparent bg-disable/10 text-disable",
|
|
390
|
+
"disable-fill": "border-disable bg-disable text-white",
|
|
391
|
+
"disable-flat": "border-transparent bg-white text-disable"
|
|
389
392
|
};
|
|
@@ -172,13 +172,13 @@ export const verifyPayment = async (txId = "") => {
|
|
|
172
172
|
return {
|
|
173
173
|
trx: result,
|
|
174
174
|
status: true,
|
|
175
|
-
message: "\
|
|
175
|
+
message: "\u062A\u0631\u0627\u06A9\u0646\u0634 \u0645\u0648\u0641\u0642"
|
|
176
176
|
};
|
|
177
177
|
} else {
|
|
178
178
|
return {
|
|
179
179
|
trx: result,
|
|
180
180
|
status: false,
|
|
181
|
-
message: "\u062A\u0631\u0627\u06A9\u0646\u0634 \u0646\u0627\u0645\u0648\u0641\u0642
|
|
181
|
+
message: "\u062A\u0631\u0627\u06A9\u0646\u0634 \u0646\u0627\u0645\u0648\u0641\u0642"
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
} else {
|