abckit 0.0.2 → 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 (77) hide show
  1. package/dist/module.d.mts +39 -5
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +0 -1
  4. package/dist/runtime/components/app/AppImage.vue +1 -1
  5. package/dist/runtime/components/app/AppNavMain.vue +3 -1
  6. package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.d.vue.ts +0 -14
  7. package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue.d.ts +0 -14
  8. package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.d.vue.ts +0 -14
  9. package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue.d.ts +0 -14
  10. package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.d.vue.ts +0 -17
  11. package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue.d.ts +0 -17
  12. package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.d.vue.ts +0 -14
  13. package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue.d.ts +0 -14
  14. package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.d.vue.ts +0 -17
  15. package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue.d.ts +0 -17
  16. package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.d.vue.ts +0 -14
  17. package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue.d.ts +0 -14
  18. package/dist/runtime/components/ui/badge/index.d.ts +1 -1
  19. package/dist/runtime/components/ui/button/ThemeToggle.vue +2 -2
  20. package/dist/runtime/components/ui/button/index.d.ts +2 -2
  21. package/dist/runtime/components/ui/calendar/Calendar.vue +1 -0
  22. package/dist/runtime/components/ui/chart/ChartContainer.vue +1 -1
  23. package/dist/runtime/components/ui/chart/ChartLegendContent.vue +3 -3
  24. package/dist/runtime/components/ui/chart/ChartTooltipContent.vue +1 -0
  25. package/dist/runtime/components/ui/chart/index.d.ts +0 -1
  26. package/dist/runtime/components/ui/chart/index.js +0 -1
  27. package/dist/runtime/components/ui/chart/utils.js +1 -0
  28. package/dist/runtime/components/ui/combobox/Combobox.d.vue.ts +2 -2
  29. package/dist/runtime/components/ui/combobox/Combobox.vue.d.ts +2 -2
  30. package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +4 -1
  31. package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +4 -1
  32. package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +4 -4
  33. package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +4 -4
  34. package/dist/runtime/components/ui/file/FileGrid.vue +2 -0
  35. package/dist/runtime/components/ui/file/FileTable.vue +8 -4
  36. package/dist/runtime/components/ui/input-otp/InputOTP.d.vue.ts +8 -8
  37. package/dist/runtime/components/ui/input-otp/InputOTP.vue.d.ts +8 -8
  38. package/dist/runtime/components/ui/input-otp/InputOTPSlot.vue +1 -0
  39. package/dist/runtime/components/ui/item/index.d.ts +1 -1
  40. package/dist/runtime/components/ui/native-select/NativeSelect.d.vue.ts +7 -1
  41. package/dist/runtime/components/ui/native-select/NativeSelect.vue +9 -2
  42. package/dist/runtime/components/ui/native-select/NativeSelect.vue.d.ts +7 -1
  43. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +389 -1
  44. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue +6 -3
  45. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +389 -1
  46. package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +393 -1
  47. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue +6 -3
  48. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +393 -1
  49. package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +1 -1
  50. package/dist/runtime/components/ui/select/Select.d.vue.ts +2 -2
  51. package/dist/runtime/components/ui/select/Select.vue.d.ts +2 -2
  52. package/dist/runtime/components/ui/sidebar/index.d.ts +1 -1
  53. package/dist/runtime/components/ui/sonner/Sonner.d.vue.ts +4 -0
  54. package/dist/runtime/components/ui/sonner/Sonner.vue +62 -0
  55. package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +4 -0
  56. package/dist/runtime/components/ui/sonner/index.d.ts +1 -0
  57. package/dist/runtime/components/ui/sonner/index.js +1 -0
  58. package/dist/runtime/components/ui/storage/StorageActionBar.d.vue.ts +2 -2
  59. package/dist/runtime/components/ui/storage/StorageActionBar.vue +1 -1
  60. package/dist/runtime/components/ui/storage/StorageActionBar.vue.d.ts +2 -2
  61. package/dist/runtime/components/ui/storage/StorageGrid.vue +2 -0
  62. package/dist/runtime/components/ui/storage/StorageTable.vue +8 -4
  63. package/dist/runtime/components/ui/tags-input/TagsInput.vue +8 -1
  64. package/dist/runtime/components/ui/timezone-select/useTimezone.d.ts +2 -2
  65. package/dist/runtime/components/ui/timezone-select/useTimezone.js +3 -3
  66. package/dist/runtime/components/ui/toggle/index.d.ts +1 -1
  67. package/dist/runtime/composables/useAuth.d.ts +49 -37
  68. package/dist/runtime/composables/useAuth.js +1 -0
  69. package/dist/runtime/composables/useBreadcrumbItems.js +1 -1
  70. package/dist/runtime/composables/useImageUrl.js +1 -0
  71. package/dist/runtime/error.vue +12 -4
  72. package/dist/runtime/graphql/organization.d.ts +5 -0
  73. package/dist/runtime/graphql/organization.js +11 -0
  74. package/dist/runtime/shared/constants/r2.d.ts +12 -0
  75. package/dist/runtime/shared/constants/r2.js +18 -0
  76. package/dist/runtime/types/nitro-graphql-client.d.ts +7 -1
  77. package/package.json +6 -2
