abckit 0.0.1 → 0.0.3

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 (79) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +131 -0
  3. package/dist/module.d.mts +39 -5
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +1 -28
  6. package/dist/runtime/components/app/AppImage.vue +1 -1
  7. package/dist/runtime/components/app/AppNavMain.vue +3 -1
  8. package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.d.vue.ts +0 -14
  9. package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue.d.ts +0 -14
  10. package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.d.vue.ts +0 -14
  11. package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue.d.ts +0 -14
  12. package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.d.vue.ts +0 -17
  13. package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue.d.ts +0 -17
  14. package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.d.vue.ts +0 -14
  15. package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue.d.ts +0 -14
  16. package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.d.vue.ts +0 -17
  17. package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue.d.ts +0 -17
  18. package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.d.vue.ts +0 -14
  19. package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue.d.ts +0 -14
  20. package/dist/runtime/components/ui/badge/index.d.ts +1 -1
  21. package/dist/runtime/components/ui/button/ThemeToggle.vue +2 -2
  22. package/dist/runtime/components/ui/button/index.d.ts +2 -2
  23. package/dist/runtime/components/ui/calendar/Calendar.vue +1 -0
  24. package/dist/runtime/components/ui/chart/ChartContainer.vue +1 -1
  25. package/dist/runtime/components/ui/chart/ChartLegendContent.vue +3 -3
  26. package/dist/runtime/components/ui/chart/ChartTooltipContent.vue +1 -0
  27. package/dist/runtime/components/ui/chart/index.d.ts +0 -1
  28. package/dist/runtime/components/ui/chart/index.js +0 -1
  29. package/dist/runtime/components/ui/chart/utils.js +1 -0
  30. package/dist/runtime/components/ui/combobox/Combobox.d.vue.ts +2 -2
  31. package/dist/runtime/components/ui/combobox/Combobox.vue.d.ts +2 -2
  32. package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +4 -1
  33. package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +4 -1
  34. package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +4 -4
  35. package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +4 -4
  36. package/dist/runtime/components/ui/file/FileGrid.vue +2 -0
  37. package/dist/runtime/components/ui/file/FileTable.vue +8 -4
  38. package/dist/runtime/components/ui/input-otp/InputOTP.d.vue.ts +8 -8
  39. package/dist/runtime/components/ui/input-otp/InputOTP.vue.d.ts +8 -8
  40. package/dist/runtime/components/ui/input-otp/InputOTPSlot.vue +1 -0
  41. package/dist/runtime/components/ui/item/index.d.ts +1 -1
  42. package/dist/runtime/components/ui/native-select/NativeSelect.d.vue.ts +7 -1
  43. package/dist/runtime/components/ui/native-select/NativeSelect.vue +9 -2
  44. package/dist/runtime/components/ui/native-select/NativeSelect.vue.d.ts +7 -1
  45. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +389 -1
  46. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue +6 -3
  47. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +389 -1
  48. package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +393 -1
  49. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue +6 -3
  50. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +393 -1
  51. package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +1 -1
  52. package/dist/runtime/components/ui/select/Select.d.vue.ts +2 -2
  53. package/dist/runtime/components/ui/select/Select.vue.d.ts +2 -2
  54. package/dist/runtime/components/ui/sidebar/index.d.ts +1 -1
  55. package/dist/runtime/components/ui/sonner/Sonner.d.vue.ts +4 -0
  56. package/dist/runtime/components/ui/sonner/Sonner.vue +62 -0
  57. package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +4 -0
  58. package/dist/runtime/components/ui/sonner/index.d.ts +1 -0
  59. package/dist/runtime/components/ui/sonner/index.js +1 -0
  60. package/dist/runtime/components/ui/storage/StorageActionBar.d.vue.ts +2 -2
  61. package/dist/runtime/components/ui/storage/StorageActionBar.vue +1 -1
  62. package/dist/runtime/components/ui/storage/StorageActionBar.vue.d.ts +2 -2
  63. package/dist/runtime/components/ui/storage/StorageGrid.vue +2 -0
  64. package/dist/runtime/components/ui/storage/StorageTable.vue +8 -4
  65. package/dist/runtime/components/ui/tags-input/TagsInput.vue +8 -1
  66. package/dist/runtime/components/ui/timezone-select/useTimezone.d.ts +2 -2
  67. package/dist/runtime/components/ui/timezone-select/useTimezone.js +3 -3
  68. package/dist/runtime/components/ui/toggle/index.d.ts +1 -1
  69. package/dist/runtime/composables/useAuth.d.ts +49 -37
  70. package/dist/runtime/composables/useAuth.js +1 -0
  71. package/dist/runtime/composables/useBreadcrumbItems.js +1 -1
  72. package/dist/runtime/composables/useImageUrl.js +1 -0
  73. package/dist/runtime/error.vue +12 -4
  74. package/dist/runtime/graphql/organization.d.ts +5 -0
  75. package/dist/runtime/graphql/organization.js +11 -0
  76. package/dist/runtime/shared/constants/r2.d.ts +12 -0
  77. package/dist/runtime/shared/constants/r2.js +18 -0
  78. package/dist/runtime/types/nitro-graphql-client.d.ts +7 -1
  79. package/package.json +6 -2
