@socotra/ec-react-components 2.15.6 → 2.15.7-demo.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 CHANGED
@@ -36,7 +36,7 @@ import { TransactionSnapshotResponse } from '@socotra/ec-react-schemas';
36
36
  * AccountForm is a form for creating or updating an account. It required a resolved data model, custom data types, and an optional account object to put the form in update mode.
37
37
  */
38
38
  export declare const AccountForm: {
39
- ({ dataModel, accountType, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, validateOnSubmit, account, submitButtonText, id, titles, }: Props): JSX_2.Element;
39
+ ({ dataModel, accountType, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, hideSubmitButton, hideAdvancedFields, validateOnSubmit, account, submitButtonText, id, titles, }: Props): JSX_2.Element;
40
40
  displayName: string;
41
41
  };
42
42
 
@@ -70,6 +70,11 @@ declare type BaseProps = {
70
70
  * The text to display on the submit button
71
71
  */
72
72
  submitButtonText?: string;
73
+ /**
74
+ * Whether to hide the advanced fields
75
+ * default is false
76
+ */
77
+ hideAdvancedFields?: boolean;
73
78
  /**
74
79
  * Whether to validate the form on submit
75
80
  */
@@ -167,10 +172,10 @@ export declare const NewPaymentForm: {
167
172
  };
168
173
 
169
174
  /**
170
- * QuoteForm is a form for updating a quote. It required a product data model, custom data types, and quote object to render the form.
175
+ * PolicyForm is a form for updating a policy. It required a product data model, custom data types, and policy object to render the form.
171
176
  */
172
177
  export declare const PolicyForm: {
173
- ({ policy, segment, dataModel, id, titles, }: Props_4): JSX_2.Element;
178
+ ({ policy, segment, dataModel, hideAllFields, id, titles, }: Props_4): JSX_2.Element;
174
179
  displayName: string;
175
180
  };
176
181
 
@@ -285,6 +290,21 @@ declare type Props_2 = {
285
290
  * The text to display on the submit button
286
291
  */
287
292
  submitButtonText?: string;
293
+ /**
294
+ * Whether to hide the default fields
295
+ * default is false
296
+ */
297
+ hideDefaultFields?: boolean;
298
+ /**
299
+ * Whether to hide the advanced fields
300
+ * default is false
301
+ */
302
+ hideAdvancedFields?: boolean;
303
+ /**
304
+ * Whether to hide the coverage terms fields
305
+ * default is false
306
+ */
307
+ hideCoverageTerms?: boolean;
288
308
  /**
289
309
  * ID for the form wrapper
290
310
  * */
@@ -327,6 +347,14 @@ declare type Props_2 = {
327
347
  * }
328
348
  */
329
349
  getEvaluatedConstraints?: (request: EvaluateConstraintsRequest, tenantLocator: string, locator: string) => Promise<ConstraintEvaluationResponse | undefined>;
350
+ /**
351
+ * Whether to hide all fields
352
+ */
353
+ hideAllFields?: boolean;
354
+ /**
355
+ * The hidden exception for the form
356
+ */
357
+ hiddenExceptions?: string[];
330
358
  /**
331
359
  * Titles for the form
332
360
  */
@@ -385,6 +413,10 @@ declare type Props_3 = {
385
413
  * The element object from the quote
386
414
  */
387
415
  element: ElementResponse;
416
+ /**
417
+ * The quote object, used to logically render fields based on other quote elements
418
+ */
419
+ quote?: QuoteResponse;
388
420
  /**
389
421
  * The timezone of the quote or policy
390
422
  */
@@ -472,10 +504,15 @@ declare type Props_4 = {
472
504
  * ID for the form wrapper
473
505
  * */
474
506
  id?: string;
507
+ /**
508
+ * Whether to hide all fields
509
+ */
510
+ hideAllFields?: boolean;
475
511
  /**
476
512
  * Titles
477
513
  */
478
514
  titles?: {
515
+ details?: string;
479
516
  formTitle?: string;
480
517
  seeAdvancedDetails?: string;
481
518
  coverageTerms?: string;
@@ -841,7 +878,7 @@ declare type Props_9 = {
841
878
  * QuoteForm is a form for updating a quote. It required a product data model, custom data types, and quote object to render the form.
842
879
  */
843
880
  export declare const QuoteForm: {
844
- ({ quote, dataModel, dataTypes, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, validateOnSubmit, hideSubmitButton, submitButtonText, id, titles, getEvaluatedConstraints, dependencyMap, }: Props_2): JSX_2.Element;
881
+ ({ quote, dataModel, dataTypes, disabled, handleSubmit, isSubmitting, preventFormResetOnDisabled, validateOnSubmit, hideSubmitButton, hideDefaultFields, hideAdvancedFields, hideCoverageTerms, submitButtonText, id, titles, getEvaluatedConstraints, dependencyMap, hideAllFields, hiddenExceptions, }: Props_2): JSX_2.Element;
845
882
  displayName: string;
846
883
  };
847
884