@socotra/ec-react-components 2.25.0-next.1 → 2.25.0-next.10

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/index.d.ts CHANGED
@@ -176,6 +176,42 @@ export declare const FnolForm: {
176
176
  displayName: string;
177
177
  };
178
178
 
179
+ declare interface FormBaseProps {
180
+ /**
181
+ * Set to true when the form is submitting to set fields to readonly and disable the submit button
182
+ */
183
+ isSubmitting?: boolean;
184
+ /**
185
+ * Disables the form
186
+ */
187
+ disabled?: boolean;
188
+ /**
189
+ * Hides the submit button
190
+ */
191
+ hideSubmitButton?: boolean;
192
+ /**
193
+ * Whether to validate the form on submit
194
+ */
195
+ validateOnSubmit?: boolean;
196
+ /**
197
+ * The text to display on the submit button
198
+ */
199
+ submitButtonText?: string;
200
+ /**
201
+ * Readonly mode for the form
202
+ */
203
+ readonly?: boolean;
204
+ /**
205
+ * ID for the form wrapper
206
+ */
207
+ id?: string;
208
+ /**
209
+ * Custom form styling
210
+ * See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
211
+ */
212
+ styles?: StyleDefinition[];
213
+ }
214
+
179
215
  declare type GetDisbursementFormDefaultFieldsProps = {
180
216
  disbursements: DisbursementRefRecord;
181
217
  accountBalance: number;
@@ -388,39 +424,11 @@ declare type Props_11 = {
388
424
  scope?: Array<'P' | 'Q' | 'QQ'>;
389
425
  };
390
426
 
391
- declare interface Props_12 {
427
+ declare interface Props_12 extends FormBaseProps {
392
428
  /**
393
429
  * The resolved data model retrieved from data model response
394
430
  */
395
431
  dataModel: DataModel;
396
- /**
397
- * Set to true when the form is submitting to set fields to readonly and disable the submit button
398
- */
399
- isSubmitting?: boolean;
400
- /**
401
- * Disables the form
402
- */
403
- disabled?: boolean;
404
- /**
405
- * Hides the submit button
406
- */
407
- hideSubmitButton?: boolean;
408
- /**
409
- * Whether to validate the form on submit
410
- */
411
- validateOnSubmit?: boolean;
412
- /**
413
- * The text to display on the submit button
414
- */
415
- submitButtonText?: string;
416
- /**
417
- * Readonly mode for the form
418
- */
419
- readonly?: boolean;
420
- /**
421
- * ID for the form wrapper
422
- */
423
- id?: string;
424
432
  /**
425
433
  * Titles for the form and boolean labels
426
434
  */
@@ -433,11 +441,6 @@ declare interface Props_12 {
433
441
  truthyLabel?: string;
434
442
  falsyLabel?: string;
435
443
  };
436
- /**
437
- * Custom form styling
438
- * See https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/Styles.md
439
- */
440
- styles?: StyleDefinition[];
441
444
  }
442
445
 
443
446
  declare type Props_2 = {