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.
- package/dist/module.d.mts +16 -1
- package/dist/module.mjs +5 -5
- package/dist/runtime/components/app/AppBreadcrumbs.vue +1 -2
- package/dist/runtime/components/app/AppHeader.vue +2 -2
- package/dist/runtime/components/app/AppNavMain.d.vue.ts +1 -2
- package/dist/runtime/components/app/AppNavMain.vue +4 -4
- package/dist/runtime/components/app/AppNavMain.vue.d.ts +1 -2
- package/dist/runtime/components/ui/accordion/AccordionTrigger.vue +3 -2
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue +3 -3
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue +2 -2
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue +2 -2
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +2 -2
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +2 -2
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +2 -2
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +2 -2
- package/dist/runtime/components/ui/carousel/CarouselNext.vue +2 -2
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue +2 -2
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +2 -2
- package/dist/runtime/components/ui/combobox/ComboboxInput.vue +2 -2
- package/dist/runtime/components/ui/command/CommandInput.vue +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue +2 -2
- package/dist/runtime/components/ui/dialog/DialogContent.vue +2 -2
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +2 -2
- package/dist/runtime/components/ui/file/FileEmptyState.vue +3 -3
- package/dist/runtime/components/ui/file/FileGrid.vue +10 -10
- package/dist/runtime/components/ui/file/FileTable.vue +16 -17
- package/dist/runtime/components/ui/input-otp/InputOTPSeparator.vue +2 -2
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.vue +2 -2
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.vue +2 -2
- package/dist/runtime/components/ui/menubar/MenubarSubTrigger.vue +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelect.vue +3 -2
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +3 -2
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue +2 -2
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue +2 -2
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +2 -2
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue +2 -2
- package/dist/runtime/components/ui/pagination/PaginationLast.vue +2 -2
- package/dist/runtime/components/ui/pagination/PaginationNext.vue +2 -2
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +2 -2
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue +2 -2
- package/dist/runtime/components/ui/radio-group/RadioGroupItem.vue +2 -2
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +2 -2
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +2 -2
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue +2 -2
- package/dist/runtime/components/ui/select/SelectItem.vue +2 -2
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +2 -2
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +2 -2
- package/dist/runtime/components/ui/select/SelectTrigger.vue +2 -2
- package/dist/runtime/components/ui/sheet/InnerSheetContent.vue +2 -2
- package/dist/runtime/components/ui/sheet/SheetContent.vue +2 -2
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +2 -2
- package/dist/runtime/components/ui/sonner/Sonner.vue +7 -7
- package/dist/runtime/components/ui/spinner/Spinner.vue +3 -2
- package/dist/runtime/components/ui/storage/StorageActionBar.vue +3 -4
- package/dist/runtime/components/ui/storage/StorageEmptyState.vue +3 -4
- package/dist/runtime/components/ui/storage/StorageGrid.vue +10 -11
- package/dist/runtime/components/ui/storage/StorageSelectionBar.vue +3 -3
- package/dist/runtime/components/ui/storage/StorageTable.vue +10 -11
- package/dist/runtime/components/ui/storage/StorageUploadZone.vue +5 -4
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue +2 -2
- package/dist/runtime/composables/useAuth.d.ts +982 -1813
- package/dist/runtime/composables/useAuth.js +27 -9
- package/dist/runtime/shared/constants/r2.js +12 -6
- package/dist/runtime/types/nitro-graphql-client.d.ts +0 -1
- package/dist/types.d.mts +1 -1
- 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:
|
|
18
|
-
VIDEO:
|
|
19
|
-
AUDIO:
|
|
20
|
-
DOCUMENT:
|
|
21
|
-
ARCHIVE:
|
|
22
|
-
OTHER:
|
|
23
|
-
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
|
-
<
|
|
76
|
-
:
|
|
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
|
-
<
|
|
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 {
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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:
|
|
22
|
-
VIDEO:
|
|
23
|
-
AUDIO:
|
|
24
|
-
DOCUMENT:
|
|
25
|
-
ARCHIVE:
|
|
26
|
-
OTHER:
|
|
27
|
-
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
|
-
<
|
|
115
|
+
<Icon
|
|
117
116
|
v-else
|
|
118
|
-
:
|
|
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
|
-
<
|
|
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 {
|
|
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
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
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 {
|
|
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
|
-
<
|
|
18
|
+
<Icon name="lucide:x" class="w-4 h-4" />
|
|
19
19
|
</slot>
|
|
20
20
|
</TagsInputItemDelete>
|
|
21
21
|
</template>
|