@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,18 @@
1
+ import type { PrimitiveProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = PrimitiveProps & {
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,19 @@
1
+ import type { ListboxGroupProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ListboxGroupProps & {
4
+ class?: HTMLAttributes['class'];
5
+ heading?: string;
6
+ };
7
+ declare var __VLS_14: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_14) => any;
10
+ };
11
+ 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>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,44 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { ListboxGroup, ListboxGroupLabel, useId } from "reka-ui";
4
+ import { computed, onMounted, onUnmounted } from "vue";
5
+ import { cn } from "../../../utils/cn";
6
+ import { provideCommandGroupContext, useCommand } from ".";
7
+ const props = defineProps({
8
+ asChild: { type: Boolean, required: false },
9
+ as: { type: null, required: false },
10
+ class: { type: null, required: false },
11
+ heading: { type: String, required: false }
12
+ });
13
+ const delegatedProps = reactiveOmit(props, "class");
14
+ const { allGroups, filterState } = useCommand();
15
+ const id = useId();
16
+ const isRender = computed(() => !filterState.search ? true : filterState.filtered.groups.has(id));
17
+ provideCommandGroupContext({ id });
18
+ onMounted(() => {
19
+ if (!allGroups.value.has(id))
20
+ allGroups.value.set(id, /* @__PURE__ */ new Set());
21
+ });
22
+ onUnmounted(() => {
23
+ allGroups.value.delete(id);
24
+ });
25
+ </script>
26
+
27
+ <template>
28
+ <ListboxGroup
29
+ v-bind="delegatedProps"
30
+ :id="id"
31
+ data-slot="command-group"
32
+ :class="cn('text-zinc-700 overflow-hidden p-1', props.class)"
33
+ :hidden="isRender ? void 0 : true"
34
+ >
35
+ <ListboxGroupLabel
36
+ v-if="heading"
37
+ data-slot="command-group-heading"
38
+ class="px-2 py-1.5 text-xs font-medium text-zinc-700"
39
+ >
40
+ {{ heading }}
41
+ </ListboxGroupLabel>
42
+ <slot />
43
+ </ListboxGroup>
44
+ </template>
@@ -0,0 +1,19 @@
1
+ import type { ListboxGroupProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ListboxGroupProps & {
4
+ class?: HTMLAttributes['class'];
5
+ heading?: string;
6
+ };
7
+ declare var __VLS_14: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_14) => any;
10
+ };
11
+ 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>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,8 @@
1
+ import type { ListboxFilterProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ListboxFilterProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare const __VLS_export: 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>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { Icon } from "@iconify/vue";
4
+ import { ListboxFilter, useForwardProps } from "reka-ui";
5
+ import { cn } from "../../../utils/cn";
6
+ import { useCommand } from ".";
7
+ defineOptions({
8
+ inheritAttrs: false
9
+ });
10
+ const props = defineProps({
11
+ modelValue: { type: String, required: false },
12
+ autoFocus: { type: Boolean, required: false },
13
+ disabled: { type: Boolean, required: false },
14
+ asChild: { type: Boolean, required: false },
15
+ as: { type: null, required: false },
16
+ class: { type: null, required: false }
17
+ });
18
+ const delegatedProps = reactiveOmit(props, "class");
19
+ const forwardedProps = useForwardProps(delegatedProps);
20
+ const { filterState } = useCommand();
21
+ </script>
22
+
23
+ <template>
24
+ <div
25
+ data-slot="command-input-wrapper"
26
+ class="flex h-12 items-center gap-2 border-b border-zinc-200 px-3"
27
+ >
28
+ <Icon
29
+ icon="fluent:search-20-filled"
30
+ class="size-4 shrink-0 opacity-50"
31
+ />
32
+ <ListboxFilter
33
+ v-bind="{ ...forwardedProps, ...$attrs }"
34
+ v-model="filterState.search"
35
+ data-slot="command-input"
36
+ auto-focus
37
+ :class="cn('placeholder:text-zinc-700 flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50', props.class)"
38
+ />
39
+ </div>
40
+ </template>
@@ -0,0 +1,8 @@
1
+ import type { ListboxFilterProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ListboxFilterProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare const __VLS_export: 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>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import type { ListboxItemProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ListboxItemProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_11: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_11) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ select: (event: import("reka-ui").ListboxItemSelectEvent<import("reka-ui").AcceptableValue>) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onSelect?: ((event: import("reka-ui").ListboxItemSelectEvent<import("reka-ui").AcceptableValue>) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,65 @@
1
+ <script setup>
2
+ import { reactiveOmit, useCurrentElement } from "@vueuse/core";
3
+ import { ListboxItem, useForwardPropsEmits, useId } from "reka-ui";
4
+ import { computed, onMounted, onUnmounted, ref } from "vue";
5
+ import { cn } from "../../../utils/cn";
6
+ import { useCommand, useCommandGroup } from ".";
7
+ const props = defineProps({
8
+ value: { type: null, required: true },
9
+ disabled: { type: Boolean, required: false },
10
+ asChild: { type: Boolean, required: false },
11
+ as: { type: null, required: false },
12
+ class: { type: null, required: false }
13
+ });
14
+ const emits = defineEmits(["select"]);
15
+ const delegatedProps = reactiveOmit(props, "class");
16
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
17
+ const id = useId();
18
+ const { filterState, allItems, allGroups } = useCommand();
19
+ const groupContext = useCommandGroup();
20
+ const isRender = computed(() => {
21
+ if (!filterState.search) {
22
+ return true;
23
+ } else {
24
+ const filteredCurrentItem = filterState.filtered.items.get(id);
25
+ if (filteredCurrentItem === void 0) {
26
+ return true;
27
+ }
28
+ return filteredCurrentItem > 0;
29
+ }
30
+ });
31
+ const itemRef = ref();
32
+ const currentElement = useCurrentElement(itemRef);
33
+ onMounted(() => {
34
+ if (!(currentElement.value instanceof HTMLElement))
35
+ return;
36
+ allItems.value.set(id, currentElement.value.textContent ?? (props.value?.toString() ?? ""));
37
+ const groupId = groupContext?.id;
38
+ if (groupId) {
39
+ if (!allGroups.value.has(groupId)) {
40
+ allGroups.value.set(groupId, /* @__PURE__ */ new Set([id]));
41
+ } else {
42
+ allGroups.value.get(groupId)?.add(id);
43
+ }
44
+ }
45
+ });
46
+ onUnmounted(() => {
47
+ allItems.value.delete(id);
48
+ });
49
+ </script>
50
+
51
+ <template>
52
+ <ListboxItem
53
+ v-if="isRender"
54
+ v-bind="forwarded"
55
+ :id="id"
56
+ ref="itemRef"
57
+ data-slot="command-item"
58
+ :class="cn('data-highlighted:bg-zinc-100 data-highlighted:text-zinc-700 [&_svg:not([class*=\'text-\'])]:text-zinc-700 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4', props.class)"
59
+ @select="() => {
60
+ filterState.search = '';
61
+ }"
62
+ >
63
+ <slot />
64
+ </ListboxItem>
65
+ </template>
@@ -0,0 +1,22 @@
1
+ import type { ListboxItemProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ListboxItemProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare var __VLS_11: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_11) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ select: (event: import("reka-ui").ListboxItemSelectEvent<import("reka-ui").AcceptableValue>) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onSelect?: ((event: import("reka-ui").ListboxItemSelectEvent<import("reka-ui").AcceptableValue>) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,18 @@
1
+ import type { ListboxContentProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ListboxContentProps & {
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,24 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { ListboxContent, 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 forwarded = useForwardProps(delegatedProps);
12
+ </script>
13
+
14
+ <template>
15
+ <ListboxContent
16
+ data-slot="command-list"
17
+ v-bind="forwarded"
18
+ :class="cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', props.class)"
19
+ >
20
+ <div role="presentation">
21
+ <slot />
22
+ </div>
23
+ </ListboxContent>
24
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { ListboxContentProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ListboxContentProps & {
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,18 @@
1
+ import type { SeparatorProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = SeparatorProps & {
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,23 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { Separator } from "reka-ui";
4
+ import { cn } from "../../../utils/cn";
5
+ const props = defineProps({
6
+ orientation: { type: String, required: false },
7
+ decorative: { type: Boolean, required: false },
8
+ asChild: { type: Boolean, required: false },
9
+ as: { type: null, required: false },
10
+ class: { type: null, required: false }
11
+ });
12
+ const delegatedProps = reactiveOmit(props, "class");
13
+ </script>
14
+
15
+ <template>
16
+ <Separator
17
+ data-slot="command-separator"
18
+ v-bind="delegatedProps"
19
+ :class="cn('bg-zinc-200 -mx-1 h-px', props.class)"
20
+ >
21
+ <slot />
22
+ </Separator>
23
+ </template>
@@ -0,0 +1,18 @@
1
+ import type { SeparatorProps } from 'reka-ui';
2
+ import type { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = SeparatorProps & {
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
+ <span
10
+ data-slot="command-shortcut"
11
+ :class="cn('text-zinc-700 ml-auto text-xs tracking-widest', props.class)"
12
+ >
13
+ <slot />
14
+ </span>
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,90 @@
1
+ import type { Ref } from 'vue';
2
+ export { default as Command } from './Command.vue.js';
3
+ export { default as CommandDialog } from './CommandDialog.vue.js';
4
+ export { default as CommandEmpty } from './CommandEmpty.vue.js';
5
+ export { default as CommandGroup } from './CommandGroup.vue.js';
6
+ export { default as CommandInput } from './CommandInput.vue.js';
7
+ export { default as CommandItem } from './CommandItem.vue.js';
8
+ export { default as CommandList } from './CommandList.vue.js';
9
+ export { default as CommandSeparator } from './CommandSeparator.vue.js';
10
+ export { default as CommandShortcut } from './CommandShortcut.vue.js';
11
+ export declare const useCommand: <T extends {
12
+ allItems: Ref<Map<string, string>>;
13
+ allGroups: Ref<Map<string, Set<string>>>;
14
+ filterState: {
15
+ search: string;
16
+ filtered: {
17
+ count: number;
18
+ items: Map<string, number>;
19
+ groups: Set<string>;
20
+ };
21
+ };
22
+ } | null | undefined = {
23
+ allItems: Ref<Map<string, string>>;
24
+ allGroups: Ref<Map<string, Set<string>>>;
25
+ filterState: {
26
+ search: string;
27
+ filtered: {
28
+ count: number;
29
+ items: Map<string, number>;
30
+ groups: Set<string>;
31
+ };
32
+ };
33
+ }>(fallback?: T | undefined) => T extends null ? {
34
+ allItems: Ref<Map<string, string>>;
35
+ allGroups: Ref<Map<string, Set<string>>>;
36
+ filterState: {
37
+ search: string;
38
+ filtered: {
39
+ count: number;
40
+ items: Map<string, number>;
41
+ groups: Set<string>;
42
+ };
43
+ };
44
+ } | null : {
45
+ allItems: Ref<Map<string, string>>;
46
+ allGroups: Ref<Map<string, Set<string>>>;
47
+ filterState: {
48
+ search: string;
49
+ filtered: {
50
+ count: number;
51
+ items: Map<string, number>;
52
+ groups: Set<string>;
53
+ };
54
+ };
55
+ }, provideCommandContext: (contextValue: {
56
+ allItems: Ref<Map<string, string>>;
57
+ allGroups: Ref<Map<string, Set<string>>>;
58
+ filterState: {
59
+ search: string;
60
+ filtered: {
61
+ count: number;
62
+ items: Map<string, number>;
63
+ groups: Set<string>;
64
+ };
65
+ };
66
+ }) => {
67
+ allItems: Ref<Map<string, string>>;
68
+ allGroups: Ref<Map<string, Set<string>>>;
69
+ filterState: {
70
+ search: string;
71
+ filtered: {
72
+ count: number;
73
+ items: Map<string, number>;
74
+ groups: Set<string>;
75
+ };
76
+ };
77
+ };
78
+ export declare const useCommandGroup: <T extends {
79
+ id?: string;
80
+ } | null | undefined = {
81
+ id?: string;
82
+ }>(fallback?: T | undefined) => T extends null ? {
83
+ id?: string;
84
+ } | null : {
85
+ id?: string;
86
+ }, provideCommandGroupContext: (contextValue: {
87
+ id?: string;
88
+ }) => {
89
+ id?: string;
90
+ };
@@ -0,0 +1,12 @@
1
+ import { createContext } from "reka-ui";
2
+ export { default as Command } from "./Command.vue";
3
+ export { default as CommandDialog } from "./CommandDialog.vue";
4
+ export { default as CommandEmpty } from "./CommandEmpty.vue";
5
+ export { default as CommandGroup } from "./CommandGroup.vue";
6
+ export { default as CommandInput } from "./CommandInput.vue";
7
+ export { default as CommandItem } from "./CommandItem.vue";
8
+ export { default as CommandList } from "./CommandList.vue";
9
+ export { default as CommandSeparator } from "./CommandSeparator.vue";
10
+ export { default as CommandShortcut } from "./CommandShortcut.vue";
11
+ export const [useCommand, provideCommandContext] = createContext("Command");
12
+ export const [useCommandGroup, provideCommandGroupContext] = createContext("CommandGroup");
@@ -0,0 +1,21 @@
1
+ import type { DialogRootProps } from 'reka-ui';
2
+ declare var __VLS_8: {
3
+ open: boolean;
4
+ close: () => void;
5
+ };
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_8) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<DialogRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:open": (value: boolean) => any;
11
+ }, string, import("vue").PublicProps, Readonly<DialogRootProps> & Readonly<{
12
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,20 @@
1
+ <script setup>
2
+ import { DialogRoot, useForwardPropsEmits } from "reka-ui";
3
+ const props = defineProps({
4
+ open: { type: Boolean, required: false },
5
+ defaultOpen: { type: Boolean, required: false },
6
+ modal: { type: Boolean, required: false }
7
+ });
8
+ const emits = defineEmits(["update:open"]);
9
+ const forwarded = useForwardPropsEmits(props, emits);
10
+ </script>
11
+
12
+ <template>
13
+ <DialogRoot
14
+ v-slot="slotProps"
15
+ data-slot="dialog"
16
+ v-bind="forwarded"
17
+ >
18
+ <slot v-bind="slotProps" />
19
+ </DialogRoot>
20
+ </template>
@@ -0,0 +1,21 @@
1
+ import type { DialogRootProps } from 'reka-ui';
2
+ declare var __VLS_8: {
3
+ open: boolean;
4
+ close: () => void;
5
+ };
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_8) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<DialogRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:open": (value: boolean) => any;
11
+ }, string, import("vue").PublicProps, Readonly<DialogRootProps> & Readonly<{
12
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -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
+ };