@shwfed/nuxt 0.1.21 → 0.1.22

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 (87) hide show
  1. package/dist/module.d.mts +1 -1
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +9 -2
  4. package/dist/runtime/components/app.d.vue.ts +2 -2
  5. package/dist/runtime/components/app.vue +55 -0
  6. package/dist/runtime/components/app.vue.d.ts +2 -2
  7. package/dist/runtime/components/table.d.vue.ts +12 -3
  8. package/dist/runtime/components/table.vue +4 -0
  9. package/dist/runtime/components/table.vue.d.ts +12 -3
  10. package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.d.vue.ts +1 -1
  11. package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +1 -1
  12. package/dist/runtime/components/ui/button-group/index.d.ts +1 -1
  13. package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +25 -0
  14. package/dist/runtime/components/ui/checkbox/Checkbox.vue +47 -0
  15. package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +25 -0
  16. package/dist/runtime/components/ui/checkbox/index.d.ts +1 -0
  17. package/dist/runtime/components/ui/checkbox/index.js +1 -0
  18. package/dist/runtime/components/ui/command/Command.d.vue.ts +36 -0
  19. package/dist/runtime/components/ui/command/Command.vue +81 -0
  20. package/dist/runtime/components/ui/command/Command.vue.d.ts +36 -0
  21. package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +28 -0
  22. package/dist/runtime/components/ui/command/CommandDialog.vue +34 -0
  23. package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +28 -0
  24. package/dist/runtime/components/ui/command/CommandEmpty.d.vue.ts +18 -0
  25. package/dist/runtime/components/ui/command/CommandEmpty.vue +28 -0
  26. package/dist/runtime/components/ui/command/CommandEmpty.vue.d.ts +18 -0
  27. package/dist/runtime/components/ui/command/CommandGroup.d.vue.ts +19 -0
  28. package/dist/runtime/components/ui/command/CommandGroup.vue +44 -0
  29. package/dist/runtime/components/ui/command/CommandGroup.vue.d.ts +19 -0
  30. package/dist/runtime/components/ui/command/CommandInput.d.vue.ts +8 -0
  31. package/dist/runtime/components/ui/command/CommandInput.vue +40 -0
  32. package/dist/runtime/components/ui/command/CommandInput.vue.d.ts +8 -0
  33. package/dist/runtime/components/ui/command/CommandItem.d.vue.ts +22 -0
  34. package/dist/runtime/components/ui/command/CommandItem.vue +65 -0
  35. package/dist/runtime/components/ui/command/CommandItem.vue.d.ts +22 -0
  36. package/dist/runtime/components/ui/command/CommandList.d.vue.ts +18 -0
  37. package/dist/runtime/components/ui/command/CommandList.vue +24 -0
  38. package/dist/runtime/components/ui/command/CommandList.vue.d.ts +18 -0
  39. package/dist/runtime/components/ui/command/CommandSeparator.d.vue.ts +18 -0
  40. package/dist/runtime/components/ui/command/CommandSeparator.vue +23 -0
  41. package/dist/runtime/components/ui/command/CommandSeparator.vue.d.ts +18 -0
  42. package/dist/runtime/components/ui/command/CommandShortcut.d.vue.ts +17 -0
  43. package/dist/runtime/components/ui/command/CommandShortcut.vue +15 -0
  44. package/dist/runtime/components/ui/command/CommandShortcut.vue.d.ts +17 -0
  45. package/dist/runtime/components/ui/command/index.d.ts +90 -0
  46. package/dist/runtime/components/ui/command/index.js +12 -0
  47. package/dist/runtime/components/ui/dialog/Dialog.d.vue.ts +21 -0
  48. package/dist/runtime/components/ui/dialog/Dialog.vue +20 -0
  49. package/dist/runtime/components/ui/dialog/Dialog.vue.d.ts +21 -0
  50. package/dist/runtime/components/ui/dialog/DialogClose.d.vue.ts +14 -0
  51. package/dist/runtime/components/ui/dialog/DialogClose.vue +16 -0
  52. package/dist/runtime/components/ui/dialog/DialogClose.vue.d.ts +14 -0
  53. package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +35 -0
  54. package/dist/runtime/components/ui/dialog/DialogContent.vue +53 -0
  55. package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +35 -0
  56. package/dist/runtime/components/ui/dialog/DialogDescription.d.vue.ts +18 -0
  57. package/dist/runtime/components/ui/dialog/DialogDescription.vue +22 -0
  58. package/dist/runtime/components/ui/dialog/DialogDescription.vue.d.ts +18 -0
  59. package/dist/runtime/components/ui/dialog/DialogFooter.d.vue.ts +17 -0
  60. package/dist/runtime/components/ui/dialog/DialogFooter.vue +15 -0
  61. package/dist/runtime/components/ui/dialog/DialogFooter.vue.d.ts +17 -0
  62. package/dist/runtime/components/ui/dialog/DialogHeader.d.vue.ts +17 -0
  63. package/dist/runtime/components/ui/dialog/DialogHeader.vue +15 -0
  64. package/dist/runtime/components/ui/dialog/DialogHeader.vue.d.ts +17 -0
  65. package/dist/runtime/components/ui/dialog/DialogOverlay.d.vue.ts +18 -0
  66. package/dist/runtime/components/ui/dialog/DialogOverlay.vue +22 -0
  67. package/dist/runtime/components/ui/dialog/DialogOverlay.vue.d.ts +18 -0
  68. package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +32 -0
  69. package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +58 -0
  70. package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +32 -0
  71. package/dist/runtime/components/ui/dialog/DialogTitle.d.vue.ts +18 -0
  72. package/dist/runtime/components/ui/dialog/DialogTitle.vue +22 -0
  73. package/dist/runtime/components/ui/dialog/DialogTitle.vue.d.ts +18 -0
  74. package/dist/runtime/components/ui/dialog/DialogTrigger.d.vue.ts +14 -0
  75. package/dist/runtime/components/ui/dialog/DialogTrigger.vue +16 -0
  76. package/dist/runtime/components/ui/dialog/DialogTrigger.vue.d.ts +14 -0
  77. package/dist/runtime/components/ui/dialog/index.d.ts +10 -0
  78. package/dist/runtime/components/ui/dialog/index.js +10 -0
  79. package/dist/runtime/components/ui/separator/Separator.d.vue.ts +1 -1
  80. package/dist/runtime/components/ui/separator/Separator.vue.d.ts +1 -1
  81. package/dist/runtime/plugins/cel/env.d.ts +5 -8
  82. package/dist/runtime/plugins/cel/env.js +3 -12
  83. package/dist/runtime/plugins/cel/index.js +4 -2
  84. package/dist/runtime/plugins/i18n/index.d.ts +2 -0
  85. package/dist/runtime/plugins/i18n/index.js +14 -0
  86. package/dist/runtime/table-renderers/builtins.js +12 -29
  87. package/package.json +3 -1
