docs-please 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/components/content/ProseTable.vue +4 -1
- package/app/components/ui/command/Command.vue +11 -11
- package/app/components/ui/command/CommandDialog.vue +3 -3
- package/app/components/ui/command/CommandEmpty.vue +13 -9
- package/app/components/ui/command/CommandGroup.vue +12 -9
- package/app/components/ui/command/CommandInput.vue +12 -9
- package/app/components/ui/command/CommandItem.vue +8 -8
- package/app/components/ui/command/CommandList.vue +10 -7
- package/app/components/ui/command/CommandSeparator.vue +6 -6
- package/app/components/ui/command/CommandShortcut.vue +2 -2
- package/app/components/ui/command/index.ts +13 -13
- package/app/components/ui/dialog/Dialog.vue +2 -2
- package/app/components/ui/dialog/DialogClose.vue +2 -2
- package/app/components/ui/dialog/DialogContent.vue +8 -8
- package/app/components/ui/dialog/DialogDescription.vue +6 -6
- package/app/components/ui/dialog/DialogFooter.vue +2 -2
- package/app/components/ui/dialog/DialogHeader.vue +2 -2
- package/app/components/ui/dialog/DialogOverlay.vue +6 -6
- package/app/components/ui/dialog/DialogScrollContent.vue +7 -7
- package/app/components/ui/dialog/DialogTitle.vue +6 -6
- package/app/components/ui/dialog/DialogTrigger.vue +2 -2
- package/app/components/ui/dialog/index.ts +10 -10
- package/app/components/ui/kbd/Kbd.vue +2 -2
- package/app/components/ui/kbd/KbdGroup.vue +2 -2
- package/app/components/ui/kbd/index.ts +2 -2
- package/nuxt.config.ts +19 -5
- package/package.json +1 -1
- package/server/routes/raw/[...slug].md.get.ts +1 -1
|
@@ -12,7 +12,10 @@ const props = defineProps<{
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<template>
|
|
15
|
-
<div
|
|
15
|
+
<div
|
|
16
|
+
data-slot="prose-table"
|
|
17
|
+
class="no-scrollbar my-6 w-full overflow-hidden rounded-lg border"
|
|
18
|
+
>
|
|
16
19
|
<table
|
|
17
20
|
:class="cn(
|
|
18
21
|
'w-full border-collapse text-sm',
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ListboxRootEmits, ListboxRootProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { ListboxRoot, useFilter, useForwardPropsEmits } from
|
|
6
|
-
import { reactive, ref, watch } from
|
|
2
|
+
import type { ListboxRootEmits, ListboxRootProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { ListboxRoot, useFilter, useForwardPropsEmits } from 'reka-ui'
|
|
6
|
+
import { reactive, ref, watch } from 'vue'
|
|
7
7
|
import { cn } from '~/lib/utils'
|
|
8
|
-
import { provideCommandContext } from
|
|
8
|
+
import { provideCommandContext } from '.'
|
|
9
9
|
|
|
10
|
-
const props = withDefaults(defineProps<ListboxRootProps & { class?: HTMLAttributes[
|
|
11
|
-
modelValue:
|
|
10
|
+
const props = withDefaults(defineProps<ListboxRootProps & { class?: HTMLAttributes['class'] }>(), {
|
|
11
|
+
modelValue: '',
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
const emits = defineEmits<ListboxRootEmits>()
|
|
15
15
|
|
|
16
|
-
const delegatedProps = reactiveOmit(props,
|
|
16
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
17
17
|
|
|
18
18
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
19
19
|
|
|
20
20
|
const allItems = ref<Map<string, string>>(new Map())
|
|
21
21
|
const allGroups = ref<Map<string, Set<string>>>(new Map())
|
|
22
22
|
|
|
23
|
-
const { contains } = useFilter({ sensitivity:
|
|
23
|
+
const { contains } = useFilter({ sensitivity: 'base' })
|
|
24
24
|
const filterState = reactive({
|
|
25
|
-
search:
|
|
25
|
+
search: '',
|
|
26
26
|
filtered: {
|
|
27
27
|
/** The count of all visible items. */
|
|
28
28
|
count: 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogRootEmits, DialogRootProps } from
|
|
3
|
-
import { useForwardPropsEmits } from
|
|
2
|
+
import type { DialogRootEmits, DialogRootProps } from 'reka-ui'
|
|
3
|
+
import { useForwardPropsEmits } from 'reka-ui'
|
|
4
4
|
import { Dialog, DialogContent } from '~/components/ui/dialog'
|
|
5
|
-
import Command from
|
|
5
|
+
import Command from './Command.vue'
|
|
6
6
|
|
|
7
7
|
const props = defineProps<DialogRootProps>()
|
|
8
8
|
const emits = defineEmits<DialogRootEmits>()
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { PrimitiveProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { Primitive } from
|
|
6
|
-
import { computed } from
|
|
2
|
+
import type { PrimitiveProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { Primitive } from 'reka-ui'
|
|
6
|
+
import { computed } from 'vue'
|
|
7
7
|
import { cn } from '~/lib/utils'
|
|
8
|
-
import { useCommand } from
|
|
8
|
+
import { useCommand } from '.'
|
|
9
9
|
|
|
10
|
-
const props = defineProps<PrimitiveProps & { class?: HTMLAttributes[
|
|
10
|
+
const props = defineProps<PrimitiveProps & { class?: HTMLAttributes['class'] }>()
|
|
11
11
|
|
|
12
|
-
const delegatedProps = reactiveOmit(props,
|
|
12
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
13
13
|
|
|
14
14
|
const { filterState } = useCommand()
|
|
15
15
|
const isRender = computed(() => !!filterState.search && filterState.filtered.count === 0,
|
|
@@ -17,7 +17,11 @@ const isRender = computed(() => !!filterState.search && filterState.filtered.cou
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<template>
|
|
20
|
-
<Primitive
|
|
20
|
+
<Primitive
|
|
21
|
+
v-if="isRender"
|
|
22
|
+
v-bind="delegatedProps"
|
|
23
|
+
:class="cn('py-6 text-center text-sm', props.class)"
|
|
24
|
+
>
|
|
21
25
|
<slot />
|
|
22
26
|
</Primitive>
|
|
23
27
|
</template>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ListboxGroupProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { ListboxGroup, ListboxGroupLabel, useId } from
|
|
6
|
-
import { computed, onMounted, onUnmounted } from
|
|
2
|
+
import type { ListboxGroupProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { ListboxGroup, ListboxGroupLabel, useId } from 'reka-ui'
|
|
6
|
+
import { computed, onMounted, onUnmounted } from 'vue'
|
|
7
7
|
import { cn } from '~/lib/utils'
|
|
8
|
-
import { provideCommandGroupContext, useCommand } from
|
|
8
|
+
import { provideCommandGroupContext, useCommand } from '.'
|
|
9
9
|
|
|
10
10
|
const props = defineProps<ListboxGroupProps & {
|
|
11
|
-
class?: HTMLAttributes[
|
|
11
|
+
class?: HTMLAttributes['class']
|
|
12
12
|
heading?: string
|
|
13
13
|
}>()
|
|
14
14
|
|
|
15
|
-
const delegatedProps = reactiveOmit(props,
|
|
15
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
16
16
|
|
|
17
17
|
const { allGroups, filterState } = useCommand()
|
|
18
18
|
const id = useId()
|
|
@@ -36,7 +36,10 @@ onUnmounted(() => {
|
|
|
36
36
|
:class="cn('overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground', props.class)"
|
|
37
37
|
:hidden="isRender ? undefined : true"
|
|
38
38
|
>
|
|
39
|
-
<ListboxGroupLabel
|
|
39
|
+
<ListboxGroupLabel
|
|
40
|
+
v-if="heading"
|
|
41
|
+
class="px-2 py-1.5 text-xs font-medium text-muted-foreground"
|
|
42
|
+
>
|
|
40
43
|
{{ heading }}
|
|
41
44
|
</ListboxGroupLabel>
|
|
42
45
|
<slot />
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ListboxFilterProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { Search } from
|
|
6
|
-
import { ListboxFilter, useForwardProps } from
|
|
2
|
+
import type { ListboxFilterProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { Search } from 'lucide-vue-next'
|
|
6
|
+
import { ListboxFilter, useForwardProps } from 'reka-ui'
|
|
7
7
|
import { cn } from '~/lib/utils'
|
|
8
|
-
import { useCommand } from
|
|
8
|
+
import { useCommand } from '.'
|
|
9
9
|
|
|
10
10
|
defineOptions({
|
|
11
11
|
inheritAttrs: false,
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
const props = defineProps<ListboxFilterProps & {
|
|
15
|
-
class?: HTMLAttributes[
|
|
15
|
+
class?: HTMLAttributes['class']
|
|
16
16
|
}>()
|
|
17
17
|
|
|
18
|
-
const delegatedProps = reactiveOmit(props,
|
|
18
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
19
19
|
|
|
20
20
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
21
21
|
|
|
@@ -23,7 +23,10 @@ const { filterState } = useCommand()
|
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
<template>
|
|
26
|
-
<div
|
|
26
|
+
<div
|
|
27
|
+
class="flex items-center border-b px-3"
|
|
28
|
+
cmdk-input-wrapper
|
|
29
|
+
>
|
|
27
30
|
<Search class="mr-2 h-4 w-4 shrink-0 opacity-50" />
|
|
28
31
|
<ListboxFilter
|
|
29
32
|
v-bind="{ ...forwardedProps, ...$attrs }"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ListboxItemEmits, ListboxItemProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit, useCurrentElement } from
|
|
5
|
-
import { ListboxItem, useForwardPropsEmits, useId } from
|
|
6
|
-
import { computed, onMounted, onUnmounted, ref } from
|
|
2
|
+
import type { ListboxItemEmits, ListboxItemProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit, useCurrentElement } from '@vueuse/core'
|
|
5
|
+
import { ListboxItem, useForwardPropsEmits, useId } from 'reka-ui'
|
|
6
|
+
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
|
7
7
|
import { cn } from '~/lib/utils'
|
|
8
|
-
import { useCommand, useCommandGroup } from
|
|
8
|
+
import { useCommand, useCommandGroup } from '.'
|
|
9
9
|
|
|
10
|
-
const props = defineProps<ListboxItemProps & { class?: HTMLAttributes[
|
|
10
|
+
const props = defineProps<ListboxItemProps & { class?: HTMLAttributes['class'] }>()
|
|
11
11
|
const emits = defineEmits<ListboxItemEmits>()
|
|
12
12
|
|
|
13
|
-
const delegatedProps = reactiveOmit(props,
|
|
13
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
14
14
|
|
|
15
15
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
16
16
|
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ListboxContentProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { ListboxContent, useForwardProps } from
|
|
2
|
+
import type { ListboxContentProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { ListboxContent, useForwardProps } from 'reka-ui'
|
|
6
6
|
import { cn } from '~/lib/utils'
|
|
7
7
|
|
|
8
|
-
const props = defineProps<ListboxContentProps & { class?: HTMLAttributes[
|
|
8
|
+
const props = defineProps<ListboxContentProps & { class?: HTMLAttributes['class'] }>()
|
|
9
9
|
|
|
10
|
-
const delegatedProps = reactiveOmit(props,
|
|
10
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
11
11
|
|
|
12
12
|
const forwarded = useForwardProps(delegatedProps)
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
|
-
<ListboxContent
|
|
16
|
+
<ListboxContent
|
|
17
|
+
v-bind="forwarded"
|
|
18
|
+
:class="cn('max-h-[300px] overflow-y-auto overflow-x-hidden', props.class)"
|
|
19
|
+
>
|
|
17
20
|
<div role="presentation">
|
|
18
21
|
<slot />
|
|
19
22
|
</div>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SeparatorProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { Separator } from
|
|
2
|
+
import type { SeparatorProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { Separator } from 'reka-ui'
|
|
6
6
|
import { cn } from '~/lib/utils'
|
|
7
7
|
|
|
8
|
-
const props = defineProps<SeparatorProps & { class?: HTMLAttributes[
|
|
8
|
+
const props = defineProps<SeparatorProps & { class?: HTMLAttributes['class'] }>()
|
|
9
9
|
|
|
10
|
-
const delegatedProps = reactiveOmit(props,
|
|
10
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<template>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
3
|
import { cn } from '~/lib/utils'
|
|
4
4
|
|
|
5
5
|
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes[
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
7
|
}>()
|
|
8
8
|
</script>
|
|
9
9
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { Ref } from
|
|
2
|
-
import { createContext } from
|
|
1
|
+
import type { Ref } from 'vue'
|
|
2
|
+
import { createContext } from 'reka-ui'
|
|
3
3
|
|
|
4
|
-
export { default as Command } from
|
|
5
|
-
export { default as CommandDialog } from
|
|
6
|
-
export { default as CommandEmpty } from
|
|
7
|
-
export { default as CommandGroup } from
|
|
8
|
-
export { default as CommandInput } from
|
|
9
|
-
export { default as CommandItem } from
|
|
10
|
-
export { default as CommandList } from
|
|
11
|
-
export { default as CommandSeparator } from
|
|
12
|
-
export { default as CommandShortcut } from
|
|
4
|
+
export { default as Command } from './Command.vue'
|
|
5
|
+
export { default as CommandDialog } from './CommandDialog.vue'
|
|
6
|
+
export { default as CommandEmpty } from './CommandEmpty.vue'
|
|
7
|
+
export { default as CommandGroup } from './CommandGroup.vue'
|
|
8
|
+
export { default as CommandInput } from './CommandInput.vue'
|
|
9
|
+
export { default as CommandItem } from './CommandItem.vue'
|
|
10
|
+
export { default as CommandList } from './CommandList.vue'
|
|
11
|
+
export { default as CommandSeparator } from './CommandSeparator.vue'
|
|
12
|
+
export { default as CommandShortcut } from './CommandShortcut.vue'
|
|
13
13
|
|
|
14
14
|
export const [useCommand, provideCommandContext] = createContext<{
|
|
15
15
|
allItems: Ref<Map<string, string>>
|
|
@@ -18,8 +18,8 @@ export const [useCommand, provideCommandContext] = createContext<{
|
|
|
18
18
|
search: string
|
|
19
19
|
filtered: { count: number, items: Map<string, number>, groups: Set<string> }
|
|
20
20
|
}
|
|
21
|
-
}>(
|
|
21
|
+
}>('Command')
|
|
22
22
|
|
|
23
23
|
export const [useCommandGroup, provideCommandGroupContext] = createContext<{
|
|
24
24
|
id?: string
|
|
25
|
-
}>(
|
|
25
|
+
}>('CommandGroup')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogRootEmits, DialogRootProps } from
|
|
3
|
-
import { DialogRoot, useForwardPropsEmits } from
|
|
2
|
+
import type { DialogRootEmits, DialogRootProps } from 'reka-ui'
|
|
3
|
+
import { DialogRoot, useForwardPropsEmits } from 'reka-ui'
|
|
4
4
|
|
|
5
5
|
const props = defineProps<DialogRootProps>()
|
|
6
6
|
const emits = defineEmits<DialogRootEmits>()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogCloseProps } from
|
|
3
|
-
import { DialogClose } from
|
|
2
|
+
import type { DialogCloseProps } from 'reka-ui'
|
|
3
|
+
import { DialogClose } from 'reka-ui'
|
|
4
4
|
|
|
5
5
|
const props = defineProps<DialogCloseProps>()
|
|
6
6
|
</script>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogContentEmits, DialogContentProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { X } from
|
|
2
|
+
import type { DialogContentEmits, DialogContentProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { X } from 'lucide-vue-next'
|
|
6
6
|
import {
|
|
7
7
|
DialogClose,
|
|
8
8
|
DialogContent,
|
|
9
9
|
DialogPortal,
|
|
10
10
|
useForwardPropsEmits,
|
|
11
|
-
} from
|
|
11
|
+
} from 'reka-ui'
|
|
12
12
|
import { cn } from '~/lib/utils'
|
|
13
|
-
import DialogOverlay from
|
|
13
|
+
import DialogOverlay from './DialogOverlay.vue'
|
|
14
14
|
|
|
15
15
|
defineOptions({
|
|
16
16
|
inheritAttrs: false,
|
|
17
17
|
})
|
|
18
18
|
|
|
19
|
-
const props = withDefaults(defineProps<DialogContentProps & { class?: HTMLAttributes[
|
|
19
|
+
const props = withDefaults(defineProps<DialogContentProps & { class?: HTMLAttributes['class'], showCloseButton?: boolean }>(), {
|
|
20
20
|
showCloseButton: true,
|
|
21
21
|
})
|
|
22
22
|
const emits = defineEmits<DialogContentEmits>()
|
|
23
23
|
|
|
24
|
-
const delegatedProps = reactiveOmit(props,
|
|
24
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
25
25
|
|
|
26
26
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
27
27
|
</script>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogDescriptionProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { DialogDescription, useForwardProps } from
|
|
2
|
+
import type { DialogDescriptionProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { DialogDescription, useForwardProps } from 'reka-ui'
|
|
6
6
|
import { cn } from '~/lib/utils'
|
|
7
7
|
|
|
8
|
-
const props = defineProps<DialogDescriptionProps & { class?: HTMLAttributes[
|
|
8
|
+
const props = defineProps<DialogDescriptionProps & { class?: HTMLAttributes['class'] }>()
|
|
9
9
|
|
|
10
|
-
const delegatedProps = reactiveOmit(props,
|
|
10
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
11
11
|
|
|
12
12
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
13
|
</script>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
3
|
import { cn } from '~/lib/utils'
|
|
4
4
|
|
|
5
|
-
const props = defineProps<{ class?: HTMLAttributes[
|
|
5
|
+
const props = defineProps<{ class?: HTMLAttributes['class'] }>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<template>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
3
|
import { cn } from '~/lib/utils'
|
|
4
4
|
|
|
5
5
|
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes[
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
7
|
}>()
|
|
8
8
|
</script>
|
|
9
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogOverlayProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { DialogOverlay } from
|
|
2
|
+
import type { DialogOverlayProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { DialogOverlay } from 'reka-ui'
|
|
6
6
|
import { cn } from '~/lib/utils'
|
|
7
7
|
|
|
8
|
-
const props = defineProps<DialogOverlayProps & { class?: HTMLAttributes[
|
|
8
|
+
const props = defineProps<DialogOverlayProps & { class?: HTMLAttributes['class'] }>()
|
|
9
9
|
|
|
10
|
-
const delegatedProps = reactiveOmit(props,
|
|
10
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<template>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogContentEmits, DialogContentProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { X } from
|
|
2
|
+
import type { DialogContentEmits, DialogContentProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { X } from 'lucide-vue-next'
|
|
6
6
|
import {
|
|
7
7
|
DialogClose,
|
|
8
8
|
DialogContent,
|
|
9
9
|
DialogOverlay,
|
|
10
10
|
DialogPortal,
|
|
11
11
|
useForwardPropsEmits,
|
|
12
|
-
} from
|
|
12
|
+
} from 'reka-ui'
|
|
13
13
|
import { cn } from '~/lib/utils'
|
|
14
14
|
|
|
15
15
|
defineOptions({
|
|
16
16
|
inheritAttrs: false,
|
|
17
17
|
})
|
|
18
18
|
|
|
19
|
-
const props = defineProps<DialogContentProps & { class?: HTMLAttributes[
|
|
19
|
+
const props = defineProps<DialogContentProps & { class?: HTMLAttributes['class'] }>()
|
|
20
20
|
const emits = defineEmits<DialogContentEmits>()
|
|
21
21
|
|
|
22
|
-
const delegatedProps = reactiveOmit(props,
|
|
22
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
23
23
|
|
|
24
24
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
25
25
|
</script>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogTitleProps } from
|
|
3
|
-
import type { HTMLAttributes } from
|
|
4
|
-
import { reactiveOmit } from
|
|
5
|
-
import { DialogTitle, useForwardProps } from
|
|
2
|
+
import type { DialogTitleProps } from 'reka-ui'
|
|
3
|
+
import type { HTMLAttributes } from 'vue'
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
5
|
+
import { DialogTitle, useForwardProps } from 'reka-ui'
|
|
6
6
|
import { cn } from '~/lib/utils'
|
|
7
7
|
|
|
8
|
-
const props = defineProps<DialogTitleProps & { class?: HTMLAttributes[
|
|
8
|
+
const props = defineProps<DialogTitleProps & { class?: HTMLAttributes['class'] }>()
|
|
9
9
|
|
|
10
|
-
const delegatedProps = reactiveOmit(props,
|
|
10
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
11
11
|
|
|
12
12
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
13
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogTriggerProps } from
|
|
3
|
-
import { DialogTrigger } from
|
|
2
|
+
import type { DialogTriggerProps } from 'reka-ui'
|
|
3
|
+
import { DialogTrigger } from 'reka-ui'
|
|
4
4
|
|
|
5
5
|
const props = defineProps<DialogTriggerProps>()
|
|
6
6
|
</script>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { default as Dialog } from
|
|
2
|
-
export { default as DialogClose } from
|
|
3
|
-
export { default as DialogContent } from
|
|
4
|
-
export { default as DialogDescription } from
|
|
5
|
-
export { default as DialogFooter } from
|
|
6
|
-
export { default as DialogHeader } from
|
|
7
|
-
export { default as DialogOverlay } from
|
|
8
|
-
export { default as DialogScrollContent } from
|
|
9
|
-
export { default as DialogTitle } from
|
|
10
|
-
export { default as DialogTrigger } from
|
|
1
|
+
export { default as Dialog } from './Dialog.vue'
|
|
2
|
+
export { default as DialogClose } from './DialogClose.vue'
|
|
3
|
+
export { default as DialogContent } from './DialogContent.vue'
|
|
4
|
+
export { default as DialogDescription } from './DialogDescription.vue'
|
|
5
|
+
export { default as DialogFooter } from './DialogFooter.vue'
|
|
6
|
+
export { default as DialogHeader } from './DialogHeader.vue'
|
|
7
|
+
export { default as DialogOverlay } from './DialogOverlay.vue'
|
|
8
|
+
export { default as DialogScrollContent } from './DialogScrollContent.vue'
|
|
9
|
+
export { default as DialogTitle } from './DialogTitle.vue'
|
|
10
|
+
export { default as DialogTrigger } from './DialogTrigger.vue'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
3
|
import { cn } from '~/lib/utils'
|
|
4
4
|
|
|
5
5
|
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes[
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
7
|
}>()
|
|
8
8
|
</script>
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
3
|
import { cn } from '~/lib/utils'
|
|
4
4
|
|
|
5
5
|
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes[
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
7
|
}>()
|
|
8
8
|
</script>
|
|
9
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Kbd } from
|
|
2
|
-
export { default as KbdGroup } from
|
|
1
|
+
export { default as Kbd } from './Kbd.vue'
|
|
2
|
+
export { default as KbdGroup } from './KbdGroup.vue'
|
package/nuxt.config.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createResolver, useNuxt } from '@nuxt/kit'
|
|
1
|
+
import { createResolver, extendViteConfig, useNuxt } from '@nuxt/kit'
|
|
2
2
|
import tailwindcss from '@tailwindcss/vite'
|
|
3
3
|
|
|
4
4
|
const { resolve } = createResolver(import.meta.url)
|
|
@@ -13,9 +13,20 @@ export default defineNuxtConfig({
|
|
|
13
13
|
'@nuxt/image',
|
|
14
14
|
'@nuxt/icon',
|
|
15
15
|
'nuxt-og-image',
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
'@nuxtjs/robots',
|
|
17
|
+
'nuxt-llms',
|
|
18
|
+
() => {
|
|
19
|
+
// Update @nuxt/content optimizeDeps options for layer compatibility
|
|
20
|
+
extendViteConfig((config) => {
|
|
21
|
+
config.optimizeDeps ||= {}
|
|
22
|
+
config.optimizeDeps.include ||= []
|
|
23
|
+
const includes = new Set(config.optimizeDeps.include)
|
|
24
|
+
includes.add('@nuxt/content > slugify')
|
|
25
|
+
config.optimizeDeps.include = Array.from(includes).map(id =>
|
|
26
|
+
id.startsWith('@nuxt/content > ') ? `docs-please > ${id}` : id,
|
|
27
|
+
)
|
|
28
|
+
})
|
|
29
|
+
},
|
|
19
30
|
],
|
|
20
31
|
devtools: { enabled: true },
|
|
21
32
|
css: [resolve('./app/assets/css/main.css')],
|
|
@@ -68,7 +79,10 @@ export default defineNuxtConfig({
|
|
|
68
79
|
},
|
|
69
80
|
},
|
|
70
81
|
},
|
|
71
|
-
|
|
82
|
+
experimental: {
|
|
83
|
+
asyncContext: true,
|
|
84
|
+
},
|
|
85
|
+
compatibilityDate: '2025-07-22',
|
|
72
86
|
nitro: {
|
|
73
87
|
prerender: {
|
|
74
88
|
crawlLinks: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withLeadingSlash } from 'ufo'
|
|
2
2
|
import { stringify } from 'minimark/stringify'
|
|
3
|
-
import { queryCollection } from '@nuxt/content/
|
|
3
|
+
import { queryCollection } from '@nuxt/content/server'
|
|
4
4
|
import type { Collections } from '@nuxt/content'
|
|
5
5
|
|
|
6
6
|
export default eventHandler(async (event) => {
|