@unsource/ui 2.8.4 → 2.8.5
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
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
</template>
|
|
38
38
|
|
|
39
39
|
<script setup>
|
|
40
|
-
import { computed } from "#imports";
|
|
41
|
-
const { variant = "" } = defineProps({
|
|
40
|
+
import { computed, variants } from "#imports";
|
|
41
|
+
const { variant = "primary" } = defineProps({
|
|
42
42
|
icon: { type: String, required: false },
|
|
43
43
|
appendIcon: { type: String, required: false },
|
|
44
44
|
label: { type: String, required: false },
|
|
@@ -50,13 +50,5 @@ const { variant = "" } = defineProps({
|
|
|
50
50
|
loading: { type: Boolean, required: false },
|
|
51
51
|
variant: { type: String, required: false }
|
|
52
52
|
});
|
|
53
|
-
const variants = {
|
|
54
|
-
"danger": "bg-danger/10 text-danger border-danger",
|
|
55
|
-
"primary": "bg-primary-500/10 bg-primary-500 border-primary",
|
|
56
|
-
"primary-fill": "bg-primary-500 text-white border-transparent",
|
|
57
|
-
"secondary": "bg-gray-600/10 text-gray-600 border-transparent",
|
|
58
|
-
"secondary-fill": "bg-gray-600 text-white border-transparent",
|
|
59
|
-
"secondary-bordered": "bg-transparent border-gray-400 text-gray-400"
|
|
60
|
-
};
|
|
61
53
|
const classVariant = computed(() => variants[variant]);
|
|
62
54
|
</script>
|