koval-ui 0.12.26 → 0.12.28
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 +6 -8
- package/dist/index.js +1909 -1883
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -511,7 +511,6 @@ id?: string | undefined;
|
|
|
511
511
|
role?: AriaRole | undefined;
|
|
512
512
|
className?: string | undefined;
|
|
513
513
|
} & {
|
|
514
|
-
validation?: "error" | "valid" | "inProgress" | undefined;
|
|
515
514
|
label?: string | undefined;
|
|
516
515
|
children: ReactElement<ChildProps & unknown>[];
|
|
517
516
|
name: string;
|
|
@@ -1006,7 +1005,6 @@ declare type Props_3 = DataAttributes & LibraryProps & {
|
|
|
1006
1005
|
};
|
|
1007
1006
|
|
|
1008
1007
|
declare type Props_4 = DataAttributes & LibraryProps & {
|
|
1009
|
-
validation?: keyof typeof ValidationState;
|
|
1010
1008
|
label?: string;
|
|
1011
1009
|
children: ReactElement<ChildProps & unknown>[];
|
|
1012
1010
|
name: string;
|
|
@@ -1623,15 +1621,15 @@ export declare const useToastState: (id: string) => {
|
|
|
1623
1621
|
};
|
|
1624
1622
|
|
|
1625
1623
|
declare type ValidationProps = {
|
|
1624
|
+
/** Enable to re-run validation when any field in the form changes */
|
|
1625
|
+
revalidateOnFormChange?: boolean;
|
|
1626
|
+
/**
|
|
1627
|
+
* Provide callback function to validate input.
|
|
1628
|
+
* @see https://koval.support/inputs/input-validation
|
|
1629
|
+
*/
|
|
1626
1630
|
validatorFn?: (value: unknown, validityState: ValidityState, formState: FormState_2) => string | Promise<string>;
|
|
1627
1631
|
};
|
|
1628
1632
|
|
|
1629
|
-
declare enum ValidationState {
|
|
1630
|
-
error = "error",
|
|
1631
|
-
valid = "valid",
|
|
1632
|
-
inProgress = "inProgress"
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
1633
|
declare enum Variants {
|
|
1636
1634
|
bordered = "bordered",
|
|
1637
1635
|
plain = "plain"
|