abckit 0.0.10 → 0.0.12

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 (71) hide show
  1. package/dist/module.d.mts +16 -1
  2. package/dist/module.mjs +5 -5
  3. package/dist/runtime/components/app/AppBreadcrumbs.vue +1 -2
  4. package/dist/runtime/components/app/AppHeader.vue +2 -2
  5. package/dist/runtime/components/app/AppNavMain.d.vue.ts +1 -2
  6. package/dist/runtime/components/app/AppNavMain.vue +4 -4
  7. package/dist/runtime/components/app/AppNavMain.vue.d.ts +1 -2
  8. package/dist/runtime/components/ui/accordion/AccordionTrigger.vue +3 -2
  9. package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue +3 -3
  10. package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue +2 -2
  11. package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue +2 -2
  12. package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +2 -2
  13. package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +2 -2
  14. package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +2 -2
  15. package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +2 -2
  16. package/dist/runtime/components/ui/carousel/CarouselNext.vue +2 -2
  17. package/dist/runtime/components/ui/carousel/CarouselPrevious.vue +2 -2
  18. package/dist/runtime/components/ui/checkbox/Checkbox.vue +2 -2
  19. package/dist/runtime/components/ui/combobox/ComboboxInput.vue +2 -2
  20. package/dist/runtime/components/ui/command/CommandInput.vue +2 -2
  21. package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue +2 -2
  22. package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue +2 -2
  23. package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue +2 -2
  24. package/dist/runtime/components/ui/dialog/DialogContent.vue +2 -2
  25. package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +2 -2
  26. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +2 -2
  27. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +2 -2
  28. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +2 -2
  29. package/dist/runtime/components/ui/file/FileEmptyState.vue +3 -3
  30. package/dist/runtime/components/ui/file/FileGrid.vue +10 -10
  31. package/dist/runtime/components/ui/file/FileTable.vue +16 -17
  32. package/dist/runtime/components/ui/input-otp/InputOTPSeparator.vue +2 -2
  33. package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.vue +2 -2
  34. package/dist/runtime/components/ui/menubar/MenubarRadioItem.vue +2 -2
  35. package/dist/runtime/components/ui/menubar/MenubarSubTrigger.vue +2 -2
  36. package/dist/runtime/components/ui/native-select/NativeSelect.vue +3 -2
  37. package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +3 -2
  38. package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue +2 -2
  39. package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue +2 -2
  40. package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +2 -2
  41. package/dist/runtime/components/ui/pagination/PaginationFirst.vue +2 -2
  42. package/dist/runtime/components/ui/pagination/PaginationLast.vue +2 -2
  43. package/dist/runtime/components/ui/pagination/PaginationNext.vue +2 -2
  44. package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +2 -2
  45. package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue +2 -2
  46. package/dist/runtime/components/ui/radio-group/RadioGroupItem.vue +2 -2
  47. package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +2 -2
  48. package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +2 -2
  49. package/dist/runtime/components/ui/resizable/ResizableHandle.vue +2 -2
  50. package/dist/runtime/components/ui/select/SelectItem.vue +2 -2
  51. package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +2 -2
  52. package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +2 -2
  53. package/dist/runtime/components/ui/select/SelectTrigger.vue +2 -2
  54. package/dist/runtime/components/ui/sheet/InnerSheetContent.vue +2 -2
  55. package/dist/runtime/components/ui/sheet/SheetContent.vue +2 -2
  56. package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +2 -2
  57. package/dist/runtime/components/ui/sonner/Sonner.vue +7 -7
  58. package/dist/runtime/components/ui/spinner/Spinner.vue +3 -2
  59. package/dist/runtime/components/ui/storage/StorageActionBar.vue +3 -4
  60. package/dist/runtime/components/ui/storage/StorageEmptyState.vue +3 -4
  61. package/dist/runtime/components/ui/storage/StorageGrid.vue +10 -11
  62. package/dist/runtime/components/ui/storage/StorageSelectionBar.vue +3 -3
  63. package/dist/runtime/components/ui/storage/StorageTable.vue +10 -11
  64. package/dist/runtime/components/ui/storage/StorageUploadZone.vue +5 -4
  65. package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue +2 -2
  66. package/dist/runtime/composables/useAuth.d.ts +982 -1813
  67. package/dist/runtime/composables/useAuth.js +27 -9
  68. package/dist/runtime/shared/constants/r2.js +12 -6
  69. package/dist/runtime/types/nitro-graphql-client.d.ts +0 -1
  70. package/dist/types.d.mts +1 -1
  71. package/package.json +13 -14
