@tanstack/react-form 0.0.4 → 0.0.5

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.
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
2669
2669
  </script>
2670
2670
  <script>
2671
2671
  /*<!--*/
2672
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js","uid":"8485-25"},{"name":"@tanstack+react-store@0.0.1-beta.84_react-dom@18.2.0_react@18.2.0/node_modules/@tanstack/react-store/build/esm/index.js","uid":"8485-31"}]},{"name":"packages","children":[{"name":"form-core/build/esm/index.js","uid":"8485-27"},{"name":"react-form/src","children":[{"uid":"8485-33","name":"formContext.ts"},{"uid":"8485-35","name":"useField.ts"},{"uid":"8485-37","name":"Field.tsx"},{"uid":"8485-39","name":"useForm.tsx"},{"uid":"8485-41","name":"index.ts"}]}]},{"uid":"8485-29","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"8485-25":{"renderedLength":1288,"gzipLength":497,"brotliLength":0,"mainUid":"8485-24"},"8485-27":{"renderedLength":23393,"gzipLength":5130,"brotliLength":0,"mainUid":"8485-26"},"8485-29":{"renderedLength":431,"gzipLength":240,"brotliLength":0,"mainUid":"8485-28"},"8485-31":{"renderedLength":978,"gzipLength":456,"brotliLength":0,"mainUid":"8485-30"},"8485-33":{"renderedLength":369,"gzipLength":218,"brotliLength":0,"mainUid":"8485-32"},"8485-35":{"renderedLength":850,"gzipLength":417,"brotliLength":0,"mainUid":"8485-34"},"8485-37":{"renderedLength":370,"gzipLength":227,"brotliLength":0,"mainUid":"8485-36"},"8485-39":{"renderedLength":2160,"gzipLength":767,"brotliLength":0,"mainUid":"8485-38"},"8485-41":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"8485-40"}},"nodeMetas":{"8485-24":{"id":"/node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js","moduleParts":{"index.production.js":"8485-25"},"imported":[],"importedBy":[{"uid":"8485-26"},{"uid":"8485-30"}]},"8485-26":{"id":"/packages/form-core/build/esm/index.js","moduleParts":{"index.production.js":"8485-27"},"imported":[{"uid":"8485-24"}],"importedBy":[{"uid":"8485-40"},{"uid":"8485-38"},{"uid":"8485-36"},{"uid":"8485-34"}]},"8485-28":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"8485-29"},"imported":[],"importedBy":[{"uid":"8485-38"},{"uid":"8485-36"}]},"8485-30":{"id":"/node_modules/.pnpm/@tanstack+react-store@0.0.1-beta.84_react-dom@18.2.0_react@18.2.0/node_modules/@tanstack/react-store/build/esm/index.js","moduleParts":{"index.production.js":"8485-31"},"imported":[{"uid":"8485-43"},{"uid":"8485-24"}],"importedBy":[{"uid":"8485-38"},{"uid":"8485-34"}]},"8485-32":{"id":"/packages/react-form/src/formContext.ts","moduleParts":{"index.production.js":"8485-33"},"imported":[{"uid":"8485-42"}],"importedBy":[{"uid":"8485-38"},{"uid":"8485-34"}]},"8485-34":{"id":"/packages/react-form/src/useField.ts","moduleParts":{"index.production.js":"8485-35"},"imported":[{"uid":"8485-42"},{"uid":"8485-30"},{"uid":"8485-26"},{"uid":"8485-32"}],"importedBy":[{"uid":"8485-40"},{"uid":"8485-38"},{"uid":"8485-36"}]},"8485-36":{"id":"/packages/react-form/src/Field.tsx","moduleParts":{"index.production.js":"8485-37"},"imported":[{"uid":"8485-28"},{"uid":"8485-42"},{"uid":"8485-26"},{"uid":"8485-34"}],"importedBy":[{"uid":"8485-40"},{"uid":"8485-38"}]},"8485-38":{"id":"/packages/react-form/src/useForm.tsx","moduleParts":{"index.production.js":"8485-39"},"imported":[{"uid":"8485-28"},{"uid":"8485-26"},{"uid":"8485-30"},{"uid":"8485-42"},{"uid":"8485-36"},{"uid":"8485-34"},{"uid":"8485-32"}],"importedBy":[{"uid":"8485-40"}]},"8485-40":{"id":"/packages/react-form/src/index.ts","moduleParts":{"index.production.js":"8485-41"},"imported":[{"uid":"8485-26"},{"uid":"8485-38"},{"uid":"8485-36"},{"uid":"8485-34"}],"importedBy":[],"isEntry":true},"8485-42":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"8485-38"},{"uid":"8485-36"},{"uid":"8485-34"},{"uid":"8485-32"}],"isExternal":true},"8485-43":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"8485-30"}],"isExternal":true}},"env":{"rollup":"2.78.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
2672
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js","uid":"3676-25"},{"name":"@tanstack+react-store@0.0.1-beta.84_react-dom@18.2.0_react@18.2.0/node_modules/@tanstack/react-store/build/esm/index.js","uid":"3676-31"}]},{"name":"packages","children":[{"name":"form-core/build/esm/index.js","uid":"3676-27"},{"name":"react-form/src","children":[{"uid":"3676-33","name":"formContext.ts"},{"uid":"3676-35","name":"useField.ts"},{"uid":"3676-37","name":"Field.tsx"},{"uid":"3676-39","name":"useForm.tsx"},{"uid":"3676-41","name":"index.ts"}]}]},{"uid":"3676-29","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"3676-25":{"renderedLength":1288,"gzipLength":497,"brotliLength":0,"mainUid":"3676-24"},"3676-27":{"renderedLength":23393,"gzipLength":5130,"brotliLength":0,"mainUid":"3676-26"},"3676-29":{"renderedLength":431,"gzipLength":240,"brotliLength":0,"mainUid":"3676-28"},"3676-31":{"renderedLength":978,"gzipLength":456,"brotliLength":0,"mainUid":"3676-30"},"3676-33":{"renderedLength":369,"gzipLength":218,"brotliLength":0,"mainUid":"3676-32"},"3676-35":{"renderedLength":850,"gzipLength":417,"brotliLength":0,"mainUid":"3676-34"},"3676-37":{"renderedLength":370,"gzipLength":227,"brotliLength":0,"mainUid":"3676-36"},"3676-39":{"renderedLength":2160,"gzipLength":767,"brotliLength":0,"mainUid":"3676-38"},"3676-41":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"3676-40"}},"nodeMetas":{"3676-24":{"id":"/node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js","moduleParts":{"index.production.js":"3676-25"},"imported":[],"importedBy":[{"uid":"3676-26"},{"uid":"3676-30"}]},"3676-26":{"id":"/packages/form-core/build/esm/index.js","moduleParts":{"index.production.js":"3676-27"},"imported":[{"uid":"3676-24"}],"importedBy":[{"uid":"3676-40"},{"uid":"3676-38"},{"uid":"3676-36"},{"uid":"3676-34"}]},"3676-28":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"3676-29"},"imported":[],"importedBy":[{"uid":"3676-38"},{"uid":"3676-36"}]},"3676-30":{"id":"/node_modules/.pnpm/@tanstack+react-store@0.0.1-beta.84_react-dom@18.2.0_react@18.2.0/node_modules/@tanstack/react-store/build/esm/index.js","moduleParts":{"index.production.js":"3676-31"},"imported":[{"uid":"3676-43"},{"uid":"3676-24"}],"importedBy":[{"uid":"3676-38"},{"uid":"3676-34"}]},"3676-32":{"id":"/packages/react-form/src/formContext.ts","moduleParts":{"index.production.js":"3676-33"},"imported":[{"uid":"3676-42"}],"importedBy":[{"uid":"3676-38"},{"uid":"3676-34"}]},"3676-34":{"id":"/packages/react-form/src/useField.ts","moduleParts":{"index.production.js":"3676-35"},"imported":[{"uid":"3676-42"},{"uid":"3676-30"},{"uid":"3676-26"},{"uid":"3676-32"}],"importedBy":[{"uid":"3676-40"},{"uid":"3676-38"},{"uid":"3676-36"}]},"3676-36":{"id":"/packages/react-form/src/Field.tsx","moduleParts":{"index.production.js":"3676-37"},"imported":[{"uid":"3676-28"},{"uid":"3676-42"},{"uid":"3676-26"},{"uid":"3676-34"}],"importedBy":[{"uid":"3676-40"},{"uid":"3676-38"}]},"3676-38":{"id":"/packages/react-form/src/useForm.tsx","moduleParts":{"index.production.js":"3676-39"},"imported":[{"uid":"3676-28"},{"uid":"3676-26"},{"uid":"3676-30"},{"uid":"3676-42"},{"uid":"3676-36"},{"uid":"3676-34"},{"uid":"3676-32"}],"importedBy":[{"uid":"3676-40"}]},"3676-40":{"id":"/packages/react-form/src/index.ts","moduleParts":{"index.production.js":"3676-41"},"imported":[{"uid":"3676-26"},{"uid":"3676-38"},{"uid":"3676-36"},{"uid":"3676-34"}],"importedBy":[],"isEntry":true},"3676-42":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"3676-38"},{"uid":"3676-36"},{"uid":"3676-34"},{"uid":"3676-32"}],"isExternal":true},"3676-43":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"3676-30"}],"isExternal":true}},"env":{"rollup":"2.78.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
2673
2673
 
2674
2674
  const run = () => {
2675
2675
  const width = window.innerWidth;
@@ -11,11 +11,11 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js",
14
- "uid": "8485-45"
14
+ "uid": "3676-45"
15
15
  },
16
16
  {
17
17
  "name": "@tanstack+react-store@0.0.1-beta.84_react-dom@18.2.0_react@18.2.0/node_modules/@tanstack/react-store/build/esm/index.js",
18
- "uid": "8485-51"
18
+ "uid": "3676-51"
19
19
  }
20
20
  ]
