@socotra/ec-react-components 2.20.0 → 2.21.0-next.0
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 +18 -1
- package/dist/index.es.js +39395 -38461
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +52 -58
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -337,7 +337,9 @@ declare type Props_2 = {
|
|
|
337
337
|
/**
|
|
338
338
|
* The function to call when the form is submitted. It will create an QuoteRequest from the form data.
|
|
339
339
|
*/
|
|
340
|
-
handleSubmit: (data: QuoteRequest
|
|
340
|
+
handleSubmit: (data: QuoteRequest, staticData?: {
|
|
341
|
+
[key: string]: any;
|
|
342
|
+
}) => void;
|
|
341
343
|
/**
|
|
342
344
|
* Set to true when the form is submitting to set fields to readonly and disable the submit button
|
|
343
345
|
*/
|
|
@@ -373,6 +375,11 @@ declare type Props_2 = {
|
|
|
373
375
|
* default is false
|
|
374
376
|
*/
|
|
375
377
|
hideAdvancedFields?: boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Whether to hide the static data fields
|
|
380
|
+
* default is false
|
|
381
|
+
*/
|
|
382
|
+
hideStaticDataFields?: boolean;
|
|
376
383
|
/**
|
|
377
384
|
* Whether to hide the coverage terms fields
|
|
378
385
|
* default is false
|
|
@@ -450,6 +457,16 @@ declare type Props_2 = {
|
|
|
450
457
|
truthyLabel?: string;
|
|
451
458
|
falsyLabel?: string;
|
|
452
459
|
installmentPlanName?: string;
|
|
460
|
+
staticData?: string;
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* Default open state for advanced and static data fields
|
|
464
|
+
* If not provided, the advanced fields will be closed and static data fields will be open
|
|
465
|
+
* Default value is { advancedFields: false, staticDataFields: true }
|
|
466
|
+
*/
|
|
467
|
+
defaultOpen?: {
|
|
468
|
+
advancedFields?: boolean;
|
|
469
|
+
staticDataFields?: boolean;
|
|
453
470
|
};
|
|
454
471
|
};
|
|
455
472
|
|