@gmcode/forms 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/en-Bw2ceTNi.mjs +24 -0
- package/dist/{en-CnkPOj-4.mjs.map → en-Bw2ceTNi.mjs.map} +1 -1
- package/dist/index.d.mts +38 -196
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +904 -1
- package/dist/index.mjs.map +1 -1
- package/dist/locales.d.mts.map +1 -1
- package/dist/locales.mjs +30 -1
- package/dist/locales.mjs.map +1 -1
- package/package.json +10 -14
- package/dist/en-CnkPOj-4.mjs +0 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/locales/en.ts
|
|
2
|
+
var en_default = { translation: {
|
|
3
|
+
array: "The field must be an array.",
|
|
4
|
+
date: "The field must be a valid date",
|
|
5
|
+
decrease: "Decrease",
|
|
6
|
+
email: "The field must be a valid email address.",
|
|
7
|
+
increase: "Increase",
|
|
8
|
+
integer: "The field must be an integer.",
|
|
9
|
+
maxChars: "The field must not be greater than {{max}} characters.",
|
|
10
|
+
maxValue: "The field must not be greater than {{max}}.",
|
|
11
|
+
minChars: "The field must be at least {{min}} characters.",
|
|
12
|
+
minValue: "The field must be at least {{min}}.",
|
|
13
|
+
missing: "The value is not supported.",
|
|
14
|
+
number: "The field must be a number.",
|
|
15
|
+
numeric: "The field must be a number.",
|
|
16
|
+
required: "The field is required.",
|
|
17
|
+
reset: "Reset",
|
|
18
|
+
string: "The field must be a string.",
|
|
19
|
+
submit: "Submit"
|
|
20
|
+
} };
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { en_default as t };
|
|
24
|
+
//# sourceMappingURL=en-Bw2ceTNi.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-
|
|
1
|
+
{"version":3,"file":"en-Bw2ceTNi.mjs","names":[],"sources":["../src/locales/en.ts"],"sourcesContent":["import type { Resource } from 'i18next'\n\nexport default {\n translation: {\n array: 'The field must be an array.',\n date: 'The field must be a valid date',\n decrease: 'Decrease',\n email: 'The field must be a valid email address.',\n increase: 'Increase',\n integer: 'The field must be an integer.',\n maxChars: 'The field must not be greater than {{max}} characters.',\n maxValue: 'The field must not be greater than {{max}}.',\n minChars: 'The field must be at least {{min}} characters.',\n minValue: 'The field must be at least {{min}}.',\n missing: 'The value is not supported.',\n number: 'The field must be a number.',\n numeric: 'The field must be a number.',\n required: 'The field is required.',\n reset: 'Reset',\n string: 'The field must be a string.',\n submit: 'Submit'\n }\n} satisfies Resource\n"],"mappings":";AAEA,iBAAe,EACb,aAAa;CACX,OAAO;CACP,MAAM;CACN,UAAU;CACV,OAAO;CACP,UAAU;CACV,SAAS;CACT,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,SAAS;CACT,QAAQ;CACR,SAAS;CACT,UAAU;CACV,OAAO;CACP,QAAQ;CACR,QAAQ;AACV,EACF"}
|
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,6 @@ import { DayPickerLocale, Matcher } from "react-day-picker";
|
|
|
8
8
|
import { Checkbox as Checkbox$1 } from "radix-ui";
|
|
9
9
|
import { CancelTokenCallback, FormDataErrors, GlobalEventCallback, RequestPayload } from "@inertiajs/core";
|
|
10
10
|
import { TextareaHeightChangeMeta } from "react-textarea-autosize";
|
|
11
|
-
|
|
12
11
|
//#region src/i18n.d.ts
|
|
13
12
|
declare const i18n: i18n$1;
|
|
14
13
|
//#endregion
|
|
@@ -33,17 +32,7 @@ interface ErrorData {
|
|
|
33
32
|
}
|
|
34
33
|
//#endregion
|
|
35
34
|
//#region src/components/calendar-field.d.ts
|
|
36
|
-
declare function CalendarField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
37
|
-
control,
|
|
38
|
-
dateToString,
|
|
39
|
-
disabled,
|
|
40
|
-
inputId,
|
|
41
|
-
inputName,
|
|
42
|
-
label,
|
|
43
|
-
locale,
|
|
44
|
-
stringToDate,
|
|
45
|
-
...props
|
|
46
|
-
}: ComponentProps<typeof Field> & {
|
|
35
|
+
declare function CalendarField<TFieldValues extends FieldValues$1 = FieldValues$1>({ control, dateToString, disabled, inputId, inputName, label, locale, stringToDate, ...props }: ComponentProps<typeof Field> & {
|
|
47
36
|
control: Control<TFieldValues>;
|
|
48
37
|
dateToString?: (date: Date) => string;
|
|
49
38
|
disabled?: Matcher | Matcher[];
|
|
@@ -55,19 +44,7 @@ declare function CalendarField<TFieldValues extends FieldValues$1 = FieldValues$
|
|
|
55
44
|
}): import("react").JSX.Element;
|
|
56
45
|
//#endregion
|
|
57
46
|
//#region src/components/checkbox-field.d.ts
|
|
58
|
-
declare function CheckboxField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
59
|
-
control,
|
|
60
|
-
disabled,
|
|
61
|
-
inputId,
|
|
62
|
-
inputName,
|
|
63
|
-
label,
|
|
64
|
-
onCheckedChange,
|
|
65
|
-
orientation,
|
|
66
|
-
readOnly,
|
|
67
|
-
uncheckedValue,
|
|
68
|
-
value,
|
|
69
|
-
...props
|
|
70
|
-
}: ComponentProps<typeof Field> & {
|
|
47
|
+
declare function CheckboxField<TFieldValues extends FieldValues$1 = FieldValues$1>({ control, disabled, inputId, inputName, label, onCheckedChange, orientation, readOnly, uncheckedValue, value, ...props }: ComponentProps<typeof Field> & {
|
|
71
48
|
control: Control<TFieldValues>;
|
|
72
49
|
disabled?: boolean;
|
|
73
50
|
inputId?: string;
|
|
@@ -80,18 +57,7 @@ declare function CheckboxField<TFieldValues extends FieldValues$1 = FieldValues$
|
|
|
80
57
|
}): import("react").JSX.Element;
|
|
81
58
|
//#endregion
|
|
82
59
|
//#region src/components/input-field.d.ts
|
|
83
|
-
declare function InputField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
84
|
-
autoComplete,
|
|
85
|
-
control,
|
|
86
|
-
disabled,
|
|
87
|
-
inputId,
|
|
88
|
-
inputName,
|
|
89
|
-
label,
|
|
90
|
-
placeholder,
|
|
91
|
-
readOnly,
|
|
92
|
-
type,
|
|
93
|
-
...props
|
|
94
|
-
}: ComponentProps<typeof Field> & {
|
|
60
|
+
declare function InputField<TFieldValues extends FieldValues$1 = FieldValues$1>({ autoComplete, control, disabled, inputId, inputName, label, placeholder, readOnly, type, ...props }: ComponentProps<typeof Field> & {
|
|
95
61
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
96
62
|
control: Control<TFieldValues>;
|
|
97
63
|
disabled?: boolean;
|
|
@@ -104,31 +70,15 @@ declare function InputField<TFieldValues extends FieldValues$1 = FieldValues$1>(
|
|
|
104
70
|
}): import("react").JSX.Element;
|
|
105
71
|
//#endregion
|
|
106
72
|
//#region src/components/email-field.d.ts
|
|
107
|
-
declare function EmailField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
108
|
-
autoComplete,
|
|
109
|
-
type,
|
|
110
|
-
...props
|
|
111
|
-
}: ComponentProps<typeof InputField<TFieldValues>>): import("react").JSX.Element;
|
|
73
|
+
declare function EmailField<TFieldValues extends FieldValues$1 = FieldValues$1>({ autoComplete, type, ...props }: ComponentProps<typeof InputField<TFieldValues>>): import("react").JSX.Element;
|
|
112
74
|
//#endregion
|
|
113
75
|
//#region src/components/error-monitor.d.ts
|
|
114
|
-
declare function ErrorMonitor({
|
|
115
|
-
error
|
|
116
|
-
}: {
|
|
76
|
+
declare function ErrorMonitor({ error }: {
|
|
117
77
|
error?: ErrorData;
|
|
118
78
|
}): import("react").JSX.Element | null;
|
|
119
79
|
//#endregion
|
|
120
80
|
//#region src/components/fancy-radio-field.d.ts
|
|
121
|
-
declare function FancyRadioField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
122
|
-
control,
|
|
123
|
-
defaultValue,
|
|
124
|
-
description,
|
|
125
|
-
disabled,
|
|
126
|
-
groupId,
|
|
127
|
-
inputName,
|
|
128
|
-
label,
|
|
129
|
-
options,
|
|
130
|
-
...props
|
|
131
|
-
}: ComponentProps<typeof FieldSet> & {
|
|
81
|
+
declare function FancyRadioField<TFieldValues extends FieldValues$1 = FieldValues$1>({ control, defaultValue, description, disabled, groupId, inputName, label, options, ...props }: ComponentProps<typeof FieldSet> & {
|
|
132
82
|
control: Control<TFieldValues>;
|
|
133
83
|
defaultValue: string;
|
|
134
84
|
description?: string;
|
|
@@ -142,51 +92,15 @@ declare function FancyRadioField<TFieldValues extends FieldValues$1 = FieldValue
|
|
|
142
92
|
}): import("react").JSX.Element;
|
|
143
93
|
//#endregion
|
|
144
94
|
//#region src/components/form.d.ts
|
|
145
|
-
type RenderFN<TValues extends FieldValues$1> = ({
|
|
146
|
-
errors,
|
|
147
|
-
form,
|
|
148
|
-
loading
|
|
149
|
-
}: {
|
|
95
|
+
type RenderFN<TValues extends FieldValues$1> = ({ errors, form, loading }: {
|
|
150
96
|
errors: FormDataErrors<object>;
|
|
151
97
|
form: UseFormReturn<TValues>;
|
|
152
98
|
loading: boolean;
|
|
153
99
|
}) => ReactNode;
|
|
154
|
-
declare function Form<TRuleset extends Ruleset$1, TSchema extends Schema<TRuleset>, TValues extends InferSchema$1<TSchema>>({
|
|
155
|
-
children,
|
|
156
|
-
className,
|
|
157
|
-
defaults,
|
|
158
|
-
rootError: displayRootError,
|
|
159
|
-
onBefore,
|
|
160
|
-
onBeforeUpdate,
|
|
161
|
-
onCancel,
|
|
162
|
-
onCancelToken,
|
|
163
|
-
onError,
|
|
164
|
-
onFinish,
|
|
165
|
-
onFlash,
|
|
166
|
-
onPrefetched,
|
|
167
|
-
onPrefetching,
|
|
168
|
-
onProgress,
|
|
169
|
-
onStart,
|
|
170
|
-
onSuccess,
|
|
171
|
-
preserveScroll,
|
|
172
|
-
resetOnSuccess,
|
|
173
|
-
route,
|
|
174
|
-
schema,
|
|
175
|
-
setDefaultsOnSuccess
|
|
176
|
-
}: {
|
|
100
|
+
declare function Form<TRuleset extends Ruleset$1, TSchema extends Schema<TRuleset>, TValues extends InferSchema$1<TSchema>>({ children, className, defaults, onBefore, onBeforeUpdate, onCancel, onCancelToken, onError, onFinish, onFlash, onPrefetched, onPrefetching, onProgress, onStart, onSuccess, preserveScroll, resetOnSuccess, rootError: displayRootError, route, schema, setDefaultsOnSuccess }: {
|
|
177
101
|
children: RenderFN<TValues>;
|
|
178
102
|
className?: string;
|
|
179
103
|
defaults?: Partial<DefaultValues<TValues>>;
|
|
180
|
-
/**
|
|
181
|
-
* How to display the root error from inertia.
|
|
182
|
-
*
|
|
183
|
-
* - `flash` - use the Toaster component
|
|
184
|
-
* - `monitor` - use the ErrorMonitor component
|
|
185
|
-
* - `none` - don't display the root error
|
|
186
|
-
*
|
|
187
|
-
* @defaultValue `flash`
|
|
188
|
-
*/
|
|
189
|
-
rootError?: 'flash' | 'monitor' | 'none';
|
|
190
104
|
onBefore?: GlobalEventCallback<'before', RequestPayload>;
|
|
191
105
|
onBeforeUpdate?: GlobalEventCallback<'beforeUpdate', RequestPayload>;
|
|
192
106
|
onCancel?: GlobalEventCallback<'cancel', RequestPayload>;
|
|
@@ -200,37 +114,37 @@ declare function Form<TRuleset extends Ruleset$1, TSchema extends Schema<TRulese
|
|
|
200
114
|
onStart?: GlobalEventCallback<'start', RequestPayload>;
|
|
201
115
|
onSuccess?: GlobalEventCallback<'success', RequestPayload>;
|
|
202
116
|
preserveScroll?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Reset input values to their defaults on success.
|
|
119
|
+
*
|
|
120
|
+
* @defaultValue `true`
|
|
121
|
+
*/
|
|
203
122
|
resetOnSuccess?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* How to display the root error from inertia.
|
|
125
|
+
*
|
|
126
|
+
* - `"flash"` - use the Toaster component
|
|
127
|
+
* - `"monitor"` - use the ErrorMonitor component
|
|
128
|
+
* - `"none"` - don't display the root error
|
|
129
|
+
*
|
|
130
|
+
* @defaultValue `"flash"`
|
|
131
|
+
*/
|
|
132
|
+
rootError?: 'flash' | 'monitor' | 'none';
|
|
204
133
|
route: RouteDefinition<Method>;
|
|
205
134
|
schema: Schema<TRuleset>;
|
|
135
|
+
/**
|
|
136
|
+
* Set the submitted values as default values on success.
|
|
137
|
+
*
|
|
138
|
+
* @defaultValue `false`
|
|
139
|
+
*/
|
|
206
140
|
setDefaultsOnSuccess?: boolean;
|
|
207
141
|
}): import("react").JSX.Element;
|
|
208
142
|
//#endregion
|
|
209
143
|
//#region src/components/hidden-field.d.ts
|
|
210
|
-
declare function HiddenField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
211
|
-
autoComplete,
|
|
212
|
-
className,
|
|
213
|
-
type,
|
|
214
|
-
...props
|
|
215
|
-
}: ComponentProps<typeof InputField<TFieldValues>>): import("react").JSX.Element;
|
|
144
|
+
declare function HiddenField<TFieldValues extends FieldValues$1 = FieldValues$1>({ autoComplete, className, type, ...props }: ComponentProps<typeof InputField<TFieldValues>>): import("react").JSX.Element;
|
|
216
145
|
//#endregion
|
|
217
146
|
//#region src/components/info-checkbox-field.d.ts
|
|
218
|
-
declare function InfoCheckboxField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
219
|
-
children,
|
|
220
|
-
className,
|
|
221
|
-
control,
|
|
222
|
-
disabled,
|
|
223
|
-
inputId,
|
|
224
|
-
inputName,
|
|
225
|
-
label,
|
|
226
|
-
onCheckedChange,
|
|
227
|
-
orientation,
|
|
228
|
-
readOnly,
|
|
229
|
-
text,
|
|
230
|
-
uncheckedValue,
|
|
231
|
-
value,
|
|
232
|
-
...props
|
|
233
|
-
}: ComponentProps<typeof Field> & {
|
|
147
|
+
declare function InfoCheckboxField<TFieldValues extends FieldValues$1 = FieldValues$1>({ children, className, control, disabled, inputId, inputName, label, onCheckedChange, orientation, readOnly, text, uncheckedValue, value, ...props }: ComponentProps<typeof Field> & {
|
|
234
148
|
control: Control<TFieldValues>;
|
|
235
149
|
disabled?: boolean;
|
|
236
150
|
inputId?: string;
|
|
@@ -244,19 +158,7 @@ declare function InfoCheckboxField<TFieldValues extends FieldValues$1 = FieldVal
|
|
|
244
158
|
}): import("react").JSX.Element;
|
|
245
159
|
//#endregion
|
|
246
160
|
//#region src/components/nullable-select-field.d.ts
|
|
247
|
-
declare function NullableSelectField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
248
|
-
autoComplete,
|
|
249
|
-
control,
|
|
250
|
-
description,
|
|
251
|
-
disabled,
|
|
252
|
-
inputId,
|
|
253
|
-
inputName,
|
|
254
|
-
label,
|
|
255
|
-
options,
|
|
256
|
-
placeholder,
|
|
257
|
-
setValue,
|
|
258
|
-
...props
|
|
259
|
-
}: ComponentProps<typeof Field> & {
|
|
161
|
+
declare function NullableSelectField<TFieldValues extends FieldValues$1 = FieldValues$1>({ autoComplete, control, description, disabled, inputId, inputName, label, options, placeholder, setValue, ...props }: ComponentProps<typeof Field> & {
|
|
260
162
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
261
163
|
control: Control<TFieldValues>;
|
|
262
164
|
description?: string;
|
|
@@ -271,19 +173,7 @@ declare function NullableSelectField<TFieldValues extends FieldValues$1 = FieldV
|
|
|
271
173
|
}): import("react").JSX.Element;
|
|
272
174
|
//#endregion
|
|
273
175
|
//#region src/components/numeric-field.d.ts
|
|
274
|
-
declare function NumericField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
275
|
-
autoComplete,
|
|
276
|
-
control,
|
|
277
|
-
disabled,
|
|
278
|
-
inputId,
|
|
279
|
-
inputMode,
|
|
280
|
-
inputName,
|
|
281
|
-
label,
|
|
282
|
-
placeholder,
|
|
283
|
-
type,
|
|
284
|
-
ui,
|
|
285
|
-
...props
|
|
286
|
-
}: ComponentProps<typeof Field> & {
|
|
176
|
+
declare function NumericField<TFieldValues extends FieldValues$1 = FieldValues$1>({ autoComplete, control, disabled, inputId, inputMode, inputName, label, placeholder, type, ui, ...props }: ComponentProps<typeof Field> & {
|
|
287
177
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
288
178
|
control: Control<TFieldValues>;
|
|
289
179
|
disabled?: boolean;
|
|
@@ -302,25 +192,10 @@ declare function NumericField<TFieldValues extends FieldValues$1 = FieldValues$1
|
|
|
302
192
|
}): import("react").JSX.Element;
|
|
303
193
|
//#endregion
|
|
304
194
|
//#region src/components/password-field.d.ts
|
|
305
|
-
declare function PasswordField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
306
|
-
autoComplete,
|
|
307
|
-
type,
|
|
308
|
-
...props
|
|
309
|
-
}: ComponentProps<typeof InputField<TFieldValues>>): import("react").JSX.Element;
|
|
195
|
+
declare function PasswordField<TFieldValues extends FieldValues$1 = FieldValues$1>({ autoComplete, type, ...props }: ComponentProps<typeof InputField<TFieldValues>>): import("react").JSX.Element;
|
|
310
196
|
//#endregion
|
|
311
197
|
//#region src/components/select-field.d.ts
|
|
312
|
-
declare function SelectField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
313
|
-
autoComplete,
|
|
314
|
-
control,
|
|
315
|
-
description,
|
|
316
|
-
disabled,
|
|
317
|
-
inputId,
|
|
318
|
-
inputName,
|
|
319
|
-
label,
|
|
320
|
-
options,
|
|
321
|
-
placeholder,
|
|
322
|
-
...props
|
|
323
|
-
}: ComponentProps<typeof Field> & {
|
|
198
|
+
declare function SelectField<TFieldValues extends FieldValues$1 = FieldValues$1>({ autoComplete, control, description, disabled, inputId, inputName, label, options, placeholder, ...props }: ComponentProps<typeof Field> & {
|
|
324
199
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
325
200
|
control: Control<TFieldValues>;
|
|
326
201
|
description?: string;
|
|
@@ -334,30 +209,13 @@ declare function SelectField<TFieldValues extends FieldValues$1 = FieldValues$1>
|
|
|
334
209
|
}): import("react").JSX.Element;
|
|
335
210
|
//#endregion
|
|
336
211
|
//#region src/components/submit.d.ts
|
|
337
|
-
declare function Submit({
|
|
338
|
-
label,
|
|
339
|
-
loading,
|
|
340
|
-
type,
|
|
341
|
-
...props
|
|
342
|
-
}: ComponentProps<typeof Button> & {
|
|
212
|
+
declare function Submit({ label, loading, type, ...props }: ComponentProps<typeof Button> & {
|
|
343
213
|
label?: string;
|
|
344
214
|
loading?: boolean;
|
|
345
215
|
}): import("react").JSX.Element;
|
|
346
216
|
//#endregion
|
|
347
217
|
//#region src/components/switch-field.d.ts
|
|
348
|
-
declare function SwitchField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
349
|
-
control,
|
|
350
|
-
disabled,
|
|
351
|
-
inputId,
|
|
352
|
-
inputName,
|
|
353
|
-
label,
|
|
354
|
-
onCheckedChange,
|
|
355
|
-
orientation,
|
|
356
|
-
readOnly,
|
|
357
|
-
uncheckedValue,
|
|
358
|
-
value,
|
|
359
|
-
...props
|
|
360
|
-
}: ComponentProps<typeof Field> & {
|
|
218
|
+
declare function SwitchField<TFieldValues extends FieldValues$1 = FieldValues$1>({ control, disabled, inputId, inputName, label, onCheckedChange, orientation, readOnly, uncheckedValue, value, ...props }: ComponentProps<typeof Field> & {
|
|
361
219
|
control: Control<TFieldValues>;
|
|
362
220
|
disabled?: boolean;
|
|
363
221
|
inputId?: string;
|
|
@@ -370,26 +228,10 @@ declare function SwitchField<TFieldValues extends FieldValues$1 = FieldValues$1>
|
|
|
370
228
|
}): import("react").JSX.Element;
|
|
371
229
|
//#endregion
|
|
372
230
|
//#region src/components/text-field.d.ts
|
|
373
|
-
declare function TextField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
374
|
-
autoComplete,
|
|
375
|
-
type,
|
|
376
|
-
...props
|
|
377
|
-
}: ComponentProps<typeof InputField<TFieldValues>>): import("react").JSX.Element;
|
|
231
|
+
declare function TextField<TFieldValues extends FieldValues$1 = FieldValues$1>({ autoComplete, type, ...props }: ComponentProps<typeof InputField<TFieldValues>>): import("react").JSX.Element;
|
|
378
232
|
//#endregion
|
|
379
233
|
//#region src/components/textarea-field.d.ts
|
|
380
|
-
declare function TextareaField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
381
|
-
cacheMeasurements,
|
|
382
|
-
control,
|
|
383
|
-
inputId,
|
|
384
|
-
inputName,
|
|
385
|
-
label,
|
|
386
|
-
maxRows,
|
|
387
|
-
minRows,
|
|
388
|
-
onHeightChange,
|
|
389
|
-
placeholder,
|
|
390
|
-
resize,
|
|
391
|
-
...props
|
|
392
|
-
}: ComponentProps<typeof Field> & {
|
|
234
|
+
declare function TextareaField<TFieldValues extends FieldValues$1 = FieldValues$1>({ cacheMeasurements, control, inputId, inputName, label, maxRows, minRows, onHeightChange, placeholder, resize, ...props }: ComponentProps<typeof Field> & {
|
|
393
235
|
cacheMeasurements?: boolean;
|
|
394
236
|
control: Control<TFieldValues>;
|
|
395
237
|
inputId?: string;
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/i18n.ts","../src/types/index.d.ts","../src/components/calendar-field.tsx","../src/components/checkbox-field.tsx","../src/components/input-field.tsx","../src/components/email-field.tsx","../src/components/error-monitor.tsx","../src/components/fancy-radio-field.tsx","../src/components/form.tsx","../src/components/hidden-field.tsx","../src/components/info-checkbox-field.tsx","../src/components/nullable-select-field.tsx","../src/components/numeric-field.tsx","../src/components/password-field.tsx","../src/components/select-field.tsx","../src/components/submit.tsx","../src/components/switch-field.tsx","../src/components/text-field.tsx","../src/components/textarea-field.tsx"],"mappings":";;;;;;;;;;;cAGM,MAAM;;;KCAA;KAEA,gBAAgB,gBAAgB,SAAS;EACnD;KACG,gBAAgB;EAAa,SAAS;;EAAc,QAAQ;;UAEhD;EACf;EACA;EACA,OAAO;EACP;;UAGe;EACf;EACA,SAAS;;;;iBCPK,cAAc,qBAAqB,gBAAc,iBAC/D,SACA,cACA,UACA,SACA,WACA,OACA,QACA,iBACG,SACF,sBAAsB;EACvB,SAAS,QAAQ;EACjB,gBAAgB,MAAM;EACtB,WAAW,UAAU;EACrB;EACA,WAAW,UAAU;EACrB;EACA,SAAS,QAAQ;EACjB,gBAAgB,+BAA+B;oBAChD,IAAA;;;iB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A;EACA;EACA,WAAW,UAAU;EACrB;EACA,SAAS;EACT;EACA,OAAO;oBACR,IAAA;;;iBCtCe,SACd,OACA,SACA,SACG,SACF,sBAAsB;EACvB;EACA;oBACD,IAAA;;;iBCLe,YAAY,qBAAqB,gBAAc,iBAC7D,SACA,UACA,SACA,WACA,OACA,iBACA,aACA,UACA,gBACA,UACG,SACF,sBAAsB;EACvB,SAAS,QAAQ;EACjB;EACA;EACA,WAAW,UAAU;EACrB;EACA,mBACE,SAAS,WAAkB,cAC3B,OAAO,sBAAsB,cAAc,UAAU;EAEvD;EACA;EACA;oBACD,IAAA;;;iBC5Be,UAAU,qBAAqB,gBAAc,iBAC3D,cACA,SACG,SACF,sBAAsB,WAAW,iCAAc,IAAA;;;iBCDlC,cAAc,qBAAqB,gBAAc,iBAC/D,mBACA,SACA,SACA,WACA,OACA,SACA,SACA,gBACA,aACA,WACG,SACF,sBAAsB;EACvB;EACA,SAAS,QAAQ;EACjB;EACA,WAAW,UAAU;EACrB;EACA;EACA;EACA,kBAAkB,gBAAgB,MAAM;EACxC;EACA;oBACD,IAAA"}
|