@uxf/form
Advanced tools
Comparing version 11.11.4 to 11.12.0
@@ -10,2 +10,3 @@ import { AvatarFileInputProps as UIAvatarFileInputProps } from "@uxf/ui/avatar-file-input"; | ||
}; | ||
export type AvatarFileInputValue = FileResponse | null; | ||
export declare function AvatarFileInput<FormData extends FieldValues>(props: AvatarFileInputProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace AvatarFileInput { |
@@ -11,2 +11,3 @@ import { CheckboxButtonProps as UICheckboxButtonProps } from "@uxf/ui/checkbox-button"; | ||
}; | ||
export type CheckboxButtonValue = boolean | undefined; | ||
export declare function CheckboxButton<FormData extends Record<string, any>>(props: ComboProps<FormData>): React.JSX.Element; | ||
@@ -13,0 +14,0 @@ export declare namespace CheckboxButton { |
@@ -11,2 +11,3 @@ import { CheckboxInputProps as UICheckboxInputProps } from "@uxf/ui/checkbox-input"; | ||
}; | ||
export type CheckboxInputValue = boolean | undefined; | ||
export declare function CheckboxInput<FormData extends Record<string, any>>(props: ComboProps<FormData>): React.JSX.Element; | ||
@@ -13,0 +14,0 @@ export declare namespace CheckboxInput { |
@@ -10,2 +10,3 @@ import { ColorRadioGroupOptionValue, ColorRadioGroupProps as UIColorRadioGroupProps } from "@uxf/ui/color-radio-group"; | ||
}; | ||
export type ColorRadioGroupValue = `#${string}` | null; | ||
export declare function ColorRadioGroup<FormData extends Record<string, any>>(props: ColorRadioGroupProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace ColorRadioGroup { |
@@ -1,6 +0,6 @@ | ||
import { ComboboxValue, ComboboxProps as UIComboboxProps } from "@uxf/ui/combobox"; | ||
import { ComboboxValueId, ComboboxProps as UIComboboxProps, ComboboxValue as UIComboboxValue } from "@uxf/ui/combobox"; | ||
import { FormControlProps } from "@uxf/ui/types"; | ||
import React from "react"; | ||
import { FieldValues, UseControllerProps } from "react-hook-form"; | ||
type OnChangeHandler = FormControlProps<ComboboxValue | null>["onChange"]; | ||
type OnChangeHandler = FormControlProps<UIComboboxValue | null>["onChange"]; | ||
export type ComboProps<FormData extends FieldValues> = UseControllerProps<FormData> & Omit<UIComboboxProps, "isInvalid" | "name" | "onChange" | "value"> & { | ||
@@ -10,2 +10,3 @@ onChange?: OnChangeHandler; | ||
}; | ||
export type ComboboxValue<Id extends ComboboxValueId> = UIComboboxValue<Id>; | ||
export declare function Combobox<FormData extends Record<string, any>>(props: ComboProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace Combobox { |
@@ -10,2 +10,3 @@ import { DatePickerInputProps as UIDatePickerInputProps } from "@uxf/ui/date-picker-input"; | ||
}; | ||
export type DatePickerInputValue = string | null; | ||
export declare function DatePickerInput<FormData extends FieldValues>(props: DatePickerInputProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace DatePickerInput { |
@@ -10,2 +10,3 @@ import { DatetimePickerInputProps as UIDatetimePickerInputProps } from "@uxf/ui/datetime-picker-input"; | ||
}; | ||
export type DatetimePickerInputValue = string | null; | ||
export declare function DatetimePickerInput<FormData extends FieldValues>(props: DatetimePickerInputProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace DatetimePickerInput { |
@@ -0,1 +1,2 @@ | ||
import { DropzoneFile } from "@uxf/ui/dropzone/types"; | ||
import { DropzoneInput } from "./dropzone-input"; | ||
@@ -5,4 +6,5 @@ import { DropzoneList } from "./dropzone-list"; | ||
export type { DropzoneListProps } from "./dropzone-list"; | ||
export type DropzoneValue = DropzoneFile[] | undefined; | ||
export declare const Dropzone: typeof DropzoneInput & { | ||
List: typeof DropzoneList; | ||
}; |
@@ -10,2 +10,3 @@ import { FileInputProps as UIFileInputProps } from "@uxf/ui/file-input"; | ||
}; | ||
export type FileInputValue = FileResponse | null; | ||
export declare function FileInput<FormData extends FieldValues>(props: FileInputProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace FileInput { |
@@ -14,2 +14,3 @@ import { TextInputProps as UITextInputProps } from "@uxf/ui/text-input"; | ||
}; | ||
export type GpsInputValue = Gps; | ||
export declare function GpsInput<FormData extends Record<string, Gps | null | undefined>>(props: GpsInputProps<FormData>): React.JSX.Element; | ||
@@ -16,0 +17,0 @@ export declare namespace GpsInput { |
@@ -10,2 +10,3 @@ import { MultiComboboxOption, MultiComboboxProps as UIMultiComboboxProps } from "@uxf/ui/multi-combobox"; | ||
}; | ||
export type MultiComboboxValue<Id> = MultiComboboxOption<Id>[] | null; | ||
export declare function MultiCombobox<FormData extends Record<string, any>>(props: ComboProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace MultiCombobox { |
@@ -10,2 +10,3 @@ import { MultiSelectOption, MultiSelectProps as UIMultiSelectProps } from "@uxf/ui/multi-select"; | ||
}; | ||
export type MultiSelectValue<Id> = MultiSelectOption<Id>[] | null; | ||
export declare function MultiSelect<FormData extends Record<string, any>>(props: ComboProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace MultiSelect { |
@@ -10,2 +10,3 @@ import { TextInputProps as UITextInputProps } from "@uxf/ui/text-input"; | ||
}; | ||
export type NumberInputValue = number | null; | ||
export declare function NumberInput<FormData extends FieldValues>(props: NumberInputProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace NumberInput { |
{ | ||
"name": "@uxf/form", | ||
"version": "11.11.4", | ||
"version": "11.12.0", | ||
"description": "", | ||
@@ -15,3 +15,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@uxf/ui": "11.11.3", | ||
"@uxf/ui": "11.12.0", | ||
"coordinate-parser": "1.0.7", | ||
@@ -18,0 +18,0 @@ "dayjs": "1.11.10", |
@@ -10,2 +10,3 @@ import { RadioGroupOptionValueId, RadioGroupProps as UIRadioGroupProps } from "@uxf/ui/radio-group"; | ||
}; | ||
export type RadioGroupValue<T extends RadioGroupOptionValueId> = T | null; | ||
export declare function RadioGroup<FormData extends Record<string, any>>(props: RadioGroupProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace RadioGroup { |
@@ -1,6 +0,7 @@ | ||
import { SelectValue, SelectProps as UISelectProps } from "@uxf/ui/select"; | ||
import { SelectBaseValueId } from "@uxf/ui/_select-base"; | ||
import { SelectProps as UISelectProps, SelectValue as UISelectValue } from "@uxf/ui/select"; | ||
import { FormControlProps } from "@uxf/ui/types"; | ||
import React from "react"; | ||
import { FieldValues, UseControllerProps } from "react-hook-form"; | ||
type OnChangeHandler = FormControlProps<SelectValue | null>["onChange"]; | ||
type OnChangeHandler = FormControlProps<UISelectValue | null>["onChange"]; | ||
export type SelectProps<FormData extends FieldValues> = UseControllerProps<FormData> & Omit<UISelectProps, "isInvalid" | "name" | "onChange" | "value"> & { | ||
@@ -10,2 +11,3 @@ onChange?: OnChangeHandler; | ||
}; | ||
export type SelectValue<T extends SelectBaseValueId> = T | null; | ||
export declare function Select<FormData extends Record<string, any>>(props: SelectProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +14,0 @@ export declare namespace Select { |
@@ -22,2 +22,3 @@ import { TextInputProps as UITextInputProps } from "@uxf/ui/text-input"; | ||
}); | ||
export type TextInputValue = string | null; | ||
export declare function TextInput<FormData extends FieldValues>(props: TextInputProps<FormData>): React.JSX.Element; | ||
@@ -24,0 +25,0 @@ export declare namespace TextInput { |
@@ -10,2 +10,3 @@ import { TextareaProps as UITextareaProps } from "@uxf/ui/textarea"; | ||
}; | ||
export type TextareaValue = string | null; | ||
export declare function Textarea<FormData extends Record<string, any>>(props: TextareaProps<FormData>): React.JSX.Element; | ||
@@ -12,0 +13,0 @@ export declare namespace Textarea { |
@@ -9,2 +9,3 @@ import { DatePickerInputProps as UIDatePickerInputProps } from "@uxf/ui/date-picker-input"; | ||
}; | ||
export type TimePickerInputValue = string | null; | ||
export declare function TimePickerInput<FormData extends FieldValues>(props: TimePickerInputProps<FormData>): React.JSX.Element; | ||
@@ -11,0 +12,0 @@ export declare namespace TimePickerInput { |
@@ -11,2 +11,3 @@ import { ToggleProps as UIToggleProps } from "@uxf/ui/toggle"; | ||
}; | ||
export type ToggleValue = boolean | undefined; | ||
export declare function Toggle<FormData extends Record<string, any>>(props: ComboProps<FormData>): React.JSX.Element; | ||
@@ -13,0 +14,0 @@ export declare namespace Toggle { |
177235
3260
+ Added@uxf/ui@11.12.0(transitive)
- Removed@uxf/ui@11.11.3(transitive)
Updated@uxf/ui@11.12.0