@@ -0,0 +1,16 @@
1
+ <script setup>
2
+ import { DialogClose } from "reka-ui";
3
+ const props = defineProps({
4
+ asChild: { type: Boolean, required: false },
5
+ as: { type: null, required: false }
6
+ });
7
+ </script>
8
+
9
+ <template>
10
+ <DialogClose
11
+ data-slot="dialog-close"
12
+ v-bind="props"
13
+ >
14
+ <slot />
15
+ </DialogClose>
16
+ </template>
@@ -0,0 +1,14 @@
1
+ import type { DialogCloseProps } from 'reka-ui';
2
+ declare var __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_8) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<DialogCloseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogCloseProps> & 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
+ };
@@ -0,0 +1,35 @@
1
+ import type { DialogContentProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogContentProps & {
4
+ class?: HTMLAttributes['class'];
5
+ showCloseButton?: boolean;
6
+ };
7
+ declare var __VLS_19: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_19) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ escapeKeyDown: (event: KeyboardEvent) => any;
13
+ pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
14
+ focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
15
+ interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
16
+ openAutoFocus: (event: Event) => any;
17
+ closeAutoFocus: (event: Event) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
20
+ onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
21
+ onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
22
+ onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
23
+ onOpenAutoFocus?: ((event: Event) => any) | undefined;
24
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
25
+ }>, {
26
+ showCloseButton: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,53 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import {
4
+ DialogClose,
5
+ DialogContent,
6
+ DialogPortal,
7
+ useForwardPropsEmits
8
+ } from "reka-ui";
9
+ import { cn } from "../../../utils/cn";
10
+ import DialogOverlay from "./DialogOverlay.vue";
11
+ import { Icon } from "@iconify/vue";
12
+ defineOptions({
13
+ inheritAttrs: false
14
+ });
15
+ const props = defineProps({
16
+ forceMount: { type: Boolean, required: false },
17
+ disableOutsidePointerEvents: { type: Boolean, required: false },
18
+ asChild: { type: Boolean, required: false },
19
+ as: { type: null, required: false },
20
+ class: { type: null, required: false },
21
+ showCloseButton: { type: Boolean, required: false, default: true }
22
+ });
23
+ const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"]);
24
+ const delegatedProps = reactiveOmit(props, "class");
25
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
26
+ </script>
27
+
28
+ <template>
29
+ <DialogPortal>
30
+ <DialogOverlay />
31
+ <DialogContent
32
+ data-slot="dialog-content"
33
+ v-bind="{ ...$attrs, ...forwarded }"
34
+ :class="
35
+ cn(
36
+ 'bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-zinc-200 p-6 shadow-lg duration-200 sm:max-w-lg',
37
+ props.class
38
+ )
39
+ "
40
+ >
41
+ <slot />
42
+
43
+ <DialogClose
44
+ v-if="showCloseButton"
45
+ data-slot="dialog-close"
46
+ class="data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-700 absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
47
+ >
48
+ <Icon icon="fluent:dismiss-20-filled" />
49
+ <span class="sr-only">Close</span>
50
+ </DialogClose>
51
+ </DialogContent>
52
+ </DialogPortal>
53
+ </template>
@@ -0,0 +1,35 @@
1
+ import type { DialogContentProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogContentProps & {
4
+ class?: HTMLAttributes['class'];
5
+ showCloseButton?: boolean;
6
+ };
7
+ declare var __VLS_19: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_19) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ escapeKeyDown: (event: KeyboardEvent) => any;
13
+ pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
14
+ focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
15
+ interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
16
+ openAutoFocus: (event: Event) => any;
17
+ closeAutoFocus: (event: Event) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
20
+ onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
21
+ onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
22
+ onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
23
+ onOpenAutoFocus?: ((event: Event) => any) | undefined;
24
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
25
+ }>, {
26
+ showCloseButton: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,18 @@
1
+ import type { DialogDescriptionProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogDescriptionProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ 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_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,22 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { DialogDescription, useForwardProps } from "reka-ui";
4
+ import { cn } from "../../../utils/cn";
5
+ const props = defineProps({
6
+ asChild: { type: Boolean, required: false },
7
+ as: { type: null, required: false },
8
+ class: { type: null, required: false }
9
+ });
10
+ const delegatedProps = reactiveOmit(props, "class");
11
+ const forwardedProps = useForwardProps(delegatedProps);
12
+ </script>
13
+
14
+ <template>
15
+ <DialogDescription
16
+ data-slot="dialog-description"
17
+ v-bind="forwardedProps"
18
+ :class="cn('text-zinc-700 text-sm', props.class)"
19
+ >
20
+ <slot />
21
+ </DialogDescription>
22
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { DialogDescriptionProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogDescriptionProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ 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_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,17 @@
1
+ import type { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => 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
+ };
@@ -0,0 +1,15 @@
1
+ <script setup>
2
+ import { cn } from "../../../utils/cn";
3
+ const props = defineProps({
4
+ class: { type: null, required: false }
5
+ });
6
+ </script>
7
+
8
+ <template>
9
+ <div
10
+ data-slot="dialog-footer"
11
+ :class="cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', props.class)"
12
+ >
13
+ <slot />
14
+ </div>
15
+ </template>
@@ -0,0 +1,17 @@
1
+ import type { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => 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
+ };
@@ -0,0 +1,17 @@
1
+ import type { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => 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
+ };
@@ -0,0 +1,15 @@
1
+ <script setup>
2
+ import { cn } from "../../../utils/cn";
3
+ const props = defineProps({
4
+ class: { type: null, required: false }
5
+ });
6
+ </script>
7
+
8
+ <template>
9
+ <div
10
+ data-slot="dialog-header"
11
+ :class="cn('flex flex-col gap-2 text-center sm:text-left', props.class)"
12
+ >
13
+ <slot />
14
+ </div>
15
+ </template>
@@ -0,0 +1,17 @@
1
+ import type { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => 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
+ };
@@ -0,0 +1,18 @@
1
+ import type { DialogOverlayProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogOverlayProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ 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_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,22 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { DialogOverlay } from "reka-ui";
4
+ import { cn } from "../../../utils/cn";
5
+ const props = defineProps({
6
+ forceMount: { type: Boolean, required: false },
7
+ asChild: { type: Boolean, required: false },
8
+ as: { type: null, required: false },
9
+ class: { type: null, required: false }
10
+ });
11
+ const delegatedProps = reactiveOmit(props, "class");
12
+ </script>
13
+
14
+ <template>
15
+ <DialogOverlay
16
+ data-slot="dialog-overlay"
17
+ v-bind="delegatedProps"
18
+ :class="cn('data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60', props.class)"
19
+ >
20
+ <slot />
21
+ </DialogOverlay>
22
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { DialogOverlayProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogOverlayProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ 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_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,32 @@
1
+ import type { DialogContentProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogContentProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_22: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_22) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ escapeKeyDown: (event: KeyboardEvent) => any;
12
+ pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
13
+ focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
14
+ interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
15
+ openAutoFocus: (event: Event) => any;
16
+ closeAutoFocus: (event: Event) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
19
+ onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
20
+ onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
21
+ onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
22
+ onOpenAutoFocus?: ((event: Event) => any) | undefined;
23
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,58 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import {
4
+ DialogClose,
5
+ DialogContent,
6
+ DialogOverlay,
7
+ DialogPortal,
8
+ useForwardPropsEmits
9
+ } from "reka-ui";
10
+ import { cn } from "../../../utils/cn";
11
+ defineOptions({
12
+ inheritAttrs: false
13
+ });
14
+ const props = defineProps({
15
+ forceMount: { type: Boolean, required: false },
16
+ disableOutsidePointerEvents: { type: Boolean, required: false },
17
+ asChild: { type: Boolean, required: false },
18
+ as: { type: null, required: false },
19
+ class: { type: null, required: false }
20
+ });
21
+ const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"]);
22
+ const delegatedProps = reactiveOmit(props, "class");
23
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
24
+ </script>
25
+
26
+ <template>
27
+ <DialogPortal>
28
+ <DialogOverlay
29
+ class="fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
30
+ >
31
+ <DialogContent
32
+ :class="
33
+ cn(
34
+ 'relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full',
35
+ props.class
36
+ )
37
+ "
38
+ v-bind="{ ...$attrs, ...forwarded }"
39
+ @pointer-down-outside="(event) => {
40
+ const originalEvent = event.detail.originalEvent;
41
+ const target = originalEvent.target;
42
+ if (originalEvent.offsetX > target.clientWidth || originalEvent.offsetY > target.clientHeight) {
43
+ event.preventDefault();
44
+ }
45
+ }"
46
+ >
47
+ <slot />
48
+
49
+ <DialogClose
50
+ class="absolute top-4 right-4 p-0.5 transition-colors rounded-md hover:bg-zinc-100"
51
+ >
52
+ <Icon icon="fluent:dismiss-20-filled" />
53
+ <span class="sr-only">Close</span>
54
+ </DialogClose>
55
+ </DialogContent>
56
+ </DialogOverlay>
57
+ </DialogPortal>
58
+ </template>
@@ -0,0 +1,32 @@
1
+ import type { DialogContentProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogContentProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_22: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_22) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ escapeKeyDown: (event: KeyboardEvent) => any;
12
+ pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
13
+ focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
14
+ interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
15
+ openAutoFocus: (event: Event) => any;
16
+ closeAutoFocus: (event: Event) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
19
+ onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
20
+ onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
21
+ onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
22
+ onOpenAutoFocus?: ((event: Event) => any) | undefined;
23
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,18 @@
1
+ import type { DialogTitleProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogTitleProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ 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_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,22 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { DialogTitle, useForwardProps } from "reka-ui";
4
+ import { cn } from "../../../utils/cn";
5
+ const props = defineProps({
6
+ asChild: { type: Boolean, required: false },
7
+ as: { type: null, required: false },
8
+ class: { type: null, required: false }
9
+ });
10
+ const delegatedProps = reactiveOmit(props, "class");
11
+ const forwardedProps = useForwardProps(delegatedProps);
12
+ </script>
13
+
14
+ <template>
15
+ <DialogTitle
16
+ data-slot="dialog-title"
17
+ v-bind="forwardedProps"
18
+ :class="cn('text-lg leading-none font-semibold', props.class)"
19
+ >
20
+ <slot />
21
+ </DialogTitle>
22
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { DialogTitleProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = DialogTitleProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ 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_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,14 @@
1
+ import type { DialogTriggerProps } from 'reka-ui';
2
+ declare var __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_8) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<DialogTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTriggerProps> & 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
+ };
@@ -0,0 +1,16 @@
1
+ <script setup>
2
+ import { DialogTrigger } from "reka-ui";
3
+ const props = defineProps({
4
+ asChild: { type: Boolean, required: false },
5
+ as: { type: null, required: false }
6
+ });
7
+ </script>
8
+
9
+ <template>
10
+ <DialogTrigger
11
+ data-slot="dialog-trigger"
12
+ v-bind="props"
13
+ >
14
+ <slot />
15
+ </DialogTrigger>
16
+ </template>
@@ -0,0 +1,14 @@
1
+ import type { DialogTriggerProps } from 'reka-ui';
2
+ declare var __VLS_8: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_8) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<DialogTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTriggerProps> & 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
+ };
@@ -0,0 +1,10 @@
1
+ export { default as Dialog } from './Dialog.vue.js';
2
+ export { default as DialogClose } from './DialogClose.vue.js';
3
+ export { default as DialogContent } from './DialogContent.vue.js';
4
+ export { default as DialogDescription } from './DialogDescription.vue.js';
5
+ export { default as DialogFooter } from './DialogFooter.vue.js';
6
+ export { default as DialogHeader } from './DialogHeader.vue.js';
7
+ export { default as DialogOverlay } from './DialogOverlay.vue.js';
8
+ export { default as DialogScrollContent } from './DialogScrollContent.vue.js';
9
+ export { default as DialogTitle } from './DialogTitle.vue.js';
10
+ export { default as DialogTrigger } from './DialogTrigger.vue.js';