@coffic/cosy-ui 0.6.18 → 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.
Files changed (34) hide show
  1. package/dist/app.css +1 -1
  2. package/dist/assets/iconData.ts +5 -0
  3. package/dist/env.d.ts +12 -0
  4. package/dist/icons/AstroIcon.astro +1 -1
  5. package/dist/icons/InboxArchive.astro +23 -0
  6. package/dist/index_icons.ts +1 -0
  7. package/dist/index_vue.ts +10 -4
  8. package/dist/vue/BlogList/Basic.vue +30 -0
  9. package/dist/vue/BlogList/BlogList.vue +100 -0
  10. package/dist/vue/BlogList/Empty.vue +8 -0
  11. package/dist/vue/BlogList/EmptyEnglish.vue +8 -0
  12. package/dist/vue/BlogList/English.vue +24 -0
  13. package/dist/vue/BlogList/index.ts +50 -0
  14. package/dist/vue/Buttons/FeatureBasic.vue +8 -0
  15. package/dist/vue/{FeatureButton.vue → Buttons/FeatureButton.vue} +7 -10
  16. package/dist/vue/Buttons/FeatureWithTips.vue +8 -0
  17. package/dist/vue/Buttons/LinkBasic.vue +8 -0
  18. package/dist/vue/Buttons/LinkButton.vue +65 -0
  19. package/dist/vue/Buttons/Multiple.vue +11 -0
  20. package/dist/vue/Buttons/index.ts +59 -0
  21. package/dist/vue/ConfirmDialog/Basic.vue +57 -0
  22. package/dist/vue/ConfirmDialog/ConfirmDialog.vue +134 -0
  23. package/dist/vue/ConfirmDialog/CustomButtons.vue +69 -0
  24. package/dist/vue/ConfirmDialog/index.ts +58 -0
  25. package/dist/vue/Icons/InboxArchiveIcon.vue +30 -0
  26. package/dist/vue/SmartHero/Basic.vue +14 -0
  27. package/dist/vue/SmartHero/SmartHero.vue +132 -0
  28. package/dist/vue/SmartHero/WithCustomContent.vue +36 -0
  29. package/dist/vue/SmartHero/WithImage.vue +19 -0
  30. package/dist/vue/SmartHero/index.ts +46 -0
  31. package/dist/vue/SmartLink.vue +7 -11
  32. package/package.json +1 -1
  33. package/dist/vue/ConfirmDialog.vue +0 -76
  34. package/dist/vue/SmartHero.vue +0 -88
@@ -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>