koval-ui 0.12.29 → 0.12.30

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
@@ -476,7 +476,7 @@ export declare const InputColor: ForwardRefExoticComponent<DataAttributes & Aria
476
476
  id?: string | undefined;
477
477
  role?: AriaRole | undefined;
478
478
  className?: string | undefined;
479
- } & NativeProps_2 & CallbackPropsTextual & Omit<ValidationProps, "validatorFn"> & {
479
+ } & NativeProps_2 & CallbackPropsTextual & ValidationProps & {
480
480
  /**
481
481
  * Set text for placeholder.
482
482
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
@@ -502,7 +502,7 @@ export declare const InputFile: ForwardRefExoticComponent<DataAttributes & AriaA
502
502
  id?: string | undefined;
503
503
  role?: AriaRole | undefined;
504
504
  className?: string | undefined;
505
- } & Omit<NativePropsTextual, "pattern" | "inputMode" | "maxLength" | "minLength" | "readOnly"> & CallbackPropsTextual & {
505
+ } & Omit<NativePropsTextual, "pattern" | "inputMode" | "maxLength" | "minLength" | "readOnly"> & ValidationProps & CallbackPropsTextual & {
506
506
  accept?: InputHTMLAttributes<HTMLInputElement>['accept'];
507
507
  multiple?: InputHTMLAttributes<HTMLInputElement>['multiple'];
508
508
  } & RefAttributes<HTMLInputElement>>;
@@ -1637,6 +1637,12 @@ declare type ValidationProps = {
1637
1637
  * @see ValidationState
1638
1638
  */
1639
1639
  validationState?: keyof typeof ValidationState;
1640
+ /**
1641
+ * Provide custom message for external validation errors. Applies only to errors reported by
1642
+ * validationState prop.
1643
+ * @see validationState
1644
+ */
1645
+ errorMessage?: string;
1640
1646
  };
1641
1647
 
1642
1648
  declare enum ValidationState {