@sunggang/ui-lib 0.1.23 → 0.1.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/index.esm.css +57 -0
- package/index.esm.js +64144 -1
- package/package.json +2 -1
- package/src/components/ui/inputOtp.d.ts +33 -0
- package/src/index.d.ts +3 -0
- package/src/lib/InputOtp/index.d.ts +10 -0
- /package/src/lib/{Ckeditor → ckeditor}/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunggang/ui-lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@radix-ui/react-popover": "^1.0.7",
|
|
6
6
|
"@radix-ui/react-slot": "^1.0.2",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"class-variance-authority": "^0.7.0",
|
|
9
9
|
"clsx": "^2.1.0",
|
|
10
10
|
"date-fns": "^3.6.0",
|
|
11
|
+
"input-otp": "^1.2.4",
|
|
11
12
|
"lucide-react": "^0.363.0",
|
|
12
13
|
"react-day-picker": "^8.10.0",
|
|
13
14
|
"tailwind-merge": "^2.2.2",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
3
|
+
value?: string | undefined;
|
|
4
|
+
onChange?: ((newValue: string) => unknown) | undefined;
|
|
5
|
+
maxLength: number;
|
|
6
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
7
|
+
onComplete?: ((...args: any[]) => unknown) | undefined;
|
|
8
|
+
pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
|
|
9
|
+
containerClassName?: string | undefined;
|
|
10
|
+
noScriptCSSFallback?: string | null | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
render: (props: import("input-otp").RenderProps) => React.ReactNode;
|
|
13
|
+
children?: undefined;
|
|
14
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
15
|
+
value?: string | undefined;
|
|
16
|
+
onChange?: ((newValue: string) => unknown) | undefined;
|
|
17
|
+
maxLength: number;
|
|
18
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
19
|
+
onComplete?: ((...args: any[]) => unknown) | undefined;
|
|
20
|
+
pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
|
|
21
|
+
containerClassName?: string | undefined;
|
|
22
|
+
noScriptCSSFallback?: string | null | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
render?: undefined;
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
} & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
29
|
+
index: number;
|
|
30
|
+
ringClassName: string;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
package/src/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface InputOTPProps {
|
|
3
|
+
length: number;
|
|
4
|
+
noticeText?: string | undefined;
|
|
5
|
+
textClassName?: string | undefined;
|
|
6
|
+
ringClassName?: string | undefined;
|
|
7
|
+
value: string;
|
|
8
|
+
setValue: React.Dispatch<React.SetStateAction<string>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const InputOTPs: React.FC<InputOTPProps>;
|
|
File without changes
|