@@ -1,5 +1,4 @@
1
1
  <script setup>
2
- import { Cloud, FileText, Film, Folder, Image, MoreVertical } from "lucide-vue-next";
3
2
  import { bytesToSize } from "abckit/shared/constants/r2";
4
3
  import { Button } from "abckit/shadcn/button";
5
4
  import { Checkbox } from "abckit/shadcn/checkbox";
@@ -14,13 +13,13 @@ const props = defineProps({
14
13
  });
15
14
  const emit = defineEmits(["fileClick", "folderClick", "toggleSelection", "fileAction"]);
16
15
  const FILE_TYPE_ICONS = {
17
- IMAGE: Image,
18
- VIDEO: Film,
19
- AUDIO: FileText,
20
- DOCUMENT: FileText,
21
- ARCHIVE: Cloud,
22
- OTHER: Cloud,
23
- FOLDER: Folder
16
+ IMAGE: "lucide:image",
17
+ VIDEO: "lucide:film",
18
+ AUDIO: "lucide:file-text",
19
+ DOCUMENT: "lucide:file-text",
20
+ ARCHIVE: "lucide:cloud",
21
+ OTHER: "lucide:cloud",
22
+ FOLDER: "lucide:folder"
24
23
  };
25
24
  function getFileIcon(file) {
26
25
  if (file.isFolder) return FILE_TYPE_ICONS.FOLDER;
@@ -72,8 +71,8 @@ function isSelected(fileId) {
72
71
  fallback=""
73
72
  />
74
73
  <div v-else class="flex h-full items-center justify-center">
75
- <component
76
- :is="getFileIcon(file)"
74
+ <Icon
75
+ :name="getFileIcon(file)"
77
76
  class="h-12 w-12 text-muted-foreground"
78
77
  />
79
78
  </div>
@@ -102,7 +101,7 @@ function isSelected(fileId) {
102
101
  class="h-8 w-8 bg-background/80 backdrop-blur-sm"
103
102
  @click.stop
104
103
  >
105
- <MoreVertical class="h-4 w-4" />
104
+ <Icon name="lucide:more-vertical" class="h-4 w-4" />
106
105
  </Button>
107
106
  </DropdownMenuTrigger>
108
107
  <DropdownMenuContent align="end">
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { RotateCcw, Trash2 } from "lucide-vue-next";
2
+ import { Icon } from "#components";
3
3
  import { Button } from "abckit/shadcn/button";
4
4
  const props = defineProps({
5
5
  selectedCount: { type: Number, required: true },
@@ -33,7 +33,7 @@ const emit = defineEmits(["toggle-selection-mode", "clear-selection", "select-al
33
33
  size="sm"
34
34
  @click="emit('restore-selected')"
35
35
  >
36
- <RotateCcw class="mr-2 h-4 w-4" />
36
+ <Icon name="lucide:rotate-ccw" class="mr-2 h-4 w-4" />
37
37
  Geri Yükle ({{ selectedCount }})
38
38
  </Button>
39
39
 
@@ -43,7 +43,7 @@ const emit = defineEmits(["toggle-selection-mode", "clear-selection", "select-al
43
43
  size="sm"
44
44
  @click="emit('delete-selected')"
45
45
  >
46
- <Trash2 class="mr-2 h-4 w-4" />
46
+ <Icon name="lucide:trash-2" class="mr-2 h-4 w-4" />
47
47
  {{ isTrash ? "Kal\u0131c\u0131 Olarak" : "" }} Sil ({{ selectedCount }})
48
48
  </Button>
49
49
  </div>
@@ -1,5 +1,4 @@
1
1
  <script setup>
2
- import { Cloud, FileText, Film, Folder, Image, MoreVertical } from "lucide-vue-next";
3
2
  import { bytesToSize } from "abckit/shared/constants/r2";
4
3
  import { Badge } from "abckit/shadcn/badge";
5
4
  import { Button } from "abckit/shadcn/button";
@@ -18,13 +17,13 @@ const props = defineProps({
18
17
  });
19
18
  const emit = defineEmits(["fileClick", "folderClick", "toggleSelection", "selectAll", "fileAction"]);
20
19
  const FILE_TYPE_ICONS = {
21
- IMAGE: Image,
22
- VIDEO: Film,
23
- AUDIO: FileText,
24
- DOCUMENT: FileText,
25
- ARCHIVE: Cloud,
26
- OTHER: Cloud,
27
- FOLDER: Folder
20
+ IMAGE: "lucide:image",
21
+ VIDEO: "lucide:film",
22
+ AUDIO: "lucide:file-text",
23
+ DOCUMENT: "lucide:file-text",
24
+ ARCHIVE: "lucide:cloud",
25
+ OTHER: "lucide:cloud",
26
+ FOLDER: "lucide:folder"
28
27
  };
29
28
  const FILE_TYPE_LABELS = {
30
29
  IMAGE: "Image",
@@ -113,9 +112,9 @@ const someSelected = computed(
113
112
  class="h-full w-full"
114
113
  fallback=""
115
114
  />
116
- <component
115
+ <Icon
117
116
  v-else
118
- :is="getFileIcon(file)"
117
+ :name="getFileIcon(file)"
119
118
  class="h-5 w-5 text-muted-foreground"
120
119
  />
121
120
  </div>
@@ -145,7 +144,7 @@ const someSelected = computed(
145
144
  class="h-8 w-8"
146
145
  @click.stop
147
146
  >
148
- <MoreVertical class="h-4 w-4" />
147
+ <Icon name="lucide:more-vertical" class="h-4 w-4" />
149
148
  </Button>
150
149
  </DropdownMenuTrigger>
151
150
  <DropdownMenuContent align="end">
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { Upload } from "lucide-vue-next";
2
+ import { Icon } from "#components";
3
3
  import { ref } from "vue";
4
4
  const props = defineProps({
5
5
  isDragging: { type: Boolean, required: false, default: false },
@@ -45,9 +45,10 @@ function handleClick() {
45
45
  @change="handleFileInput"
46
46
  >
47
47
 
48
- <Upload
49
- class="mx-auto h-10 w-10 transition-colors"
50
- :class="isDragging ? 'text-primary' : 'text-muted-foreground'"
48
+ <Icon
49
+ name="lucide:upload"
50
+ class="mx-auto h-10 w-10 transition-colors"
51
+ :class="isDragging ? 'text-primary' : 'text-muted-foreground'"
51
52
  />
52
53
 
53
54
  <p class="mt-3 text-base font-medium transition-colors" :class="isDragging ? 'text-primary' : 'text-foreground'">
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { reactiveOmit } from "@vueuse/core";
3
- import { X } from "lucide-vue-next";
3
+ import { Icon } from "#components";
4
4
  import { TagsInputItemDelete, useForwardProps } from "reka-ui";
5
5
  import { cn } from "abckit/utils";
6
6
  const props = defineProps({
@@ -15,7 +15,7 @@ const forwardedProps = useForwardProps(delegatedProps);
15
15
  <template>
16
16
  <TagsInputItemDelete v-bind="forwardedProps" :class="cn('flex rounded bg-transparent mr-1', props.class)">
17
17
  <slot>
18
- <X class="w-4 h-4" />
18
+ <Icon name="lucide:x" class="w-4 h-4" />
19
19
  </slot>
20
20
  </TagsInputItemDelete>
21
21
  </template>