@gmcode/forms 0.0.8 → 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 +28 -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 +7 -12
- 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>;
|
|
@@ -206,6 +120,16 @@ declare function Form<TRuleset extends Ruleset$1, TSchema extends Schema<TRulese
|
|
|
206
120
|
* @defaultValue `true`
|
|
207
121
|
*/
|
|
208
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';
|
|
209
133
|
route: RouteDefinition<Method>;
|
|
210
134
|
schema: Schema<TRuleset>;
|
|
211
135
|
/**
|
|
@@ -217,30 +141,10 @@ declare function Form<TRuleset extends Ruleset$1, TSchema extends Schema<TRulese
|
|
|
217
141
|
}): import("react").JSX.Element;
|
|
218
142
|
//#endregion
|
|
219
143
|
//#region src/components/hidden-field.d.ts
|
|
220
|
-
declare function HiddenField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
221
|
-
autoComplete,
|
|
222
|
-
className,
|
|
223
|
-
type,
|
|
224
|
-
...props
|
|
225
|
-
}: 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;
|
|
226
145
|
//#endregion
|
|
227
146
|
//#region src/components/info-checkbox-field.d.ts
|
|
228
|
-
declare function InfoCheckboxField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
229
|
-
children,
|
|
230
|
-
className,
|
|
231
|
-
control,
|
|
232
|
-
disabled,
|
|
233
|
-
inputId,
|
|
234
|
-
inputName,
|
|
235
|
-
label,
|
|
236
|
-
onCheckedChange,
|
|
237
|
-
orientation,
|
|
238
|
-
readOnly,
|
|
239
|
-
text,
|
|
240
|
-
uncheckedValue,
|
|
241
|
-
value,
|
|
242
|
-
...props
|
|
243
|
-
}: 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> & {
|
|
244
148
|
control: Control<TFieldValues>;
|
|
245
149
|
disabled?: boolean;
|
|
246
150
|
inputId?: string;
|
|
@@ -254,19 +158,7 @@ declare function InfoCheckboxField<TFieldValues extends FieldValues$1 = FieldVal
|
|
|
254
158
|
}): import("react").JSX.Element;
|
|
255
159
|
//#endregion
|
|
256
160
|
//#region src/components/nullable-select-field.d.ts
|
|
257
|
-
declare function NullableSelectField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
258
|
-
autoComplete,
|
|
259
|
-
control,
|
|
260
|
-
description,
|
|
261
|
-
disabled,
|
|
262
|
-
inputId,
|
|
263
|
-
inputName,
|
|
264
|
-
label,
|
|
265
|
-
options,
|
|
266
|
-
placeholder,
|
|
267
|
-
setValue,
|
|
268
|
-
...props
|
|
269
|
-
}: 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> & {
|
|
270
162
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
271
163
|
control: Control<TFieldValues>;
|
|
272
164
|
description?: string;
|
|
@@ -281,19 +173,7 @@ declare function NullableSelectField<TFieldValues extends FieldValues$1 = FieldV
|
|
|
281
173
|
}): import("react").JSX.Element;
|
|
282
174
|
//#endregion
|
|
283
175
|
//#region src/components/numeric-field.d.ts
|
|
284
|
-
declare function NumericField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
285
|
-
autoComplete,
|
|
286
|
-
control,
|
|
287
|
-
disabled,
|
|
288
|
-
inputId,
|
|
289
|
-
inputMode,
|
|
290
|
-
inputName,
|
|
291
|
-
label,
|
|
292
|
-
placeholder,
|
|
293
|
-
type,
|
|
294
|
-
ui,
|
|
295
|
-
...props
|
|
296
|
-
}: 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> & {
|
|
297
177
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
298
178
|
control: Control<TFieldValues>;
|
|
299
179
|
disabled?: boolean;
|
|
@@ -312,25 +192,10 @@ declare function NumericField<TFieldValues extends FieldValues$1 = FieldValues$1
|
|
|
312
192
|
}): import("react").JSX.Element;
|
|
313
193
|
//#endregion
|
|
314
194
|
//#region src/components/password-field.d.ts
|
|
315
|
-
declare function PasswordField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
316
|
-
autoComplete,
|
|
317
|
-
type,
|
|
318
|
-
...props
|
|
319
|
-
}: 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;
|
|
320
196
|
//#endregion
|
|
321
197
|
//#region src/components/select-field.d.ts
|
|
322
|
-
declare function SelectField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
323
|
-
autoComplete,
|
|
324
|
-
control,
|
|
325
|
-
description,
|
|
326
|
-
disabled,
|
|
327
|
-
inputId,
|
|
328
|
-
inputName,
|
|
329
|
-
label,
|
|
330
|
-
options,
|
|
331
|
-
placeholder,
|
|
332
|
-
...props
|
|
333
|
-
}: 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> & {
|
|
334
199
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
335
200
|
control: Control<TFieldValues>;
|
|
336
201
|
description?: string;
|
|
@@ -344,30 +209,13 @@ declare function SelectField<TFieldValues extends FieldValues$1 = FieldValues$1>
|
|
|
344
209
|
}): import("react").JSX.Element;
|
|
345
210
|
//#endregion
|
|
346
211
|
//#region src/components/submit.d.ts
|
|
347
|
-
declare function Submit({
|
|
348
|
-
label,
|
|
349
|
-
loading,
|
|
350
|
-
type,
|
|
351
|
-
...props
|
|
352
|
-
}: ComponentProps<typeof Button> & {
|
|
212
|
+
declare function Submit({ label, loading, type, ...props }: ComponentProps<typeof Button> & {
|
|
353
213
|
label?: string;
|
|
354
214
|
loading?: boolean;
|
|
355
215
|
}): import("react").JSX.Element;
|
|
356
216
|
//#endregion
|
|
357
217
|
//#region src/components/switch-field.d.ts
|
|
358
|
-
declare function SwitchField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
359
|
-
control,
|
|
360
|
-
disabled,
|
|
361
|
-
inputId,
|
|
362
|
-
inputName,
|
|
363
|
-
label,
|
|
364
|
-
onCheckedChange,
|
|
365
|
-
orientation,
|
|
366
|
-
readOnly,
|
|
367
|
-
uncheckedValue,
|
|
368
|
-
value,
|
|
369
|
-
...props
|
|
370
|
-
}: 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> & {
|
|
371
219
|
control: Control<TFieldValues>;
|
|
372
220
|
disabled?: boolean;
|
|
373
221
|
inputId?: string;
|
|
@@ -380,26 +228,10 @@ declare function SwitchField<TFieldValues extends FieldValues$1 = FieldValues$1>
|
|
|
380
228
|
}): import("react").JSX.Element;
|
|
381
229
|
//#endregion
|
|
382
230
|
//#region src/components/text-field.d.ts
|
|
383
|
-
declare function TextField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
384
|
-
autoComplete,
|
|
385
|
-
type,
|
|
386
|
-
...props
|
|
387
|
-
}: 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;
|
|
388
232
|
//#endregion
|
|
389
233
|
//#region src/components/textarea-field.d.ts
|
|
390
|
-
declare function TextareaField<TFieldValues extends FieldValues$1 = FieldValues$1>({
|
|
391
|
-
cacheMeasurements,
|
|
392
|
-
control,
|
|
393
|
-
inputId,
|
|
394
|
-
inputName,
|
|
395
|
-
label,
|
|
396
|
-
maxRows,
|
|
397
|
-
minRows,
|
|
398
|
-
onHeightChange,
|
|
399
|
-
placeholder,
|
|
400
|
-
resize,
|
|
401
|
-
...props
|
|
402
|
-
}: 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> & {
|
|
403
235
|
cacheMeasurements?: boolean;
|
|
404
236
|
control: Control<TFieldValues>;
|
|
405
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;;;iBCvBe,cAAc,qBAAqB,gBAAc,iBAC/D,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;;;iBCtBe,WAAW,qBAAqB,gBAAc,iBAC5D,cACA,SACA,UACA,SACA,WACA,OACA,aACA,UACA,SACG,SACF,sBAAsB;EACvB,eAAe;EACf,SAAS,QAAQ;EACjB;EACA;EACA,WAAW,UAAU;EACrB;EACA;EACA;EACA,OAAO;oBACR,IAAA;;;iBC3Be,WAAW,qBAAqB,gBAAc,iBAC5D,cACA,SACG,SACF,sBAAsB,WAAW,iCAAc,IAAA;;;iBCJlC,eAAe;EAAW,QAAQ;oBAAW,IAAA;;;iBCU7C,gBACd,qBAAqB,gBAAc,iBAEnC,SACA,cACA,aACA,UACA,SACA,WACA,OACA,YACG,SACF,sBAAsB;EACvB,SAAS,QAAQ;EACjB;EACA;EACA;EACA;EACA,WAAW,UAAU;EACrB;EACA,SAAS,MAAM;IAAW,OAAO,GAAG,SAAS;;oBAC9C,IAAA;;;KCRI,SAAS,gBAAgB,oBAC5B,QACA,MACA;EAEA,QAAQ;EACR,MAAM,cAAc;EACpB;MACI;iBAEU,KACd,iBAAiB,WACjB,gBAAgB,OAAO,WACvB,gBAAgB,cAAY,YAE5B,UACA,WACA,UACA,UACA,gBACA,UACA,eACA,SACA,UACA,SACA,cACA,eACA,YACA,SACA,WACA,gBACA,gBACA,WAAW,kBACX,OACA,QACA;EAEA,UAAU,SAAS;EACnB;EACA,WAAW,QAAQ,cAAc;EACjC,WAAW,8BAA8B;EACzC,iBAAiB,oCAAoC;EACrD,WAAW,8BAA8B;EACzC,gBAAgB;EAChB,UAAU,6BAA6B;EACvC,WAAW,8BAA8B;EACzC,UAAU,6BAA6B;EACvC,eAAe,kCAAkC;EACjD,gBAAgB,mCAAmC;EACnD,aAAa,gCAAgC;EAC7C,UAAU,6BAA6B;EACvC,YAAY,+BAA+B;EAC3C;;;;;;EAMA;;;;;;;;;;EAUA;EACA,OAAO,gBAAgB;EACvB,QAAQ,OAAO;;;;;;EAMf;oBACD,IAAA;;;iBCnGe,YAAY,qBAAqB,gBAAc,iBAC7D,cACA,WACA,SACG,SACF,sBAAsB,WAAW,iCAAc,IAAA;;;iBCHlC,kBACd,qBAAqB,gBAAc,iBAEnC,UACA,WACA,SACA,UACA,SACA,WACA,OACA,iBACA,aACA,UACA,MACA,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;EACA;oBACD,IAAA;;;iBCXe,oBACd,qBAAqB,gBAAc,iBAEnC,cACA,SACA,aACA,UACA,SACA,WACA,OACA,SACA,aACA,aACG,SACF,sBAAsB;EACvB,eAAe;EACf,SAAS,QAAQ;EACjB;EACA;EACA;EACA,WAAW,UAAU;EACrB;EACA,SAAS;EACT;EACA,UAAU,gBAAgB;EAC1B,OAAO;oBACR,IAAA;;;iBCAe,aAAa,qBAAqB,gBAAc,iBAC9D,cACA,SACA,UACA,SACA,WACA,WACA,OACA,aACA,MACA,OACG,SACF,sBAAsB;EACvB,eAAe;EACf,SAAS,QAAQ;EACjB;EACA;EACA;EACA,WAAW,UAAU;EACrB;EACA;EACA,OAAO;EACP;IACE;IACA;IACA,UAAU,gBAAgB;IAC1B;;oBAEH,IAAA;;;iBC7Ee,cAAc,qBAAqB,gBAAc,iBAC/D,cACA,SACG,SACF,sBAAsB,WAAW,iCAAc,IAAA;;;iBCYlC,YAAY,qBAAqB,gBAAc,iBAC7D,cACA,SACA,aACA,UACA,SACA,WACA,OACA,SACA,gBACG,SACF,sBAAsB;EACvB,eAAe;EACf,SAAS,QAAQ;EACjB;EACA;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"}
|