UNPKG

@mitcsutt/kiln-forms

Version:

Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui

35 lines (34 loc) • 5.24 kB
/** * The default field registry: kind → bound field (`text` → `form.TextField` / `field.TextField`). */ export declare const defaultFields: { text: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormTextField/index.js").FormTextFieldProps>; textarea: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormTextareaField/index.js").FormTextareaFieldProps>; select: import("../../index.js").FieldDef<import("../../index.js").OptionContract<import("../../index.js").Primitive>, import("./FormSelectField/index.js").FormSelectFieldProps>; checkbox: import("../../index.js").FieldDef<import("../../index.js").ExactContract<boolean>, import("./FormCheckboxField/index.js").FormCheckboxFieldProps>; date: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormDateField/index.js").FormDateFieldProps>; time: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormTimeField/index.js").FormTimeFieldProps>; dateTime: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormDateTimeField/index.js").FormDateTimeFieldProps>; hidden: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormHiddenField/index.js").FormHiddenFieldProps>; password: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormPasswordField/index.js").FormPasswordFieldProps>; number: import("../../index.js").FieldDef<import("../../index.js").ExactContract<number>, import("./FormNumberField/index.js").FormNumberFieldProps>; amount: import("../../index.js").FieldDef<import("../../index.js").ExactContract<number>, import("./FormAmountField/index.js").FormAmountFieldProps>; oneTimeCode: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormOneTimeCodeField/index.js").FormOneTimeCodeFieldProps>; color: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormColorField/index.js").FormColorFieldProps>; switch: import("../../index.js").FieldDef<import("../../index.js").ExactContract<boolean>, import("./FormSwitchField/index.js").FormSwitchFieldProps>; dateRange: import("../../index.js").FieldDef<import("../../index.js").ExactContract<import("@mitcsutt/kiln-ui").DateRangeValue>, import("./FormDateRangeField/index.js").FormDateRangeFieldProps>; radio: import("../../index.js").FieldDef<import("../../index.js").OptionContract<import("../../index.js").Primitive>, import("./FormRadioField/index.js").FormRadioFieldProps>; segmented: import("../../index.js").FieldDef<import("../../index.js").OptionContract<import("./FormSegmentedField/index.js").SegmentedValue>, import("./FormSegmentedField/index.js").FormSegmentedFieldProps>; choiceCards: import("../../index.js").FieldDef<import("../../index.js").OptionContract<import("./FormChoiceCardsField/index.js").ChoiceCardValue>, import("./FormChoiceCardsField/index.js").FormChoiceCardsFieldProps>; multiChoiceCards: import("../../index.js").FieldDef<import("../../index.js").OptionsContract<import("./FormMultiChoiceCardsField/index.js").MultiChoiceCardValue>, import("./FormMultiChoiceCardsField/index.js").FormMultiChoiceCardsFieldProps>; checkboxGroup: import("../../index.js").FieldDef<import("../../index.js").OptionsContract<import("./FormCheckboxGroupField/index.js").CheckboxGroupValue>, import("./FormCheckboxGroupField/index.js").FormCheckboxGroupFieldProps>; chips: import("../../index.js").FieldDef<import("../../index.js").OptionsContract<import("./FormChipsField/index.js").ChipsValue>, import("./FormChipsField/index.js").FormChipsFieldProps>; slider: import("../../index.js").FieldDef<import("../../index.js").ExactContract<number>, import("./FormSliderField/index.js").FormSliderFieldProps>; range: import("../../index.js").FieldDef<import("../../index.js").ExactContract<[number, number]>, import("./FormRangeField/index.js").FormRangeFieldProps>; rating: import("../../index.js").FieldDef<import("../../index.js").ExactContract<number>, import("./FormRatingField/index.js").FormRatingFieldProps>; combobox: import("../../index.js").FieldDef<import("../../index.js").OptionContract<import("./FormComboboxField/index.js").ComboboxValue>, import("./FormComboboxField/index.js").FormComboboxFieldProps>; multiSelect: import("../../index.js").FieldDef<import("../../index.js").OptionsContract<import("./FormMultiSelectField/index.js").MultiSelectValue>, import("./FormMultiSelectField/index.js").FormMultiSelectFieldProps>; tags: import("../../index.js").FieldDef<import("../../index.js").ExactContract<readonly string[]>, import("./FormTagsField/index.js").FormTagsFieldProps>; file: import("../../index.js").FieldDef<import("../../index.js").ExactContract<readonly import("@mitcsutt/kiln-ui").FileValue[]>, import("./FormFileField/index.js").FormFileFieldProps>; json: import("../../index.js").FieldDef<import("../../index.js").ExactContract<string>, import("./FormJsonField/index.js").FormJsonFieldProps>; };