@unsource/ui 2.8.3 → 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>
|
|
@@ -18,9 +18,7 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
} & {
|
|
19
19
|
default?: (props: typeof __VLS_19) => any;
|
|
20
20
|
};
|
|
21
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
22
|
-
modal: any;
|
|
23
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, Readonly<import("vue").ShallowRef<any>>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
23
|
declare const _default: typeof __VLS_export;
|
|
26
24
|
export default _default;
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<script setup>
|
|
46
|
+
import { useTemplateRef } from "#imports";
|
|
46
47
|
defineProps({
|
|
47
48
|
head: { type: String, required: false },
|
|
48
49
|
title: { type: String, required: false },
|
|
@@ -55,6 +56,6 @@ const collapse = defineModel({ default: false });
|
|
|
55
56
|
const toggleCollapse = () => {
|
|
56
57
|
collapse.value = !collapse.value;
|
|
57
58
|
};
|
|
58
|
-
const
|
|
59
|
-
defineExpose(
|
|
59
|
+
const el = useTemplateRef("modal");
|
|
60
|
+
defineExpose(el);
|
|
60
61
|
</script>
|
|
@@ -18,9 +18,7 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
} & {
|
|
19
19
|
default?: (props: typeof __VLS_19) => any;
|
|
20
20
|
};
|
|
21
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
22
|
-
modal: any;
|
|
23
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, Readonly<import("vue").ShallowRef<any>>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
23
|
declare const _default: typeof __VLS_export;
|
|
26
24
|
export default _default;
|