package/dist/module.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
1
+ import * as nuxt_schema from 'nuxt/schema';
2
2
  import { BreadcrumbItemProps } from '../dist/runtime/composables/useBreadcrumbItems.js';
3
3
 
4
4
  interface BreadcrumbsConfig {
@@ -30,12 +30,46 @@ interface SetupConfig {
30
30
  declare module 'nuxt/schema' {
31
31
  interface AppConfig extends BreadcrumbsConfig, SetupConfig {
32
32
  }
33
- }
34
- declare module '@nuxt/schema' {
35
- interface AppConfig extends BreadcrumbsConfig, SetupConfig {
33
+ interface RuntimeConfig {
34
+ dragonfly: {
35
+ host: string;
36
+ port: number;
37
+ password: string;
38
+ };
39
+ s3: {
40
+ accessKeyId: string;
41
+ secretAccessKey: string;
42
+ endpoint: string;
43
+ bucket: string;
44
+ region: string;
45
+ publicUrl: string;
46
+ };
47
+ polar: {
48
+ accessToken: string;
49
+ checkoutSuccessUrl: string;
50
+ server: 'live' | 'sandbox';
51
+ webhookSecret: string;
52
+ };
53
+ imgproxy: {
54
+ storageUrl: string;
55
+ cdnDomains: string[];
56
+ };
57
+ storage: {
58
+ redis: boolean;
59
+ s3: boolean;
60
+ disk: boolean;
61
+ };
62
+ }
63
+ interface PublicRuntimeConfig {
64
+ siteUrl: string;
65
+ debug: boolean;
66
+ imgproxy: {
67
+ storageUrl: string;
68
+ cdnDomains: string[];
69
+ };
36
70
  }
37
71
  }
38
- declare const _default: _nuxt_schema.NuxtModule<_nuxt_schema.ModuleOptions, _nuxt_schema.ModuleOptions, false>;
72
+ declare const _default: nuxt_schema.NuxtModule<nuxt_schema.ModuleOptions, nuxt_schema.ModuleOptions, false>;
39
73
 
40
74
  export { _default as default };
41
75
  export type { BreadcrumbsConfig, SetupConfig };
package/dist/module.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "version": "0.0.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
- "unbuild": "3.6.1"
7
+ "unbuild": "unknown"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -169,7 +169,6 @@ export {}
169
169
  baseURL: "/",
170
170
  maxAge: 0
171
171
  });
172
- resolve("./runtime/components/ui");
173
172
  nuxt.hook("tailwindcss:sources:extend", (sources) => {
174
173
  sources.push({
175
174
  source: `${resolve("./runtime/components")}`,
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  alt: { type: String, required: false, default: "" },
8
8
  class: { type: String, required: false, default: "" },
9
9
  fallback: { type: String, required: false, default: "/images/placeholder.svg" },
10
- size: { type: null, required: false, default: "lg" }
10
+ size: { type: String, required: false, default: "lg" }
11
11
  });
12
12
  const { getImageUrl } = useImageUrl();
13
13
  const imageUrl = computed(() => {
@@ -23,7 +23,9 @@ defineProps({
23
23
 
24
24
  <template>
25
25
  <SidebarGroup>
26
- <SidebarGroupLabel v-if="label">{{ label }}</SidebarGroupLabel>
26
+ <SidebarGroupLabel v-if="label">
27
+ {{ label }}
28
+ </SidebarGroupLabel>
27
29
  <SidebarMenu>
28
30
  <Collapsible
29
31
  v-for="item in items"
@@ -1,14 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- declare var __VLS_20: any;
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_20) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,14 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- declare var __VLS_20: any;
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_20) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,14 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- declare var __VLS_25: any;
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_25) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,14 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- declare var __VLS_25: any;
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_25) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,17 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- type __VLS_Props = FieldProps & {
3
- options?: string[];
4
- };
5
- declare var __VLS_25: any;
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_25) => any;
8
- };
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>;
10
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
13
- type __VLS_WithSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };
@@ -1,17 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- type __VLS_Props = FieldProps & {
3
- options?: string[];
4
- };
5
- declare var __VLS_25: any;
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_25) => any;
8
- };
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>;
10
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
13
- type __VLS_WithSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };
@@ -1,14 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- declare var __VLS_25: any;
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_25) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,14 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- declare var __VLS_25: any;
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_25) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,17 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- type __VLS_Props = FieldProps & {
3
- id?: string;
4
- };
5
- declare var __VLS_25: any;
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_25) => any;
8
- };
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>;
10
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
13
- type __VLS_WithSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };
@@ -1,17 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- type __VLS_Props = FieldProps & {
3
- id?: string;
4
- };
5
- declare var __VLS_25: any;
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_25) => any;
8
- };
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>;
10
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
13
- type __VLS_WithSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };
@@ -1,14 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- declare var __VLS_25: any;
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_25) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,14 +0,0 @@
1
- import type { FieldProps } from './interface.js';
2
- declare var __VLS_25: any;
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_25) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,6 +1,6 @@
1
1
  import type { VariantProps } from "class-variance-authority";