21
21
  },
@@ -24,29 +24,29 @@
24
24
  "children": [
25
25
  {
26
26
  "name": "form-core/build/esm/index.js",
27
- "uid": "8485-47"
27
+ "uid": "3676-47"
28
28
  },
29
29
  {
30
30
  "name": "react-form/src",
31
31
  "children": [
32
32
  {
33
- "uid": "8485-53",
33
+ "uid": "3676-53",
34
34
  "name": "formContext.ts"
35
35
  },
36
36
  {
37
- "uid": "8485-55",
37
+ "uid": "3676-55",
38
38
  "name": "useField.ts"
39
39
  },
40
40
  {
41
- "uid": "8485-57",
41
+ "uid": "3676-57",
42
42
  "name": "Field.tsx"
43
43
  },
44
44
  {
45
- "uid": "8485-59",
45
+ "uid": "3676-59",
46
46
  "name": "useForm.tsx"
47
47
  },
48
48
  {
49
- "uid": "8485-61",
49
+ "uid": "3676-61",
50
50
  "name": "index.ts"
51
51
  }
52
52
  ]
@@ -54,7 +54,7 @@
54
54
  ]
55
55
  },
56
56
  {
57
- "uid": "8485-49",
57
+ "uid": "3676-49",
58
58
  "name": "\u0000rollupPluginBabelHelpers.js"
59
59
  }
