koval-ui 0.12.29 → 0.12.31
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 +29 -2
- package/dist/index.js +2011 -1876
- 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
|
@@ -378,8 +378,15 @@ role?: AriaRole | undefined;
|
|
|
378
378
|
className?: string | undefined;
|
|
379
379
|
} & {
|
|
380
380
|
children: ReactElement;
|
|
381
|
+
/** Set text label */
|
|
381
382
|
label: string;
|
|
383
|
+
/** Set hint text to be displayed below input */
|
|
382
384
|
hint?: string | undefined;
|
|
385
|
+
/**
|
|
386
|
+
* Renders * character after label indicating required input status.
|
|
387
|
+
* Also set automatically when required input provided.
|
|
388
|
+
*/
|
|
389
|
+
required?: boolean | undefined;
|
|
383
390
|
} & RefAttributes<HTMLDivElement>>;
|
|
384
391
|
|
|
385
392
|
declare type FormState = Record<string, FormDataEntryValue>;
|
|
@@ -476,7 +483,7 @@ export declare const InputColor: ForwardRefExoticComponent<DataAttributes & Aria
|
|
|
476
483
|
id?: string | undefined;
|
|
477
484
|
role?: AriaRole | undefined;
|
|
478
485
|
className?: string | undefined;
|
|
479
|
-
} & NativeProps_2 & CallbackPropsTextual &
|
|
486
|
+
} & NativeProps_2 & CallbackPropsTextual & ValidationProps & {
|
|
480
487
|
/**
|
|
481
488
|
* Set text for placeholder.
|
|
482
489
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
@@ -502,7 +509,7 @@ export declare const InputFile: ForwardRefExoticComponent<DataAttributes & AriaA
|
|
|
502
509
|
id?: string | undefined;
|
|
503
510
|
role?: AriaRole | undefined;
|
|
504
511
|
className?: string | undefined;
|
|
505
|
-
} & Omit<NativePropsTextual, "pattern" | "inputMode" | "maxLength" | "minLength" | "readOnly"> & CallbackPropsTextual & {
|
|
512
|
+
} & Omit<NativePropsTextual, "pattern" | "inputMode" | "maxLength" | "minLength" | "readOnly"> & ValidationProps & CallbackPropsTextual & {
|
|
506
513
|
accept?: InputHTMLAttributes<HTMLInputElement>['accept'];
|
|
507
514
|
multiple?: InputHTMLAttributes<HTMLInputElement>['multiple'];
|
|
508
515
|
} & RefAttributes<HTMLInputElement>>;
|
|
@@ -539,6 +546,20 @@ step?: string | number | undefined;
|
|
|
539
546
|
size?: InputHTMLAttributes<HTMLInputElement>['size'];
|
|
540
547
|
} & RefAttributes<HTMLInputElement>>;
|
|
541
548
|
|
|
549
|
+
export declare const InputPassword: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
550
|
+
id?: string | undefined;
|
|
551
|
+
role?: AriaRole | undefined;
|
|
552
|
+
className?: string | undefined;
|
|
553
|
+
} & NativeProps_2 & {
|
|
554
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
555
|
+
placeholder?: string | undefined;
|
|
556
|
+
autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
|
|
557
|
+
maxLength?: number | undefined;
|
|
558
|
+
minLength?: number | undefined;
|
|
559
|
+
pattern?: string | undefined;
|
|
560
|
+
size?: number | undefined;
|
|
561
|
+
} & CallbackPropsTextual & ValidationProps & RefAttributes<HTMLInputElement>>;
|
|
562
|
+
|
|
542
563
|
export declare const InputRadio: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
543
564
|
id?: string | undefined;
|
|
544
565
|
role?: AriaRole | undefined;
|
|
@@ -1637,6 +1658,12 @@ declare type ValidationProps = {
|
|
|
1637
1658
|
* @see ValidationState
|
|
1638
1659
|
*/
|
|
1639
1660
|
validationState?: keyof typeof ValidationState;
|
|
1661
|
+
/**
|
|
1662
|
+
* Provide custom message for external validation errors. Applies only to errors reported by
|
|
1663
|
+
* validationState prop.
|
|
1664
|
+
* @see validationState
|
|
1665
|
+
*/
|
|
1666
|
+
errorMessage?: string;
|
|
1640
1667
|
};
|
|
1641
1668
|
|
|
1642
1669
|
declare enum ValidationState {
|