@rovula/ui 0.1.11 → 0.1.12
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/cjs/bundle.js +1 -1
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/OtpInput/OtpInputGroup.d.ts +2 -0
- package/dist/components/OtpInput/OtpInputGroup.js +2 -2
- package/dist/esm/bundle.js +1 -1
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/OtpInput/OtpInputGroup.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/OtpInput/OtpInputGroup.tsx +3 -2
|
@@ -8,6 +8,7 @@ export type OtpInputGroupProps = OtpInputProps & {
|
|
|
8
8
|
error?: boolean;
|
|
9
9
|
errorMessage?: string;
|
|
10
10
|
keepFooterSpace?: boolean;
|
|
11
|
+
wrapperClassName?: string;
|
|
11
12
|
labelClassName?: string;
|
|
12
13
|
messageClassName?: string;
|
|
13
14
|
};
|
|
@@ -19,6 +20,7 @@ export declare const OtpInputGroup: React.ForwardRefExoticComponent<OtpInputProp
|
|
|
19
20
|
error?: boolean;
|
|
20
21
|
errorMessage?: string;
|
|
21
22
|
keepFooterSpace?: boolean;
|
|
23
|
+
wrapperClassName?: string;
|
|
22
24
|
labelClassName?: string;
|
|
23
25
|
messageClassName?: string;
|
|
24
26
|
} & React.RefAttributes<HTMLInputElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -689,6 +689,7 @@ type OtpInputGroupProps = OtpInputProps & {
|
|
|
689
689
|
error?: boolean;
|
|
690
690
|
errorMessage?: string;
|
|
691
691
|
keepFooterSpace?: boolean;
|
|
692
|
+
wrapperClassName?: string;
|
|
692
693
|
labelClassName?: string;
|
|
693
694
|
messageClassName?: string;
|
|
694
695
|
};
|
|
@@ -700,6 +701,7 @@ declare const OtpInputGroup: React__default.ForwardRefExoticComponent<OtpInputPr
|
|
|
700
701
|
error?: boolean;
|
|
701
702
|
errorMessage?: string;
|
|
702
703
|
keepFooterSpace?: boolean;
|
|
704
|
+
wrapperClassName?: string;
|
|
703
705
|
labelClassName?: string;
|
|
704
706
|
messageClassName?: string;
|
|
705
707
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ export type OtpInputGroupProps = OtpInputProps & {
|
|
|
10
10
|
error?: boolean;
|
|
11
11
|
errorMessage?: string;
|
|
12
12
|
keepFooterSpace?: boolean;
|
|
13
|
+
wrapperClassName?: string;
|
|
13
14
|
labelClassName?: string;
|
|
14
15
|
messageClassName?: string;
|
|
15
16
|
};
|
|
@@ -24,9 +25,9 @@ export const OtpInputGroup = React.forwardRef<HTMLInputElement, OtpInputGroupPro
|
|
|
24
25
|
error = false,
|
|
25
26
|
errorMessage,
|
|
26
27
|
keepFooterSpace = true,
|
|
28
|
+
wrapperClassName,
|
|
27
29
|
labelClassName,
|
|
28
30
|
messageClassName,
|
|
29
|
-
className,
|
|
30
31
|
...otpProps
|
|
31
32
|
},
|
|
32
33
|
ref
|
|
@@ -35,7 +36,7 @@ export const OtpInputGroup = React.forwardRef<HTMLInputElement, OtpInputGroupPro
|
|
|
35
36
|
const message = isInvalid ? errorMessage : helperText;
|
|
36
37
|
|
|
37
38
|
return (
|
|
38
|
-
<div className={cn("inline-flex w-full flex-col gap-2",
|
|
39
|
+
<div className={cn("inline-flex w-full flex-col gap-2", wrapperClassName)}>
|
|
39
40
|
{label && (
|
|
40
41
|
<label
|
|
41
42
|
htmlFor={id}
|