feat: establish shared field and form foundation

This commit is contained in:
maoyingjie
2026-10-21 22:33:19 +08:00
parent 4f43789f60
commit 7f11afeaa6
35 changed files with 1677 additions and 165 deletions
+25 -1
View File
@@ -87,7 +87,7 @@ export type {
export { tv, cn, type VariantProps } from "@heroui-vue/styles";
export { default as SwitchGroup } from "./components/switch/SwitchGroup.vue";
export { default as FieldError } from "./components/switch/FieldError.vue";
export { default as FieldError } from "./components/field/FieldError.vue";
export { default as Surface } from "./components/surface/Surface.vue";
export {
@@ -157,3 +157,27 @@ export {
type AlertSlots,
type AlertStatus,
} from "./components/alert/context";
export { default as TextField } from "./components/textfield/TextField.vue";
export { default as Form } from "./components/form/Form.vue";
export {
fieldContextKey,
formContextKey,
mergeIds,
type FieldContext,
type FormContext,
type ValidationBehavior,
type ValidationErrors,
type ValidateResult,
} from "./components/field/context";
export {
textFieldContextKey,
type TextFieldContext,
} from "./components/textfield/context";
export { useFieldPart } from "./components/field/useFieldPart";
export type {
TextFieldProps,
FormProps,
DescriptionProps,
FieldErrorProps,
} from "./types";