@frigade/react 1.32.23 → 1.32.25

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/lib/index.d.ts CHANGED
@@ -347,8 +347,21 @@ type ModalPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' |
347
347
  interface FormInputType {
348
348
  id: string;
349
349
  title?: string;
350
+ subtitle?: string;
350
351
  type: string;
351
352
  required?: boolean;
353
+ validation?: InputValidation;
354
+ }
355
+ interface InputValidation {
356
+ type: string;
357
+ requiredError?: string;
358
+ invalidTypeError?: string;
359
+ props?: InputValidationRuleProps[];
360
+ }
361
+ interface InputValidationRuleProps {
362
+ requirement: string;
363
+ value?: string | number;
364
+ message?: string;
352
365
  }
353
366
  interface FormInputProps {
354
367
  formInput: FormInputType;