chore: ⬆️ Upgrade to the latest Shadcn-Vue version
Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 2m30s
Deploy to GitHub Pages / build (push) Failing after 6s
Deploy to GitHub Pages / deploy (push) Has been skipped
Docker / build (push) Failing after 5s
Mirror to Codeberg / Mirror (push) Failing after 0s

This commit is contained in:
Jesse Wierzbinski 2025-03-28 01:16:24 +01:00
parent 7649ecfb80
commit 092bce0f24
No known key found for this signature in database
169 changed files with 1860 additions and 1088 deletions

View file

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { Slot } from "radix-vue";
import { Slot } from "reka-ui";
import { useFormField } from "./useFormField";
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();

View file

@ -1,26 +1,19 @@
<script lang="ts" setup>
import { cn } from "@/lib/utils";
import { Primitive, type PrimitiveProps, useId } from "radix-vue";
import { useId } from "reka-ui";
import { type HTMLAttributes, provide } from "vue";
import { FORM_ITEM_INJECTION_KEY } from "./injectionKeys";
const props = withDefaults(
defineProps<
PrimitiveProps & {
class?: HTMLAttributes["class"];
}
>(),
{
as: "div",
},
);
const props = defineProps<{
class?: HTMLAttributes["class"];
}>();
const id = useId();
provide(FORM_ITEM_INJECTION_KEY, id);
</script>
<template>
<Primitive :as="props.as" :as-child="props.asChild" :class="cn('space-y-2', props.class)">
<slot />
</Primitive>
<div :class="cn('space-y-2', props.class)">
<slot />
</div>
</template>

View file

@ -1,8 +1,8 @@
<script lang="ts" setup>
import { Label } from "@/components/ui/label";
import { cn } from "@/lib/utils";
import type { LabelProps } from "radix-vue";
import type { LabelProps } from "reka-ui";
import type { HTMLAttributes } from "vue";
import { Label } from "~/components/ui/label";
import { useFormField } from "./useFormField";
const props = defineProps<LabelProps & { class?: HTMLAttributes["class"] }>();

View file

@ -4,4 +4,4 @@ export { default as FormItem } from "./FormItem.vue";
export { default as FormLabel } from "./FormLabel.vue";
export { default as FormMessage } from "./FormMessage.vue";
export { FORM_ITEM_INJECTION_KEY } from "./injectionKeys";
export { Field as FormField, Form } from "vee-validate";
export { Form, Field as FormField } from "vee-validate";