@coffic/cosy-ui 0.6.16 → 0.6.20
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/app.css +1 -1
- package/dist/assets/iconData.ts +5 -0
- package/dist/env.d.ts +12 -0
- package/dist/icons/AstroIcon.astro +1 -1
- package/dist/icons/InboxArchive.astro +23 -0
- package/dist/index_icons.ts +1 -0
- package/dist/index_vue.ts +10 -4
- package/dist/vue/BlogList/Basic.vue +30 -0
- package/dist/vue/BlogList/BlogList.vue +100 -0
- package/dist/vue/BlogList/Empty.vue +8 -0
- package/dist/vue/BlogList/EmptyEnglish.vue +8 -0
- package/dist/vue/BlogList/English.vue +24 -0
- package/dist/vue/BlogList/index.ts +50 -0
- package/dist/vue/Buttons/FeatureBasic.vue +8 -0
- package/dist/vue/{FeatureButton.vue → Buttons/FeatureButton.vue} +7 -10
- package/dist/vue/Buttons/FeatureWithTips.vue +8 -0
- package/dist/vue/Buttons/LinkBasic.vue +8 -0
- package/dist/vue/Buttons/LinkButton.vue +65 -0
- package/dist/vue/Buttons/Multiple.vue +11 -0
- package/dist/vue/Buttons/index.ts +59 -0
- package/dist/vue/ConfirmDialog/Basic.vue +57 -0
- package/dist/vue/ConfirmDialog/ConfirmDialog.vue +134 -0
- package/dist/vue/ConfirmDialog/CustomButtons.vue +69 -0
- package/dist/vue/ConfirmDialog/index.ts +58 -0
- package/dist/vue/Icons/InboxArchiveIcon.vue +30 -0
- package/dist/vue/MacWindow/MacWindow.vue +10 -4
- package/dist/vue/MacWindow/WithTabs.vue +2 -2
- package/dist/vue/SmartHero/Basic.vue +14 -0
- package/dist/vue/SmartHero/SmartHero.vue +132 -0
- package/dist/vue/SmartHero/WithCustomContent.vue +36 -0
- package/dist/vue/SmartHero/WithImage.vue +19 -0
- package/dist/vue/SmartHero/index.ts +46 -0
- package/dist/vue/SmartLink.vue +7 -11
- package/package.json +1 -1
- package/dist/vue/ConfirmDialog.vue +0 -76
- package/dist/vue/SmartHero.vue +0 -88
@@ -1,76 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<Transition name="fade">
|
3
|
-
<div
|
4
|
-
v-if="modelValue"
|
5
|
-
class="fixed inset-0 z-50 flex items-center justify-center"
|
6
|
-
>
|
7
|
-
<!-- 背景遮罩 -->
|
8
|
-
<div
|
9
|
-
class="absolute inset-0 bg-black/20 dark:bg-black/40 backdrop-blur-sm"
|
10
|
-
@click="$emit('update:modelValue', false)"
|
11
|
-
/>
|
12
|
-
|
13
|
-
<!-- 对话框 -->
|
14
|
-
<div class="relative bg-white dark:bg-gray-800 rounded-xl shadow-xl w-[400px] transform transition-all">
|
15
|
-
<!-- 内容区域 -->
|
16
|
-
<div class="p-6">
|
17
|
-
<h3 class="text-lg font-medium text-gray-900 dark:text-gray-100 mb-2">
|
18
|
-
{{ title }}
|
19
|
-
</h3>
|
20
|
-
<p class="text-gray-600 dark:text-gray-300">
|
21
|
-
{{ message }}
|
22
|
-
</p>
|
23
|
-
</div>
|
24
|
-
|
25
|
-
<!-- 按钮区域 -->
|
26
|
-
<div class="flex border-t border-gray-200 dark:border-gray-700">
|
27
|
-
<button
|
28
|
-
class="flex-1 px-4 py-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors rounded-bl-xl"
|
29
|
-
@click="$emit('update:modelValue', false)"
|
30
|
-
>
|
31
|
-
取消
|
32
|
-
</button>
|
33
|
-
<button
|
34
|
-
class="flex-1 px-4 py-3 text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900/30 transition-colors border-l border-gray-200 dark:border-gray-700 rounded-br-xl font-medium"
|
35
|
-
@click="handleConfirm"
|
36
|
-
>
|
37
|
-
确认
|
38
|
-
</button>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
</Transition>
|
43
|
-
</template>
|
44
|
-
|
45
|
-
<script setup>
|
46
|
-
defineProps({
|
47
|
-
modelValue: Boolean,
|
48
|
-
title: {
|
49
|
-
type: String,
|
50
|
-
default: 'Confirm'
|
51
|
-
},
|
52
|
-
message: {
|
53
|
-
type: String,
|
54
|
-
default: 'Are you sure you want to confirm this action?'
|
55
|
-
}
|
56
|
-
})
|
57
|
-
|
58
|
-
const emit = defineEmits(['update:modelValue', 'confirm'])
|
59
|
-
|
60
|
-
const handleConfirm = () => {
|
61
|
-
emit('update:modelValue', false)
|
62
|
-
emit('confirm')
|
63
|
-
}
|
64
|
-
</script>
|
65
|
-
|
66
|
-
<style scoped>
|
67
|
-
.fade-enter-active,
|
68
|
-
.fade-leave-active {
|
69
|
-
transition: opacity 0.2s ease;
|
70
|
-
}
|
71
|
-
|
72
|
-
.fade-enter-from,
|
73
|
-
.fade-leave-to {
|
74
|
-
opacity: 0;
|
75
|
-
}
|
76
|
-
</style>
|
package/dist/vue/SmartHero.vue
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="py-16 px-8 text-center w-full min-h-screen relative overflow-hidden
|
3
|
-
">
|
4
|
-
<div class="relative z-10 rounded-lg w-full h-full">
|
5
|
-
<template v-if="image.src">
|
6
|
-
<img :src="image.src" :alt="image.alt" class="h-1/2 mx-auto mb-8 drop-shadow-xl">
|
7
|
-
</template>
|
8
|
-
|
9
|
-
<h2 class="text-4xl mb-4 animate-fade-up">
|
10
|
-
{{ title }}
|
11
|
-
</h2>
|
12
|
-
<p class="text-lg mb-12 text-center max-w-2xl mx-auto">
|
13
|
-
{{ description }}
|
14
|
-
</p>
|
15
|
-
|
16
|
-
<div class="my-12 w-full">
|
17
|
-
<slot name="app" />
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<div class="flex flex-row justify-center gap-8 mx-auto w-full">
|
21
|
-
<a v-for="link in links" :key="link.text" :href="link.href" target="_blank" class="px-6 py-3 rounded-lg bg-blue-600 text-white font-medium
|
22
|
-
transition-all duration-300 ease-in-out
|
23
|
-
hover:bg-blue-700 hover:shadow-lg hover:-translate-y-0.5
|
24
|
-
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
25
|
-
active:bg-blue-800 active:translate-y-0">
|
26
|
-
{{ link.text }}
|
27
|
-
</a>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
</template>
|
32
|
-
|
33
|
-
<script setup lang="ts">
|
34
|
-
import type { PropType } from 'vue'
|
35
|
-
|
36
|
-
interface Link {
|
37
|
-
text: string;
|
38
|
-
href: string;
|
39
|
-
}
|
40
|
-
|
41
|
-
defineProps({
|
42
|
-
title: {
|
43
|
-
type: String,
|
44
|
-
required: true
|
45
|
-
},
|
46
|
-
description: {
|
47
|
-
type: String,
|
48
|
-
required: true
|
49
|
-
},
|
50
|
-
image: {
|
51
|
-
type: Object,
|
52
|
-
required: false,
|
53
|
-
default: () => ({
|
54
|
-
src: '',
|
55
|
-
alt: ''
|
56
|
-
})
|
57
|
-
},
|
58
|
-
links: {
|
59
|
-
type: Array as PropType<Link[]>,
|
60
|
-
required: true,
|
61
|
-
default: () => []
|
62
|
-
}
|
63
|
-
})
|
64
|
-
</script>
|
65
|
-
|
66
|
-
<style scoped>
|
67
|
-
@keyframes fade-up {
|
68
|
-
from {
|
69
|
-
opacity: 0;
|
70
|
-
transform: translateY(-20px);
|
71
|
-
}
|
72
|
-
|
73
|
-
to {
|
74
|
-
opacity: 1;
|
75
|
-
transform: translateY(0);
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
.animate-fade-up {
|
80
|
-
animation: fade-up 0.8s ease-out forwards;
|
81
|
-
}
|
82
|
-
</style>
|
83
|
-
|
84
|
-
<script lang="ts">
|
85
|
-
export default {
|
86
|
-
name: 'SmartHero'
|
87
|
-
}
|
88
|
-
</script>
|