@sunggang/ui-lib 0.2.8 → 0.2.9
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 +10 -3
- package/index.esm.js +107996 -23
- package/package.json +1 -1
- package/src/components/ui/button.d.ts +2 -1
- package/src/components/ui/inputOtp.d.ts +4 -2
- package/src/index.d.ts +2 -1
- package/src/lib/Function/Hook/useBaseLiff.d.ts +14 -0
- package/index.esm2.js +0 -41639
- package/index.esm3.js +0 -6270
- package/src/utils/hooks/useBaseLIff.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
4
|
+
variant?: "custom" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
isLoading?: boolean;
|
|
10
|
+
customClassName?: string;
|
|
10
11
|
}
|
|
11
12
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
13
|
export { Button, buttonVariants };
|
|
@@ -1,23 +1,25 @@
|
|
|
1
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"> & {
|
|
2
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
3
3
|
value?: string | undefined;
|
|
4
4
|
onChange?: ((newValue: string) => unknown) | undefined;
|
|
5
5
|
maxLength: number;
|
|
6
6
|
textAlign?: "center" | "left" | "right" | undefined;
|
|
7
7
|
onComplete?: ((...args: any[]) => unknown) | undefined;
|
|
8
8
|
pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
|
|
9
|
+
pasteTransformer?: ((pasted: string) => string) | undefined;
|
|
9
10
|
containerClassName?: string | undefined;
|
|
10
11
|
noScriptCSSFallback?: string | null | undefined;
|
|
11
12
|
} & {
|
|
12
13
|
render: (props: import("input-otp").RenderProps) => React.ReactNode;
|
|
13
14
|
children?: undefined;
|
|
14
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
15
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "maxLength" | "value" | "onChange" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
15
16
|
value?: string | undefined;
|
|
16
17
|
onChange?: ((newValue: string) => unknown) | undefined;
|
|
17
18
|
maxLength: number;
|
|
18
19
|
textAlign?: "center" | "left" | "right" | undefined;
|
|
19
20
|
onComplete?: ((...args: any[]) => unknown) | undefined;
|
|
20
21
|
pushPasswordManagerStrategy?: "none" | "increase-width" | undefined;
|
|
22
|
+
pasteTransformer?: ((pasted: string) => string) | undefined;
|
|
21
23
|
containerClassName?: string | undefined;
|
|
22
24
|
noScriptCSSFallback?: string | null | undefined;
|
|
23
25
|
} & {
|
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import CkEditor from './lib/Ckeditor';
|
|
1
2
|
import './style.css';
|
|
3
|
+
export { CkEditor };
|
|
2
4
|
export * from './lib/uiLibrary';
|
|
3
5
|
export * from './lib/Spin';
|
|
4
6
|
export * from './lib/DropImage';
|
|
@@ -12,4 +14,3 @@ export * from './lib/DataTable/BaseTable';
|
|
|
12
14
|
export * from './lib/Function';
|
|
13
15
|
export * from './lib/BigCalender';
|
|
14
16
|
export * from './lib/BigCalender/dnd';
|
|
15
|
-
export * from './utils/hooks/useBaseLIff';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Liff } from '@line/liff';
|
|
2
|
+
interface UseLiffProps {
|
|
3
|
+
liffId: string;
|
|
4
|
+
withLoginOnExternalBrowser?: boolean;
|
|
5
|
+
redirectPath?: string;
|
|
6
|
+
}
|
|
7
|
+
interface UseLiffReturn {
|
|
8
|
+
accessToken: string | null;
|
|
9
|
+
isLoggedIn: boolean;
|
|
10
|
+
liffObject: Liff | null;
|
|
11
|
+
liffError: Error | null;
|
|
12
|
+
}
|
|
13
|
+
export declare const useBaseLiff: ({ liffId, withLoginOnExternalBrowser, redirectPath, }: UseLiffProps) => UseLiffReturn;
|
|
14
|
+
export {};
|