remix-forms
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -188,2 +188,3 @@ import * as React$1 from 'react'; | ||
options?: Options<z.infer<Schema>>; | ||
emptyOptionLabel?: string; | ||
hiddenFields?: Array<keyof z.infer<Schema>>; | ||
@@ -204,4 +205,4 @@ multiline?: Array<keyof z.infer<Schema>>; | ||
useActionData: () => unknown; | ||
}): <Schema extends FormSchema<SomeZodObject | z.ZodEffects<any, any, any>>>({ component, fetcher, mode, reValidateMode, renderField, fieldComponent, globalErrorsComponent: Errors, errorComponent: Error, fieldErrorsComponent, labelComponent, inputComponent, multilineComponent, selectComponent, checkboxComponent, radioComponent, checkboxWrapperComponent, radioGroupComponent, radioWrapperComponent, buttonComponent: Button, buttonLabel: rawButtonLabel, pendingButtonLabel, method, schema, beforeChildren, onTransition, parseActionData, children: childrenFn, labels, placeholders, options, hiddenFields, multiline, radio, autoFocus: autoFocusProp, errors: errorsProp, values: valuesProp, ...props }: FormProps<Schema>) => JSX.Element; | ||
}): <Schema extends FormSchema<SomeZodObject | z.ZodEffects<any, any, any>>>({ component, fetcher, mode, reValidateMode, renderField, fieldComponent, globalErrorsComponent: Errors, errorComponent: Error, fieldErrorsComponent, labelComponent, inputComponent, multilineComponent, selectComponent, checkboxComponent, radioComponent, checkboxWrapperComponent, radioGroupComponent, radioWrapperComponent, buttonComponent: Button, buttonLabel: rawButtonLabel, pendingButtonLabel, method, schema, beforeChildren, onTransition, parseActionData, children: childrenFn, labels, placeholders, options, emptyOptionLabel, hiddenFields, multiline, radio, autoFocus: autoFocusProp, errors: errorsProp, values: valuesProp, ...props }: FormProps<Schema>) => JSX.Element; | ||
export { Callback, FormActionProps, FormProps, FormSchema, PerformMutation, RenderField, RenderFieldProps, createForm, createFormAction, performMutation, useField }; |
@@ -663,2 +663,3 @@ "use strict"; | ||
options, | ||
emptyOptionLabel = "", | ||
hiddenFields, | ||
@@ -779,3 +780,6 @@ multiline, | ||
}))); | ||
const fieldOptionsPlusEmpty = () => fieldOptions && [{ name: "", value: "" }, ...fieldOptions != null ? fieldOptions : []]; | ||
const fieldOptionsPlusEmpty = () => fieldOptions && [ | ||
{ name: emptyOptionLabel, value: "" }, | ||
...fieldOptions != null ? fieldOptions : [] | ||
]; | ||
return { | ||
@@ -782,0 +786,0 @@ shape, |
{ | ||
"name": "remix-forms", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "The full-stack form library for Remix and React Router", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
81221
2259