60
60
  ]
@@ -63,300 +63,300 @@
63
63
  "isRoot": true
64
64
  },
65
65
  "nodeParts": {
66
- "8485-45": {
66
+ "3676-45": {
67
67
  "renderedLength": 1288,
68
68
  "gzipLength": 497,
69
69
  "brotliLength": 0,
70
- "mainUid": "8485-44"
70
+ "mainUid": "3676-44"
71
71
  },
72
- "8485-47": {
72
+ "3676-47": {
73
73
  "renderedLength": 23393,
74
74
  "gzipLength": 5130,
75
75
  "brotliLength": 0,
76
- "mainUid": "8485-46"
76
+ "mainUid": "3676-46"
77
77
  },
78
- "8485-49": {
78
+ "3676-49": {
79
79
  "renderedLength": 431,
80
80
  "gzipLength": 240,
81
81
  "brotliLength": 0,
82
- "mainUid": "8485-48"
82
+ "mainUid": "3676-48"
83
83
  },
84
- "8485-51": {
84
+ "3676-51": {
85
85
  "renderedLength": 978,
86
86
  "gzipLength": 456,
87
87
  "brotliLength": 0,
88
- "mainUid": "8485-50"
88
+ "mainUid": "3676-50"
89
89
  },
90
- "8485-53": {
90
+ "3676-53": {
91
91
  "renderedLength": 369,
92
92
  "gzipLength": 218,
93
93
  "brotliLength": 0,
94
- "mainUid": "8485-52"
94
+ "mainUid": "3676-52"
95
95
  },
96
- "8485-55": {
96
+ "3676-55": {
97
97
  "renderedLength": 850,
98
98
  "gzipLength": 417,
99
99
  "brotliLength": 0,
100
- "mainUid": "8485-54"
100
+ "mainUid": "3676-54"
101
101
  },
102
- "8485-57": {
102
+ "3676-57": {
103
103
  "renderedLength": 370,
104
104
  "gzipLength": 227,
105
105
  "brotliLength": 0,
106
- "mainUid": "8485-56"
106
+ "mainUid": "3676-56"
107
107
  },
108
- "8485-59": {
108
+ "3676-59": {
109
109
  "renderedLength": 2160,
110
110
  "gzipLength": 767,
111
111
  "brotliLength": 0,
112
- "mainUid": "8485-58"
112
+ "mainUid": "3676-58"
113
113
  },
114
- "8485-61": {
114
+ "3676-61": {
115
115
  "renderedLength": 0,
116
116
  "gzipLength": 0,
117
117
  "brotliLength": 0,
118
- "mainUid": "8485-60"
118
+ "mainUid": "3676-60"
119
119
  }
120
120
  },
121
121
  "nodeMetas": {
122
- "8485-44": {
122
+ "3676-44": {
123
123
  "id": "/node_modules/.pnpm/@tanstack+store@0.0.1-beta.84/node_modules/@tanstack/store/build/esm/index.js",
124
124
  "moduleParts": {
125
- "index.production.js": "8485-45"
125
+ "index.production.js": "3676-45"
126
126
  },
127
127
  "imported": [],
128
128
  "importedBy": [
129
129
  {
130
- "uid": "8485-46"
130
+ "uid": "3676-46"
131
131
  },
132
132
  {
133
- "uid": "8485-50"
133
+ "uid": "3676-50"
134
134
  }
135
135
  ]
136
136
  },
137
- "8485-46": {
137
+ "3676-46": {
138
138
  "id": "/packages/form-core/build/esm/index.js",
139
139
  "moduleParts": {
140
- "index.production.js": "8485-47"
140
+ "index.production.js": "3676-47"
141
141
  },
142
142
  "imported": [
143
143
  {
144
- "uid": "8485-44"
144
+ "uid": "3676-44"
145
145
  }
146
146
  ],
147
147
  "importedBy": [
148
148
  {
149
- "uid": "8485-60"
149
+ "uid": "3676-60"
150
150
  },
151
151
  {
152
- "uid": "8485-58"
152
+ "uid": "3676-58"
153
153
  },
154
154
  {
155
- "uid": "8485-56"
155
+ "uid": "3676-56"
156
156
  },
157
157
  {
158
- "uid": "8485-54"
158
+ "uid": "3676-54"
159
159
  }
160
160
  ]
161
161
  },
162
- "8485-48": {
162
+ "3676-48": {
163
163
  "id": "\u0000rollupPluginBabelHelpers.js",
164
164
  "moduleParts": {
165
- "index.production.js": "8485-49"
165
+ "index.production.js": "3676-49"
166
166
  },
167
167
  "imported": [],
168
168
  "importedBy": [
169
169
  {
170
- "uid": "8485-58"
170
+ "uid": "3676-58"
171
171
  },
172
172
  {
173
- "uid": "8485-56"
173
+ "uid": "3676-56"
174
174
  }
175
175
  ]
176
176
  },
177
- "8485-50": {
177
+ "3676-50": {
178
178
  "id": "/node_modules/.pnpm/@tanstack+react-store@0.0.1-beta.84_react-dom@18.2.0_react@18.2.0/node_modules/@tanstack/react-store/build/esm/index.js",
179
179
  "moduleParts": {
180
- "index.production.js": "8485-51"
180
+ "index.production.js": "3676-51"
181
181
  },
182
182
  "imported": [
183
183
  {
184
- "uid": "8485-63"
184
+ "uid": "3676-63"
185
185
  },
186
186
  {
187
- "uid": "8485-44"
187
+ "uid": "3676-44"
188
188
  }
189
189
  ],
190
190
  "importedBy": [
191
191
  {
192
- "uid": "8485-58"
192
+ "uid": "3676-58"
193
193
  },
194
194
  {
195
- "uid": "8485-54"
195
+ "uid": "3676-54"
196
196
  }
197
197
  ]
198
198
  },
199
- "8485-52": {
199
+ "3676-52": {
200
200
  "id": "/packages/react-form/src/formContext.ts",
201
201
  "moduleParts": {
202
- "index.production.js": "8485-53"
202
+ "index.production.js": "3676-53"
203
203
  },
204
204
  "imported": [
205
205
  {
206
- "uid": "8485-62"
206
+ "uid": "3676-62"
207
207
  }
208
208
  ],
209
209
  "importedBy": [
210
210
  {
211
- "uid": "8485-58"
211
+ "uid": "3676-58"
212
212
  },
213
213
  {
214
- "uid": "8485-54"
214
+ "uid": "3676-54"
215
215
  }
216
216
  ]
217
217
  },
218
- "8485-54": {
218
+ "3676-54": {
219
219
  "id": "/packages/react-form/src/useField.ts",
220
220
  "moduleParts": {
221
- "index.production.js": "8485-55"
221
+ "index.production.js": "3676-55"
222
222
  },
223
223
  "imported": [
224
224
  {
225
- "uid": "8485-62"
225
+ "uid": "3676-62"
226
226
  },
227
227
  {
228
- "uid": "8485-50"
228
+ "uid": "3676-50"
229
229
  },
230
230
  {
231
- "uid": "8485-46"
231
+ "uid": "3676-46"
232
232
  },
233
233
  {
234
- "uid": "8485-52"
234
+ "uid": "3676-52"
235
235
  }
236
236
  ],
237
237
  "importedBy": [
238
238
  {
239
- "uid": "8485-60"
239
+ "uid": "3676-60"
240
240
  },
241
241
  {
242
- "uid": "8485-58"
242
+ "uid": "3676-58"
243
243
  },
244
244
  {
245
- "uid": "8485-56"
245
+ "uid": "3676-56"
246
246
  }
247
247
  ]
248
248
  },
249
- "8485-56": {
249
+ "3676-56": {
250
250
  "id": "/packages/react-form/src/Field.tsx",
251
251
  "moduleParts": {
252
- "index.production.js": "8485-57"
252
+ "index.production.js": "3676-57"
253
253
  },
254
254
  "imported": [
255
255
  {
256
- "uid": "8485-48"
256
+ "uid": "3676-48"
257
257
  },
258
258
  {
259
- "uid": "8485-62"
259
+ "uid": "3676-62"
260
260
  },
261
261
  {
262
- "uid": "8485-46"
262
+ "uid": "3676-46"
263
263
  },
264
264
  {
265
- "uid": "8485-54"
265
+ "uid": "3676-54"
266
266
  }
267
267
  ],
268
268
  "importedBy": [
269
269
  {
270
- "uid": "8485-60"
270
+ "uid": "3676-60"
271
271
  },
272
272
  {
273
- "uid": "8485-58"
273
+ "uid": "3676-58"
274
274
  }
275
275
  ]
276
276
  },
277
- "8485-58": {
277
+ "3676-58": {
278
278
  "id": "/packages/react-form/src/useForm.tsx",
279
279
  "moduleParts": {
280
- "index.production.js": "8485-59"
280
+ "index.production.js": "3676-59"
281
281
  },
282
282
  "imported": [
283
283
  {
284
- "uid": "8485-48"
284
+ "uid": "3676-48"
285
285
  },
286
286
  {
287
- "uid": "8485-46"
287
+ "uid": "3676-46"
288
288
  },
289
289
  {
290
- "uid": "8485-50"
290
+ "uid": "3676-50"
291
291
  },
292
292
  {
293
- "uid": "8485-62"
293
+ "uid": "3676-62"
294
294
  },
295
295
  {
296
- "uid": "8485-56"
296
+ "uid": "3676-56"
297
297
  },
298
298
  {
299
- "uid": "8485-54"
299
+ "uid": "3676-54"
300
300
  },
301
301
  {
302
- "uid": "8485-52"
302
+ "uid": "3676-52"
303
303
  }
304
304
  ],
305
305
  "importedBy": [
306
306
  {
307
- "uid": "8485-60"
307
+ "uid": "3676-60"
308
308
  }
309
309
  ]
310
310
  },
311
- "8485-60": {
311
+ "3676-60": {
312
312
  "id": "/packages/react-form/src/index.ts",
313
313
  "moduleParts": {
314
- "index.production.js": "8485-61"
314
+ "index.production.js": "3676-61"
315
315
  },
316
316
  "imported": [
317
317
  {
318
- "uid": "8485-46"
318
+ "uid": "3676-46"
319
319
  },
320
320
  {
321
- "uid": "8485-58"
321
+ "uid": "3676-58"
322
322
  },
323
323
  {
324
- "uid": "8485-56"
324
+ "uid": "3676-56"
325
325
  },
326
326
  {
327
- "uid": "8485-54"
327
+ "uid": "3676-54"
328
328
  }
329
329
  ],
330
330
  "importedBy": [],
331
331
  "isEntry": true
332
332
  },
333
- "8485-62": {
333
+ "3676-62": {
334
334
  "id": "react",
335
335
  "moduleParts": {},
336
336
  "imported": [],
337
337
  "importedBy": [
338
338
  {
339
- "uid": "8485-58"
339
+ "uid": "3676-58"
340
340
  },
341
341
  {
342
- "uid": "8485-56"
342
+ "uid": "3676-56"
343
343
  },
344
344
  {
345
- "uid": "8485-54"
345
+ "uid": "3676-54"
346
346
  },
347
347
  {
348
- "uid": "8485-52"
348
+ "uid": "3676-52"
349
349
  }
350
350
  ],
351
351
  "isExternal": true
352
352
  },
353
- "8485-63": {
353
+ "3676-63": {
354
354
  "id": "use-sync-external-store/shim/with-selector",
355
355
  "moduleParts": {},
356
356
  "imported": [],
357
357
  "importedBy": [
358
358
  {
359
- "uid": "8485-50"
359
+ "uid": "3676-50"
360
360
  }
361
361
  ],
362
362
  "isExternal": true
@@ -20,14 +20,24 @@ export declare type FieldMeta = {
20
20
  error?: ValidationError;
21
21
  isValidating: boolean;
22
22
  };
23
- export declare type ChangeProps<TData> = {
23
+ export declare type UserChangeProps<TData> = {
24
24
  onChange?: (updater: Updater<TData>) => void;
25
25
  onBlur?: (event: any) => void;
26
26
  };
27
- export declare type InputProps = {
27
+ export declare type UserInputProps = {
28
28
  onChange?: (event: any) => void;
29
29
  onBlur?: (event: any) => void;
30
30
  };
31
+ export declare type ChangeProps<TData> = {
32
+ value: TData;
33
+ onChange: (updater: Updater<TData>) => void;
34
+ onBlur: (event: any) => void;
35
+ };
36
+ export declare type InputProps = {
37
+ value: string;
38
+ onChange: (event: any) => void;
39
+ onBlur: (event: any) => void;
40
+ };
31
41
  export declare type FieldApiOptions<TData, TFormData> = RequiredByKey<FieldOptions<TData, TFormData>, 'form'>;
32
42
  export declare type FieldState<TData> = {
33
43
  value: TData;
@@ -62,6 +72,6 @@ export declare class FieldApi<TData, TFormData> {
62
72
  validateAsync: (value?: TData) => Promise<ValidationError>;
63
73
  shouldValidate: (isAsync: boolean, cause?: ValidationCause) => boolean;
64
74
  validate: (cause?: ValidationCause, value?: TData) => Promise<ValidationError>;
65
- getChangeProps: <T extends ChangeProps<any>>(props?: T) => ChangeProps<TData> & Omit<T, keyof ChangeProps<TData>>;
66
- getInputProps: <T extends InputProps>(props?: T) => InputProps & Omit<T, keyof InputProps>;
75
+ getChangeProps: <T extends UserChangeProps<any>>(props?: T) => ChangeProps<TData> & Omit<T, keyof ChangeProps<TData>>;
76
+ getInputProps: <T extends UserInputProps>(props?: T) => InputProps & Omit<T, keyof InputProps>;
67
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-form",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Powerful, type-safe forms for React.",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@tanstack/react-store": "0.0.1-beta.84",
32
- "@tanstack/form-core": "0.0.4"
32
+ "@tanstack/form-core": "0.0.5"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^17.0.0 || ^18.0.0",