@@ -3,7 +3,10 @@ type __VLS_Props = DialogRootProps & {
3
3
  title?: string;
4
4
  description?: string;
5
5
  };
6
- declare var __VLS_37: any;
6
+ declare var __VLS_37: {
7
+ open: boolean;
8
+ close: () => void;
9
+ };
7
10
  type __VLS_Slots = {} & {
8
11
  default?: (props: typeof __VLS_37) => any;
9
12
  };
@@ -7,17 +7,17 @@ type __VLS_Slots = {} & {
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<DrawerRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
9
  "update:open": (open: boolean) => any;
10
- animationEnd: (open: boolean) => any;
10
+ close: () => any;
11
11
  drag: (percentageDragged: number) => any;
12
+ animationEnd: (open: boolean) => any;
12
13
  release: (open: boolean) => any;
13
- close: () => any;
14
14
  "update:activeSnapPoint": (val: string | number) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<DrawerRootProps> & Readonly<{
16
16
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
17
- onAnimationEnd?: ((open: boolean) => any) | undefined;
17
+ onClose?: (() => any) | undefined;
18
18
  onDrag?: ((percentageDragged: number) => any) | undefined;
19
+ onAnimationEnd?: ((open: boolean) => any) | undefined;
19
20
  onRelease?: ((open: boolean) => any) | undefined;
20
- onClose?: (() => any) | undefined;
21
21
  "onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
22
22
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -7,17 +7,17 @@ type __VLS_Slots = {} & {
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<DrawerRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
9
  "update:open": (open: boolean) => any;
10
- animationEnd: (open: boolean) => any;
10
+ close: () => any;
11
11
  drag: (percentageDragged: number) => any;
12
+ animationEnd: (open: boolean) => any;
12
13
  release: (open: boolean) => any;
13
- close: () => any;
14
14
  "update:activeSnapPoint": (val: string | number) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<DrawerRootProps> & Readonly<{
16
16
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
17
- onAnimationEnd?: ((open: boolean) => any) | undefined;
17
+ onClose?: (() => any) | undefined;
18
18
  onDrag?: ((percentageDragged: number) => any) | undefined;
19
+ onAnimationEnd?: ((open: boolean) => any) | undefined;
19
20
  onRelease?: ((open: boolean) => any) | undefined;
20
- onClose?: (() => any) | undefined;
21
21
  "onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
22
22
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -13,7 +13,9 @@ const emit = defineEmits(["select", "folderClick"]);
13
13
  const FILE_TYPE_ICONS = {
14
14
  IMAGE: Image,
15
15
  VIDEO: Film,
16
+ AUDIO: FileText,
16
17
  DOCUMENT: FileText,
18
+ ARCHIVE: Cloud,
17
19
  OTHER: Cloud,
18
20
  FOLDER: Folder
19
21
  };
@@ -30,15 +30,19 @@ const props = defineProps({
30
30
  const FILE_TYPE_ICONS = {
31
31
  IMAGE: Image,
32
32
  VIDEO: Film,
33
+ AUDIO: FileText,
33
34
  DOCUMENT: FileText,
35
+ ARCHIVE: Cloud,
34
36
  OTHER: Cloud,
35
37
  FOLDER: Folder
36
38
  };
37
39
  const FILE_TYPE_LABELS = {
38
- IMAGE: "Resim",
40
+ IMAGE: "Image",
39
41
  VIDEO: "Video",
40
- DOCUMENT: "Belge",
41
- OTHER: "Di\u011Fer"
42
+ AUDIO: "Audio",
43
+ DOCUMENT: "Document",
44
+ ARCHIVE: "Archive",
45
+ OTHER: "Other"
42
46
  };
43
47
  function getFileIcon(file) {
44
48
  if (file.isFolder)
@@ -47,7 +51,7 @@ function getFileIcon(file) {
47
51
  }
48
52
  function getFileTypeLabel(file) {
49
53
  if (file.isFolder)
50
- return "Klas\xF6r";
54
+ return "Folder";
51
55
  return FILE_TYPE_LABELS[file.type];
52
56
  }
53
57
  function formatDate(date) {
@@ -14,23 +14,23 @@ type __VLS_Slots = {} & {
14
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
15
  input: (value: string) => any;
16
16
  select: (e: Event) => any;
17
+ blur: (e: FocusEvent) => any;
17
18
  change: (e: Event) => any;
18
- paste: (e: ClipboardEvent) => any;
19
- complete: (value: string) => any;
20
19
  focus: (e: FocusEvent) => any;
21
- blur: (e: FocusEvent) => any;
22
- mouseover: (e: MouseEvent) => any;
23
20
  mouseleave: (e: MouseEvent) => any;
21
+ mouseover: (e: MouseEvent) => any;
22
+ paste: (e: ClipboardEvent) => any;
23
+ complete: (value: string) => any;
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
25
  onInput?: ((value: string) => any) | undefined;
26
26
  onSelect?: ((e: Event) => any) | undefined;
27
+ onBlur?: ((e: FocusEvent) => any) | undefined;
27
28
  onChange?: ((e: Event) => any) | undefined;
28
- onPaste?: ((e: ClipboardEvent) => any) | undefined;
29
- onComplete?: ((value: string) => any) | undefined;
30
29
  onFocus?: ((e: FocusEvent) => any) | undefined;
31
- onBlur?: ((e: FocusEvent) => any) | undefined;
32
- onMouseover?: ((e: MouseEvent) => any) | undefined;
33
30
  onMouseleave?: ((e: MouseEvent) => any) | undefined;
31
+ onMouseover?: ((e: MouseEvent) => any) | undefined;
32
+ onPaste?: ((e: ClipboardEvent) => any) | undefined;
33
+ onComplete?: ((value: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
36
  declare const _default: typeof __VLS_export;
@@ -14,23 +14,23 @@ type __VLS_Slots = {} & {
14
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
15
  input: (value: string) => any;
16
16
  select: (e: Event) => any;
17
+ blur: (e: FocusEvent) => any;
17
18
  change: (e: Event) => any;
18
- paste: (e: ClipboardEvent) => any;
19
- complete: (value: string) => any;
20
19
  focus: (e: FocusEvent) => any;
21
- blur: (e: FocusEvent) => any;
22
- mouseover: (e: MouseEvent) => any;
23
20
  mouseleave: (e: MouseEvent) => any;
21
+ mouseover: (e: MouseEvent) => any;
22
+ paste: (e: ClipboardEvent) => any;
23
+ complete: (value: string) => any;
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
25
  onInput?: ((value: string) => any) | undefined;
26
26
  onSelect?: ((e: Event) => any) | undefined;
27
+ onBlur?: ((e: FocusEvent) => any) | undefined;
27
28
  onChange?: ((e: Event) => any) | undefined;
28
- onPaste?: ((e: ClipboardEvent) => any) | undefined;
29
- onComplete?: ((value: string) => any) | undefined;
30
29
  onFocus?: ((e: FocusEvent) => any) | undefined;
31
- onBlur?: ((e: FocusEvent) => any) | undefined;
32
- onMouseover?: ((e: MouseEvent) => any) | undefined;
33
30
  onMouseleave?: ((e: MouseEvent) => any) | undefined;
31
+ onMouseover?: ((e: MouseEvent) => any) | undefined;
32
+ onPaste?: ((e: ClipboardEvent) => any) | undefined;
33
+ onComplete?: ((value: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
36
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { reactiveOmit } from "@vueuse/core";
3
3
  import { useForwardProps } from "reka-ui";
4
+ import { computed } from "vue";
4
5
  import { useVueOTPContext } from "vue-input-otp";
5
6
  import { cn } from "abckit/utils";
6
7
  const props = defineProps({
@@ -14,7 +14,7 @@ export declare const itemVariants: (props?: ({
14
14
  size?: "default" | "sm" | null | undefined;
15
15
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
16
  export declare const itemMediaVariants: (props?: ({
17
- variant?: "image" | "default" | "icon" | null | undefined;
17
+ variant?: "default" | "icon" | "image" | null | undefined;
18
18
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
19
19
  export type ItemVariants = VariantProps<typeof itemVariants>;
20
20
  export type ItemMediaVariants = VariantProps<typeof itemMediaVariants>;
@@ -1,12 +1,18 @@
1
+ import type { AcceptableValue } from "reka-ui";
1
2
  import type { HTMLAttributes } from "vue";
2
3
  type __VLS_Props = {
4
+ modelValue?: AcceptableValue | AcceptableValue[];
3
5
  class?: HTMLAttributes["class"];
4
6
  };
5
7
  declare var __VLS_1: {};
6
8
  type __VLS_Slots = {} & {
7
9
  default?: (props: typeof __VLS_1) => any;
8
10
  };
9
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": () => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onUpdate:modelValue"?: (() => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
17
  declare const _default: typeof __VLS_export;
12
18
  export default _default;
@@ -1,13 +1,19 @@
1
1
  <script setup>
2
- import { reactiveOmit } from "@vueuse/core";
2
+ import { reactiveOmit, useVModel } from "@vueuse/core";
3
3
  import { ChevronDownIcon } from "lucide-vue-next";
4
4
  import { cn } from "abckit/utils";
5
5
  defineOptions({
6
6
  inheritAttrs: false
7
7
  });
8
8
  const props = defineProps({
9
+ modelValue: { type: null, required: false },
9
10
  class: { type: null, required: false }
10
11
  });
12
+ const emit = defineEmits(["update:modelValue"]);
13
+ const modelValue = useVModel(props, "modelValue", emit, {
14
+ passive: true,
15
+ defaultValue: ""
16
+ });
11
17
  const delegatedProps = reactiveOmit(props, "class");
12
18
  </script>
13
19
 
@@ -17,6 +23,8 @@ const delegatedProps = reactiveOmit(props, "class");
17
23
  data-slot="native-select-wrapper"
18
24
  >
19
25
  <select
26
+ v-bind="{ ...$attrs, ...delegatedProps }"
27
+ v-model="modelValue"
20
28
  data-slot="native-select"
21
29
  :class="cn(
22
30
  'border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed',
@@ -24,7 +32,6 @@ const delegatedProps = reactiveOmit(props, "class");
24
32
  'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
25
33
  props.class
26
34
  )"
27
- v-bind="{ ...$attrs, ...delegatedProps }"
28
35
  >
29
36
  <slot />
30
37
  </select>
@@ -1,12 +1,18 @@
1
+ import type { AcceptableValue } from "reka-ui";
1
2
  import type { HTMLAttributes } from "vue";
2
3
  type __VLS_Props = {
4
+ modelValue?: AcceptableValue | AcceptableValue[];
3
5
  class?: HTMLAttributes["class"];
4
6
  };
5
7
  declare var __VLS_1: {};
6
8
  type __VLS_Slots = {} & {
7
9
  default?: (props: typeof __VLS_1) => any;
8
10
  };
9
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": () => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onUpdate:modelValue"?: (() => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
17
  declare const _default: typeof __VLS_export;
12
18
  export default _default;