@coffic/cosy-ui 0.6.6 → 0.6.10

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.
@@ -0,0 +1,221 @@
1
+ <!--
2
+ @component MacWindow
3
+
4
+ @description
5
+ MacWindow 组件模拟 macOS 风格的应用窗口,包含标题栏、工具栏按钮、标签页和状态栏。
6
+ 适用于创建模拟桌面应用界面或代码编辑器等场景。
7
+
8
+ @usage
9
+ 基本用法:
10
+ ```vue
11
+ <MacWindow title="代码编辑器">
12
+ <div>窗口内容</div>
13
+ </MacWindow>
14
+ ```
15
+
16
+ 带标签页:
17
+ ```vue
18
+ <template>
19
+ <MacWindow
20
+ title="设置"
21
+ v-model="activeTab"
22
+ :tabs="[
23
+ { label: '通用', value: 'general' },
24
+ { label: '外观', value: 'appearance' },
25
+ { label: '高级', value: 'advanced' }
26
+ ]"
27
+ >
28
+ <div v-if="activeTab === 'general'">通用设置内容</div>
29
+ <div v-if="activeTab === 'appearance'">外观设置内容</div>
30
+ <div v-if="activeTab === 'advanced'">高级设置内容</div>
31
+ </MacWindow>
32
+ </template>
33
+
34
+ <script setup>
35
+ import { ref } from 'vue';
36
+ import { MacWindow } from 'cosy-ui';
37
+
38
+ const activeTab = ref('general');
39
+ </script>
40
+ ```
41
+
42
+ 带工具栏和状态栏:
43
+ ```vue
44
+ <MacWindow title="文件浏览器">
45
+ <template #toolbar>
46
+ <button class="cosy:btn cosy:btn-ghost cosy:btn-sm">
47
+ <SearchIcon class="cosy:w-4 cosy:h-4" />
48
+ </button>
49
+ <button class="cosy:btn cosy:btn-ghost cosy:btn-sm">
50
+ <SettingsIcon class="cosy:w-4 cosy:h-4" />
51
+ </button>
52
+ </template>
53
+
54
+ <div>窗口内容</div>
55
+
56
+ <template #status>
57
+ <div class="cosy:text-xs">就绪</div>
58
+ <button class="cosy:btn cosy:btn-ghost cosy:btn-xs">
59
+ <InfoIcon class="cosy:w-4 cosy:h-4" />
60
+ </button>
61
+ </template>
62
+ </MacWindow>
63
+ ```
64
+
65
+ @props
66
+ @prop {String} [height='h-96'] - 窗口高度
67
+ @prop {String} [title=''] - 窗口标题
68
+ @prop {Boolean} [withShadow=true] - 是否显示阴影效果
69
+ @prop {Array} [tabs=[]] - 标签页数组,每个标签包含label和value属性
70
+ @prop {String} [modelValue=''] - 当前选中的标签页value值,可使用v-model绑定
71
+
72
+ @slots
73
+ @slot default - 窗口主要内容
74
+ @slot sidebar - 侧边栏内容
75
+ @slot toolbar - 工具栏内容,位于标题栏右侧
76
+ @slot status - 状态栏内容,位于窗口底部
77
+
78
+ @emits
79
+ @emit {close} - 点击关闭按钮时触发
80
+ @emit {minimize} - 点击最小化按钮时触发
81
+ @emit {maximize} - 点击最大化按钮时触发
82
+ @emit {update:modelValue} - 切换标签页时触发,用于v-model
83
+ -->
84
+
85
+ <script lang="ts">
86
+ import '../app.css'
87
+ import AlertDialog from './AlertDialog.vue'
88
+ import { ref, defineComponent } from 'vue'
89
+
90
+ // 定义标签页类型
91
+ interface Tab {
92
+ label: string;
93
+ value: string;
94
+ }
95
+
96
+ export default defineComponent({
97
+ name: 'MacWindow',
98
+ props: {
99
+ height: {
100
+ type: String,
101
+ default: 'h-96'
102
+ },
103
+ title: {
104
+ type: String,
105
+ default: ''
106
+ },
107
+ withShadow: {
108
+ type: Boolean,
109
+ default: true
110
+ },
111
+ tabs: {
112
+ type: Array as () => Tab[],
113
+ default: () => []
114
+ },
115
+ modelValue: {
116
+ type: String,
117
+ default: ''
118
+ }
119
+ },
120
+ emits: ['close', 'minimize', 'maximize', 'update:modelValue'],
121
+ setup(props, { emit }) {
122
+ const showAlertDialog = ref(false)
123
+ const alertMessage = ref('')
124
+
125
+ const handleCloseWindow = () => {
126
+ alertMessage.value = '关闭APP窗口(这是演示,不会真实操作)'
127
+ showAlertDialog.value = true
128
+ emit('close')
129
+ }
130
+
131
+ const handleMinimizeWindow = () => {
132
+ alertMessage.value = '最小化窗口(这是演示,不会真实操作)'
133
+ showAlertDialog.value = true
134
+ emit('minimize')
135
+ }
136
+
137
+ const handleMaximizeWindow = () => {
138
+ alertMessage.value = '最大化窗口(这是演示,不会真实操作)'
139
+ showAlertDialog.value = true
140
+ emit('maximize')
141
+ }
142
+
143
+ const handleTabClick = (value: string) => {
144
+ emit('update:modelValue', value)
145
+ }
146
+
147
+ return {
148
+ showAlertDialog,
149
+ alertMessage,
150
+ handleCloseWindow,
151
+ handleMinimizeWindow,
152
+ handleMaximizeWindow,
153
+ handleTabClick
154
+ }
155
+ }
156
+ })
157
+ </script>
158
+
159
+ <template>
160
+ <div class="cosy:flex cosy:max-w-5xl cosy:mx-auto cosy:bg-base-100 cosy:relative cosy:rounded-2xl cosy:overflow-hidden"
161
+ :class="[
162
+ height,
163
+ withShadow ? 'cosy:shadow-lg' : ''
164
+ ]">
165
+ <!-- 窗口控制按钮 -->
166
+ <div
167
+ class="cosy:absolute cosy:top-0 cosy:left-0 cosy:right-0 cosy:flex cosy:items-center cosy:h-12 cosy:px-4 cosy:bg-base-200 cosy:border-b cosy:border-base-300">
168
+ <div class="cosy:flex cosy:items-center cosy:space-x-2">
169
+ <div class="cosy:w-3 cosy:h-3 cosy:rounded-full cosy:bg-error cosy:cursor-pointer hover:cosy:opacity-80 cosy:transition-opacity"
170
+ @click="handleCloseWindow" />
171
+ <div class="cosy:w-3 cosy:h-3 cosy:rounded-full cosy:bg-warning cosy:cursor-pointer hover:cosy:opacity-80 cosy:transition-opacity"
172
+ @click="handleMinimizeWindow" />
173
+ <div class="cosy:w-3 cosy:h-3 cosy:rounded-full cosy:bg-success cosy:cursor-pointer hover:cosy:opacity-80 cosy:transition-opacity"
174
+ @click="handleMaximizeWindow" />
175
+ </div>
176
+ <div class="cosy:ml-6 cosy:text-sm cosy:font-medium cosy:text-base-content">
177
+ {{ title }}
178
+ </div>
179
+
180
+ <!-- 标签选择器 -->
181
+ <div v-if="tabs?.length" class="cosy:flex-1 cosy:flex cosy:justify-center">
182
+ <div class="cosy:inline-flex cosy:rounded-lg cosy:bg-base-300 cosy:p-1">
183
+ <button v-for="(tab, index) in tabs" :key="index" :class="[
184
+ 'cosy:px-3 cosy:py-1 cosy:text-sm cosy:rounded-md cosy:transition-colors',
185
+ modelValue === tab.value
186
+ ? 'cosy:bg-base-100 cosy:text-base-content cosy:shadow'
187
+ : 'cosy:text-base-content/70 hover:cosy:text-base-content'
188
+ ]" @click="handleTabClick(tab.value)">
189
+ {{ tab.label }}
190
+ </button>
191
+ </div>
192
+ </div>
193
+
194
+ <!-- 工具栏插槽 -->
195
+ <div class="cosy:ml-auto cosy:flex cosy:items-center cosy:space-x-2">
196
+ <slot name="toolbar"></slot>
197
+ </div>
198
+ </div>
199
+
200
+ <!-- 主要内容区域 -->
201
+ <div class="cosy:flex-1 cosy:flex cosy:flex-col cosy:pt-12 cosy:h-full">
202
+ <div class="cosy:flex cosy:flex-1 cosy:h-full cosy:overflow-hidden">
203
+ <!-- 左侧栏插槽 -->
204
+ <slot name="sidebar" />
205
+
206
+ <!-- 主内容插槽 -->
207
+ <slot />
208
+ </div>
209
+
210
+ <!-- 底部状态栏 -->
211
+ <div v-if="$slots.status"
212
+ class="cosy:h-6 cosy:bg-base-200/95 cosy:border-t cosy:border-base-300 cosy:flex cosy:items-center cosy:justify-end cosy:px-4 cosy:text-sm">
213
+ <div class="cosy:flex cosy:items-center cosy:space-x-2">
214
+ <slot name="status"></slot>
215
+ </div>
216
+ </div>
217
+ </div>
218
+ </div>
219
+ <!-- AlertDialog 组件 -->
220
+ <AlertDialog v-model="showAlertDialog" :message="alertMessage" />
221
+ </template>
@@ -0,0 +1,45 @@
1
+ <script setup lang="ts">
2
+ import Banner from '../entities/Banner';
3
+ import BannerBox from './BannerBox.vue';
4
+ import FeatureCard from './FeatureCard.vue';
5
+
6
+ defineProps({
7
+ lang: {
8
+ type: String,
9
+ default: 'en',
10
+ validator: (value: string) => ['en', 'zh-cn'].includes(value)
11
+ },
12
+ banner: {
13
+ type: Banner,
14
+ required: true
15
+ },
16
+ backgroundClassIndex: {
17
+ type: Number,
18
+ default: 0
19
+ }
20
+ })
21
+ </script>
22
+
23
+ <template>
24
+ <BannerBox :background-class-index="backgroundClassIndex">
25
+ <div class="py-16 px-8 text-center w-full rounded-2xl" data-type="smart-banner">
26
+ <h2 class="text-4xl mb-4">
27
+ {{ banner.getTitle(lang) }}
28
+ </h2>
29
+
30
+ <p v-if="banner.getDescription(lang).length > 0" class="text-lg text-center max-w-2xl mx-auto">
31
+ {{ banner.getDescription(lang) }}
32
+ </p>
33
+
34
+ <div class="flex flex-row justify-center gap-8 mx-auto w-full mt-24">
35
+ <FeatureCard v-for="feature in banner.getFeatures()" :key="feature.getTitle(lang)"
36
+ :emoji="feature.emoji" :title="feature.getTitle(lang)" :link="feature.link" />
37
+ </div>
38
+
39
+ <div class="mt-12">
40
+ <component :is="banner.getComponent()" v-if="banner.getComponent()"
41
+ v-bind="banner.getComponentProps()" />
42
+ </div>
43
+ </div>
44
+ </BannerBox>
45
+ </template>
@@ -0,0 +1,94 @@
1
+ <template>
2
+ <div
3
+ class="py-16 px-8 text-center w-full min-h-screen relative overflow-hidden
4
+ "
5
+ >
6
+ <div class="relative z-10 rounded-lg w-full h-full">
7
+ <template v-if="image.src">
8
+ <img
9
+ :src="image.src"
10
+ :alt="image.alt"
11
+ class="h-1/2 mx-auto mb-8 drop-shadow-xl"
12
+ >
13
+ </template>
14
+
15
+ <h2 class="text-4xl mb-4 animate-fade-up">
16
+ {{ title }}
17
+ </h2>
18
+ <p class="text-lg mb-12 text-center max-w-2xl mx-auto">
19
+ {{ description }}
20
+ </p>
21
+
22
+ <div class="my-12 w-full">
23
+ <slot name="app" />
24
+ </div>
25
+
26
+ <div class="flex flex-row justify-center gap-8 mx-auto w-full">
27
+ <a
28
+ v-for="link in links"
29
+ :key="link.text"
30
+ :href="link.href"
31
+ target="_blank"
32
+ class="px-6 py-3 rounded-lg bg-blue-600 text-white font-medium
33
+ transition-all duration-300 ease-in-out
34
+ hover:bg-blue-700 hover:shadow-lg hover:-translate-y-0.5
35
+ focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
36
+ active:bg-blue-800 active:translate-y-0"
37
+ >
38
+ {{ link.text }}
39
+ </a>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </template>
44
+
45
+ <script setup lang="ts">
46
+ import type { PropType } from 'vue'
47
+
48
+ interface Link {
49
+ text: string;
50
+ href: string;
51
+ }
52
+
53
+ defineProps({
54
+ title: {
55
+ type: String,
56
+ required: true
57
+ },
58
+ description: {
59
+ type: String,
60
+ required: true
61
+ },
62
+ image: {
63
+ type: Object,
64
+ required: false,
65
+ default: () => ({
66
+ src: '',
67
+ alt: ''
68
+ })
69
+ },
70
+ links: {
71
+ type: Array as PropType<Link[]>,
72
+ required: true,
73
+ default: () => []
74
+ }
75
+ })
76
+ </script>
77
+
78
+ <style scoped>
79
+ @keyframes fade-up {
80
+ from {
81
+ opacity: 0;
82
+ transform: translateY(-20px);
83
+ }
84
+
85
+ to {
86
+ opacity: 1;
87
+ transform: translateY(0);
88
+ }
89
+ }
90
+
91
+ .animate-fade-up {
92
+ animation: fade-up 0.8s ease-out forwards;
93
+ }
94
+ </style>
@@ -0,0 +1,21 @@
1
+ <script setup lang="ts">
2
+ defineProps<{
3
+ href: string;
4
+ external?: boolean;
5
+ externalClass?: string;
6
+ }>();
7
+ </script>
8
+
9
+ <template>
10
+ <a
11
+ :href="href"
12
+ :target="external ? '_blank' : undefined"
13
+ :rel="external ? 'noopener noreferrer' : undefined"
14
+ :class="{
15
+ 'no-underline rounded-md p-1 transition-all duration-300 hover:text-primary/80': true,
16
+ [externalClass]: external
17
+ }"
18
+ >
19
+ <slot />
20
+ </a>
21
+ </template>
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <div class="flex flex-col gap-1 card bg-base-100 shadow-xl p-4 rounded-md">
3
+ <a
4
+ v-for="tag in tags"
5
+ :key="tag"
6
+ :href="`/blogs/tags/${tag}`"
7
+ class="badge badge-primary no-underline"
8
+ >
9
+ {{ tag }}
10
+ </a>
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+ export default {
16
+ props: {
17
+ tags: {
18
+ type: Array,
19
+ required: true
20
+ }
21
+ }
22
+ }
23
+ </script>
@@ -0,0 +1,15 @@
1
+ <template>
2
+ <div class="w-full px-8 z-50 mx-auto">
3
+ <div
4
+ class="mt-0 hero p-4 rounded-2xl bg-base-300/50 dark:bg-base-200/50 backdrop-blur-xl hover:shadow-2xl transform duration-100"
5
+ >
6
+ <div class="text-center hero-content">
7
+ <div class="max-w-md flex flex-row justify-center items-center mx-auto">
8
+ <p class="text-2xl md:text-3xl font-bold text-base-content">
9
+ <slot />
10
+ </p>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </template>
@@ -0,0 +1,186 @@
1
+ <!--
2
+ @component iPhoneWindow
3
+
4
+ @description
5
+ iPhoneWindow 组件模拟 iPhone 设备的外观,包含状态栏、时间显示和设备边框。
6
+ 适用于创建移动应用界面原型或展示移动端设计效果。
7
+
8
+ @usage
9
+ 基本用法:
10
+ ```vue
11
+ <iPhoneWindow>
12
+ <div>应用内容</div>
13
+ </iPhoneWindow>
14
+ ```
15
+
16
+ 不显示边框:
17
+ ```vue
18
+ <iPhoneWindow :showFrame="false">
19
+ <div>应用内容</div>
20
+ </iPhoneWindow>
21
+ ```
22
+
23
+ 自定义背景色:
24
+ ```vue
25
+ <iPhoneWindow backgroundColor="bg-blue-50">
26
+ <div>应用内容</div>
27
+ </iPhoneWindow>
28
+ ```
29
+
30
+ @props
31
+ @prop {String} [height='h-96'] - 窗口高度
32
+ @prop {String} [title=''] - 窗口标题
33
+ @prop {Array} [statusBarButtons=[]] - 状态栏按钮数组
34
+ @prop {Boolean} [withShadow=true] - 是否显示阴影效果
35
+ @prop {Boolean} [showFrame=true] - 是否显示 iPhone 边框
36
+ @prop {String} [backgroundColor=''] - 内容区域背景色
37
+
38
+ @slots
39
+ @slot default - 主要内容区域
40
+
41
+ @emits
42
+ -->
43
+ <script lang="ts">
44
+ import '../app.css'
45
+ import AlertDialog from './AlertDialog.vue'
46
+ import { ref, onMounted, onUnmounted, defineComponent } from 'vue'
47
+
48
+ export default defineComponent({
49
+ name: 'iPhoneWindow',
50
+ props: {
51
+ height: {
52
+ type: String,
53
+ default: 'h-96'
54
+ },
55
+ title: {
56
+ type: String,
57
+ default: ''
58
+ },
59
+ statusBarButtons: {
60
+ type: Array,
61
+ default: () => []
62
+ },
63
+ withShadow: {
64
+ type: Boolean,
65
+ default: true
66
+ },
67
+ showFrame: {
68
+ type: Boolean,
69
+ default: true
70
+ },
71
+ backgroundColor: {
72
+ type: String,
73
+ default: ''
74
+ }
75
+ },
76
+ setup() {
77
+ const showAlertDialog = ref(false)
78
+ const alertMessage = ref('')
79
+
80
+ const currentTime = ref('12:00')
81
+
82
+ // 更新时间的函数
83
+ const updateTime = () => {
84
+ const now = new Date()
85
+ const hours = now.getHours().toString().padStart(2, '0')
86
+ const minutes = now.getMinutes().toString().padStart(2, '0')
87
+ currentTime.value = `${hours}:${minutes}`
88
+ }
89
+
90
+ // 设置定时器更新时间
91
+ let timeInterval: number
92
+ onMounted(() => {
93
+ updateTime()
94
+ timeInterval = window.setInterval(updateTime, 60000) // 每分钟更新一次
95
+ })
96
+
97
+ onUnmounted(() => {
98
+ if (timeInterval) {
99
+ clearInterval(timeInterval)
100
+ }
101
+ })
102
+
103
+ return {
104
+ showAlertDialog,
105
+ alertMessage,
106
+ currentTime
107
+ }
108
+ }
109
+ })
110
+ </script>
111
+
112
+ <template>
113
+ <div class="cosy:relative cosy:w-full">
114
+ <div class="cosy:relative cosy:aspect-[9/19.5]">
115
+ <!-- iPhone 边框 (放在最底层) -->
116
+ <img v-if="showFrame"
117
+ src="/assets/iPhone 14 Pro/iPhone 14 Pro - Deep Purple - Portrait.imageset/iPhone 14 Pro - Deep Purple - Portrait.png"
118
+ alt="iPhone frame" class="cosy:absolute cosy:inset-0 cosy:w-full cosy:h-full cosy:object-contain">
119
+
120
+ <!-- 内容区域 -->
121
+ <div :class="[
122
+ 'cosy:absolute cosy:inset-0',
123
+ showFrame ? 'cosy:px-[6%] cosy:pt-[13%] cosy:pb-[13%]' : '',
124
+ ]">
125
+ <div :class="[
126
+ 'cosy:w-full cosy:h-full cosy:flex cosy:flex-col cosy:overflow-hidden',
127
+ showFrame ? 'cosy:rounded-t-[2.5em] cosy:rounded-b-[2.5rem]' : 'cosy:rounded-lg cosy:shadow',
128
+ backgroundColor || 'cosy:bg-transparent'
129
+ ]">
130
+ <!-- 顶部状态栏 (z-index 设为负数,确保在边框下方) -->
131
+ <div class="cosy:flex-none cosy:h-12 cosy:px-4 cosy:z-0 cosy:relative">
132
+ <div class="cosy:flex cosy:items-center cosy:h-full cosy:justify-between">
133
+ <!-- 左侧时间 -->
134
+ <div class="cosy:flex cosy:items-center">
135
+ <span
136
+ class="cosy:text-sm cosy:font-medium cosy:text-gray-700 cosy:dark:text-gray-200">{{
137
+ currentTime
138
+ }}</span>
139
+ </div>
140
+ <!-- 右侧状态图标 -->
141
+ <div class="cosy:flex cosy:items-center cosy:space-x-1.5">
142
+ <!-- 信号图标 -->
143
+ <svg class="cosy:w-5 cosy:h-3.5 cosy:text-gray-700 cosy:dark:text-gray-200"
144
+ viewBox="0 0 20 12" fill="none" stroke="currentColor">
145
+ <path d="M1 11h2V6H1v5zm4 0h2V4H5v7zm4 0h2V2H9v9zm4 0h2V0h-2v11z"
146
+ fill="currentColor" />
147
+ <path d="M17 11h2V0h-2v11z" fill="currentColor" opacity="0.4" />
148
+ </svg>
149
+ <!-- Wi-Fi图标 -->
150
+ <svg class="cosy:w-5 cosy:h-4 cosy:text-gray-700 cosy:dark:text-gray-200"
151
+ viewBox="0 0 16 12" fill="currentColor">
152
+ <path
153
+ d="M8 10.5a1 1 0 100-2 1 1 0 000 2zM4.25 7.25a5 5 0 017.5 0l-1.06 1.06a3.5 3.5 0 00-5.38 0L4.25 7.25z" />
154
+ <path d="M1.75 4.75a8.5 8.5 0 0112.5 0l-1.06 1.06a7 7 0 00-10.38 0L1.75 4.75z" />
155
+ </svg>
156
+ <!-- 电池图标 -->
157
+ <div class="cosy:flex cosy:items-center cosy:space-x-0.5">
158
+ <svg class="cosy:w-6 cosy:h-3.5 cosy:text-gray-700 cosy:dark:text-gray-200"
159
+ viewBox="0 0 25 12" fill="none" stroke="currentColor">
160
+ <rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke-width="1" />
161
+ <rect x="2" y="2" width="18" height="8" rx="1" fill="currentColor" />
162
+ <path d="M23 4h1a1 1 0 011 1v2a1 1 0 01-1 1h-1V4z" fill="currentColor" />
163
+ </svg>
164
+ </div>
165
+ </div>
166
+ </div>
167
+ </div>
168
+
169
+ <!-- 主要内容区域 -->
170
+ <div class="cosy:flex-1 cosy:flex cosy:flex-col cosy:overflow-hidden cosy:relative">
171
+ <slot />
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ </div>
177
+ <!-- 添加 AlertDialog 组件 -->
178
+ <AlertDialog v-model="showAlertDialog" :message="alertMessage" />
179
+ </template>
180
+
181
+ <style scoped>
182
+ /* 确保图标渲染更平滑 */
183
+ svg {
184
+ shape-rendering: geometricPrecision;
185
+ }
186
+ </style>
package/dist/vue.ts ADDED
@@ -0,0 +1,14 @@
1
+ export * from './vue/TagList.vue';
2
+ export { default as AlertDialog } from './vue/AlertDialog.vue';
3
+ export * from './vue/BannerBox.vue';
4
+ export * from './vue/SmartHero.vue';
5
+ export * from './vue/ConfirmDialog.vue';
6
+ export * from './vue/FeatureButton.vue';
7
+ export * from './vue/FeatureCard.vue';
8
+ export * from './vue/FeatureGroup.vue';
9
+ export { default as iPhoneWindow } from './vue/iPhoneWindow.vue';
10
+ export * from './vue/ListItem.vue';
11
+ export { default as MacWindow } from './vue/MacWindow.vue';
12
+ export * from './vue/SmartBanner.vue';
13
+ export * from './vue/SmartLink.vue';
14
+ export * from './vue/WildBanner.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffic/cosy-ui",
3
- "version": "0.6.6",
3
+ "version": "0.6.10",
4
4
  "description": "An astro component library",
5
5
  "author": {
6
6
  "name": "nookery",
@@ -25,7 +25,9 @@
25
25
  "main": "./dist/index.js",
26
26
  "exports": {
27
27
  ".": "./dist/index.js",
28
- "./collection": "./dist/collection.js"
28
+ "./collection": "./dist/collection.js",
29
+ "./icons": "./dist/icons.js",
30
+ "./vue": "./dist/vue.js"
29
31
  },
30
32
  "files": [
31
33
  "dist",
@@ -45,8 +47,10 @@
45
47
  "astro": "^5.1.3"
46
48
  },
47
49
  "dependencies": {
50
+ "@remixicon/vue": "^4.6.0",
48
51
  "astro-integration-kit": "^0.18.0",
49
- "fs-extra": "^11.3.0"
52
+ "fs-extra": "^11.3.0",
53
+ "html-to-image": "^1.11.13"
50
54
  },
51
55
  "devDependencies": {
52
56
  "@astrojs/check": "^0.9.4",