@digigov/form 2.0.0-b3ec0588 → 2.0.0-cbc56209
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/FieldObject/index.js +1 -1
- package/MultiplicityField/index.js +6 -1
- package/cjs/FieldObject/index.js +2 -2
- package/cjs/MultiplicityField/index.js +10 -5
- package/cjs/inputs/AutoCompleteInput/index.js +2 -2
- package/cjs/inputs/Checkboxes/index.js +2 -2
- package/cjs/inputs/Input/index.js +2 -2
- package/cjs/inputs/Radio/index.js +2 -2
- package/cjs/lazy/index.js +517 -0
- package/index.js +1 -1
- package/inputs/AutoCompleteInput/index.js +1 -1
- package/inputs/Checkboxes/index.js +1 -1
- package/inputs/Input/index.js +1 -1
- package/inputs/Radio/index.js +1 -1
- package/lazy/index.js +395 -0
- package/lazy/package.json +6 -0
- package/lazy.d.ts +69 -0
- package/package.json +4 -4
- package/src/FieldObject/index.tsx +1 -1
- package/src/MultiplicityField/index.tsx +7 -8
- package/src/inputs/AutoCompleteInput/index.tsx +1 -1
- package/src/inputs/Checkboxes/index.tsx +1 -1
- package/src/inputs/Input/index.tsx +1 -1
- package/src/inputs/Radio/index.tsx +1 -1
- package/src/lazy.js +60 -0
package/lazy/index.js
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
export default {
|
|
3
|
+
'FieldBase': /*#__PURE__*/lazy(function () {
|
|
4
|
+
return import('@digigov/form/Field/FieldBase').then(function (module) {
|
|
5
|
+
return {
|
|
6
|
+
"default": module['FieldBase']
|
|
7
|
+
};
|
|
8
|
+
});
|
|
9
|
+
}),
|
|
10
|
+
'FieldBaseContainer': /*#__PURE__*/lazy(function () {
|
|
11
|
+
return import('@digigov/form/Field/FieldBaseContainer').then(function (module) {
|
|
12
|
+
return {
|
|
13
|
+
"default": module['FieldBaseContainer']
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
}),
|
|
17
|
+
'FieldConditional': /*#__PURE__*/lazy(function () {
|
|
18
|
+
return import('@digigov/form/Field/FieldConditional').then(function (module) {
|
|
19
|
+
return {
|
|
20
|
+
"default": module['FieldConditional']
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}),
|
|
24
|
+
'Field': /*#__PURE__*/lazy(function () {
|
|
25
|
+
return import('@digigov/form/internal').then(function (module) {
|
|
26
|
+
return {
|
|
27
|
+
"default": module['Field']
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
}),
|
|
31
|
+
'FieldArray': /*#__PURE__*/lazy(function () {
|
|
32
|
+
return import('@digigov/form/FieldArray').then(function (module) {
|
|
33
|
+
return {
|
|
34
|
+
"default": module['FieldArray']
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
}),
|
|
38
|
+
'FieldObject': /*#__PURE__*/lazy(function () {
|
|
39
|
+
return import('@digigov/form/FieldObject').then(function (module) {
|
|
40
|
+
return {
|
|
41
|
+
"default": module['FieldObject']
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
}),
|
|
45
|
+
'FieldsetWithContext': /*#__PURE__*/lazy(function () {
|
|
46
|
+
return import('@digigov/form/Fieldset/FieldsetWithContext').then(function (module) {
|
|
47
|
+
return {
|
|
48
|
+
"default": module['FieldsetWithContext']
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}),
|
|
52
|
+
'Fieldset': /*#__PURE__*/lazy(function () {
|
|
53
|
+
return import('@digigov/form/Fieldset').then(function (module) {
|
|
54
|
+
return {
|
|
55
|
+
"default": module['Fieldset']
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}),
|
|
59
|
+
'FieldsetBody': /*#__PURE__*/lazy(function () {
|
|
60
|
+
return import('@digigov/form/Fieldset').then(function (module) {
|
|
61
|
+
return {
|
|
62
|
+
"default": module['FieldsetBody']
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}),
|
|
66
|
+
'FieldsetCaption': /*#__PURE__*/lazy(function () {
|
|
67
|
+
return import('@digigov/form/Fieldset').then(function (module) {
|
|
68
|
+
return {
|
|
69
|
+
"default": module['FieldsetCaption']
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
}),
|
|
73
|
+
'FieldsetLabel': /*#__PURE__*/lazy(function () {
|
|
74
|
+
return import('@digigov/form/Fieldset').then(function (module) {
|
|
75
|
+
return {
|
|
76
|
+
"default": module['FieldsetLabel']
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
}),
|
|
80
|
+
'FormBase': /*#__PURE__*/lazy(function () {
|
|
81
|
+
return import('@digigov/form/FormBuilder/FormBuilder').then(function (module) {
|
|
82
|
+
return {
|
|
83
|
+
"default": module['FormBase']
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
}),
|
|
87
|
+
'FormBuilder': /*#__PURE__*/lazy(function () {
|
|
88
|
+
return import('@digigov/form/FormBuilder/FormBuilder').then(function (module) {
|
|
89
|
+
return {
|
|
90
|
+
"default": module['FormBuilder']
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}),
|
|
94
|
+
'FormContext': /*#__PURE__*/lazy(function () {
|
|
95
|
+
return import('@digigov/form/FormContext').then(function (module) {
|
|
96
|
+
return {
|
|
97
|
+
"default": module['FormContext']
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
}),
|
|
101
|
+
'Checkboxes': /*#__PURE__*/lazy(function () {
|
|
102
|
+
return import('@digigov/form/inputs/Checkboxes').then(function (module) {
|
|
103
|
+
return {
|
|
104
|
+
"default": module['Checkboxes']
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
}),
|
|
108
|
+
'DateInput': /*#__PURE__*/lazy(function () {
|
|
109
|
+
return import('@digigov/form/inputs/DateInput').then(function (module) {
|
|
110
|
+
return {
|
|
111
|
+
"default": module['DateInput']
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
}),
|
|
115
|
+
'FileInput': /*#__PURE__*/lazy(function () {
|
|
116
|
+
return import('@digigov/form/inputs/FileInput').then(function (module) {
|
|
117
|
+
return {
|
|
118
|
+
"default": module['FileInput']
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
}),
|
|
122
|
+
'Input': /*#__PURE__*/lazy(function () {
|
|
123
|
+
return import('@digigov/form/inputs/Input').then(function (module) {
|
|
124
|
+
return {
|
|
125
|
+
"default": module['Input']
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
}),
|
|
129
|
+
'Label': /*#__PURE__*/lazy(function () {
|
|
130
|
+
return import('@digigov/form/inputs/Label').then(function (module) {
|
|
131
|
+
return {
|
|
132
|
+
"default": module['Label']
|
|
133
|
+
};
|
|
134
|
+
});
|
|
135
|
+
}),
|
|
136
|
+
'Questions': /*#__PURE__*/lazy(function () {
|
|
137
|
+
return import('@digigov/form/Questions/Questions').then(function (module) {
|
|
138
|
+
return {
|
|
139
|
+
"default": module['Questions']
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
}),
|
|
143
|
+
'Radio': /*#__PURE__*/lazy(function () {
|
|
144
|
+
return import('@digigov/form/internal').then(function (module) {
|
|
145
|
+
return {
|
|
146
|
+
"default": module['Radio']
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
}),
|
|
150
|
+
'Select': /*#__PURE__*/lazy(function () {
|
|
151
|
+
return import('@digigov/form/inputs/Select').then(function (module) {
|
|
152
|
+
return {
|
|
153
|
+
"default": module['Select']
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
}),
|
|
157
|
+
'Step': /*#__PURE__*/lazy(function () {
|
|
158
|
+
return import('@digigov/form/Questions/Step/Step').then(function (module) {
|
|
159
|
+
return {
|
|
160
|
+
"default": module['Step']
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
}),
|
|
164
|
+
'ReviewStep': /*#__PURE__*/lazy(function () {
|
|
165
|
+
return import('@digigov/form/Questions/Step/ReviewStep').then(function (module) {
|
|
166
|
+
return {
|
|
167
|
+
"default": module['ReviewStep']
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
}),
|
|
171
|
+
'StepArrayReview': /*#__PURE__*/lazy(function () {
|
|
172
|
+
return import('@digigov/form/Questions/Step/StepArrayReview').then(function (module) {
|
|
173
|
+
return {
|
|
174
|
+
"default": module['StepArrayReview']
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
}),
|
|
178
|
+
'StepContext': /*#__PURE__*/lazy(function () {
|
|
179
|
+
return import('@digigov/form/Questions/Step/StepContext').then(function (module) {
|
|
180
|
+
return {
|
|
181
|
+
"default": module['StepContext']
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
}),
|
|
185
|
+
'StepDescription': /*#__PURE__*/lazy(function () {
|
|
186
|
+
return import('@digigov/form/Questions/Step/StepDescription').then(function (module) {
|
|
187
|
+
return {
|
|
188
|
+
"default": module['StepDescription']
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
}),
|
|
192
|
+
'StepDescriptionBase': /*#__PURE__*/lazy(function () {
|
|
193
|
+
return import('@digigov/form/Questions/Step/StepDescription').then(function (module) {
|
|
194
|
+
return {
|
|
195
|
+
"default": module['StepDescriptionBase']
|
|
196
|
+
};
|
|
197
|
+
});
|
|
198
|
+
}),
|
|
199
|
+
'StepForm': /*#__PURE__*/lazy(function () {
|
|
200
|
+
return import('@digigov/form/Questions/Step/StepForm').then(function (module) {
|
|
201
|
+
return {
|
|
202
|
+
"default": module['StepForm']
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
}),
|
|
206
|
+
'StepQuote': /*#__PURE__*/lazy(function () {
|
|
207
|
+
return import('@digigov/form/Questions/Step/StepQuote').then(function (module) {
|
|
208
|
+
return {
|
|
209
|
+
"default": module['StepQuote']
|
|
210
|
+
};
|
|
211
|
+
});
|
|
212
|
+
}),
|
|
213
|
+
'StepTitle': /*#__PURE__*/lazy(function () {
|
|
214
|
+
return import('@digigov/form/Questions/Step/StepTitle').then(function (module) {
|
|
215
|
+
return {
|
|
216
|
+
"default": module['StepTitle']
|
|
217
|
+
};
|
|
218
|
+
});
|
|
219
|
+
}),
|
|
220
|
+
'StepTitleBase': /*#__PURE__*/lazy(function () {
|
|
221
|
+
return import('@digigov/form/Questions/Step/StepTitle').then(function (module) {
|
|
222
|
+
return {
|
|
223
|
+
"default": module['StepTitleBase']
|
|
224
|
+
};
|
|
225
|
+
});
|
|
226
|
+
}),
|
|
227
|
+
'StepTitleHeading': /*#__PURE__*/lazy(function () {
|
|
228
|
+
return import('@digigov/form/Questions/Step/StepTitle').then(function (module) {
|
|
229
|
+
return {
|
|
230
|
+
"default": module['StepTitleHeading']
|
|
231
|
+
};
|
|
232
|
+
});
|
|
233
|
+
}),
|
|
234
|
+
'RadioButtonsGroup': /*#__PURE__*/lazy(function () {
|
|
235
|
+
return import('@digigov/form/inputs/Radio').then(function (module) {
|
|
236
|
+
return {
|
|
237
|
+
"default": module['RadioButtonsGroup']
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
}),
|
|
241
|
+
'ImageInput': /*#__PURE__*/lazy(function () {
|
|
242
|
+
return import('@digigov/form/inputs/ImageInput').then(function (module) {
|
|
243
|
+
return {
|
|
244
|
+
"default": module['ImageInput']
|
|
245
|
+
};
|
|
246
|
+
});
|
|
247
|
+
}),
|
|
248
|
+
'OtpInput': /*#__PURE__*/lazy(function () {
|
|
249
|
+
return import('@digigov/form/inputs/OtpInput').then(function (module) {
|
|
250
|
+
return {
|
|
251
|
+
"default": module['OtpInput']
|
|
252
|
+
};
|
|
253
|
+
});
|
|
254
|
+
}),
|
|
255
|
+
'AutoCompleteInput': /*#__PURE__*/lazy(function () {
|
|
256
|
+
return import('@digigov/form/inputs/AutoCompleteInput').then(function (module) {
|
|
257
|
+
return {
|
|
258
|
+
"default": module['AutoCompleteInput']
|
|
259
|
+
};
|
|
260
|
+
});
|
|
261
|
+
}),
|
|
262
|
+
'Image': /*#__PURE__*/lazy(function () {
|
|
263
|
+
return import('@digigov/form/inputs/ImageInput').then(function (module) {
|
|
264
|
+
return {
|
|
265
|
+
"default": module['Image']
|
|
266
|
+
};
|
|
267
|
+
});
|
|
268
|
+
}),
|
|
269
|
+
'REMOVE_SPACES': /*#__PURE__*/lazy(function () {
|
|
270
|
+
return import('@digigov/form/inputs/OtpInput').then(function (module) {
|
|
271
|
+
return {
|
|
272
|
+
"default": module['REMOVE_SPACES']
|
|
273
|
+
};
|
|
274
|
+
});
|
|
275
|
+
}),
|
|
276
|
+
'RE_DIGIT': /*#__PURE__*/lazy(function () {
|
|
277
|
+
return import('@digigov/form/inputs/OtpInput').then(function (module) {
|
|
278
|
+
return {
|
|
279
|
+
"default": module['RE_DIGIT']
|
|
280
|
+
};
|
|
281
|
+
});
|
|
282
|
+
}),
|
|
283
|
+
'AddObjects': /*#__PURE__*/lazy(function () {
|
|
284
|
+
return import('@digigov/form/MultiplicityField/add-objects').then(function (module) {
|
|
285
|
+
return {
|
|
286
|
+
"default": module['AddObjects']
|
|
287
|
+
};
|
|
288
|
+
});
|
|
289
|
+
}),
|
|
290
|
+
'ListObject': /*#__PURE__*/lazy(function () {
|
|
291
|
+
return import('@digigov/form/MultiplicityField').then(function (module) {
|
|
292
|
+
return {
|
|
293
|
+
"default": module['ListObject']
|
|
294
|
+
};
|
|
295
|
+
});
|
|
296
|
+
}),
|
|
297
|
+
'Multiplicity': /*#__PURE__*/lazy(function () {
|
|
298
|
+
return import('@digigov/form/MultiplicityField').then(function (module) {
|
|
299
|
+
return {
|
|
300
|
+
"default": module['Multiplicity']
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
}),
|
|
304
|
+
'QuestionsContext': /*#__PURE__*/lazy(function () {
|
|
305
|
+
return import('@digigov/form/Questions/QuestionsContext').then(function (module) {
|
|
306
|
+
return {
|
|
307
|
+
"default": module['QuestionsContext']
|
|
308
|
+
};
|
|
309
|
+
});
|
|
310
|
+
}),
|
|
311
|
+
'AFM_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
312
|
+
return import('@digigov/form/validators/utils/afm').then(function (module) {
|
|
313
|
+
return {
|
|
314
|
+
"default": module['AFM_VALIDATOR']
|
|
315
|
+
};
|
|
316
|
+
});
|
|
317
|
+
}),
|
|
318
|
+
'FILE_MAX_SIZE_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
319
|
+
return import('@digigov/form/validators/utils/file').then(function (module) {
|
|
320
|
+
return {
|
|
321
|
+
"default": module['FILE_MAX_SIZE_VALIDATOR']
|
|
322
|
+
};
|
|
323
|
+
});
|
|
324
|
+
}),
|
|
325
|
+
'IBAN_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
326
|
+
return import('@digigov/form/validators/utils/iban').then(function (module) {
|
|
327
|
+
return {
|
|
328
|
+
"default": module['IBAN_VALIDATOR']
|
|
329
|
+
};
|
|
330
|
+
});
|
|
331
|
+
}),
|
|
332
|
+
'IMAGE_DIMENSION_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
333
|
+
return import('@digigov/form/validators/utils/image').then(function (module) {
|
|
334
|
+
return {
|
|
335
|
+
"default": module['IMAGE_DIMENSION_VALIDATOR']
|
|
336
|
+
};
|
|
337
|
+
});
|
|
338
|
+
}),
|
|
339
|
+
'OTP_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
340
|
+
return import('@digigov/form/validators/utils/otp').then(function (module) {
|
|
341
|
+
return {
|
|
342
|
+
"default": module['OTP_VALIDATOR']
|
|
343
|
+
};
|
|
344
|
+
});
|
|
345
|
+
}),
|
|
346
|
+
'MOBILE_PHONE_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
347
|
+
return import('@digigov/form/validators/utils/phone').then(function (module) {
|
|
348
|
+
return {
|
|
349
|
+
"default": module['MOBILE_PHONE_VALIDATOR']
|
|
350
|
+
};
|
|
351
|
+
});
|
|
352
|
+
}),
|
|
353
|
+
'PHONE_NUMBER_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
354
|
+
return import('@digigov/form/validators/utils/phone').then(function (module) {
|
|
355
|
+
return {
|
|
356
|
+
"default": module['PHONE_NUMBER_VALIDATOR']
|
|
357
|
+
};
|
|
358
|
+
});
|
|
359
|
+
}),
|
|
360
|
+
'POSTALCODE_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
361
|
+
return import('@digigov/form/validators/utils/postal_code').then(function (module) {
|
|
362
|
+
return {
|
|
363
|
+
"default": module['POSTALCODE_VALIDATOR']
|
|
364
|
+
};
|
|
365
|
+
});
|
|
366
|
+
}),
|
|
367
|
+
'UUID4_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
368
|
+
return import('@digigov/form/validators/utils/uuid4').then(function (module) {
|
|
369
|
+
return {
|
|
370
|
+
"default": module['UUID4_VALIDATOR']
|
|
371
|
+
};
|
|
372
|
+
});
|
|
373
|
+
}),
|
|
374
|
+
'TEXT_LIMIT_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
375
|
+
return import('@digigov/form/validators/utils/text_limit').then(function (module) {
|
|
376
|
+
return {
|
|
377
|
+
"default": module['TEXT_LIMIT_VALIDATOR']
|
|
378
|
+
};
|
|
379
|
+
});
|
|
380
|
+
}),
|
|
381
|
+
'INT_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
382
|
+
return import('@digigov/form/validators/utils/int').then(function (module) {
|
|
383
|
+
return {
|
|
384
|
+
"default": module['INT_VALIDATOR']
|
|
385
|
+
};
|
|
386
|
+
});
|
|
387
|
+
}),
|
|
388
|
+
'NUMBER_VALIDATOR': /*#__PURE__*/lazy(function () {
|
|
389
|
+
return import('@digigov/form/validators/utils/number').then(function (module) {
|
|
390
|
+
return {
|
|
391
|
+
"default": module['NUMBER_VALIDATOR']
|
|
392
|
+
};
|
|
393
|
+
});
|
|
394
|
+
})
|
|
395
|
+
};
|
package/lazy.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let FieldBase: import("react").LazyExoticComponent<import("react").FC<import("./Field/types").FieldBaseProps>>;
|
|
3
|
+
let FieldBaseContainer: import("react").LazyExoticComponent<import("react").FC<import("./Field/types").FieldContainerProps>>;
|
|
4
|
+
let FieldConditional: import("react").LazyExoticComponent<import("react").FC<import("./Field/types").FieldConditionalProps>>;
|
|
5
|
+
let Field: import("react").LazyExoticComponent<import("react").FC<import("./Field/types").FieldProps>>;
|
|
6
|
+
let FieldArray: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/FieldArray").FieldArrayProps>>;
|
|
7
|
+
let FieldObject: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/FieldObject").FieldObjectProps>>;
|
|
8
|
+
let FieldsetWithContext: import("react").LazyExoticComponent<import("react").FC<{
|
|
9
|
+
name: string;
|
|
10
|
+
}>>;
|
|
11
|
+
let Fieldset: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Pick<import("@digigov/ui").FieldsetProps, "onBlur" | "onChange" | "onSubmit" | "key" | "name" | "defaultValue" | "as" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "p" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "hidden" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "form" | "slot" | "style" | "title" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled"> & import("react").RefAttributes<HTMLFieldSetElement>>>;
|
|
12
|
+
let FieldsetBody: import("react").LazyExoticComponent<import("react").FC<import("./Fieldset/types").FieldsetBodyProps>>;
|
|
13
|
+
let FieldsetCaption: import("react").LazyExoticComponent<import("react").FC<import("./Fieldset/types").FieldsetCaptionProps>>;
|
|
14
|
+
let FieldsetLabel: import("react").LazyExoticComponent<import("react").FC<import("./Fieldset/types").FieldsetLabelProps>>;
|
|
15
|
+
let FormBase: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("@digigov/form/internal").FormBaseProps & import("react").RefAttributes<HTMLFormElement>>>;
|
|
16
|
+
let FormBuilder: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("@digigov/form/internal").FormBuilderProps & import("react").RefAttributes<HTMLFormElement>>>;
|
|
17
|
+
let FormContext: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
18
|
+
let Checkboxes: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").CheckboxesProps>>;
|
|
19
|
+
let DateInput: import("react").LazyExoticComponent<({ name, type, ...props }: {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
name: any;
|
|
22
|
+
type: any;
|
|
23
|
+
}) => JSX.Element>;
|
|
24
|
+
let FileInput: import("react").LazyExoticComponent<import("react").FC<any>>;
|
|
25
|
+
let Input: import("react").LazyExoticComponent<import("react").ExoticComponent<import("@digigov/form/internal").InputProps>>;
|
|
26
|
+
let Label: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").LabelProps>>;
|
|
27
|
+
let Questions: import("react").LazyExoticComponent<import("react").FC<import("./Questions/types").QuestionsInterface>>;
|
|
28
|
+
let Radio: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").RadioButtonsGroupProps>>;
|
|
29
|
+
let Select: import("react").LazyExoticComponent<import("react").ExoticComponent<import("@digigov/form/internal").SelectProps>>;
|
|
30
|
+
let Step: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").StepInterface>>;
|
|
31
|
+
let ReviewStep: import("react").LazyExoticComponent<() => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>;
|
|
32
|
+
let StepArrayReview: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").StepArrayReviewInterface>>;
|
|
33
|
+
let StepContext: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
34
|
+
let StepDescription: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").StepDescriptionInterface>>;
|
|
35
|
+
let StepDescriptionBase: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").StepDescriptionInterface>>;
|
|
36
|
+
let StepForm: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").StepFormProps>>;
|
|
37
|
+
let StepQuote: import("react").LazyExoticComponent<import("react").FC<import("@digigov/ui").ParagraphProps>>;
|
|
38
|
+
let StepTitle: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").StepTitleInterface>>;
|
|
39
|
+
let StepTitleBase: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").StepTitleInterface>>;
|
|
40
|
+
let StepTitleHeading: import("react").LazyExoticComponent<import("react").FC<import("@digigov/ui").HeadingProps>>;
|
|
41
|
+
let RadioButtonsGroup: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/internal").RadioButtonsGroupProps>>;
|
|
42
|
+
let ImageInput: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/inputs/ImageInput").ImageInputProps>>;
|
|
43
|
+
let OtpInput: import("react").LazyExoticComponent<({ name, maxLength, ...props }: {
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
name: any;
|
|
46
|
+
maxLength?: number | undefined;
|
|
47
|
+
}) => JSX.Element>;
|
|
48
|
+
let AutoCompleteInput: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/inputs/AutoCompleteInput").AutoCompleteInputProps>>;
|
|
49
|
+
let Image: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/inputs/ImageInput").ImageProps>>;
|
|
50
|
+
let REMOVE_SPACES: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
51
|
+
let RE_DIGIT: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
52
|
+
let AddObjects: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/MultiplicityField/add-objects").AddObjectsProps>>;
|
|
53
|
+
let ListObject: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/MultiplicityField").ListObjectProps>>;
|
|
54
|
+
let Multiplicity: import("react").LazyExoticComponent<import("react").FC<import("@digigov/form/MultiplicityField").MultiplicityProps>>;
|
|
55
|
+
let QuestionsContext: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
56
|
+
let AFM_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
57
|
+
let FILE_MAX_SIZE_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
58
|
+
let IBAN_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
59
|
+
let IMAGE_DIMENSION_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
60
|
+
let OTP_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
61
|
+
let MOBILE_PHONE_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
62
|
+
let PHONE_NUMBER_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
63
|
+
let POSTALCODE_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
64
|
+
let UUID4_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
65
|
+
let TEXT_LIMIT_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
66
|
+
let INT_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
67
|
+
let NUMBER_VALIDATOR: import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
68
|
+
}
|
|
69
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/form",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-cbc56209",
|
|
4
4
|
"description": "@digigov form builder",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dayjs": "1.10.4",
|
|
16
16
|
"@hookform/resolvers": "2.9.6",
|
|
17
17
|
"publint": "0.1.8",
|
|
18
|
-
"@digigov/react-icons": "2.0.0-
|
|
18
|
+
"@digigov/react-icons": "2.0.0-cbc56209"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@digigov/ui": "2.0.0-
|
|
22
|
-
"@digigov/react-core": "2.0.0-
|
|
21
|
+
"@digigov/ui": "2.0.0-cbc56209",
|
|
22
|
+
"@digigov/react-core": "2.0.0-cbc56209",
|
|
23
23
|
"clsx": "1.1.1",
|
|
24
24
|
"react": "^16.8.0 || ^17.0.0",
|
|
25
25
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
@@ -5,7 +5,7 @@ import { CalculatedField, FieldProps } from '@digigov/form/Field/types';
|
|
|
5
5
|
import { calculateField } from '@digigov/form/Field/utils';
|
|
6
6
|
import Fieldset, { FieldsetCaption } from '@digigov/form/Fieldset';
|
|
7
7
|
import { FieldSpec } from '@digigov/form/types';
|
|
8
|
-
import { FieldsetLegend } from '@digigov/react-core';
|
|
8
|
+
import { FieldsetLegend } from '@digigov/react-core/FieldsetLegend';
|
|
9
9
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
10
10
|
|
|
11
11
|
export interface FieldObjectProps extends Omit<FieldProps, 'key'> {
|
|
@@ -5,14 +5,13 @@ import FieldContainer from '@digigov/form/Field/FieldBaseContainer';
|
|
|
5
5
|
import { ControlledFieldProps } from '@digigov/form/Field/types';
|
|
6
6
|
import FieldObject from '@digigov/form/FieldObject';
|
|
7
7
|
import AddObjects from '@digigov/form/MultiplicityField/add-objects';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from '@digigov/react-core';
|
|
8
|
+
import { Card } from '@digigov/react-core/Card';
|
|
9
|
+
import { CardContent } from '@digigov/react-core/CardContent';
|
|
10
|
+
import { CardAction } from '@digigov/react-core/CardAction';
|
|
11
|
+
import { Button } from '@digigov/react-core/Button';
|
|
12
|
+
import { Heading } from '@digigov/react-core/Heading';
|
|
13
|
+
import { CardHeading } from '@digigov/react-core/CardHeading';
|
|
14
|
+
|
|
16
15
|
|
|
17
16
|
export interface MultiplicityProps
|
|
18
17
|
extends Omit<ControlledFieldProps, 'value' | 'onChange' | 'error' | 'extra'> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { ControlledFieldProps } from '@digigov/form/Field/types';
|
|
3
3
|
import { FieldOptionProps } from '@digigov/form/inputs/Label';
|
|
4
|
-
import { Hint } from '@digigov/react-core';
|
|
4
|
+
import { Hint } from '@digigov/react-core/Hint';
|
|
5
5
|
import UIAutoComplete, {
|
|
6
6
|
AutoCompleteProps as UIAutoCompleteProps,
|
|
7
7
|
} from '@digigov/ui/form/AutoComplete';
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import { Field } from '@digigov/form';
|
|
3
3
|
import { ControlledFieldProps } from '@digigov/form/Field/types';
|
|
4
4
|
import { FieldOptionProps } from '@digigov/form/inputs/Label';
|
|
5
|
-
import { CheckboxConditional } from '@digigov/react-core';
|
|
5
|
+
import { CheckboxConditional } from '@digigov/react-core/CheckboxConditional';
|
|
6
6
|
import CoreCheckboxes from '@digigov/react-core/Checkbox';
|
|
7
7
|
import CheckboxItem from '@digigov/react-core/CheckboxItem';
|
|
8
8
|
import Hint from '@digigov/react-core/Hint';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useWatch } from 'react-hook-form';
|
|
3
3
|
import { UncontrolledFieldProps } from '@digigov/form/Field/types';
|
|
4
|
-
import { Hint } from '@digigov/react-core';
|
|
4
|
+
import { Hint } from '@digigov/react-core/Hint';
|
|
5
5
|
import TextArea from '@digigov/react-core/TextArea';
|
|
6
6
|
import TextInput from '@digigov/react-core/TextInput';
|
|
7
7
|
import { useTranslation } from '@digigov/ui/i18n';
|
|
@@ -3,7 +3,7 @@ import { useWatch } from 'react-hook-form';
|
|
|
3
3
|
import { Field } from '@digigov/form';
|
|
4
4
|
import { UncontrolledFieldProps } from '@digigov/form/Field/types';
|
|
5
5
|
import { FieldOptionProps } from '@digigov/form/inputs/Label';
|
|
6
|
-
import { RadioConditional } from '@digigov/react-core';
|
|
6
|
+
import { RadioConditional } from '@digigov/react-core/RadioConditional';
|
|
7
7
|
import Hint from '@digigov/react-core/Hint';
|
|
8
8
|
import RadioContainer from '@digigov/react-core/RadioContainer';
|
|
9
9
|
import RadioItem from '@digigov/react-core/RadioItem';
|