@proj-airi/ui 0.9.0-alpha.28 → 0.9.0-alpha.31

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@proj-airi/ui",
3
3
  "type": "module",
4
- "version": "0.9.0-alpha.28",
4
+ "version": "0.9.0-alpha.31",
5
5
  "description": "A collection of UI components that used by Project AIRI",
6
6
  "author": {
7
7
  "name": "Moeru AI Project AIRI Team",
@@ -1,10 +1,14 @@
1
1
  <script setup lang="ts">
2
+ import { useSlots } from 'vue'
3
+
2
4
  import BasicInputFile from './basic-input-file.vue'
3
5
 
4
6
  defineProps<{
5
7
  accept?: string
6
8
  multiple?: boolean
7
9
  }>()
10
+
11
+ const slots = useSlots()
8
12
  </script>
9
13
 
10
14
  <template>
@@ -28,7 +32,9 @@ defineProps<{
28
32
  :multiple="multiple"
29
33
  >
30
34
  <template #default="{ isDragging }">
35
+ <slot v-if="slots.default" :is-dragging="isDragging" />
31
36
  <div
37
+ v-else
32
38
  class="flex flex-col items-center"
33
39
  :class="[
34
40
  isDragging ? 'text-primary-500 dark:text-primary-400' : 'text-neutral-400 dark:text-neutral-500',