2
2
  export { default as Badge } from "./Badge.vue.js";
3
3
  export declare const badgeVariants: (props?: ({
4
- variant?: "default" | "outline" | "destructive" | "secondary" | null | undefined;
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export type BadgeVariants = VariantProps<typeof badgeVariants>;
@@ -3,8 +3,8 @@ import { useColorMode } from "#imports";
3
3
  import { Icon } from "#components";
4
4
  const colorMode = useColorMode();
5
5
  function toggleDarkMode() {
6
- colorMode.value = colorMode.value === "dark" ? "light" : "dark";
7
- colorMode.preference = colorMode.value;
6
+ const newMode = colorMode.value === "dark" ? "light" : "dark";
7
+ colorMode.preference = newMode;
8
8
  }
9
9
  </script>
10
10
 
@@ -1,7 +1,7 @@
1
1
  import type { VariantProps } from "class-variance-authority";
2
2
  export { default as Button } from "./Button.vue.js";
3
3
  export declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "outline" | "ghost" | "destructive" | "secondary" | null | undefined;
5
- size?: "lg" | "default" | "sm" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export type ButtonVariants = VariantProps<typeof buttonVariants>;
@@ -3,6 +3,7 @@ import { getLocalTimeZone, today } from "@internationalized/date";
3
3
  import { createReusableTemplate, reactiveOmit, useVModel } from "@vueuse/core";
4
4
  import { CalendarRoot, useDateFormatter, useForwardPropsEmits } from "reka-ui";
5
5
  import { createYear, createYearRange, toDate } from "reka-ui/date";
6
+ import { computed, toRaw } from "vue";
6
7
  import { cn } from "abckit/utils";
7
8
  import { NativeSelect, NativeSelectOption } from "abckit/shadcn/native-select";
8
9
  import { CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNextButton, CalendarPrevButton } from ".";
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { useId } from "reka-ui";
3
- import { defineSlots } from "vue";
3
+ import { computed, toRefs } from "vue";
4
4
  import { cn } from "abckit/utils";
5
5
  import { provideChartContext } from ".";
6
6
  import ChartStyle from "./ChartStyle.vue";
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { computed } from "vue";
2
+ import { computed, onMounted, ref } from "vue";
3
3
  import { cn } from "abckit/utils";
4
4
  import { useChart } from ".";
5
5
  const props = defineProps({
@@ -37,12 +37,12 @@ onMounted(() => {
37
37
  '[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3'
38
38
  )"
39
39
  >
40
- <component :is="itemConfig.icon" v-if="itemConfig?.icon" />
40
+ <component :is="itemConfig?.icon" v-if="itemConfig?.icon" />
41
41
  <div
42
42
  v-else
43
43
  class="h-2 w-2 shrink-0 rounded-[2px]"
44
44
  :style="{
45
- backgroundColor: itemConfig.color
45
+ backgroundColor: itemConfig?.color
46
46
  }"
47
47
  />
48
48
 
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { computed } from "vue";
2
3
  import { cn } from "abckit/utils";
3
4
  const props = defineProps({
4
5
  hideLabel: { type: Boolean, required: false },
@@ -24,4 +24,3 @@ interface ChartContextProps {
24
24
  config: Ref<ChartConfig>;
25
25
  }
26
26
  export declare const useChart: <T extends ChartContextProps | null | undefined = ChartContextProps>(fallback?: T | undefined) => T extends null ? ChartContextProps | null : ChartContextProps, provideChartContext: (contextValue: ChartContextProps) => ChartContextProps;
27
- export { VisCrosshair as ChartCrosshair, VisTooltip as ChartTooltip } from "@unovis/vue";
@@ -5,4 +5,3 @@ export { default as ChartTooltipContent } from "./ChartTooltipContent.vue";
5
5
  export { componentToString } from "./utils.js";
6
6
  export const THEMES = { light: "", dark: ".dark" };
7
7
  export const [useChart, provideChartContext] = createContext("Chart");
8
- export { VisCrosshair as ChartCrosshair, VisTooltip as ChartTooltip } from "@unovis/vue";
@@ -1,4 +1,5 @@
1
1
  import { isClient } from "@vueuse/core";
2
+ import { useId } from "reka-ui";
2
3
  import { h, render } from "vue";
3
4
  const cache = /* @__PURE__ */ new Map();
4
5
  function serializeKey(key) {
@@ -8,15 +8,15 @@ type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_8) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- "update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
12
11
  "update:open": (value: boolean) => any;
12
+ "update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
13
13
  highlight: (payload: {
14
14
  ref: HTMLElement;
15
15
  value: import("reka-ui").AcceptableValue;
16
16
  } | undefined) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
- "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
19
18
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
20
20
  onHighlight?: ((payload: {
21
21
  ref: HTMLElement;
22
22
  value: import("reka-ui").AcceptableValue;
@@ -8,15 +8,15 @@ type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_8) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- "update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
12
11
  "update:open": (value: boolean) => any;
12
+ "update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
13
13
  highlight: (payload: {
14
14
  ref: HTMLElement;
15
15
  value: import("reka-ui").AcceptableValue;
16
16
  } | undefined) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
- "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
19
18
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
20
20
  onHighlight?: ((payload: {
21
21
  ref: HTMLElement;
22
22
  value: import("reka-ui").AcceptableValue;
@@ -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
  };
@@ -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({